vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Ad banners (https://vborg.vbsupport.ru/showthread.php?t=126851)

randy. 09-17-2006 06:29 PM

Ad banners
 
how can i add adverts to my forums??

satcruiser 09-18-2006 03:11 PM

Quote:

Originally Posted by randy.
how can i add adverts to my forums??

Adding a banner is easy if you are running vbulletin version 3.5 or higher (with plug in capability)

acitvate the admincp control panel
click on add plug in
select hook location (forumhome_complete)
add the following PHP code in the PHP window

echo "<div align='right'>";
echo "<table border='0' cellpadding='0' cellspacing='0'>";
echo "<tr>";
echo "<td width='100%' align='right'>";
echo "<p align='justify'>";
echo "<a href='http://www.EXMAPLE.com/index.html' target='_blank'>";
echo "<img src='http://www.EXAMPLE.com/images/bn_banner.gif' border='0' align='right' width='200' height='80'>";
echo "</a>";
echo "</td>";
echo "</tr>";
echo "</table>";
echo "</div>";

Note***: IF a PHP line above does not start with "ECHO" then it is part of the previous line (darn wrapping) and should have a space after the last word of the previous line.

The above code will create a banner using image file bn_banner.gif and will create a new window (target _blank) when you click on the image. If you do not want to create new window then just remove (target _blank). WWW.EXAMPLE.COM is your website, you can use subdirectory if you want to point to your shopping cart for example use www.example.com/shopping/index.html

The only problem is that this code will be displayed only when you start the forum. If you want the advertisement to show in the threads or when someone reads a post, then just create two more plug ins at these hook locations using the same PHP code, the locations are (showthread_complete and forumdisplay_complete)

I do not know of a "hook location" where I would have to enter this code only once and make it appear on every page. If someone knows, any help will be appreciated.

I selected image size 200 by 80, you can use your own image size, I found it to look the best.

It took me sometime to figure this out, so I hope this will help you. Good luck

randy. 09-20-2006 05:22 PM

i've just upgraded to ver 3.6.1 is there a advertisment plugin i can use?

jackceltic1888 09-20-2006 05:40 PM

Quote:

Originally Posted by randy.
i've just upgraded to ver 3.6.1 is there a advertisment plugin i can use?



Just add the coding in the templates, no need for a plugin:)




PM me if you need anyhelp....;)

Ntfu2 09-20-2006 06:13 PM

Quote:

Originally Posted by satcruiser
Adding a banner is easy if you are running vbulletin version 3.5 or higher (with plug in capability)

acitvate the admincp control panel
click on add plug in
select hook location (forumhome_complete)
add the following PHP code in the PHP window

echo "<div align='right'>";
echo "<table border='0' cellpadding='0' cellspacing='0'>";
echo "<tr>";
echo "<td width='100%' align='right'>";
echo "<p align='justify'>";
echo "<a href='http://www.EXMAPLE.com/index.html' target='_blank'>";
echo "<img src='http://www.EXAMPLE.com/images/bn_banner.gif' border='0' align='right' width='200' height='80'>";
echo "</a>";
echo "</td>";
echo "</tr>";
echo "</table>";
echo "</div>";

Note***: IF a PHP line above does not start with "ECHO" then it is part of the previous line (darn wrapping) and should have a space after the last word of the previous line.

The above code will create a banner using image file bn_banner.gif and will create a new window (target _blank) when you click on the image. If you do not want to create new window then just remove (target _blank). WWW.EXAMPLE.COM is your website, you can use subdirectory if you want to point to your shopping cart for example use www.example.com/shopping/index.html

The only problem is that this code will be displayed only when you start the forum. If you want the advertisement to show in the threads or when someone reads a post, then just create two more plug ins at these hook locations using the same PHP code, the locations are (showthread_complete and forumdisplay_complete)

I do not know of a "hook location" where I would have to enter this code only once and make it appear on every page. If someone knows, any help will be appreciated.

I selected image size 200 by 80, you can use your own image size, I found it to look the best.

It took me sometime to figure this out, so I hope this will help you. Good luck

Maybe the most complicated way i've ever seen anyone add advertisements to their forums...ever

jackceltic1888 09-20-2006 06:20 PM

Quote:

Originally Posted by Ntfu2
Maybe the most complicated way i've ever seen anyone add advertisements to their forums...ever


I agree,


I always use.

Code:

  <td valign="top"><table width="100%" border="0" align="right" cellpadding="0" cellspacing="0" class="topWrapper">
<tr><a href="URL"><img src="BANNER" border="0"></a></tr>
        </table></td>
        </tr>



Regards

randy. 09-28-2006 06:47 PM

im lost

randy. 09-30-2006 12:59 PM

Quote:

Originally Posted by jackceltic1888
I agree,


I always use.

Code:

  <td valign="top"><table width="100%" border="0" align="right" cellpadding="0" cellspacing="0" class="topWrapper">
<tr><a href="URL"><img src="BANNER" border="0"></a></tr>
        </table></td>
        </tr>



Regards


went into templates but got lost, which template do i edit and where exactly do i add the code?

Nathan2006 10-01-2006 02:05 AM

These might help you out ;)

CFM: Google AdSense for Search Integration

Adsense Banners in Your Archive

Info Box - Adsense, Register, and Donations Box (Working Quick Reply)

Adsense & Banner - Posbit < This is really for 3.5.1 but I use it on my 3.61 and it works great 1 banner after the 1st post :)

GrendelKhan{TSU 10-01-2006 04:37 PM

Quote:

Originally Posted by Nathan2006
These might help you out ;)

CFM: Google AdSense for Search Integration

Adsense Banners in Your Archive

Info Box - Adsense, Register, and Donations Box (Working Quick Reply)

Adsense & Banner - Posbit < This is really for 3.5.1 but I use it on my 3.61 and it works great 1 banner after the 1st post :)

thanks!! I always forget where the adsense threads are! ;) :D


All times are GMT. The time now is 03:28 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.00986 seconds
  • Memory Usage 1,748KB
  • 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_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete