embedding or including

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
TNTH

embedding or including

Post by TNTH »

Hi there,

I'm having the following problem:

I'm trying to get the following code into my template:

Code: Select all

<?php
include_once "/var/www/html/poll/booth.php";
echo $php_poll->poll_process(4);
?></p>
      <p align="center"><img src="images/hr.gif" width="33" height="13"></p>
      <p align="center"><img src="images/shout.gif" alt="Shoutbox" width="125" height="19" hspace="0" vspace="0" border="0">
      <?php
		include "/var/www/html/shout/net_tag.php";
		?></p>
When I put this between {literal}-tags I see my pictures, but nothing else (in preview).

I tried to embed it with the embedplugin like this:

Code: Select all

{embed url=talk.php header=true}
But that doesn't work either. Does somebody know how to include/embed the php into the template?
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

Re: embedding or including

Post by Ted »

Make a user defined tag/plugin.  Take the <?php from the front and put it at the end.  Save it as something (example: testplugin).  Then put the {testplugin} in your template.  Should work fine.
TNTH

Re: embedding or including

Post by TNTH »

Tried it, and it solved it partly.

The poll still gives problems, but i'll try to fiend another one. [edit]Found another one. Topic ends here (i guess :))[/edit]

Thanks again wishy! :-)
Last edited by TNTH on Sat May 28, 2005 5:23 pm, edited 1 time in total.
Locked

Return to “CMSMS Core”