miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /   

different HTML header for each forum

Author USB20
Registered
#1 | Posted: 4 Aug 2007 16:01 
well i dont speak english very well but...

for example forum id=1 has a normal header.html
and forums id=2 has other header

it is possible?

Author Paul
Lead Developer
#2 | Posted: 6 Aug 2007 09:54 | Edited by: Paul 
You could try to play with $includeHeader variable defined in setup_options.php. Create different PHP headers for your forums and in bb_plugins.php then define:

if($forum==1) $includeHeader='header1.php';
elseif($forum==2) $includeHeader='header2.php';
....
else $includeHeader='header_main.php';

Please note than for custom PHP headers you need to define all miniBB variables as globals. For example instead of {$title} you need to define:

<?php echo $GLOBALS['title']; ?>

etc. with all possible miniBB vars.

I am not sure it will work so the solution is in your hands. If it will work, report here please, so I could move this topic to "Custom modifications" forum.

Author USB20
Registered
#3 | Posted: 6 Aug 2007 11:49 
it works perfectly =)

only the bad thing is that there is to be declaring again the variables :D

thanks Paul you are fantastic

Author Paul
Lead Developer
#4 | Posted: 7 Aug 2007 05:52 
only the bad thing is that there is to be declaring again the variables

- well, I understand it's not fast, but the most important thing is that you could achieve the result this way.

Thanks, now the thread is moved to the Custom Tutorials.

Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications / different HTML header for each forum Top

Your Reply Click this icon to move up to the quoted message

 Short link for this topic:

 ?
You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
 
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Proceed with the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB