![]() |
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 |
Here is the screenshot of AdminCP
|
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 :):):)) |
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. |
i run a big site with 10,000 members, will this put alot of extra load on the server?
|
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.
|
I believe PPN already released something like this.
|
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. |
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...
|
Quote:
|
followed it to the letter (including the sanity bit heh)
got this error... from the admin panel... Invalid SQL: UPDATE forum SET styleid='1', title='Chit Chat', description='General Discussion, board news, news, discuss anything you want in here.', active='1', displayorder='3', iconimg='', parentid='6', parentlist='8,6,-1', allowposting='1', cancontainthreads='1', daysprune='30', newpostemail='', newthreademail='', moderatenew='0', allowhtml='1', allowbbcode='1', allowimages='1', allowsmilies='0', allowicons='0', styleoverride='1', allowratings='1', countposts='1', moderateattach='0',forumnewsid='', enableheader='1',guestonlyheader='0',forumheader=' THIS IS A TEST HEADER' WHERE forumid='8' mysql error: Unknown column 'iconimg' in 'field list' mysql error number: 1054 |
If you don't have the forum icons hack, you won't have the iconimg field in your forums table.
Thats why I mentioned that line would need som sanity checking to make sure it was consistant with your site. |
step 9 says: In forumdisplay.php
FIND: ----------- updateuserforum($forumid); ----------- Then your code. Does it go before or after? |
Quote:
|
installed perfectly!
ive been waiting for a hack like this all damn year |
amazing ! cant wait too install it !
|
look at this
https://vborg.vbsupport.ru/showthrea...threadid=36093 Quote:
|
Not even close to being the same. Why would you create a template per forum when you can just enter HTML directly into a text box via the ACP, keep the data in the database and have it protecting with backups?
Also nothing about footer or restricting the headers and footers individually to just guests. Would you suggest two additional templates per forum to have both a header and a footer? Not to mention the headache of having to check forumid's before modifying a template if you have several forums. Or having to remember to delete templates if a forum gets deleted. This is a much more managable, elegant solution. You want to edit the header/footer of a particular forum, you edit the forum. You want to limit either the header or footer to just guests, select that option as you edit the forum. You delete the forum, the header/footer info goes away at the same time. Whats the cost? One SQL querie, same as adding a new thread. What exactly are you objecting to? |
Here is one that is actually quite similar in approach but more limited in functionality. I came up in the list as I was checking this thread.
https://vborg.vbsupport.ru/showthrea...threadid=26818 I'm going to link to is because if all you want is banners and the ability to set time limits, this is a better approach. You display a picture, not actual HTML. If you want HTML headers and footers and would rather have control based on user level, this is the better approach. |
Question. Step 5:
Quote:
Quote:
|
Maybe you could post the code to find and replace without those 2 bits of code in there. That would be appreciated.
|
Quote:
|
godamnit, i installed the header version fine, but when i reinstalled to include the footer too, only the footer shows up and not both! help
|
What do your changed areas of code look like now?
|
exactly as yours in the install text, except without the forumnewsid stuff in forum.php
i followed it exactly |
Okay, lets start with the low hanging fruit...
Are the header options Yes (to using) and No (to just guests)? |
ok its all fixed, i forgot to change the template DOH (slaps head)
apologies. GREAT HACK, well done for all your work |
Post your url. I'd like to see how you used it!
|
great hack:)
ive placed the header just under the announcement have a peek ;) http://www.affiliate-talk.com/forumd...php?forumid=12 basically ive used it to give an explanation of each forum :nervous: |
is there a way to place ' in the header or footer as at present it cant update the table with any links with a ' in it
:) |
FASherman-
Any chance of getting that code posted? :) |
this is awesome.. didn't realise what this did til now :D
*goes to install* |
Find:
Quote:
|
can I use this to add a different logo to each forum on my board?
|
Dark Waltz: yes you can.
|
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 |
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: |
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 |
Wow!!!
|
i like it but i don't have the icon hack so would you please tell me what to do exactly
|
All times are GMT. The time now is 04:46 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|