Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Header/Footer For Each Forum and Threads in that Forum Details »»
Header/Footer For Each Forum and Threads in that Forum
Version: 1.00, by ChurchMedia ChurchMedia is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 06-05-2004 Last Update: Never Installs: 188
 
No support by the author.

This hack will allow you to add an extra, unique header and footer for each forum. The header and footer will show up on the forum home page and on each thread within that forum. You can use HTML, so you can put in rotating banner code or anything you like.

2 Queries
2 Modifications to admincp/forum.php
2 Template modifications

Enjoy!

Be sure to click INSTALL!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #52  
Old 09-12-2004, 10:47 PM
bkbelew bkbelew is offline
 
Join Date: Aug 2004
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got the hack installed... but for some reason it wont let me remove the banner i set in it.. how do i do this? it doesnt show it when i go into admincp and look under footer.

http://forums.fraghard.com/forumdisplay.php?f=104
Reply With Quote
  #53  
Old 10-08-2004, 09:22 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how do I get this to display in postbits?
Reply With Quote
  #54  
Old 10-09-2004, 02:29 AM
ChurchMedia's Avatar
ChurchMedia ChurchMedia is offline
 
Join Date: Dec 2002
Location: Las Cruces, NM
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lionel
how do I get this to display in postbits?
That's not what it's for. What do you have in mind?
Reply With Quote
  #55  
Old 10-09-2004, 02:33 AM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am into saving space. Placing an image above does not look good, and pushes page down. Where as there is a nice empty spot between avatar and ratings. I could place a forum specific image in there.
Reply With Quote
  #56  
Old 10-09-2004, 02:40 AM
ChurchMedia's Avatar
ChurchMedia ChurchMedia is offline
 
Join Date: Dec 2002
Location: Las Cruces, NM
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, you could try putting the $foruminfo[forumheader] (or footer) variable into the postbit template and see what happens. I think it should work just fine. Keep in mind that it will put the image (or whatever) in EVERY post. If you try it, let us know if it worked.
Reply With Quote
  #57  
Old 10-09-2004, 03:11 AM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

not necessarily. I am currenly using conditionals to display images in first post only, like CNN.

I tried already and nothing happened. That is why I asked.
Reply With Quote
  #58  
Old 10-09-2004, 03:45 AM
ChurchMedia's Avatar
ChurchMedia ChurchMedia is offline
 
Join Date: Dec 2002
Location: Las Cruces, NM
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh ---

I guess the $foruminfo variable isn't being passed to the postbit template. Somehow the post needs to know which forum it's in and look up the header info for that forum. I'm not sure what would need to be done. Sorry I couldn't be of more help. Feel free to modify my code for a new hack and good luck
Reply With Quote
  #59  
Old 10-15-2004, 12:12 AM
Lee Wilde's Avatar
Lee Wilde Lee Wilde is offline
 
Join Date: Apr 2004
Location: Perth, Australia
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed and working within minutes. If only every mod was so easy, thank you very much.
Reply With Quote
  #60  
Old 10-19-2004, 04:09 AM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I went in "important and maintenance" and "execute sql query".

I tried:

ALTER TABLE `forum` ADD `forumheader` MEDIUMTEXT NOT NULL AFTER `description`;
ALTER TABLE `forum` ADD `forumfooter` MEDIUMTEXT NOT NULL AFTER `forumheader`;

and got this:

An error occurred while attempting to execute your query. The following information was returned.
error number: 1064
error desc: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ';
ALTER TABLE `forum` ADD `forumfooter` MEDIUMTEXT NOT NULL AF

Why?
Reply With Quote
  #61  
Old 10-19-2004, 06:14 AM
ChurchMedia's Avatar
ChurchMedia ChurchMedia is offline
 
Join Date: Dec 2002
Location: Las Cruces, NM
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Be sure to put your forum prefix before 'forum' in both lines. So it might look like this:

ALTER TABLE `vb_forum` ADD `forumheader` MEDIUMTEXT NOT NULL AFTER `description`;
ALTER TABLE `vb_forum` ADD `forumfooter` MEDIUMTEXT NOT NULL AFTER `forumheader`;
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:45 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.04689 seconds
  • Memory Usage 2,302KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete