Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications
Fake rotating banner Details »»
Fake rotating banner
Version: 1.00, by pein87 pein87 is offline
Developer Last Online: Dec 2013 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 3.7.5 Rating:
Released: 01-12-2009 Last Update: Never Installs: 2
Template Edits
 
No support by the author.

This mod will show you how to add a diffrent image per page on only the defined pages you select. I use this on my forum and it changes the headers background image if this script is something.

Heres what I used

I added this to the header template in the all style options selection under manage style.

I added this code to replace the vbulletin icon.

PHP Code:
<tr>
<if 
condition="THIS_SCRIPT == 'showthread' OR THIS_SCRIPT ==  'member'">
<
td id="logo1"></td>
<else />
<if 
condition="THIS_SCRIPT == 'group' OR THIS_SCRIPT == 'private'">
<
td id="logo2"></td>
<else />
<
td id="logo"></td>
</if></if>
</
tr
Now the image changes based on the page your on but you need css to give the table data some height.

Remember that you must use OR in caps and not or or || like you would in php or any other progamming language or it will not work an dont forget the ' before and after the declaration of the script example: 'member' is valid but member is not valid.

I used

PHP Code:
#logo {
height200px;
background-color#000000;
background-imageurl(images/freshblue/misc/logo.png);
background-positionright;
background-repeatno-repeat;

That gives it the height of 200 pixels sets the image up for fluid forums and its position is set to right with no repeat. to view this in action view my site.

DEMO

Show Your Support

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

Comments
  #2  
Old 01-14-2009, 04:23 PM
Audax666 Audax666 is offline
 
Join Date: Jun 2008
Location: Germany
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got a white page when I try to visit your forum.
Reply With Quote
  #3  
Old 01-14-2009, 05:07 PM
pein87's Avatar
pein87 pein87 is offline
 
Join Date: Sep 2008
Posts: 352
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah sorry problems with php version host being retarded and not having php 5 installed but it works lol if you need help let me know my example only uses background images since my site isnt a set width but if yours is you can do it for the image source.
Reply With Quote
  #4  
Old 01-15-2009, 06:55 PM
erel34's Avatar
erel34 erel34 is offline
 
Join Date: Dec 2007
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you!
Reply With Quote
  #5  
Old 01-15-2009, 09:55 PM
s2lo7 s2lo7 is offline
 
Join Date: Dec 2008
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good
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 07:16 PM.


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.06839 seconds
  • Memory Usage 2,237KB
  • Queries Executed 18 (?)
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_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (5)postbit_onlinestatus
  • (5)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete