Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
Add Extra Header / Footer Details »»
Add Extra Header / Footer
Version: 1.00, by Zachariah Zachariah is offline
Developer Last Online: Jan 2020 Show Printable Version Email this Page

Version: 3.5.0 Rating:
Released: 10-27-2005 Last Update: 11-27-2005 Installs: 26
Uses Plugins Template Edits
 
No support by the author.

/* ----------------- 10/28/2005 1:33PM -----------------
Add Extra Header / Footer
Tested on vBulletin: 3.5.0

Zachariah - http://www.gzhq.net

*** Info:
This modification will allow you to add an extra, unique header and footer.
You can use HTML, javascript, but no PHP.
--------------------------------------------------*/

- - Extra Header
Here you can add a "Extra Header" to your forums.
Paste: $vboptions[fhx2h] into your templates.

EX: Edit header template and paste $vboptions[fhx2h] at the top of the template, and save..

HTML, Javascript, etc. No PHP


- - Extra Footer
Here you can add a "Extra Footer" to your forums.
Paste: $vboptions[fhx2f] into your templates.

EX: Edit footer template and paste $vboptions[fhx2f] at the bottem of the template, and save..

HTML, Javascript, etc. No PHP

*** Useage:

vBulletin Options => General Settings => scroll Extra Header / Extra Footer enter your details.


=> Phrases list

Random Java Rotation

Show Your Support

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

Comments
  #2  
Old 10-28-2005, 07:45 PM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I took:

$vboptions[fhx2h] // header
$vboptions[fhx2f] // footer

And just pasted them in the $header / $footer templates and now I have a place I can add and remove code @ will. Saves me from editing a template all the time.
Reply With Quote
  #3  
Old 10-28-2005, 07:47 PM
spongebobrox128 spongebobrox128 is offline
 
Join Date: Mar 2005
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If I could make a comment, you can do PHP Code by using eval.
Unless I am not thinking right now, you could easily do something with a plugin before it gets the header template from the DB to evaluate PHP inside the extra header/footer inside <!PHP and !> tags or something like that (you would need to have away to get the code inside the tags though, even if it is not that hard). Also, you could make a seperate field for PHP just to have that to evaluate, almost like the plugins system, and then that would be very useful to me, and probably a lot of other people to.
Just my Opinion, though.
(BTW, Nice binary in your sig...I decoded it (GZHQ))
Reply With Quote
  #4  
Old 10-28-2005, 07:52 PM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by spongebobrox128
If I could make a comment, you can do PHP Code by using eval.
Unless I am not thinking right now, you could easily do something with a plugin before it gets the header template from the DB to evaluate PHP inside the extra header/footer inside <!PHP and !> tags or something like that (you would need to have away to get the code inside the tags though, even if it is not that hard). Also, you could make a seperate field for PHP just to have that to evaluate, almost like the plugins system, and then that would be very useful to me, and probably a lot of other people to.
Just my Opinion, though.
(BTW, Nice binary in your sig...I decoded it (GZHQ))
Yes, I want to add PHP to the hack, all would love to add php. Perhaps soon. If you play w/ the idea shoot me some code. I got a few things in the fire code wise @ the moment.

Your 1st in 3 years said something on binary sig ;D
Reply With Quote
  #5  
Old 10-28-2005, 07:56 PM
spongebobrox128 spongebobrox128 is offline
 
Join Date: Mar 2005
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, sure, I think theres a hook somewhere in global.php right before it fetches the templates so it might work out.
Reply With Quote
  #6  
Old 10-29-2005, 09:17 AM
deta deta is offline
 
Join Date: Dec 2004
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello!
1) Do you can do please sometimes your Header extra code of your HP post?
Thanks

2) Phrasen not include :ermm:

cu Deta
Reply With Quote
  #7  
Old 10-29-2005, 11:58 AM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed!
Reply With Quote
  #8  
Old 10-29-2005, 02:44 PM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by deta
Hello!
1) Do you can do please sometimes your Header extra code of your HP post?
Thanks

2) Phrasen not include :ermm:

cu Deta

1) I am sorry I do not understand.


2)
Phrases list:

setting_fhx2f_desc
setting_fhx2f_title
setting_fhx2h_desc
setting_fhx2h_title
options_options_fhx2f_text
options_options_fhx2f_title
options_options_fhx2h_text
options_options_fhx2h_title

Quote:
Originally Posted by Aftermath
Installed!
You missed
Reply With Quote
  #9  
Old 10-30-2005, 08:23 AM
deta deta is offline
 
Join Date: Dec 2004
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zachariah
1) I am sorry I do not understand.


2)
Phrases list:

setting_fhx2f_desc
setting_fhx2f_title
setting_fhx2h_desc
setting_fhx2h_title
options_options_fhx2f_text
options_options_fhx2f_title
options_options_fhx2h_text
options_options_fhx2h_title



You missed

Excuse my bad English.
On your Hompage and in the Screenshot you have inserted a navigation bar. Can you publish this code please here sometimes?
It would be first-class.

2. I meant other phrases z.b. $vbphrase [Admin] from the other areas.

3. Install comes, as soon as I go online with vb3.5 Becoming not forgotten.

cu Deta
Reply With Quote
  #10  
Old 02-27-2006, 11:23 PM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is a simple JAVA random banner code you can paste in the HTML area

EX:
This will show @ random.

image1.jpg @ http://www.yoursite1.com
image2.jpg @ http://www.yoursite2.com
image3.jpg @ http://www.yoursite3.com


Code:
<script language="javascript" type="text/javascript">
<!-- 
function banner() { 
}; 

banner = new banner(); 
number = 0; 

// bannerArray 
banner[number++] = "<a href='http://www.yoursite1.com' target='_blank'><img src='/banners/image1.jpg' alt='' border='0' /></a>"
banner[number++] = "<a href='http://www.yoursite2.com' target='_blank'><img src='/banners/image2.jpg' alt='' border='0' /></a>"
banner[number++] = "<a href='http://www.yoursite3.com' target='_blank'><img src='/banners/image3.jpg' alt='' border='0' /></a>" 
 
// keep adding items above here... 

increment = Math.floor(Math.random() * number); 
document.write(banner[increment]); 

//-->
</script>
Useage: If you need more banners edit / add another row.
Code:
banner[number++] = "<a href='http://www.yoursite1.com' target='_blank'><img src='/banners/image1.jpg' alt='' border='0' /></a>"
Link of Destination
Image location
Reply With Quote
Reply

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 01:54 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05778 seconds
  • Memory Usage 2,302KB
  • 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
  • (2)bbcode_code
  • (4)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
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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