Page 1 of 1

Where can i put external php code ?

Posted: Mon May 09, 2005 6:22 am
by PurpleCow
Hi,

I wanted to run polls and i have installed a different script to run and manage polls. It gives me a piece of php code which when placed in a file should display the polls.

However, when i try to put that into the tpl files, I get only the code to be displayed when rendered on the browser and not the actual polls. Do we have a php nuggent like html nugget as a plugin ?

I wanted the polls to be displayed in the sidebar.

Thanks for any help.
Cheers

Re: Where can i put external php code ?

Posted: Mon May 09, 2005 1:46 pm
by garvinhicking
No, you need to create a plugin for this. Have a look at the serendipity_event_externalphp plugin. For a sidebar plugin, look at the serendipity_plugin_gallery_menalto_random (or sth. like that) plugin.

It is not advised to use a PHP Nugget plugin for this.

Regards,
Garvin

Posted: Tue May 10, 2005 8:49 am
by PurpleCow
Where can i find those plugins...even the phpnugget is not a standard part of the installation, i guess ??

Any pointer to from where i can download them and use them as quickly as possible.

Thanks for the help.
Cheers

Posted: Tue May 10, 2005 1:08 pm
by garvinhicking
That plugin can be found here: http://nopaste.php-q.net/132963

Use it at your own risk. :)

Regards,
Garvin