Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

 
 
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
  #32  
Old 07-25-2004, 10:45 AM
floridaideal floridaideal is offline
 
Join Date: Aug 2002
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #33  
Old 07-25-2004, 10:56 AM
Lord Brar's Avatar
Lord Brar Lord Brar is offline
 
Join Date: Jul 2004
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ChurchMedia - working well for forum homepages but not forum threads in that forum...
Reply With Quote
  #34  
Old 07-25-2004, 02:09 PM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hdraye
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.

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
Reply With Quote
  #35  
Old 07-25-2004, 06:44 PM
ChurchMedia's Avatar
ChurchMedia ChurchMedia is offline
 
Join Date: Dec 2002
Location: Las Cruces, NM
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:

Code:
<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,
Reply With Quote
  #36  
Old 07-26-2004, 12:04 AM
Lord Brar's Avatar
Lord Brar Lord Brar is offline
 
Join Date: Jul 2004
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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!
Reply With Quote
  #37  
Old 07-26-2004, 05:05 PM
hdraye hdraye is offline
 
Join Date: Jul 2004
Location: Riyadh, Saudi Arabia
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #38  
Old 07-28-2004, 08:57 PM
Spinball's Avatar
Spinball Spinball is offline
 
Join Date: Feb 2002
Location: Telford, England
Posts: 705
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a great hack. Problem for me is that I want to include an external HTML file into the forum header.
E.g.
Quote:
<?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?
Reply With Quote
  #39  
Old 07-29-2004, 05:00 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Spinball
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

PHP Code:
    // misc useful 
Above that add something like

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

PHP Code:
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
Reply With Quote
  #40  
Old 07-29-2004, 07:06 AM
Spinball's Avatar
Spinball Spinball is offline
 
Join Date: Feb 2002
Location: Telford, England
Posts: 705
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
Quote:
<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.
Reply With Quote
  #41  
Old 07-29-2004, 07:20 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Spinball
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
Reply With Quote
 

Thread Tools

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 12:50 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.04717 seconds
  • Memory Usage 2,311KB
  • 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_code
  • (3)bbcode_php
  • (6)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