vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Forum Headers Hack (https://vborg.vbsupport.ru/showthread.php?t=42745)

FASherman 08-24-2002 10:00 PM

Forum Headers Hack
 
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

FASherman 08-25-2002 09:21 PM

Here is the screenshot of AdminCP

Ninth Dimension 08-25-2002 10:25 PM

OK, I like this idea, it would allow you to add any type of customised content to the headers in your forums, cool idea, very cool.

I might have to install this one soon. (useful for sponsors messages :):):))

FASherman 08-26-2002 12:13 AM

Here's another example of how I'm using this:

http://www.fasherman.com/forums/foru....php?forumid=4

When you hit that forum, you'll see the webring graphs (pending), but registered users don't see it. They have no idea that I'm adding the forums to webrings to increase traffic.

The idea could easily be adapted to use/limit banner adds for user classes.

trainer 08-26-2002 01:00 AM

i run a big site with 10,000 members, will this put alot of extra load on the server?

FASherman 08-26-2002 02:33 AM

I would imagine not significantly more than is already typical. It adds only one query to forumdisplay.php, so really no more than an additional thread being added.

Neo 08-26-2002 10:22 AM

I believe PPN already released something like this.

FASherman 08-26-2002 11:28 AM

I don't think so. Remember, this isn't designed for banner ads. You can use it that way, but the HTML code will have to handle aging, rotating, etc.

All this hack does is add a customer header and footer to each forum. I just updated the install file to include adding footers too.

It gives anyone the ability to do what http://www.sitepointforums.com/ has done without having to do it as a template hack that makes each forum the same.

kmfdm_kid2000 08-26-2002 11:38 AM

I think I'll be installing this one when I get back home, I can add more (And Varied) Meta tags, and have different main banners for each forum, correct?? If so, this would be something I'd be interested in, but I just don't tust hacking when I'm away from home... :) But I'll click install anyway, b/c this is a definite hack I'd like...

FASherman 08-26-2002 11:43 AM

Quote:

Originally posted by kmfdm_kid2000
I think I'll be installing this one when I get back home, I can add more (And Varied) Meta tags, and have different main banners for each forum, correct??
Thats correct. I updated the sample forum to show a footer as well.


All times are GMT. The time now is 03:19 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.01025 seconds
  • Memory Usage 1,729KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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