How do you create a webpage in dolphin?

In dolphin, how can I create a new webpage that uses the template and lets me write HTML for its body?

 

I tried using the pagebuilder with no success. I am guessing I am doing something wrong.

Quote · 23 Dec 2010

 

In dolphin, how can I create a new webpage that uses the template and lets me write HTML for its body?

 

I tried using the pagebuilder with no success. I am guessing I am doing something wrong.

do you want to create a new page or new webpage,,, ?

administration -> page builder ->page blocks -> add page  , it should work perfectly for you including insert HTML code for this body

=> http://friends.smansakra.sch.id => friends community based dolphin 7
Quote · 23 Dec 2010

 

 

In dolphin, how can I create a new webpage that uses the template and lets me write HTML for its body?

 

I tried using the pagebuilder with no success. I am guessing I am doing something wrong.

do you want to create a new page or new webpage,,, ?

administration -> page builder ->page blocks -> add page  , it should work perfectly for you including insert HTML code for this body

Here's the thing though, I did that exactly. I created a new page. But when I tried to drag over the HTML block, it wouldn't set itself at all. And I did not see an option to "save" either; so if I clicked on the other pages within the page builder, the one I would create would just disappear.

Quote · 23 Dec 2010

Mine work fine,

1. administration -> page builder ->page blocks -> add page

2. then click add column button

3. then drag html block

4. click view page link on the right

5. after viewing the page, go to administration->page builder -> navigation, just click new item then insert your paga uri

 

would you please insert screen shot?

=> http://friends.smansakra.sch.id => friends community based dolphin 7
Quote · 23 Dec 2010

 

Mine work fine,

1. administration -> page builder ->page blocks -> add page

2. then click add column button

3. then drag html block

4. click view page link on the right

5. after viewing the page, go to administration->page builder -> navigation, just click new item then insert your paga uri

 

would you please insert screen shot?

Ups sorry, you use dolphin 6.1

=> http://friends.smansakra.sch.id => friends community based dolphin 7
Quote · 23 Dec 2010

If you are using internet explorer try firefox instead. I haven't used the d6.1 pagebuilder for a while now, but I know adding, updating, and saving html content into a html block usually doesn't work with internet explorer. Nothing seems to happen when you save. Switch over to firefox and it works. D6.1 had a lot of problems with internet explorer.

I would give it a try if you haven't already and see if makes a differenence.

DialMe.com - Your One and Only Source For Boonex Dolphin Tutorials and Resources
Quote · 23 Dec 2010

 

If you are using internet explorer try firefox instead. I haven't used the d6.1 pagebuilder for a while now, but I know adding, updating, and saving html content into a html block usually doesn't work with internet explorer. Nothing seems to happen when you save. Switch over to firefox and it works. D6.1 had a lot of problems with internet explorer.

I would give it a try if you haven't already and see if makes a differenence.

I was actually using firefox initially and I tried Internet explorer after it. Both yielded me the same results.

Quote · 23 Dec 2010

With phpmyadmin you can check the PageCompose table. Find your page/html block in PageCompose table and make sure width is really the width of your page. Check columns, order, design box.

Sometimes the page width gets set to a wrong width or blocks reflect the wrong column, and you can manually set them with phpmyadmin. After they are set right in phpmyadmin they can be used in d6.1 admin. Or you can manually insert a html block in a page with phpmyadmin and set correct size, width, columns, who can view it, even add your html code into the content field. After doing so, move a block around, then move it back to update the changes in your admin.

IE has a tendency to mess up pages and blocks more than firefox for some reason with d6/6.1.

DialMe.com - Your One and Only Source For Boonex Dolphin Tutorials and Resources
Quote · 23 Dec 2010

 

With phpmyadmin you can check the PageCompose table. Find your page/html block in PageCompose table and make sure width is really the width of your page. Check columns, order, design box.

Sometimes the page width gets set to a wrong width or blocks reflect the wrong column, and you can manually set them with phpmyadmin. After they are set right in phpmyadmin they can be used in d6.1 admin. Or you can manually insert a html block in a page with phpmyadmin and set correct size, width, columns, who can view it, even add your html code into the content field. After doing so, move a block around, then move it back to update the changes in your admin.

IE has a tendency to mess up pages and blocks more than firefox for some reason with d6/6.1.

I've never used myphpadmin....but I'll see about installing it.

 

It would be cool if I could find out what is the exact code to copy to a new file in order to grab just the template code......then I could just write the rest of the HTML myself.

Quote · 23 Dec 2010

 

 

 

In dolphin, how can I create a new webpage that uses the template and lets me write HTML for its body?

 

I tried using the pagebuilder with no success. I am guessing I am doing something wrong.

do you want to create a new page or new webpage,,, ?

administration -> page builder ->page blocks -> add page  , it should work perfectly for you including insert HTML code for this body

Here's the thing though, I did that exactly. I created a new page. But when I tried to drag over the HTML block, it wouldn't set itself at all. And I did not see an option to "save" either; so if I clicked on the other pages within the page builder, the one I would create would just disappear.

You did not mention here that you added a column. Which must be done first before you can drag in a HTML block.


https://www.deanbassett.com
Quote · 23 Dec 2010

 

 

 

 

In dolphin, how can I create a new webpage that uses the template and lets me write HTML for its body?

 

I tried using the pagebuilder with no success. I am guessing I am doing something wrong.

do you want to create a new page or new webpage,,, ?

administration -> page builder ->page blocks -> add page  , it should work perfectly for you including insert HTML code for this body

Here's the thing though, I did that exactly. I created a new page. But when I tried to drag over the HTML block, it wouldn't set itself at all. And I did not see an option to "save" either; so if I clicked on the other pages within the page builder, the one I would create would just disappear.

