Where can i put external php code ?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
PurpleCow
Regular
Posts: 64
Joined: Sun Jan 30, 2005 11:25 am
Contact:

Where can i put external php code ?

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Where can i put external php code ?

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
PurpleCow
Regular
Posts: 64
Joined: Sun Jan 30, 2005 11:25 am
Contact:

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

That plugin can be found here: http://nopaste.php-q.net/132963

Use it at your own risk. :)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply