Log in

View Full Version : Header/Footer For Each Forum and Threads in that Forum


ChurchMedia
06-05-2004, 10:00 PM
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! :) (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=65890)

zahco
06-06-2004, 07:53 AM
thanks a lot Dir ChurchMedia
I will try this hack it will give a nice look for the fourm if the hack works with out any proplems

best regards
zahco
http://www.arabswell.com/vb

Imprezer
06-07-2004, 06:00 AM
Y O U A R E T H E M A N ! ! !

I have been craving this hack forever.

Thanks a lot!

Imprezer
06-07-2004, 06:32 AM
Installed! Haven't tried it yet, but I think it will work just fine.

Just one thing, in the instructions, you might wanna change the name of the admin directory to admincp, since it is for the vb3.0. That way it will be clear to everyone.

This hack is great. Combined with phpadsnew, this is the ultimate solution for targeted banner advertising.

Thanks again!

Imprezer
06-07-2004, 07:34 AM
Tested out. Everything is working out great!

gmarik
06-08-2004, 06:16 AM
Great one.

jluerken
06-10-2004, 10:40 AM
Great one.
Its working for me in Forumdisplay but not in Showthreads. I checked the install instructions twice but I cannot see what I've done wrong.

floridaideal
06-10-2004, 01:56 PM
Thank you so much, great hack, just what I needed.

INSTALLED

freedom2support
06-10-2004, 04:37 PM
I take it you can have different headers for each forum?

ChurchMedia
06-10-2004, 04:47 PM
Its working for me in Forumdisplay but not in Showthreads. I checked the install instructions twice but I cannot see what I've done wrong.

Make sure the $foruminfo[forumheader] is in the correct template (see screenshot).

Ryan McBain
06-10-2004, 09:31 PM
What do I have to do to get the banner on the forum home page?

ChurchMedia
06-10-2004, 09:48 PM
What do I have to do to get the banner on the forum home page?

It doesn't show on the home page since the headers/footers are forum specific. You can just edit your templates (FORUMHOME) to put a banner on the home page.

Ryan McBain
06-10-2004, 09:53 PM
It doesn't show on the home page since the headers/footers are forum specific. You can just edit your templates (FORUMHOME) to put a banner on the home page.

So do I just add a
$foruminfo[forumfooter] in the forumhome template? Im trying to put a banner add there as well.

ChurchMedia
06-10-2004, 09:59 PM
So do I just add a
$foruminfo[forumfooter] in the forumhome template? Im trying to put a banner add there as well.

No, because the home page isn't a forum. It won't do anything. Just add the HTML directly to your FORUMHOME template right under the $header variable and right above the $footer variable.

Hope that helps :)

Ryan McBain
06-10-2004, 10:02 PM
No, because the home page isn't a forum. It won't do anything. Just add the HTML directly to your FORUMHOME template right under the $header variable and right above the $footer variable.

Hope that helps :)

Cool thanks

floridaideal
06-18-2004, 12:02 PM
Hello ChurchMedia

Is there anyway you can modify this hack so that the header.gif image could be customise for each forum too? If this is an extra that would take some time I would more than happy to pay you for your time to customise this for me?

For example a field that you could type the location of the new image, ie header2.gif or something and that would replace it. Can this be done at all?

Thank you

Stuart

ChurchMedia
06-18-2004, 04:31 PM
Hello ChurchMedia

Is there anyway you can modify this hack so that the header.gif image could be customise for each forum too? If this is an extra that would take some time I would more than happy to pay you for your time to customise this for me?

For example a field that you could type the location of the new image, ie header2.gif or something and that would replace it. Can this be done at all?

Thank you

Stuart
Yes, it can be done, but you could also just use HTML to bring up the image.

<img src="http://www.yourdomain.com/path/to/image/image.gif">

Let me know if you want a field-based hack with a variable you can place somewhere. It wouldn't be difficult to alter this hack to do that (you would just be limited to a single image as opposed to full HTML).

Take care,

floridaideal
06-18-2004, 04:45 PM
Hello CM

Either way is fine with me whatever is easyist for you, html sounds good to me.

You have done a great job with this hack, well done.

ChurchMedia
06-18-2004, 05:26 PM
I would use the HTML. It will give you more flexibility and is really the same thing, just applied a different way. :)

Cheers,

YabbaDabba
06-20-2004, 02:38 PM
This hack will allow you to add an extra, unique header and footer for each forum.

Neat hack. Have you thought about extending it?

