![]() |
Add a Header / Footer option to each forum
/* -----------------9/16/2005 8:25AM-----------------
Add a Header / Footer option to each forum V.1.0 Tested on vBulletin: 3.5.0 RC2,RC3 This is a Port from a previous hack by ChurchMedia. *** Header/Footer For Each Forum and Threads in that Forum (VB 3.0x) - BY: ChurchMedia https://vborg.vbsupport.ru/showthread.php?t=65890 *** Info: This modification will allow you to add an extra, unique header and footer for each forum. You can use HTML, javascript, but no PHP. --------------------------------------------------*/ Upload the "Product" and edit 2 templates, It's a snap. :rambo: There is also an Upgrade XML file for all the users that upgrated from VB3.x vs. new install. |
I looked and played with the location of the 2 Variables:
Quote:
(ForumDisplay, Showthread - after $navbar and before $footer) Quote:
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-- 2b.) Revised Ideas Note: I make 1 edit to 2 templates $foruminfo[forumheader] to the "navbar" template (after everything to show up under) OR $foruminfo[forumheader] to the "header" template (many places) to show up on both ForumDisplay, Showthread. AND $foruminfo[forumfooter] to the "footer" template to show up on both ForumDisplay, Showthread. **** On every page except forumdisplay.php and showthread.php the Variables will not show up. -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-- *** Useage: For extra header/footer go to Forums & Moderators => Forum Manager => Edit forum => scroll do to the bottom enter your details. |
Thanks for posting this! I came to specifically look for a forum header plug-in, and I can't believe that you just posted it today. Awesome. :)
|
Quote:
NP, ChurchMedia needed some help. They are worken him to the death these days. |
This is great, good plugin. Anychance of having a similiar plugin made, to add html / javascript to the top or bottom of every page including forums home page ? The plugin of this type would be an easy way to add menu's etc., without having to go and mingle it with other stuff on an existing header.
|
Quote:
|
Yes that is what I have already done, you just have to find the exact spot to put each time you update it, it is not a big deal by no means, just thought a separate place to enter the extra code without being concerned or finding the spot might make it easilier if you update/change it often.
|
Quote:
|
does the forum specific header also appear when viewing threads/posts within that forum or strictly on the forum view
|
Quote:
|
Hi I have a short but important question
we used the hack from ChurchMedia, and upgraded to vb3.5 The header/footers html is still showing in all forums. When I upgrade with the XML, will this delete the old html ? |
Quote:
This will do all the mods of a normal install and skip the database edits. It will add the code to uninstall the product (removes database, templates, phrases). This way if you want to remoe the edits you can. |
i cant download anything! where are the files?
|
Quote:
|
thankyou!!!!!!!
/me installs |
Quote:
Quote:
|
Ok I have a simple way to add to Forumhome, but should it be part of this hack ?
|
Here is a simple JAVA random banner code you can paste in the HTML area.
EX: This will show @ random. image1.jpg @ http://yoursite1.com image2.jpg @ http://yoursite2.com image3.jpg @ http://yoursite3.com Code:
<script language="javascript" type="text/javascript"> Code:
banner[number++] = "<a href='http://www.yoursite1.com' target='_blank'><img src='/banners/image1.jpg' alt='' border='0' /></a>" Image location |
I thanked you on Churchmedia's thread, but thanks again for the upgrade ;)
I have a suggestion: It would be nice to have a "master" header and footer, ones that would display on all forums, so you don't have to go in and enter the information for every single forum. Right now I have to make my changes, and then copy and paste it into the 15+ forums. Likely my suggestion has already been covered in some really easy manner, and once again I am gonna look like a moron... lol |
Quote:
Are we talking ? - on all forumdisplay / showthread - and/or Forumhome - all pages / all other hacks - IE: $header2 / $footer2 Shoot me some ideas :D |
yes that would be great.....an extra header footer.....which can be on forum home+forumdisplay+showthread.......
so one can add any extra info in one action.....i.e not going through them all |
Quote:
https://vborg.vbsupport.ru/showthread.php?t=99544 |
Great hack! I was looking for this.
But there use to be a hack where you just specified the file (html, or whatever) and select which forum it would be shown in. This way, you just update that one html file and it will automatically update in all the forums you selected. With your mod, I have to copy and paste the same html into all the forums I want it to show. And I don't want the other option, which is to have it show in ALL forums. So basically, is there any way where we can specify the html for the header and footer and in a textbox, list all the forum IDs (the comma separated method) we want it to show in? |
Quote:
Add Extra Header / Footer these are HTML areas in your header / footer templates: I did this to make the header and footers easy for me to edit all the time :) ( This was off the top of head code.) Code:
<if condition="$foruminfo[forumid]=='6,7,8,9,10,2000'"> |
I wanted to just exclude several forums, the ones that were my category forums. The code above didn't work for me with the commas separating the numbers, so I just made a long messy conditional that works for me.
Code:
<if condition="$foruminfo[forumid]!='10' AND $foruminfo[forumid]!='11' AND $foruminfo[forumid]!='16'"> |
Where's the download? I checked your site and don't see it there either. (??)
|
Quote:
|
Quote:
|
oh thanks, exactly what i was looking for. :)
|
So I can have a different banner for different forums?
|
Quote:
This was made from an Idea of a member here on vb.org. They wanted a simple way to update the header/footer per forum vs. have to edit the header/footer template all the time and "goof something up" by mistake. - You can paste any html / java / dhtml (no php code) - There are a few options: https://vborg.vbsupport.ru/member.php?userid=6872 [vB 3.5.0] Add Extra Header / Footer [vB 3.5.0] Add Extra Header / Footer to FORUMHOME [vB 3.5.0] Add a Header / Footer option to each forum [vB 3.5.0] Add a banner image to each forum (vb3.5) |
This is a cool hack.
How about making the navbar as an option also in this hack? |
Quote:
|
Quote:
|
Quote:
vBulletin.org Forum > vB3.5 Modifications > vB3.5 Plugins Reload this Page Add a Header / Footer option to each forum ? |
Yes there.
|
Quote:
- Explain please |
Quote:
Pretty much what I would like to do is add text to the example you showed(above the links in the navbar). I would like to have different text for the different forums. This would leave the header for a banner. You would add this text via the admin cp in where you have added the extra header and footer. hopefully I made more sense. |
Cheers Zachariah
Excellent hack m8, just needs some advertisers now ;) Regards Bashy |
I m8
I have managed to center the adverts in the forums sections and subsections but they are still aligined to the left in the thread display? Please can you let me know how and what to change for the thread display ones? Regards Bashy |
All times are GMT. The time now is 04:14 PM. |
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:
|