Page 1 of 1

Need to use the PHP Include function on my sidebar

Posted: Wed Jul 30, 2008 7:44 pm
by Maccsta
I want to use the PHP Include to call some links into my sidebar.

I've tried to use the HTML nugget tool to do this using:

<?php
@ini_set('expose_php', 'Off');
@include "/usr/www/virtual/maccsta/www.mysite.com/lo/site_templates/site_16_1.php";
?>

Doesn't work! Does work on a normal webpage but not through SY blog.

Any suggestions?

Re: Need to use the PHP Include function on my sidebar

Posted: Thu Jul 31, 2008 12:02 pm
by garvinhicking
Hi!

Yes, the HTML Nugget plugin is only for HTML, as the description indicates. ;)

You can use the "serendipity_plugin_externalphp" plugin ("External PHP application") for the sidebar.

Regards,
Garvin

Re: Need to use the PHP Include function on my sidebar

Posted: Fri Aug 01, 2008 2:33 am
by Maccsta
garvinhicking wrote:Hi!

Yes, the HTML Nugget plugin is only for HTML, as the description indicates. ;)

You can use the "serendipity_plugin_externalphp" plugin ("External PHP application") for the sidebar.

Regards,
Garvin
Thanks Gavin, works a treat. I asked my host to treat html pages as php so I thought the html nugget might respond to this also!

Thanks again!