![]() |
I have used my hack to display banners above and below threads.
Edit showthread.php and find ********************************************* // ################################################## ########################### // output page eval('print_output("' . fetch_template('SHOWTHREAD') . '");'); ********************************************* and add this code before it: ********************************************* $headerbanner = "<P ALIGN=\"CENTER\" CLASS=\"smallfont\">" . file_get_contents("http://www.url_of_your_script.php?forumid=$forumid&type=h eader") . "</P>"; $footerbanner = "<P ALIGN=\"CENTER\" CLASS=\"smallfont\">" . file_get_contents("http://www.url_of_your_script.php?forumid=$forumid&type=f ooter") . "</P>"; ********************************************* Then in the SHOWTHREAD template, find ********************************************* $navbar ********************************************* and after it, put ********************************************* <if condition="$headerbanner">$headerbanner</if> ********************************************* and find ********************************************* <if condition="$bbuserinfo[field11] == 'Yes'">$quickreply</if> ********************************************* and above it add ********************************************* <if condition="$footerbanner">$footerbanner</if> ********************************************* Then write your php script to output banners depending on what forumid is passed and whether it's the header or footer: PHP Code:
Re your specific code request, I recommend you learn some PHP. PHP Code:
Re displaying banners for whole categories, you might be able to do it, but I don't have time to look into it this year :) |
How would you do this if you want to include something on top of every page of the forum?
|
You wouldn't need to use this hack - use the phpinclude_start template instead.
|
Quote:
|
Do a search on vbulletin.com for phpinclude
|
Hi,
i am going to try, to use the shoutcast status Box, which is availible for vba-portal, on my Forumhome. When i try to include the shoutcast.php below the $navbar it says : Code:
Fatal error: Call to undefined function: fetch_template() in /srv/www/htdocs/web1/html/shoutcast.php on line 68 Code:
eval('$home[$mods[\'modid\']][\'content\'] .= "' . fetch_template('adv_portal_shoutcast') . '";'); th@nks |
try this, you're eval is a mess as is
PHP Code:
|
th@nks 4 reply, but i have still this error :
Code:
Fatal error: Call to undefined function: fetch_template() in /srv/www/htdocs/web1/html/shoutcast.php on line 68 here i paste the whole script : PHP Code:
i hade the eval twice, so i have tried also to change the eval below the server settings, but still not working. gr33tz |
you need to include the global.php :)
|
Quote:
Th@nks 4 help but i can't include that. if i use : require_once('./global.php'); into the Header of the php,Forumhome is going to open the shoutcast.php himself on the Index, and i cannot login anymore. gr33tz |
All times are GMT. The time now is 06:51 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|