If combined with something like "AdColumns"
https://vborg.vbsupport.ru/showthread.php?t=62348
then vB3 would have unique sidebars for each forum.

And if you have unique sidebars for each forum, it would
be cool if they could be populated with standard content
modules such as those for vBadvanced or vBindex.

floridaideal
06-23-2004, 11:54 AM
Hi CM

Any luck with that header.gif addition to your script please?

Thank you again

Stu

ChurchMedia
06-24-2004, 04:51 AM
Hi CM

Any luck with that header.gif addition to your script please?

Thank you again

Stu
I'm sorry -- I thought you were going to use HTML to call the .gif file. It will work as-is to do it that way. I can modify it for just an image file --- maybe this weekend?

floridaideal
06-24-2004, 09:49 AM
Hi CM

Sorry m8 I don't know much about html, would really appricate if you can help me with a mod for me to use, if you could knock something on the weekend that would be wonderful.

Thank you very much.

AtoZ
06-27-2004, 03:02 AM
I just installed this... It works great, and it was easy. :)

THANKS!

sv1cec
06-30-2004, 08:18 PM
I just installed this... It works great, and it was easy. :)

THANKS!
Great mod!

I sincerely appreciate your work, it's so fantastically simple to do and so convenient.

In a word THANKS!

Rgds

Lord Brar
07-10-2004, 12:04 PM
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! :) (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=65890)
ChurchMedia Thanks a lot. Exactly what I was looking for!

Frzzy
07-11-2004, 05:39 PM
* Frzzy licks install :D

Worked with vB 3.0.3

Me2Be
07-13-2004, 02:04 AM
Is there a way to set up a default header/footer? So for those forums that don't have an exclusive header/footer, it will just bring up a specified default?

