phpBlock

I was searching true Forum but I couldn't find tutorial about how to edit content of new php Block.

Dolphin ver. 7.3.0:

In Dashboard > Builders > Pages Builder > Hompage , when I drag Sample PHP Block to Column 1 and then try to edit the content all I can do is set the language key for the php Block. 

Can you please advice how to edit the content, I'd like to insert this code ( I've tried to insert it in HTML Block but it gets striped out after saving, tried to save it directly to the DB and it didn't work as well)..., so the code which I need to enter is:

<div id="cometchat_embed_chatrooms_container" style="display:inline-block; border:1px solid #CCCCCC;"></div> <script src="/cometchat/js.php?type=core&name=embedcode" type="text/javascript"></script> <script>var iframeObj = {};iframeObj.module="chatrooms";iframeObj.src="/cometchat/modules/chatrooms/index.php?id=1";iframeObj.width="500";iframeObj.height="300";if(typeof(addEmbedIframe)=="function"){addEmbedIframe(iframeObj);}</script>

 

Please, can someone help me on this?

 

Kind regards

Mayki

"When things get tough the tough get going..."
Quote · 23 Mar 2016

The PHP block should have a textbox under the caption field. But for HTML and JavaScript, the text block should be used.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 23 Mar 2016

for the code you are using - or any code that is not inheritently php - you must close the php first - then reopen after your code - such as:

 

?>
<div id="cometchat_embed_chatrooms_container" style="display:inline-block; border:1px solid #CCCCCC;"></div>

<script src="/cometchat/js.php?type=core&name=embedcode" type="text/javascript"></script>

<script>var iframeObj = {};iframeObj.module="chatrooms";iframeObj.src="/cometchat/modules/chatrooms/index.php?id=1";iframeObj.width="500";iframeObj.height="300";if(typeof(addEmbedIframe)=="function"){addEmbedIframe(iframeObj);}
</script>

<?php

 

but for what you want to do-  use a text block instead - from what was posted here - that is what it is made for.

 

caredesign.net
Quote · 23 Mar 2016

Thank you Nathan and Professor,

it works with text Block, this is new in D7.3.0 isn't it?

 

Thank you both for your quick help.

 

Greetings

Mayki

"When things get tough the tough get going..."
Quote · 23 Mar 2016

I think there is something wrong with my site's php block

 

1. There are 4 PHP block showing to add

2. Once PHP block is added, I can't delete it

3. PHP block added and edited via Language key is not working

I have to add the code to show user category given by AlexT here https://www.boonex.com/forums/topic/User-category-and-Common-category-in-Groups.htm

 

2016-03-25.png · 75.1K · 523 views
Quote · 25 Mar 2016

Anyone there to help??

Quote · 26 Mar 2016

Anyone?

Quote · 29 Mar 2016

 

There are 4 PHP block showing to add

It looks you've added too many blocks, just remove them by opening the following URL: 

http://example.com/path-to-dolphin/administration/pageBuilder.PHP?action_sys=removeCodeblock

Rules → http://www.boonex.com/terms
Quote · 13 Apr 2016

Nathon Paton helped me removing extra PHP block.

PHP block can be removed using http://example.com/administration/pageBuilder.php?action_sys=removeCodeBlock

A new PHP block can be added using http://example.com/administration/pageBuilder.php?action_sys=addCodeBlock

(Capitalisation matters here. Copy the code as it is!)

 

I deleted older PHP blocks by deleting the records from sys_page_compose table.

I added another PHP block and pasted my code in the in the field at the bottom and it started showing on the page.

Thank you, everyone!

Quote · 22 Apr 2016

hi when I run http://example.com/administration/pageBuilder.php?action_sys=removeCodeBlock

I get

{"result":"fail"}

I used above command, after loging into administration and then using above command replacing my website with example but nothing happened.

Quote · 27 Aug 2016

 

hi when I run http://example.com/administration/pageBuilder.php?action_sys=removeCodeBlock

I get

{"result":"fail"}

I used above command, after loging into administration and then using above command replacing my website with example but nothing happened.

This might sound silly, but do you already have the Code block added?

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 27 Aug 2016
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.