You did not mention here that you added a column. Which must be done first before you can drag in a HTML block.


The was actually the very last thing that I tried, on both IE and FireFox.

 

Is there a way I can just copy the template code from one webpage and paste it into a new file, then just writing the body HTML myself?

Quote · 24 Dec 2010

I was able to identify the code that gives me just the template:

 

<?

require_once( 'inc/header.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );




PageCode();



?>

 

 

 

 

I created a test.php file using the code above, and it displayed the template of the website with blank content. (Except for "__page_main_code__ " in the middle of the page). Now i just need to figure out how to get my HTML in the middle of the page and get rid of "__page_main_code__ ". When I put some sample text just before or just after "PageCode();", the file errors out. If I put some sample text just after ?>, it works.....but it displays the text below the footer of the page.

 

Does anyone know how I can insert my HTML in the middle of the page?

Quote · 24 Dec 2010

Try this


<?

require_once( 'inc/header.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );


$_page['name_index']     = 13;
$_page['css_name']        = 'your.css';

$logged['member'] = member_auth( 0, false );

$_page['header'] = _t( '_pagehead');
$_page['header_text'] = _t( '_pagehead');

// --------------- page components

$_ni = $_page['name_index'];
$_page_cont[$_ni]['page_main_code'] = getMyCode();

PageCode();

function getMyCode() {

$sCode = '

Hello World

';

return $sCode;

}

?>


The getMyCode function example i provided you then use to generate your html.

$_page['name_index']     = 13;
$_page['css_name']        = 'your.css';

Those specify which template to use such as this one says 13 so uses template page_13.html abd the other says which css file to use for custom css.

If you leave those lines out, defaults should be used.

There are also other ways. Like specify a template to use. Leave out this line and the getMyCode  function. $_page_cont[$_ni]['page_main_code'] = getMyCode(); and put your html in the template file instead.


https://www.deanbassett.com
Quote · 24 Dec 2010

 

Try this


<?

require_once( 'inc/header.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );


$_page['name_index']     = 13;
$_page['css_name']        = 'your.css';

$logged['member'] = member_auth( 0, false );

$_page['header'] = _t( '_pagehead');
$_page['header_text'] = _t( '_pagehead');

// --------------- page components

$_ni = $_page['name_index'];
$_page_cont[$_ni]['page_main_code'] = getMyCode();

PageCode();

function getMyCode() {

$sCode = '

Hello World

';

return $sCode;

}

?>


The getMyCode function example i provided you then use to generate your html.

$_page['name_index']     = 13;
$_page['css_name']        = 'your.css';

Those specify which template to use such as this one says 13 so uses template page_13.html abd the other says which css file to use for custom css.

If you leave those lines out, defaults should be used.

There are also other ways. Like specify a template to use. Leave out this line and the getMyCode  function. $_page_cont[$_ni]['page_main_code'] = getMyCode(); and put your html in the template file instead.


This sounds extremely helpful. I'm going to give this a try tomorrow for sure. Thank you so much.

Quote · 25 Dec 2010

It worked!

 

Thank you.

Quote · 25 Dec 2010

 

It worked!

 

Thank you.

One more thing.....I downloaded and installed a third party picture gallery app called Plogger (www.plogger.org).

 

I tried using the same method to wrap the dolphin template around it...but it just errors out. I'm guessing that within the code below, PHP cannot be used? Is it only for HTML?

$sCode = '

Hello World

';

 

Quote · 25 Dec 2010

 

 

It worked!

 

Thank you.

One more thing.....I downloaded and installed a third party picture gallery app called Plogger (www.plogger.org).

 

I tried using the same method to wrap the dolphin template around it...but it just errors out. I'm guessing that within the code below, PHP cannot be used? Is it only for HTML?

$sCode = '

Hello World

';

 

That is php.

Basically $sCode is a variable. and the function returns the content of that variable. So you just need to put your output into the variable to be returnd by the function.

So for example. to display a members nikname.

$sCode '
Hello World
';

Becomes.

$sCode = 'Members Nickname is ' . getNickName();

How to do what you need will be difficult to explain without knowing more about the mod.

https://www.deanbassett.com
Quote · 25 Dec 2010

 

One more thing.....I downloaded and installed a third party picture gallery app called Plogger (www.plogger.org).

I tried using the same method to wrap the dolphin template around it...but it just errors out.

You'll never do that with page builder.  Page builder is just for really simple things.  Trying to use it to wrap a third party application will only be an adventure in frustration.

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 25 Dec 2010

 

 

 

It worked!

 

Thank you.

One more thing.....I downloaded and installed a third party picture gallery app called Plogger (www.plogger.org).

 

I tried using the same method to wrap the dolphin template around it...but it just errors out. I'm guessing that within the code below, PHP cannot be used? Is it only for HTML?

$sCode = '

Hello World

';

 

That is php.

Basically $sCode is a variable. and the function returns the content of that variable. So you just need to put your output into the variable to be returnd by the function.

So for example. to display a members nikname.

$sCode '
Hello World
';

Becomes.

$sCode = 'Members Nickname is ' . getNickName();

How to do what you need will be difficult to explain without knowing more about the mod.

Sorry Deano. What I meant was that within the variable $sCode, can PHP code be used within that variable? Or is it only meant for HTML?

Quote · 26 Dec 2010

No. All final output is in html. Even PHP code has to become html at some point before it can be displayed by the browser.

So no, you cannot embed php inside the variable and expect it to be executed.

It has become apparent to me that i will not be able to explain it. I am not a teacher.

You need to be able to get html output from whatever it is you're trying to embed on the page and store it in the variable. As for how, your on your own there.


https://www.deanbassett.com
Quote · 26 Dec 2010

Okie dokie.

 

Thanks anyway. You were very helpful.

Quote · 26 Dec 2010
 
 
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.