Custom HTML & PHP page?

I want to be able to add a custom page such that, the new page can have any layout strucutre and be able to parse PHP script. How would I be able to do this?

Quote · 2 Sep 2008

Let's say I want to add a new page called "Tips" - as a new navigation button and new page on my dolphin community site. This new page will have a complex layout and also will parse a PHP snipplet. For instance, I want it to connect to another database and display the data on the new page. How can I add this new page to be very flexible allowing me to add PHP code?

I know, I can go to PageBuilder, but it doesn't allow me to add PHP -- just simple HTML.

Quote · 3 Sep 2008

take a look at this post

http://www.boonex.com/unity/blog/entry/How_to_Add_PHP_in_a_BLOCK

Quote · 3 Sep 2008

Thanks!

Only issue though, my PHP script is very long (contains classes) and wondering if there's a non database/table way?

Quote · 3 Sep 2008

another way would be to setup an iframe in your new pages block, include your script within this iframe in your new page, so its actually parsing the php outside of the editor and then include the rest of your html within that block.

 

 

take a look at my previous delemia: http://www.boonex.com/unity/forums/#topic/How-to-embed.htm

Quote · 3 Sep 2008

Thanks. Sounds like a good idea -- so I can add a single Block which contains an Iframe right? And this iframe will have to added via my database, but I can link the iframe to an outside source, right?

Quote · 3 Sep 2008

you will go into my admin add a new page, activate a new block for the page, add the iframe into the new block by using the html option in the WYSIWYG editor (tinymce), within the iframe add the path to the php script like 

<iframe src="yourscript.php" width="xxx" height="xxx"
frameborder="0" scrolling="no" name="myInlineFrame">
TEXT FOR NON-COMPATIBLE BROWSERS HERE</iframe>

Quote · 3 Sep 2008
 
 
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.