Version 4 (modified by IgorL, 15 years ago) (diff)

--

Each page consists of blocks which are on your website and most are viewable by your members.
Page Builder allows you to add new blocks to the chosen page, remove, enable, disable and rearrange blocks according to your needs.

Adding Blocks


Choose a page from the Pages drop down list which will than populate the pages blocks.
Further down the page click and drag a _HTML Block and drop it where ever you want the block to appear on your page.
You need to set the block properties by clicking on the block which will load that block property window.
Fill out the Caption Lang Key field, Visibility and the content field to your needs.
For information on Language Keys visit the Language Keys section.

Disable Blocks


If you want to remove a block but may want to use it at a later time you can make it inactive by clicking and dragging the block you want disabled down to the Inactive section.
You could also click on the block to open the property window and uncheck the visible for: Guest & Member but this could get messy later on.

Reactivating Blocks


Find the block in the Inactive section, click and drag it back to where you want it displayed on the page (In the Active blocks section).

Deleting Blocks


Locate the block you no longer want or need anymore, click on the block to open its property window and press delete.
Warning! If you delete a block it will also be deleted from the page builder and the database as well.

Creating language-file and HTML-based blocks in Dolphin 6.1.6

We decided to shed some light on this subject because it's really not so obvious in Dolphin 6.1.6 regarding creation of language-file based HTML blocks.

First of all, you cannot use language keys directly in the HTML editor, so, in the Builders you should create only an HTML stem of your block and specify some text which later will be replaced by language keys.

Let's create a test block for your homepage and make it language file and HTML-based.

  • So, navigate to Builders -> Pages Builder -> Homepage, point the mouse cursor on the _HTML Block in the Samples area and drag it into the Active Blocks area placing among other blocks.
  • Click on the _HTML Block link of this block in the Active Blocks area. Think of a caption for this block and specify a language key for this caption in the Caption Lang Key field, for example: _My New Block
  • Now click the HTML icon in the editor toolbox. And now you can create your HTML stem and content for this block, for example:
    <font color="green">My New Block</font>
    
    Click the Save button.
  • Now we can create a language key for the caption of our block. Navigate to Settings -> Language Settings and click the Add a new language key link.

Type _My New Block in the New language key name field. Choose the appropriate category in the Category drop-down menu, for example: Misc or type a new category in the adjacent field. Skip the field Language string parameters if you don't want to include any changeable PHP-generated parameters in this block.

Then create language strings for all the languages that you have created, for example:
My New Block for the English language
Mon nouveau bloc for the French language

Click the Save changes button. You should see the window notifying that the new key is successfully created and the language file is successfully compiled.

  • Now comes the hardest part - key creation for the block's content. You should know how to use phpMyAdmin or any other interface which you can use to interact with the database. Log into this interface and open the table PageCompose?.
    Search for the block you have created: click the Search button and type _My New Block in the Caption field.
    Open the found record for edition.
    Replace the Echo function with the PHP function in the Func field.
    Replace the Content with the following PHP code:
    echo '<p><span style="color: green;">' . _t("_My New Block Content") . '</span></p>';
    
    This way you will be able to create a language key _My New Block Content which will be rendered by the _t function.
    Click Go to save the changes.
  • Now you only need to create this new language key (see above) and recompile the block by navigating again to Builders -> Pages Builder -> Homepage, clicking the block's caption and saving it again.
  • Note: if you want your language strings to be bi-directional, you can embed them in <p dir="rtl"></p> tags, for example:
    <p dir="rtl">???? ???? ?????</p>
    
    which means "My New Block" in Arabic.
 
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.
Fork me on GitHub