MSeng
07-15-2004, 12:41 AM
Great Mod - Question - Would I be able to modify the header to look something similar to the Broadbandreports.com forums? Example: BBR.com New York Forum (http://www.dslreports.com/forum/newyork) - I would like to add links and such right at the header with just some HTML coding, It should work...right?

Thanks! :ninja:

hdraye
07-25-2004, 10:41 AM
Is there a way to set up a default header/footer? So for those forums that don't have an exclusive header/footer, it will just bring up a specified default?

Great mod, although I did not try it yet, but can the above be done?

Thanx

Hani

floridaideal
07-25-2004, 10:45 AM
Hi ChurchMedia

Any update on the header image change for us? I really need this asap and would like to pay you for your extra work, can you please contact me?

Thank you

Stu

Lord Brar
07-25-2004, 10:56 AM
ChurchMedia - working well for forum homepages but not forum threads in that forum...

sv1cec
07-25-2004, 02:09 PM
Great mod, although I did not try it yet, but can the above be done?

Thanx

Hani

Yes, you could do that, but that (I suppose) is part of the changes you should do in your standard forum header (in the header profile). What this hack does, is to give you the ability to have a dedicated banner as an advertisement, in the top and the bottom of your forums. Have a look at my site (http://forum.m1911.org/).

Then scroll down until you find a forum called "Knives Store", and click on it.

(Note to moderators: My sites are not commercial, so I am not advertising here)

In there, when the page loads, you will see a banner below the words "This forum brought to you by". This is the banner that gets posted by this hack, in this particular forum. Of course, you can use the hack to alter your header, but I would assume you want the top part of your forum to be the same and fixed, so that your site is easily identifiable. Of course, this is your choice.

Kind regards

ChurchMedia
07-25-2004, 06:44 PM
Sorry for not getting back to everyone on mod requests. I wasn't getting all of the replies by email for some reason. I'm having surgery next week and will be out of it for probably close to 2 months (hip replacement on a 34 year old - what a drag!). If anyone else wants to make mods to this hack and post them here, feel free. Otherwise, I'll get to it when I've recovered.

floridaideal: Sorry, I've been slammed with work. The easiest thing to do is to install the hack as-is and put this code in the header/footer fields to insert an image:

<img src="http://www.yourdomain.com/path/to/image/image.gif">

Just replace the url in between the quotes with the url to your image and you are good to go!

See ya soon,

Lord Brar
07-26-2004, 12:04 AM
I'm having surgery next week and will be out of it for probably close to 2 months (hip replacement on a 34 year old - what a drag!). If anyone else wants to make mods to this hack and post them here, feel free. Otherwise, I'll get to it when I've recovered.

Best Wishes and Quick Recovery!

hdraye
07-26-2004, 05:05 PM
sorry to hear about you have to under go this operation, i wish you the best, and to recover quickly and to see you soon again on the forum

Hani

In arabic (may be a very local arabic) we have a saying that I cant translate it, but at times you you have to do something you dont like, but it prevents a much greater harm, a similar but not quite the same saying in english is "every cloud has a silver lining" or whatever. :)

All the best

Spinball
07-28-2004, 08:57 PM
This is a great hack. Problem for me is that I want to include an external HTML file into the forum header.
E.g.
<?php include(http://www.mydomain.com/myfile.html"); ?>
If I try to use php in the header or footer, it doesn't like it.
How would I do some php scripting, please?

sv1cec
07-29-2004, 05:00 AM
This is a great hack. Problem for me is that I want to include an external HTML file into the forum header.
E.g.

If I try to use php in the header or footer, it doesn't like it.
How would I do some php scripting, please?

Spinball,

What exactly are you trying to do? Is it possible to create a template with the contents of your external html file? If yes, then create it and then you go in global.php, and find


// misc useful


Above that add something like


'sponsorspanel',


in between the list you see there. Then, go into your phpinclude_start template and add a line like


eval('$sponsorspanel = "' . fetch_template('sponsors_panel') . '";');


Then, you can use the variable $sponsorpanel wherever you want in the other templates.

Another method is to do the evaluation of the templates in global.php, instead of phpinclude_start. Several ways exist.

In either case, all you have to do, is to make sure that the template sponsors_panel contains the HTML code you want.

Sorry if this is not the case of what you are trying to do. The above helped me.

Rgds

Spinball
07-29-2004, 07:06 AM
sv1cec thanks for the reply. No it's a little different to what you ask.
I have people writing DVD reviews at a sister site (using a database on a different server), and each time they do, a html file is created with the latest reviews listed and linking to them. This file is php included into the sister site's home page. I want to include this list at the top of our 'DVD Talk' forum.
I tried it manually and it looked good (image attached), but I really need to be able to include the external file and ideally do some other PHP stuff later on aswell.

This is the exact code I want to use:
<P></P><TABLE class="tborder" CELLSPACING="0" CELLPADDING="5" ALIGN="CENTER">
<TR>
<TD class="alt1">
<P STYLE="font-size: 10px"><B>Latest DVD Reviews from <A HREF="http://www.totaldvd.net/" TARGET="_blank">Total DVD</A></B><BR>
<?php include("http://www.mydomain.com/myfile.html") ?>
</P>
</TD>
</TR>
</TABLE><P></P>

Any help you can give would be very much appreciated.

sv1cec
07-29-2004, 07:20 AM
sv1cec thanks for the reply. No it's a little different to what you ask.
I have people writing DVD reviews at a sister site (using a database on a different server), and each time they do, a html file is created with the latest reviews listed and linking to them. This file is php included into the sister site's home page. I want to include this list at the top of our 'DVD Talk' forum.
I tried it manually and it looked good (image attached), but I really need to be able to include the external file and ideally do some other PHP stuff later on aswell.

This is the exact code I want to use:


Any help you can give would be very much appreciated.

I am not sure I understand, does the code you provided work? I can't test it, since my only vB forum is on-line (I do not have a test environment). But if the code you showed me works, and shows the file myfile.html, why can't you include it in your navbar template?

I want to help but I am not the greatest php expert here, so please don't swear at me.

Rgds

Spinball
07-29-2004, 08:00 AM
No, the php in the CODE does not work - the PHP bit is not run.
The image I showed you is an example of what it SHOULD look like if the PHP worked.
I suspect what I need to do is alter the hack itself to process the header and footer so that php script is run.
I'm confidant with PHP but hacking vBulletin is something entirely different.

sv1cec
07-29-2004, 09:44 AM
No, the php in the CODE does not work - the PHP bit is not run.
The image I showed you is an example of what it SHOULD look like if the PHP worked.
I suspect what I need to do is alter the hack itself to process the header and footer so that php script is run.
I'm confidant with PHP but hacking vBulletin is something entirely different.

OK, so you have an HTML file you want to include in your Forum Home page?

Here is what I tried (and IT WORKED!!!)

Edit your index.php file and find:


require_once('./includes/functions_forumlist.php');


Below that, add:


// effort to help

globalize($_REQUEST, array(
'file' => STR,
'title' => STR
));

$file="announcement.htm";

$exts = "html, htm, txt, shtml";
$formats = explode(",",str_replace(" ", "", strtolower($exts)));
function checkfile($file, $formats) {
$ext = strtolower(substr($file,-strpos(strrev($file),'.')));
if(!in_array($ext, $formats)) return FALSE;
if(!file_exists($file)) return FALSE;
if( substr($file,0,5) != "./../" && substr($file,0,7) != "http://" ) return TRUE;
return FALSE;
}

if (checkfile($file, $formats)) {
$fd = fopen ($file,"r");
$buffer = fread($fd,filesize($file));
fclose ($fd);
$buffer = str_replace('"',"'",$buffer);
} else {
$errormessage = "There is an error with this link: $file";
}
// $navbits[""] = $pagetitle;
// $navbits = construct_navbits($navbits);

eval("\$HTML = \"$buffer\";");

// end of effort to help


Remember to change $file="announcement.htm" in the code above, to whatever your file name is.

Then, go into your FORUMHOME template and find :


$navbar


Below that, add:


$HTML


It worked on my forum, but you might have to play a bit with it, I am not sure if errors are handled etc.

Rgds

Spinball
07-29-2004, 11:30 AM
That's a nice, bit of code, but no, I want to include an HTML file at the top of one specific forum.

sv1cec
07-30-2004, 04:32 AM
That's a nice, bit of code, but no, I want to include an HTML file at the top of one specific forum.

OK, then instead of FORUMHOME, go to FORUMDISPLAY and right below the navbar enter the following code:

[html]
<if condition="$forumid=XYZ">
$HTML
</if>

Remember to change XYZ with the forum id of the forum you want the external HTML file to show. Let me know if it works.

Rgds

Spinball
07-31-2004, 07:42 AM
Again, that's great but it's a whole chunk of code for the header for ONE forum. That's a lot of code to include if you have 30 forums.
Might it not be easier to allow the hack to work on a bit of PHP code?

sv1cec
07-31-2004, 01:22 PM
Again, that's great but it's a whole chunk of code for the header for ONE forum. That's a lot of code to include if you have 30 forums.
Might it not be easier to allow the hack to work on a bit of PHP code?
Sorry, that's all I can do. Maybe the hack author can help you more.

Rgds

Spinball
07-31-2004, 01:34 PM
Your help is appreciated.

roundhost
08-30-2004, 06:21 AM
Fantastic! Installed!

ChurchMedia
09-02-2004, 02:25 AM
ChurchMedia - working well for forum homepages but not forum threads in that forum...

Make sure you follow this instruction:

-----------------------STEP 4-----------------------------
This will put the header/footer on every thread in the forum

In Template SHOWTHREAD FIND:
<------------------------------------------->
$navbar
<------------------------------------------->
BELOW ADD:
<------------------------------------------->
$foruminfo[forumheader]
<------------------------------------------->

FIND:
<------------------------------------------->
$footer
<------------------------------------------->
ABOVE ADD:
<------------------------------------------->
$foruminfo[forumfooter]

ChurchMedia
09-02-2004, 02:30 AM
Sorry, that's all I can do. Maybe the hack author can help you more.

Rgds


Thanks to sv1cec for trying to get this to work for Spinball. Unfortunately, vBulletin won't parse PHP in ANY template. I think what you are looking for is a completely different hack. I'm not sure how it would work. Sorry :(


(P.S. New hip is healing nicely. Thanks for the nice notes :)).

bkbelew
09-12-2004, 10:47 PM
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

Lionel
10-08-2004, 09:22 PM
how do I get this to display in postbits?

ChurchMedia
10-09-2004, 02:29 AM
how do I get this to display in postbits?
That's not what it's for. What do you have in mind?

Lionel
10-09-2004, 02:33 AM
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.

ChurchMedia
10-09-2004, 02:40 AM
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.

Lionel
10-09-2004, 03:11 AM
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.

ChurchMedia
10-09-2004, 03:45 AM
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 :)

Lee Wilde
10-15-2004, 12:12 AM
Installed and working within minutes. If only every mod was so easy, thank you very much.

Chadi
10-19-2004, 04:09 AM
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?

ChurchMedia
10-19-2004, 06:14 AM
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`;

Mokster
10-24-2004, 11:54 PM
very nice! works great!

/me installs!

blueintr
10-25-2004, 01:31 AM
OK, I think I am missing a step.

I altered the DB, changes the forums file, and made the two template mods -- and I see nothing. I don't even know where to add the header and footer.

Help!

blueintr

blueintr
11-02-2004, 09:17 PM
Cockpit error! I figured out how to make it work.

blueintr

Yevgeny
12-20-2004, 12:03 AM
OK, I think I am missing a step.

I altered the DB, changes the forums file, and made the two template mods -- and I see nothing. I don't even know where to add the header and footer.

Help!

blueintr
have the same problem! Help

ChurchMedia
12-20-2004, 01:03 AM
have the same problem! Help

In you admin cp where you edit a forum, you'll see the two boxes where you can put the html.

Enjoy,

jbd
01-05-2005, 07:05 PM
Does anyone have any idea how to get this thing to parse PHP? I really do need this functionality. Alternatively, can anyone tell me why vbulletin does not parse php naturally without having to do all these workarounds? Not the usual "security issues" line, I am praying... :ermm:

The inability to parse PHP is no minor issue. In my eyes it's a really massive problem.

DarrinM
01-05-2005, 07:51 PM
I would guess it can but would appreciate help with how to do it

Cheers

sbryan
01-06-2005, 12:57 AM
this sounds great. so effectively i could do the following?

at the moment i have an Xbox gaming website at www.xboxworld.com.au

if i wanted to start up another couple of websites, ps2, gamecube etc i could create subforums for each one. and then apply this hack and have custom graphics at the footer and header of each one so that they appeared to be different forums, unique to each differnt site? ie; the existing xbox one with its existing header and footer, a ps2 one with a new header and footer and a gamecube one with a new header and footer etc etc repeat until dizzy.

i could then effectively have one forum that appeared to be any number of different ones as there's a hack to hide forums from the index of the main forum that they live under right?

SVTOA
01-06-2005, 03:32 PM
Very nice. For more functionality use a random image cycler if you have more than one sponsor for a particular forum. (sorry if that has been mentioned)

**installed

swantonio
01-06-2005, 07:30 PM
Very nice

installato ok :D

zurih
01-06-2005, 10:35 PM
thank! its a great hack!
installed

jesse
01-10-2005, 11:33 AM
great
now what code would I use for adding flash?

well my question is after adding flash the dropdown menu apears under the flash banner how to fix this?

SVTOA
01-10-2005, 12:49 PM
great
now what code would I use for adding flash?

Very simple, just place the OBJECT tag and associated code in the editor box. I am using a flash banner that stops upon rollover and resumes upon rollout and is hyperlinked to each sponsor's ad. Works great!

Only thing to keep in mind when using FLASH, is that your drop-down boxes will go "below" the flashmovie and not work properly. (it will appear as if your flash file is covering up the drop-down boxes) I placed the code for this hack ABOVE the navbar, so they are unaffected by the flash file....

MentaL
01-15-2005, 10:49 PM
Any idea when i try to add a banner the img source is shown up as

http://forum.ragezone.com/baner/staffbanner.jpg><table%20class=

quite confused tbh...

SVTOA
01-15-2005, 11:03 PM
Any idea when i try to add a banner the img source is shown up as

http://forum.ragezone.com/baner/staffbanner.jpg><table%20class=

quite confused tbh...


You clearly don't have a closequote after the image tag... Simple HTML error.

/staffbanner.jpg">

MentaL
01-16-2005, 12:22 AM
Wooooooooooopsssssss

SVTOA
01-16-2005, 01:08 AM
Wooooooooooopsssssss


I take it this means that was the issue?

MentaL
01-16-2005, 01:15 AM
ye thanks

SVTOA
01-16-2005, 01:39 AM
no problem sir. :)

turkforum
02-27-2005, 11:43 PM
Installed and seems good
But the most confisuing part is Why do i have to Put the code again again for subforums.
Is there a way we can automatically put them for subforums

ChurchMedia
02-27-2005, 11:54 PM
You might want something completely different for the sub-forums. If you don't -- there's no way to have it apply to sub-forums without just copying the information. I don't know how to code it to do that automatically... sorry.

turkforum
02-28-2005, 12:51 AM
Thnx this works fine anyway great hackI will cahrge for each forum it will be displayed next time

gnawph
02-28-2005, 03:08 AM
Nice hack. Thanks.

Eagle Creek
02-28-2005, 10:28 PM
Cool!

Is it 3.0.7 compatible?

CommunityZ
04-02-2005, 04:03 PM
I am using 3.0.7 and it works.
I had to copy and paste the same info again and again into different forum . If there is a solution that let me do it all inside vbulletin with one click will be great. I got many forums.

ChurchMedia
04-02-2005, 04:09 PM
I am using 3.0.7 and it works.
I had to copy and paste the same info again and again into different forum . If there is a solution that let me do it all inside vbulletin with one click will be great. I got many forums.
If you want something to show up globally you would just use the header/footer templates. This hack is to have different sub-headers/sub-footers for each forum...

CommunityZ
04-02-2005, 04:14 PM
If you want something to show up globally you would just use the header/footer templates. This hack is to have different sub-headers/sub-footers for each forum...
I see. Thank you. Do you mind teaching me how to do that because i am very new to vb3.

ChurchMedia
04-02-2005, 04:33 PM
I see. Thank you. Do you mind teaching me how to do that because i am very new to vb3.

In the templates area for your style you will find a template called "header" and one called "footer". It's in under "Styles and Templates" -- "Style Manager" -- << >>

CommunityZ
04-02-2005, 04:51 PM
I want to have the banner under navbar I got idea now To add banner under navbar i go to edit navbar. But when i edit footer it shows above All times are GMT +8. The time now is 03:36 I want to have banner above Display Option like what theadminzone.com. How? By the way, your hacks is good so i installed it too for future use. :)

red_baron2000
04-09-2005, 04:20 AM
simple/nice and works like a charm ..what can i say more ? oh yes big thank you :)

*installed*

dimdan
05-16-2005, 05:22 AM
Cool. Thank's

vktechnology
06-05-2005, 09:57 PM
good hack, i just install

BOWZONE
06-19-2005, 07:56 PM
*INSTALLED!*

Great hack...thank you.

banuchi2
07-28-2005, 04:15 AM
*INSTALLED!*

Great hack...thank you.

Is there any chance someone could adapt this for v3.5 RC1 ....thanks.

Mike

sv1cec
07-28-2005, 04:24 AM
Every time I see a post like this, I get another reassurance why my boards will NOT move to 3.5 soon. Too much hacks installed, for my own good!

Long live 3.0.x!

VHLinks
07-28-2005, 05:29 AM
Works great just a quick question. Is there a way to use a conditonal somehow so that you can have a different header and/or footer display depending on the style number being selected? So if a user is using Style #1, they'd get one header, if they're using Style #2, they'd get another.

Thanks.

Mokster
08-24-2005, 03:14 PM
Installed! Haven't tried it yet, but I think it will work just fine.

Just one thing, in the instructions, you might wanna change the name of the admin directory to admincp, since it is for the vb3.0. That way it will be clear to everyone.

This hack is great. Combined with phpadsnew, this is the ultimate solution for targeted banner advertising.

Thanks again!
have people been able to get this hack to work with phpadsnew?

i tried and when i put $phpAds_raw3[html] in the header box, the actual text shows up instead of a banner...anyone know why?

cnczone
09-10-2005, 01:48 AM
has this been updated for 3.5?

mOdEtWo
09-12-2005, 10:21 PM
No. :(

I've tried to PM the author, but he/she hasn't read it. And his/her email address is private, so I can't email either.

cnczone
09-15-2005, 12:30 PM
That sinks

stan111
09-16-2005, 11:54 AM
will this work with 3.0.7 ?

Zachariah
09-16-2005, 02:06 PM
I got it done ill post it in the vb3.5 area

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

Jesse Jericho
10-25-2005, 06:33 PM
Can someone give me a hand with removing this from vB 3.5.0? I just upgraded to 3.5, and now I can't control these headers/footers anymore... So I need to remove them, and then upgrade to the new 3.5 mod..

*edit* Scratch that, you made it really easy with an upgrade patch... man do I feel dumb. :) Thanks very much!

ski diva
12-23-2006, 07:24 PM
Just found this hack and it looks like one I'd like to use (I'm running 3.5.4), so I downloaded it, but I don't understand these instructions:

-----------------------STEP 1-----------------------------
Run Queries
NOTE: If you used a header/footer hack in VB2.x, you may already have these fields

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

I have no idea what this involves. Can anyone help?

In fact, I don't understand step 2, either. Where's admin/forum.php?

Thanks.

ArnyVee
04-10-2008, 11:19 PM
Does this work in 3.6.8 patch 2? Or is there a better or updated version of this hack?

SC351W
04-12-2008, 06:11 PM
in my file admincp/forum.php
there is no
'$forum['description'] = convert_to_valid_html($forum['description']);'

I can only find something like this,
$forum['description'] = str_replace('&amp;', '&', $forum['description']);

but it has two extra variables for the str_replace function.

Should i just change it to the str_replace function and format it the same?
i have vb 3.6.9.

thnx