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

Reply
 
Thread Tools
Different banner on each forumbit Details »»
Different banner on each forumbit
Version: 1.03, by Beermonster Beermonster is offline
Developer Last Online: Sep 2023 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 08-04-2005 Last Update: 11-21-2005 Installs: 126
Supported DB Changes Uses Plugins Template Edits
 

This is an update of my previous have hack https://vborg.vbsupport.ru/showthread.php?t=63994


This modification will add an image banner with link and text to each forum you choose, and display it in on your forumhome postbits, you can have a different banner for each forum with additional text above the banner like Sponsored by or affiliated with, or you can choose to have no text.

Please click install for support


This will only work on vBulletin 3.5.0 RC1 and above this will not work on versions before RC1

20050929 - Updated zip with Firefox fix
20050930 - Updated zip with Real Firefox fix, plus added text under image code
20051122 - Updated html again

Show Your Support

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

Comments
  #12  
Old 09-28-2005, 09:59 PM
stinger2's Avatar
stinger2 stinger2 is offline
 
Join Date: Jul 2005
Posts: 274
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you sir for the quick response..just installed and it looks charming now.....
can i ask for one thing more.......

the fix you gave for fire fox...corrected the original...but it seems not working on this one.......any idea
Reply With Quote
  #13  
Old 09-29-2005, 05:36 AM
Beermonster Beermonster is offline
 
Join Date: Dec 2003
Location: England
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by stinger2
thank you sir for the quick response..just installed and it looks charming now.....
can i ask for one thing more.......

the fix you gave for fire fox...corrected the original...but it seems not working on this one.......any idea
Because I didn't do it

Code:
<if condition="$forum['fhbanner']">
<table align="right" border="0"><tr><td align="center" valign="top">
<if condition="$forum['fh_banner']"><a href="http://$forum[fh_url]" target="_blank"><img src="images/fhbanner/$forum[fh_banner]" alt="$forum[fh_url]" border="0" /><br><font size="1">$forum[fh_text]</font></a>
</td></tr></table>
</if>

I've also updated the zip with the Firefox fix
Reply With Quote
  #14  
Old 09-30-2005, 12:49 AM
dreck's Avatar
dreck dreck is offline
 
Join Date: Nov 2004
Location: Pickens SC
Posts: 182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The IE code works great. But the foxfire gets this error when trying to save.
Code:
The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/thisdarn/public_html/vb/includes/adminfunctions_template.php(3519) : eval()'d code on line 5

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
Reply With Quote
  #15  
Old 09-30-2005, 07:37 AM
stinger2's Avatar
stinger2 stinger2 is offline
 
Join Date: Jul 2005
Posts: 274
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes sir...this is what i was getting and reffered to in my previouse post....the fix is not working for the text under version......

but i really do suggest that the text under become the original hack.....the alignment is great....i will attach a snapshot for it..hope we get a fix for firefox
kind regards
Reply With Quote
  #16  
Old 09-30-2005, 11:18 AM
Beermonster Beermonster is offline
 
Join Date: Dec 2003
Location: England
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry guys me being lazy and not checking my code, I've tested it on 3.5.0 Gold with Firefox and IE with text above and below image, zip updated
Reply With Quote
  #17  
Old 09-30-2005, 11:58 AM
stinger2's Avatar
stinger2 stinger2 is offline
 
Join Date: Jul 2005
Posts: 274
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you sir
..for some reason the text below with firefox fix is not working.....at least for me..
it doesnot show any error...but........the forum structure is totally disturbed..all spaces are disturbed with IE and avant
Reply With Quote
  #18  
Old 09-30-2005, 12:39 PM
mclark2112's Avatar
mclark2112 mclark2112 is offline
 
Join Date: Sep 2002
Location: Eastern USA
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Put the </if> inside the last </td>

This will fix the screwed up forum stuff in Firefox.

Quote:
<table align="right" border="0"><tr><td align="center" valign="top">
<if condition="$forum['fh_banner']"><font size="1">$forum[fh_text]</font><br><a href="http://$forum[fh_url]" target="_blank"><img src="images/fhbanner/$forum[fh_banner]" alt="$forum[fh_url]" border="0" /></a></if>
</td></tr></table>
Reply With Quote
  #19  
Old 09-30-2005, 01:43 PM
dreck's Avatar
dreck dreck is offline
 
Join Date: Nov 2004
Location: Pickens SC
Posts: 182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Beermonster
Sorry guys me being lazy and not checking my code, I've tested it on 3.5.0 Gold with Firefox and IE with text above and below image, zip updated
That code screws up my forum view BIG TIME!
The IE still works fine.
Reply With Quote
  #20  
Old 09-30-2005, 05:22 PM
PixelFx PixelFx is offline
 
Join Date: Dec 2002
Posts: 1,117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dreck
That code screws up my forum view BIG TIME!
The IE still works fine.
this looks really promising thanks for working on this
Reply With Quote
  #21  
Old 09-30-2005, 10:46 PM
stinger2's Avatar
stinger2 stinger2 is offline
 
Join Date: Jul 2005
Posts: 274
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mclark2112
Put the </if> inside the last </td>
PHP Code:
<table align="right" border="0"><tr><td align="center" valign="top">
<if 
condition="$forum['fh_banner']"><font size="1">$forum[fh_text]</font><br><a href="http://$forum[fh_url]target="_blank"><img src="images/fhbanner/$forum[fh_banner]alt="$forum[fh_url]border="0" /></a></if>
</
td></tr></table
This will fix the screwed up forum stuff in Firefox.
thanks mclark....and thanks beermonster
it works great....its a fix for the text above

for the text under its

PHP Code:
<!-- Ad Banner Start Firefox Friendly Text under image -->
<
table align="right" border="0"><tr><td align="center" valign="top">
<if 
condition="$forum['fh_banner']"><a href="http://$forum[fh_url]target="_blank"><img src="images/fhbanner/$forum[fh_banner]alt="$forum[fh_url]border="0" /><br><font size="1">$forum[fh_text]</font></a></if>
</
td></tr></table>
<!-- 
Ad Banner end Firefox Friendly Text under image --> 
now it became a complet one...thanks every one for the great share
ps..hope the original file will be updated
regards
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 09:35 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.10788 seconds
  • Memory Usage 2,321KB
  • 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
  • (2)bbcode_php
  • (5)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
  • (3)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