PDA

View Full Version : Add a Header / Footer option to each forum


Zachariah
16 Sep 2005, 16:34
/* -----------------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
http://www.vbulletin.org/forum/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.

Zachariah
16 Sep 2005, 16:44
I looked and played with the location of the 2 Variables:

$foruminfo[forumheader] // header
$foruminfo[forumfooter] // footer

The ver. that ChurchMedia did makes 2 edits to 2 template(below).

(ForumDisplay, Showthread - after $navbar and before $footer)

$navbar
<------------------------------------------->
BELOW ADD:
<------------------------------------------->
$foruminfo[forumheader]
<------------------------------------------->


$footer
<------------------------------------------->
ABOVE ADD:
<------------------------------------------->
$foruminfo[forumfooter]


-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+--
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.

fridayweb
16 Sep 2005, 17:03
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. :)

Zachariah
16 Sep 2005, 17:05
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. :)

"Ah oh it's magic" .... heheeh

NP, ChurchMedia needed some help. They are worken him to the death these days.

delds
16 Sep 2005, 21:32
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.

Zachariah
16 Sep 2005, 22:00
every page including forums home page
place your code in the header template ??

delds
16 Sep 2005, 22:45
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.

Zachariah
16 Sep 2005, 23:02
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.

That can be done. :D - Ill post it in a few.

trainer
17 Sep 2005, 15:03
does the forum specific header also appear when viewing threads/posts within that forum or strictly on the forum view

Zachariah
17 Sep 2005, 15:35
does the forum specific header also appear when viewing threads/posts within that forum or strictly on the forum view

Yes it does :D

dutchbb
02 Oct 2005, 13:28
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 ?

Zachariah
02 Oct 2005, 17:00
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 ?
I added 3.x to 3.5 forum_hf.xml in the Zip file. ~ 10.2.05

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.

oricon
02 Oct 2005, 20:27
i cant download anything! where are the files?

Zachariah
02 Oct 2005, 20:42
i cant download anything! where are the files?

My fault ... this site does not like RAR files only Zip.

csidlernet
05 Oct 2005, 05:01
thankyou!!!!!!!
/me installs

stinger2
08 Oct 2005, 02:51
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.

That can be done. :D - Ill post it in a few.

that would be great....we are still waitng...can we expect it soon?

Zachariah
08 Oct 2005, 16:49
Ok I have a simple way to add to Forumhome, but should it be part of this hack ?

Zachariah
25 Oct 2005, 15:36
Here is a simple JAVA random banner code you can paste in the HTML area.

EX:
This will show @ random.

image1.jpg @ http://www.yoursite1.com
image2.jpg @ http://www.yoursite2.com
image3.jpg @ http://www.yoursite3.com




Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Useage: If you need more banners edit / add another row.


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Link of Destination
Image location

Jesse Jericho
27 Oct 2005, 18:38
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

Zachariah
27 Oct 2005, 18:48
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

Thats not too hard.

Are we talking ?
- on all forumdisplay / showthread
- and/or Forumhome
- all pages / all other hacks - IE: $header2 / $footer2

Shoot me some ideas :D

stinger2
28 Oct 2005, 15:00
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

Zachariah
28 Oct 2005, 15:19
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

Not a problem. You will have it shortly.

http://www.vbulletin.org/forum/showthread.php?t=99544

northernstar
22 Nov 2005, 04:10
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?

Zachariah
22 Nov 2005, 04:42
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?

Might try this untill I get something together.

Add Extra Header / Footer (http://www.vbulletin.org/forum/showthread.php?s=&threadid=99544)

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:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

fridayweb
25 Nov 2005, 18:33
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:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



-shrug- it works, that's all I care about. :)

grecostimpy
28 Nov 2005, 02:53
Where's the download? I checked your site and don't see it there either. (??)

Zachariah
28 Nov 2005, 03:52
Where's the download? I checked your site and don't see it there either. (??)

back up

zlos
06 Dec 2005, 10:18
thankyou!!!!!!!
* csidlernet installs

Works just fine :)

Neutral Singh
25 Dec 2005, 07:22
oh thanks, exactly what i was looking for. :)

Gordon219
31 Dec 2005, 08:03
So I can have a different banner for different forums?

Zachariah
31 Dec 2005, 17:36
So I can have a different banner for different forums?

Yes Sir,

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:
http://www.vbulletin.org/forum/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)

tony
08 Jan 2006, 18:34
This is a cool hack.

How about making the navbar as an option also in this hack?

Zachariah
08 Jan 2006, 19:53
This is a cool hack.

How about making the navbar as an option also in this hack?

what navbar ? :o :nervous:

tony
08 Jan 2006, 20:47
what navbar ? :o :nervous:

You know the inside of the navbar area, just above the links.

Zachariah
08 Jan 2006, 20:49
You know the inside of the navbar area, just above the links.

EX:
vBulletin.org Forum > vB3.5 Modifications > vB3.5 Plugins
Reload this Page Add a Header / Footer option to each forum

?

tony
08 Jan 2006, 21:00
Yes there.

Zachariah
08 Jan 2006, 21:25
Yes there.
Haven a hard time understanding what you want to do :)
- Explain please

tony
08 Jan 2006, 21:44
Haven a hard time understanding what you want to do :)
- Explain please

Ok,
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.

bashy
08 Jan 2006, 21:44
Cheers Zachariah

Excellent hack m8, just needs some advertisers now ;)

Regards

Bashy

bashy
08 Jan 2006, 23:23
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

Zachariah
11 Jan 2006, 04:57
Please can you let me know how and what to change for the thread display ones?


Showthread template:

Edit and add:

I looked and played with the location of the 2 Variables:

$foruminfo[forumheader] // header
$foruminfo[forumfooter] // footer

(ForumDisplay, Showthread - after $navbar and before $footer)

$navbar
<------------------------------------------->
BELOW ADD:
<------------------------------------------->
$foruminfo[forumheader]
<------------------------------------------->


$footer
<------------------------------------------->
ABOVE ADD:
<------------------------------------------->
$foruminfo[forumfooter]

bashy
11 Jan 2006, 07:19
Hi m8

These edits were already done, was there something else i need to do?

Bahsy

Showthread template:

Edit and add:

I looked and played with the location of the 2 Variables:

$foruminfo[forumheader] // header
$foruminfo[forumfooter] // footer

(ForumDisplay, Showthread - after $navbar and before $footer)

$navbar
<------------------------------------------->
BELOW ADD:
<------------------------------------------->
$foruminfo[forumheader]
<------------------------------------------->


$footer
<------------------------------------------->
ABOVE ADD:
<------------------------------------------->
$foruminfo[forumfooter]

Aislinn
03 Mar 2006, 19:39
Ok I installed your "product-forum_hf.xml" and I added the second version of the coding to the header and footer area of the template.

$foruminfo[forumheader] to the "header" template (many places) to show up on both ForumDisplay, Showthread.

AND
$foruminfo[forumfooter] to the "footer" template

When I got to edit the forums the header footer box is there and I enter my html code which is an image on my site and click save. The image isnt showing up on any of the pages though. Any ideas VB version 3.5.4

Mokster
06 Mar 2006, 16:48
thanks!

SHalliday
07 Mar 2006, 02:35
I have installed as directed but when I edit forum from admin panel I do not see anywhere I can enter in the forum header or footer. Am I missing something here? Is this where it should be or am I looking in the wrong place to update?

Zachariah
07 Mar 2006, 05:15
I have installed as directed but when I edit forum from admin panel I do not see anywhere I can enter in the forum header or footer. Am I missing something here? Is this where it should be or am I looking in the wrong place to update?

*** Useage:

To add banners go to Forums & Moderators => Forum Manager => Edit forum => scroll do to the bottom enter your details.

SHalliday
07 Mar 2006, 14:19
Zachariah,

I think that maybe my problem. When I go to Forums & Moderators => Forum Manager => Edit forum => and scroll to the bottom, there is no place or option to enter details.

How or what do I need to add to make this option appear on my admin edit forum page?

thedvs
30 Aug 2006, 19:36
works great so far in vb3.6.0

dklassen
11 Nov 2006, 15:32
Does this work with 3.6.2? I need a static banner showing over my main forums.

Sam1985
14 Feb 2007, 07:57
this works flawlessly on 3.6.4 :D

Smoothie
14 Feb 2007, 13:12
Does this add an extra header/footer, or does it replace the existing header/footer?

Zachariah
14 Feb 2007, 17:19
Does this add an extra header/footer, or does it replace the existing header/footer?

Option of another.

GreeceMonkey
05 Apr 2007, 13:47
Can I use this to put banners on the sides instead of the top and bottom.

I have done one of the mods where you create a left column, can I just place the $foruminfo[forumheader] in the left column to have the same effect of the unique left column on every forum

Graham

vuiveclub_net
17 Apr 2007, 03:42
is there a way to allow a moderator of a a forum edit his/her own header/footer. Because this seems like only Admin able to to add the header.

Eagle Creek
09 Aug 2007, 15:18
3.6.8 compatible?

Zachariah
09 Aug 2007, 17:21
3.6.8 compatible?
I do not see a problem with it. I have some updates planed and will make another thread in 3.6 area.

hitmann
17 Aug 2007, 12:19
I do not see a problem with it.

Is it currently compatible with 3.6.8 though? I have tried it and it doesn't show the images I've added.

AtoZ
30 Aug 2007, 22:26
I just upgraded to 3.6.8 and it's working for me. I did have to revert my templates and then re-add the header/footer variables, however. $foruminfo[forumheader] and $foruminfo[forumfooter]

hitmann
30 Aug 2007, 23:37
cool cheers

AtoZ
30 Aug 2007, 23:47
It is explained in readme.txt

kholland
06 Sep 2007, 06:12
Hi,

Maybe I missed it in this thread but I wanted to know how I get the new header and footer to show up on the homepage and secondly was there a change made so the header and footer show up in all the forums without having to manually put it in all of them separately.

Thanks!

AtoZ
06 Sep 2007, 06:20
Hi,
Maybe I missed it in this thread but I wanted to know how I get the new header and footer to show up on the homepage

This is explained in the readme file.

and secondly was there a change made so the header and footer show up in all the forums without having to manually put it in all of them separately.
Thanks!
Unfortunately, I don't think there is a way to do this. It's a pain. Maybe someone else has an idea for this one.

Zachariah
06 Sep 2007, 17:10
I'll work on a default banner code if one is not provided. This will add a banner on all forums

kholland
06 Sep 2007, 21:16
This is explained in the readme file.

The readme file is a little confusing. Could you point me where in the file I would look to do this?

Thanks!

hitmann
08 Sep 2007, 05:33
I'll work on a default banner code if one is not provided. This will add a banner on all forums

Could you add an option to disable it per forum? Let's say if I want to show in all forums, except the "Customer Support" forum

vktechnology
20 Jan 2010, 15:24
can some one do this for version 4 please
it usefull

cnczone
13 Apr 2010, 04:32
yes please