vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Add a Header / Footer option to each forum (https://vborg.vbsupport.ru/showthread.php?t=96398)

Zachariah 09-15-2005 10:00 PM

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.

Zachariah 09-16-2005 02:44 PM

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

Quote:

$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)

Quote:

$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 09-16-2005 03:03 PM

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 09-16-2005 03:05 PM

Quote:

Originally Posted by fridayweb
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 09-16-2005 07:32 PM

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 09-16-2005 08:00 PM

Quote:

Originally Posted by delds
every page including forums home page

place your code in the header template ??

delds 09-16-2005 08:45 PM

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 09-16-2005 09:02 PM

Quote:

Originally Posted by delds
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 09-17-2005 01:03 PM

does the forum specific header also appear when viewing threads/posts within that forum or strictly on the forum view

Zachariah 09-17-2005 01:35 PM

Quote:

Originally Posted by trainer
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 10-02-2005 11:28 AM

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 10-02-2005 03:00 PM

Quote:

Originally Posted by Triple_T
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 10-02-2005 06:27 PM

i cant download anything! where are the files?

Zachariah 10-02-2005 06:42 PM

Quote:

Originally Posted by oricon
i cant download anything! where are the files?

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

csidlernet 10-05-2005 03:01 AM

thankyou!!!!!!!
/me installs

stinger2 10-08-2005 12:51 AM

Quote:

Originally Posted by delds
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:

Originally Posted by Zachariah
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 10-08-2005 02:49 PM

Ok I have a simple way to add to Forumhome, but should it be part of this hack ?

Zachariah 10-25-2005 01:36 PM

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">
<!--
function banner() {
};

banner = new banner();
number = 0;

// bannerArray
banner[number++] = "<a href='http://yoursite1.com' target='_blank'><img src='/banners/image1.jpg' alt='' border='0' /></a>"
banner[number++] = "<a href='http://yoursite2.com' target='_blank'><img src='/banners/image2.jpg' alt='' border='0' /></a>"
banner[number++] = "<a href='http://yoursite3.com' target='_blank'><img src='/banners/image3.jpg' alt='' border='0' /></a>"
 
// keep adding items above here...

increment = Math.floor(Math.random() * number);
document.write(banner[increment]);

//-->
</script>

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

banner[number++] = "<a href='http://www.yoursite1.com' target='_blank'><img src='/banners/image1.jpg' alt='' border='0' /></a>"
Link of Destination
Image location

Jesse Jericho 10-27-2005 04:38 PM

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 10-27-2005 04:48 PM

Quote:

Originally Posted by Jesse Jericho
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 10-28-2005 01:00 PM

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 10-28-2005 01:19 PM

Quote:

Originally Posted by stinger2
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.

https://vborg.vbsupport.ru/showthread.php?t=99544

northernstar 11-22-2005 02:10 AM

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 11-22-2005 02:42 AM

Quote:

Originally Posted by northernstar
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

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'">
Custom banner HTML code
<else />
Custom banner HTML code2 or default image HTML code
</if>


fridayweb 11-25-2005 04:33 PM

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'">
-shrug- it works, that's all I care about. :)

grecostimpy 11-28-2005 12:53 AM

Where's the download? I checked your site and don't see it there either. (??)

Zachariah 11-28-2005 01:52 AM

Quote:

Originally Posted by grecostimpy
Where's the download? I checked your site and don't see it there either. (??)

back up

zlos 12-06-2005 08:18 AM

Quote:

Originally Posted by csidlernet
thankyou!!!!!!!
[high]* csidlernet installs[/high]

Works just fine :)

Neutral Singh 12-25-2005 05:22 AM

oh thanks, exactly what i was looking for. :)

Gordon219 12-31-2005 06:03 AM

So I can have a different banner for different forums?

Zachariah 12-31-2005 03:36 PM

Quote:

Originally Posted by Gordon219
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:
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)

tony 01-08-2006 04:34 PM

This is a cool hack.

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

Zachariah 01-08-2006 05:53 PM

Quote:

Originally Posted by tony
This is a cool hack.

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

what navbar ? :o :nervous:

tony 01-08-2006 06:47 PM

Quote:

Originally Posted by Zachariah
what navbar ? :o :nervous:

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

Zachariah 01-08-2006 06:49 PM

Quote:

Originally Posted by tony
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 01-08-2006 07:00 PM

Yes there.

Zachariah 01-08-2006 07:25 PM

Quote:

Originally Posted by tony
Yes there.

Haven a hard time understanding what you want to do :)
- Explain please

tony 01-08-2006 07:44 PM

Quote:

Originally Posted by Zachariah
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 01-08-2006 07:44 PM

Cheers Zachariah

Excellent hack m8, just needs some advertisers now ;)

Regards

Bashy

bashy 01-08-2006 09:23 PM

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
  • Page Generation 0.01464 seconds
  • Memory Usage 1,836KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (21)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete