vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   New Sponsor Template Modifications (https://vborg.vbsupport.ru/showthread.php?t=34475)

JWB 01-25-2002 10:38 AM

I have made a template hack for sites that want sponsors...

I added a small table at the top of each post list with {sponsors_ad#} where # is the forum id. Thatway ads can be easily changed simply by going to the "Replacements" section.

Here's the code I put on the forumdisplay template (it has my colors in it right now):

Find This:
Quote:

<smallfont>$moderatedby$onlineusers</smallfont></td>
<td valign="bottom" align="right"><smallfont>$newthreadlink&nbsp;</smallfont></td>
</tr>
</table>
<br>

Add this below it:
Quote:

<!-- All Forums Network-->
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr align="center" valign="bottom">
<td bgcolor="#7189a8" width="100%"><font face="verdana,arial,helvetica" size="1" >&nbsp;</font><font face="verdana,arial,helvetica" size="2" color="#FFFFFF">{sponsors_ad$forumid}</font></td>
</tr>
<tr id="cat">
<td bgcolor="#1c2e48" width="100%" align="left"><font color="#FFFFFF" size="1"><a href="http://allforums.net/sponsors">All
Forums Network Sponsors</a></font></td>
</tr>
</table>
<br>
<!-- -->
I plan on integrating couters to monitor how many times a link has been viewed, and possibly some kind of php interface... I will also change our colors with the proper {color} things where you don't have to change them for each template.. I'll share my nicer code once it's done if anyone is interested..

You can see how we are using the mod http://www.allforums.net/forum/forum....php?forumid=7 I just allow small text link advertising because I don't want to junk up the board...

Lionel 01-25-2002 11:40 AM

I like the location. You might find this post helpful. All you have to do is download phpadnew for free and place the code in your location. Then, you make small images and you get the whole thing.... go here


All times are GMT. The time now is 11:17 AM.

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.01013 seconds
  • Memory Usage 1,713KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete