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.

paulfletcher 04-01-2006 06:58 PM

Do you think you'll be adding this feature soon?

Thanks,
Paul

-> I installed.

Daniel 04-01-2006 07:06 PM

Quote:

Originally Posted by paulfletcher
Do you think you'll be adding this feature soon?

Thanks,
Paul

-> I installed.

Probably not. I'll be out of town next week, and I have one more thing to do with this before I look into the number of clicks per ad, and then I'll have to learn how to do it. ;)

paulfletcher 04-01-2006 07:09 PM

cool.

chuanguyen2000 04-01-2006 07:26 PM

very cool stuffs on earth :) thanks

Cky47 04-01-2006 09:14 PM

That fixed it... Thanks!

Cky47 04-01-2006 09:38 PM

If I wanted to display this on every page of the site, would I just put that code in the footer template?

Daniel 04-01-2006 10:40 PM

Yes, but it would appear at the very bottom.

yinyang 04-01-2006 11:03 PM

Quote:

Originally Posted by paulfletcher
Do you think you'll be adding this feature soon?

Thanks,
Paul

-> I installed.

it shouldn't be too hard to bridge this mod and this one. or would it? :cross-eyed:

007 04-01-2006 11:12 PM

If this let people upload their own images and set their own links it would be WAY better. Good idea though. Will be keeping an eye on it. :-)

paulfletcher 04-13-2006 04:18 AM

I just switched over and started using GAB (Geek Advertising Banner System). It works great on vBulletin 3.5.4, and integrates with vBulletin and vBAdvance's CMPS system.

It's currently in Beta (Revision 3), and a new system coming out called GUSH will provide a great way to work with ads, and allow users to pay for and manage / view stats of the ads... All without you doing one thing... It's got my vote & support.

Thanks,
Paul

digitalltv 04-17-2006 04:20 PM

just a question

how can put this for show in every pages? in the top or in bottom

paulfletcher 04-17-2006 04:46 PM

Are you asking me how you do this in GAB?

Thanks,
Paul

Daniel 04-17-2006 11:24 PM

Quote:

Originally Posted by digitalltv
just a question

how can put this for show in every pages? in the top or in bottom

Add this to the very top of your footer (for the bottom)

PHP Code:

<!-- SCROLL DOWN TO "CUSTIMAZATION START" TO CUSTIMZE ADS -->
<
br />
<
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


digitalltv 04-18-2006 05:17 PM

ths is done

other thing can you setup this script for count the hits?

Daniel 04-19-2006 02:21 AM

Nope, perhaps this hack may be more suitable for you: https://vborg.vbsupport.ru/showthread.php?t=104432

paulfletcher 04-19-2006 12:01 PM

This is the solution I use (GAB - Geek Advertising Banner System). It costs a few dollars, but it really does a great job at an affordable price.

located at www.thevbgeek.com

GAB is located at http://www.thevbgeek.com/geeker.php?...ayproduct&id=9

Thanks,
Paul

Daniel 04-19-2006 03:33 PM

Yup, we got it the first time...

Tony G 04-21-2006 08:36 AM

Moving to vb3.5 template mods section as requested by author.

sc4r3d 04-21-2006 06:20 PM

Good one. Thanks


All times are GMT. The time now is 07:42 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.01259 seconds
  • Memory Usage 1,852KB
  • 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
  • (1)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (29)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