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

Reply
 
Thread Tools
Forum Headers Hack Details »»
Forum Headers Hack
Version: 1.00, by FASherman FASherman is offline
Developer Last Online: May 2011 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 08-24-2002 Last Update: Never Installs: 53
 
No support by the author.

The idea for this hack came from the desire to increase forum traffic. What I wanted to do was subscribe individual forums into webrings. The problem was each forum would have to have the webring code within that forum page.

So I began writing this with the idea of just enabling webrings for a forum, but saw that it would just as easily be useful for adding custom HTML headers to individual forums.

What this hack does is allow you to specify an HTML code as a header for a specific forum. From the Admin CP, you specify whether a forum should have a forum header, if it should be guest only or not (I didn't want to bother registeres users with the webring banner), and then a text box for entering in the HTML

You can view a sample forum header at my site:
http://www.fasherman.com/forums/foru...php?forumid=27

I've also included a screen shot of AdminCP

Show Your Support

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

Comments
  #32  
Old 08-31-2002, 08:12 AM
Smoothie Smoothie is offline
 
Join Date: Oct 2001
Location: New York
Posts: 1,834
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

FASherman-

Any chance of getting that code posted?
Reply With Quote
  #33  
Old 08-31-2002, 07:37 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is awesome.. didn't realise what this did til now

*goes to install*
Reply With Quote
  #34  
Old 08-31-2002, 10:52 PM
Smoothie Smoothie is offline
 
Join Date: Oct 2001
Location: New York
Posts: 1,834
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Find:
Quote:
$DB_site->query("INSERT INTO forum
(forumid,styleid,title,description,active,displayo rder,parentid,
parentlist,allowposting,cancontainthreads,iconimg,
daysprune,newpostemail,newthreademail,
moderatenew,allowhtml,allowbbcode,allowimages,allo wsmilies,allowicons,
styleoverride,allowratings,countposts,moderateatta ch,forumnewsid)
VALUES
(NULL,'$styleset','".addslashes($title)."','".adds lashes($description)."','$isactive','$displayorder ','$parentid',
'','$allowposting','$cancontainthreads','".addslas hes($iconimg)."',
'$daysprune','".addslashes($newpostemail)."','".ad dslashes($newthreademail)."',
'$moderatenew','$aallowhtmlcode','$aallowbbcode',' $aallowimgcode','$aallowsmilies','$aallowicons',
'$styleoverride','$allowratings','$countposts','$m oderateattach','$forumnewsid')");
Ok this part I can find in my admin/forums.php, but not all of what's above is there, specifically: iconimg, forumnewsid, '".addslashes($iconimg) and this '$forumnewsid')"); Same with step 7. Can someone help? i know that these need to be removed from the repace part, but what exactly should the replace code look like? Need step 5 and step 7 replace code. thanks!
Reply With Quote
  #35  
Old 10-18-2002, 04:35 AM
Dark Waltz Dark Waltz is offline
 
Join Date: Sep 2002
Location: Pennsylvania, USA
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can I use this to add a different logo to each forum on my board?
Reply With Quote
  #36  
Old 10-18-2002, 07:52 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dark Waltz: yes you can.
Reply With Quote
  #37  
Old 10-19-2002, 12:12 AM
floridaideal floridaideal is offline
 
Join Date: Aug 2002
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How can I add a different vb logo on each of the forums please? This would complete the great hack, just installed it and had to remove a little extra code but its working great now.

Just need to know how to edid the logo and buttons.

Thanks

Stu
Reply With Quote
  #38  
Old 11-15-2002, 03:00 PM
ricoche's Avatar
ricoche ricoche is offline
 
Join Date: Oct 2002
Location: Nagano, Japan
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi there,

Today I just finished installing this hack and I must say I'm very impressed and excited about it. It works very well and I've already created a layout in the header for my Flash Gallery Menu and Forum Jump links. It works beautifully. Thanks so much for a nice hack. It really allows me to create and experiment with new things.

I did encounter one strange thing that I apparently fixed. On my site I run multiple themes, such as Ravio, Ekko, Emerge etc. When I installed this I used the Ravio and Ravio Blue skins to test the hack. I found that when using image files for category headers it leaked into to other category headers in the forum and in my vbportal. The background images had the same name "catbg.gif" but were in different folders and were different images. So I just renamed them to different names and it corrected the problem. Sorry, but that might be difficult to understand <LOL>

Anyway, great hack. I'm really going to enjoy this. I attached a screen shot if anyone wants to see how I started using this hack for my site.

Thanks again,

Ricoche :bunny:
Reply With Quote
  #39  
Old 12-05-2002, 05:10 AM
gynot67 gynot67 is offline
 
Join Date: Sep 2002
Location: Brooklyn
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, first off, fantastic work!!
This is one step away from being exactly what I needed.
Got it all installed and running beautifully, however does anyone know how I can go about making this javascript friendly?
I'm looking to stick a banner rotation in a particular forum
Reply With Quote
  #40  
Old 01-20-2003, 06:41 AM
Figment Figment is offline
 
Join Date: Nov 2001
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow!!!
Reply With Quote
  #41  
Old 03-16-2003, 05:50 AM
firas firas is offline
 
Join Date: Feb 2002
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i like it but i don't have the icon hack so would you please tell me what to do exactly
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 07:10 AM.


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.04387 seconds
  • Memory Usage 2,300KB
  • 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
  • (3)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