Hi,
I would like to embed some small php code into the side bar. The code is stored in a php file and displays the 5 recent posts in my phpbb board.
Is there a simple way to do that? Is the "external php app" plugin recommended? I've read something about a php bos plugin for the side bar but didn't find it.
Sorry for my poor (none) php knowledge.
thanks,
Julian
embed php into the sidebar
Did you include <?php and ?> in your phpbox? I use the box to show my counter and the code I use looks like this (example):
without <?php and ?>. You do not need start- and end-php-tag for the box
- Oliver
Code: Select all
$chCounter_visible = 1;
$chCounter_status = 'active';
include( '/is/htdocs/www.forum4winde.de/mods/chCounter3/counter.php' );
- Oliver
Thanks Oliver,
I've pasted the code with and without "<?php ?>" but still get the same error. It might have something to do with the global variables as stated in the thread about the php box. But I don't know how I could modify the code in order to get it work. The code displays the 5 recent posts from phpbb board. The code can be integrated into any html page or can be run as standalone .php file. But doesn't work with the php box plugin. Do you have any idea?
thank you very much,
Julian
I've pasted the code with and without "<?php ?>" but still get the same error. It might have something to do with the global variables as stated in the thread about the php box. But I don't know how I could modify the code in order to get it work. The code displays the 5 recent posts from phpbb board. The code can be integrated into any html page or can be run as standalone .php file. But doesn't work with the php box plugin. Do you have any idea?
thank you very much,
Julian