vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=134)
-   -   Make Linked Forums Appear as Sponsors (https://vborg.vbsupport.ru/showthread.php?t=88568)

Wayne Luke 03-02-2004 10:00 PM

Make Linked Forums Appear as Sponsors
 
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.

MrNase 03-03-2004 10:01 PM

hey wayne :)

Could you provide a *.txt with the instruction please?

Tony G 03-04-2004 03:22 AM

Nice mod, could be useful to me. Thanks. :)

Wayne Luke 03-04-2004 04:06 PM

Quote:

Originally Posted by MrNase
Could you provide a *.txt with the instruction please?

Attached to the original post now.

peterska2 03-05-2004 01:53 PM

Nice, however Im a little confused on what to do when you create the banner. You create the banner I know, but what would I name it if my forumid would be 39?

RixiuS 03-06-2004 12:17 AM

banner_39.gif

:o

Dan 03-06-2004 01:41 PM

nice one Wayne :D I might use that on my design board :D

ap0c 03-14-2004 03:18 AM

any template changes to make this work on child forums?

http://www.apocalypselives.com/forum...splay.php?f=37

PennylessZ28 03-16-2004 02:02 PM

I've had this installed for some time now at my website, www.hr3rdgen.org/forum.php

gmarik 03-17-2004 03:26 AM

nice, Luke!


All times are GMT. The time now is 03:23 PM.

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.01103 seconds
  • Memory Usage 1,752KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete