vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Forum Home Advertisements (https://vborg.vbsupport.ru/showthread.php?t=111872)

Daniel 03-31-2006 10:00 PM

Forum Home Advertisements
 
Forum Home Advertising

Description: This will add a box above the "What's going on?" box on the FORUMHOME. Users may purchase an ad space through the vBulletin payments system (not intergrated - you must put the ad image and url there yourself by editing the template; see below.)

Additions:
  • File Edits: 0
  • Template Edits: 0
  • Phrase Additions: 0
  • Template Edits: 1
Steps:
  • Make a subscription for banner advertising at what ever cost you'd like. (ACP -> Paid Subscriptions -> Add New Subscription)
  • Do the one FORUMHOME template edit.
  • Customize your ads!
Template Edit:

Find:
Code:

<!-- what's going on box -->
Above it add:
Code:

<!-- SCROLL DOWN TO "CUSTIMAZATION START" TO CUSTIMZE ADS -->
<table class="tborder" align="center" border="0" cellpadding="6" cellspacing="1" width="100%">
<thead>
    <tr>
        <td class="tcat">
            <a style="float: right;" href="#top" onclick="return toggle_collapse('ads')"><img id="collapseimg_ads" src="images/buttons/collapse_tcat.gif" alt="" border="0"></a>
            Advertisements (<a href="payments.php">Your Ad Here?</a>)<br />
        </td>
    </tr>
</thead>

<tbody id="collapseobj_ads" style="">
    <tr>
        <td class="alt1">
<table border="0" width="100%">
<tbody><tr>

<!-- CUSTOMIZATION START -->

<!-- AD 1 -->
<td align="center">
<a href="payments.php"><img src="images/advert_blank.gif" border="0"></a>
<br />
<a href="payments.php">More Information Here</a>
<br /><br />
</td>

<!-- AD 2 -->
<td align="center">
<a href="payments.php"><img src="images/advert_blank.gif" border="0"></a>
<br />
<a href="payments.php">More Information Here</a>
<br /><br />
</td>

<!-- AD 3 -->
<td align="center">
<a href="payments.php"><img src="images/advert_blank.gif" border="0"></a>
<br />
<a href="payments.php">More Information Here</a>
<br /><br />
</td>

<!-- AD 4 -->
<td align="center">
<a href="payments.php"><img src="images/advert_blank.gif" border="0"></a>
<br />
<a href="payments.php">More Information Here</a>
<br /><br />
</td>
</tr>

<tr>

<!-- AD 5 -->
<td align="center">
<a href="payments.php"><img src="images/advert_blank.gif" border="0"></a>
<br />
<a href="payments.php">More Information Here</a>
<br /><br />
</td>

<!-- AD 6 -->
<td align="center">
<a href="payments.php"><img src="images/advert_blank.gif" border="0"></a>
<br />
<a href="payments.php">More Information Here</a>
<br /><br />
</td>

<!-- AD 7 -->
<td align="center">
<a href="payments.php"><img src="images/advert_blank.gif" border="0"></a>
<br />
<a href="payments.php">More Information Here</a>
<br /><br />
</td>

<!-- AD 8 -->
<td align="center">
<a href="payments.php"><img src="images/advert_blank.gif" border="0"></a>
<br />
<a href="payments.php">More Information Here</a>
<br /><br />
</td>

<!-- CUSTOMIZATION FINISHED -->

</tbody></table>

</td>
    </tr>
</tbody>
</table>

To edit a picture, replace the following text:
Code:

<img src="images/advert_blank.gif" border="0">
With your own image. For example...
Code:

<img src="images/MYIMAGE.gif" border="0">
To edit a link, replace the following text:
Code:

<a href="payments.php">More Information Here</a>
With your own link. For example...
Code:

<a href="http://google.com">Click Here to go to Google!</a>

nivert 04-01-2006 03:51 AM

Looks good, installing :)

BoYagoob 04-01-2006 05:55 AM

installed

mat64 04-01-2006 12:07 PM

Interesting, Seems abit of a hastle having to edit the template everytime you want to change though. I'm sure theres a way round this?

Daniel 04-01-2006 03:09 PM

Quote:

Originally Posted by mat640
Interesting, Seems abit of a hastle having to edit the template everytime you want to change though. I'm sure theres a way round this?

Working on it. It'll be done through the vBulletin Options setting when I finish.

@BoYagoob, think you missed the button :P

Tralala 04-01-2006 03:37 PM

Quote:

Originally Posted by Daniel
Working on it. It'll be done through the vBulletin Options setting when I finish.

Ah, sounds much better. When that's done, I'll be installing for sure.

Cky47 04-01-2006 04:24 PM

I installed, but nothing showed up. Probably jsut a little compatibility error on my site. I will give it a day or two i guess and re-install.

Daniel 04-01-2006 05:43 PM

Is your FORUMHOME template heavily modded?

If so, find this in the FORUMHOME template:
Code:

<!-- what's going on box -->
and above add:
Code:

<!-- SCROLL DOWN TO "CUSTIMAZATION START" TO CUSTIMZE ADS -->
<table class="tborder" align="center" border="0" cellpadding="6" cellspacing="1" width="100%">
<thead>
        <tr>
                <td class="tcat">
                        <a style="float: right;" href="#top" onclick="return toggle_collapse('ads')"><img id="collapseimg_ads" src="images/buttons/collapse_tcat.gif" alt="" border="0"></a>
                        Advertisements (<a href="payments.php">Your Ad Here?</a>)<br />
                </td>
        </tr>
</thead>

<tbody id="collapseobj_ads" style="">
        <tr>
                <td class="alt1">
<table border="0" width="100%">
<tbody><tr>

<!-- CUSTOMIZATION START -->

<!-- AD 1 -->
<td align="center">
<a href="payments.php"><img src="images/advert_blank.gif" border="0"></a>
<br />
<a href="payments.php">More Information Here</a>
<br /><br />
</td>

<!-- AD 2 -->
<td align="center">
<a href="payments.php"><img src="images/advert_blank.gif" border="0"></a>
<br />
<a href="payments.php">More Information Here</a>
<br /><br />
</td>

<!-- AD 3 -->
<td align="center">
<a href="payments.php"><img src="images/advert_blank.gif" border="0"></a>
<br />
<a href="payments.php">More Information Here</a>
<br /><br />
</td>

<!-- AD 4 -->
<td align="center">
<a href="payments.php"><img src="images/advert_blank.gif" border="0"></a>
<br />
<a href="payments.php">More Information Here</a>
<br /><br />
</td>
</tr>

<tr>

<!-- AD 5 -->
<td align="center">
<a href="payments.php"><img src="images/advert_blank.gif" border="0"></a>
<br />
<a href="payments.php">More Information Here</a>
<br /><br />
</td>

<!-- AD 6 -->
<td align="center">
<a href="payments.php"><img src="images/advert_blank.gif" border="0"></a>
<br />
<a href="payments.php">More Information Here</a>
<br /><br />
</td>

<!-- AD 7 -->
<td align="center">
<a href="payments.php"><img src="images/advert_blank.gif" border="0"></a>
<br />
<a href="payments.php">More Information Here</a>
<br /><br />
</td>

<!-- AD 8 -->
<td align="center">
<a href="payments.php"><img src="images/advert_blank.gif" border="0"></a>
<br />
<a href="payments.php">More Information Here</a>
<br /><br />
</td>

<!-- CUSTOMIZATION FINISHED -->

</tbody></table>

</td>
        </tr>
</tbody>
</table>


yinyang 04-01-2006 06:01 PM

is there a way (i think there's a mod out there) to track how many clicks on each link?

Daniel 04-01-2006 06:15 PM

Quote:

Originally Posted by yinyang
is there a way (i think there's a mod out there) to track how many clicks on each link?

Not with this mod, sorry. Possibly a future feature.


All times are GMT. The time now is 11:18 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.01120 seconds
  • Memory Usage 1,758KB
  • 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
  • (8)bbcode_code_printable
  • (3)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