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
Where can i put external php code ?
-
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 ?
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
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/
# 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/
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
That plugin can be found here: http://nopaste.php-q.net/132963
Use it at your own risk.
Regards,
Garvin
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/
# 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/