Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Make Linked Forums Appear as Sponsors Details »»
Make Linked Forums Appear as Sponsors
Version: 1.00, by Wayne Luke (Senior Member) Wayne Luke is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 03-02-2004 Last Update: Never Installs: 4
 
No support by the author.

This was inspired by the sponsor forums on vBulletin.nl and implemented at theadminzone.com. I would like to share it with you.

Open your forumhome_forumbit_level2_post template and replace the code with:
HTML Code:
  <tr align="center">
   <if condition="$forum[link] != ''">
 	 <td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td>
  	 <td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]">
  		 <div>
 			 <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]" target="_blank"><strong>$forum[title]</strong></a>
 			 <if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
  		 </div>
 		 <if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
  		 </td>
 		 <td align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">4<else />3</if>">
  		 <!-- Advertising Banner -->
 		 	<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]" target="_blank"><img src="$stylevar[imgdir_misc]/banner_$forumid.gif" width="185" height="25" border="0"></a>
  		 <!-- End Advertising Banner -->
  		 </td>
   <else />
 	 <td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td>
  	 <td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]">
  		 <div>
 			 <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
 			 <if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
  		 </div>
 		 <if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
 		 <if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&amp;f=$forum[forumid]">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
 		 <if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
  	 </td>
  	 <td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td>
  	 <td class="alt1">$forum[threadcount]</td>
  	 <td class="alt2">$forum[replycount]</td>
  	 <if condition="$vboptions['showmoderatorcolumn']">
 	 <td class="alt1"><div class="smallfont">$forum[moderators]&nbsp;</div></td>
  	 </if>
   </if>
  </tr>
  $childforumbits
There is a default size of 185 X 25 pixels for the images hardcoded in the code above, feel free to change this. You would name the images banner_$forumid.gif where $forumid corresponds with the Forum ID appropriately.

I don't have a screen shot but you can see it in action at either of the sites listed above. I am sure for those who use Advertising on their sites, this would allow a new avenue of advertising. You can probably modify the above code to work with Categories easily enough as well.

Show Your Support

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

Comments
  #22  
Old 04-03-2004, 10:27 AM
dsurban1 dsurban1 is offline
 
Join Date: Mar 2004
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RichieBoy67
I love your site!! I want to make my forums have epanded threads like yours.. I am a newbie so I know I'm not explaining right.. How can I get my forums to look like yours??

Here's my site www.speakoutonline.net

Thanks,

Rich
I to would be interested in a template change to add banners like that site. Anyone out there help ?
Reply With Quote
  #23  
Old 06-21-2004, 09:20 PM
mudanoman mudanoman is offline
 
Join Date: Jul 2003
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried to install this mod, but nothing appears to happen. I replaced the forumhome_forumbit_level2_post code thru the admin panel and uploaded a banner_15.gif image to my forum/images/misc folder. That is all that I need to do correct? Any help appreciated. Thanks. -mm
Reply With Quote
  #24  
Old 07-01-2004, 05:13 PM
imported_Aero imported_Aero is offline
 
Join Date: Sep 2003
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dsurban1
I to would be interested in a template change to add banners like that site. Anyone out there help ?
Its a hack that you can find over at Vbulletin.org
Reply With Quote
  #25  
Old 07-22-2004, 05:38 PM
jugo jugo is offline
 
Join Date: Feb 2004
Location: Reading your emails.
Posts: 573
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome. Someone offered me $50 to do this for them. Now I can do it and not charge them since it's so **** easy.

Thanks....I hate chargind people for easy stuff.
Reply With Quote
  #26  
Old 01-08-2005, 07:37 PM
Sik Micz Tech Sik Micz Tech is offline
 
Join Date: Apr 2004
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there any way you could write up instruction like all other hacks as i have many mods done to theat file and i will loose em all. so if you can id use it. but the way it sits i cant use it.
Reply With Quote
  #27  
Old 01-17-2006, 06:12 AM
bigtime bigtime is offline
 
Join Date: Jun 2002
Location: Houston, Texas
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

Just upgraded to 3.5.3 with a couple change....

Thanks,

Tim
Reply With Quote
  #28  
Old 02-25-2006, 07:51 AM
Sculli's Avatar
Sculli Sculli is offline
 
Join Date: Nov 2005
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bigtime
Just upgraded to 3.5.3 with a couple change....
It would be nice if you could post what changes are needed. Thanks in advance.
Reply With Quote
Reply


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 06:05 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.04246 seconds
  • Memory Usage 2,290KB
  • Queries Executed 22 (?)
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_html
  • (3)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
  • (2)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)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