PDA

View Full Version : Inserting custom program?


longswim
09-30-2008, 05:48 PM
I have written a custom PHP program which I want to run on my site but I am not sure where or how to insert it into Vivvo. I tried with following option to include my PHP file:

<vte:include href="http://www.vivvo.net/somepage.php" />

I pasted these lines in the template which shows the page, but no effect. My code was never executed. I tried this same code in the "Page" option provided through the Admin side, but this code is converted into HTML entities and is never executed.

From the front page I want to link to my custom app (which is working fine) and have it open in the typical out of the box Vivvo template, the same look as if the page was created from the static page option from the Admin control panel with my Sections, my poll etc on the left side of the page, login, most mailed, etc on the right.

Can somebody guide me how to get this done. What template to use, where and how to insert my code to make this happen. Thanks.

boccio
10-01-2008, 01:48 PM
You can't embed PHP code with <vte:include> statement, unless it produces a well-formatted HTML output.

Refer to this page for PHP includes:
http://www.vivvo.net/forums/showthread.php?t=1599