vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Banner Ads System (https://vborg.vbsupport.ru/showthread.php?t=104432)

calgdsm 07-27-2006 01:09 AM

Quote:

Originally Posted by burntire
Go to your Banner Ad Template and Replace the highlighted color below with the full URL to banner.php

Example <a href="http://www.yoursite.com/forums/banner.php?

<if condition="$vboptions['bannersys_mode']">
<if condition="$bbuserinfo['userid'] == '0'">
<br />
<table class="tborder" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td><a href="banner.php?$session[sessionurl]do=redirect&bannerid=$ads[bannerid]" <if condition="$vboptions['bannersys_popup']">target='_blank'</if>><img src="$ads[imgurl]" width="$ads[bwidth]" height="$ads[bheight]" border="0"></a></td>
</td>
</table>
<br />
<else />
<if condition="$vboptions['bannersys_ads2all'] AND $bbuserinfo['userid']">
<br />
<table class="tborder" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td><a href="banner.php?$session[sessionurl]do=redirect&bannerid=$ads[bannerid]" <if condition="$vboptions[bannersys_popup]">target="_blank"</if>"><img src="$ads[imgurl]" width="$ads[bwidth]" height="$ads[bheight]" border="0"></a></td>
</td>
</table>
</if>
</if>
</if>

Nope that didnt work either, the link was trying to go to www.sitename.comdo=redirect&bannerid=$ads3

elliotc 07-27-2006 11:09 PM

Hi guys!

The mod is great, but can anyone said me how post 2-4 banner on the same time (side by side) on the header, with this plug-in?:ermm:

Thanks for any help!!!

calgdsm 07-28-2006 02:45 AM

Burntire,
when i put in the full path it made all the banners go to the same url, any thoughts?

burntire 07-28-2006 09:52 PM

Quote:

Originally Posted by calgdsm
Burntire,
when i put in the full path it made all the banners go to the same url, any thoughts?

Below is the code I use in the bannerads template.
Just so we are clear this fixes the problem of the banner ads not redirecting when clicked on if you are using CMPS to create your sites home page.
Code:

<if condition="$vboptions['bannersys_mode']">
<if condition="$bbuserinfo['userid'] == '0'">
<br />
<table class="tborder" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
        <td><a href="http://www.YOURSITE.com/forums/banner.php?$session[sessionurl]do=redirect&bannerid=$ads[bannerid]" <if condition="$vboptions['bannersys_popup']">target='_blank'</if>><img src="$ads[imgurl]" width="$ads[bwidth]" height="$ads[bheight]" border="0"></a></td>
</td>
</table>
<br />
<else />
<if condition="$vboptions['bannersys_ads2all'] AND $bbuserinfo['userid']">
<br />
<table class="tborder" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
        <td><a href="http://www.YOURSITE.com/forums/banner.php?$session[sessionurl]do=redirect&bannerid=$ads[bannerid]" <if condition="$vboptions[bannersys_popup]">target="_blank"</if>"><img src="$ads[imgurl]" width="$ads[bwidth]" height="$ads[bheight]" border="0"></a></td>
</td>
</table>
</if>
</if>
</if>


calgdsm 07-30-2006 01:37 AM

Quote:

Originally Posted by burntire
Below is the code I use in the bannerads template.
Just so we are clear this fixes the problem of the banner ads not redirecting when clicked on if you are using CMPS to create your sites home page.
Code:

<if condition="$vboptions['bannersys_mode']">
<if condition="$bbuserinfo['userid'] == '0'">
<br />
<table class="tborder" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
        <td><a href="http://www.YOURSITE.com/forums/banner.php?$session[sessionurl]do=redirect&bannerid=$ads[bannerid]" <if condition="$vboptions['bannersys_popup']">target='_blank'</if>><img src="$ads[imgurl]" width="$ads[bwidth]" height="$ads[bheight]" border="0"></a></td>
</td>
</table>
<br />
<else />
<if condition="$vboptions['bannersys_ads2all'] AND $bbuserinfo['userid']">
<br />
<table class="tborder" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
        <td><a href="http://www.YOURSITE.com/forums/banner.php?$session[sessionurl]do=redirect&bannerid=$ads[bannerid]" <if condition="$vboptions[bannersys_popup]">target="_blank"</if>"><img src="$ads[imgurl]" width="$ads[bwidth]" height="$ads[bheight]" border="0"></a></td>
</td>
</table>
</if>
</if>
</if>


Ok, im not having a problem with cmps anymore as soon as i added "ads" as a hook good to go.

What the problem is the links are not redirecting to the url, it works in the cp but not on the site.

PondPikey 07-30-2006 08:20 AM

Hope someone can gelp. Im using a Kartel fixed theme and am unable to get the banners to display, Im pretty sure ive set it up correctly.

Ive amended the global start hook in banner plugin manager. Im using the following to try and display the banners but with the no luck in FORUMHOME

PHP Code:

<td align="right" valign="middle" width=100%>
$bannerads</a><br


bashy 08-01-2006 08:06 PM

Hi

Can this be placed elsewhere, please see the 3 boxes below the nacbar on my site, i would like this to show in the Partners box (3rd 1)

Is this possible please?

ZacUSNYR 08-03-2006 01:11 PM

Cool idea - perhaps you can add onto it more?

$banneradnav , $banneradfooter, $banneradheader

And selectable when you add a banner in the admincp?

dr.science 08-03-2006 09:02 PM

I have been searching everywhere. Can someone please help me to add a flash banner to my site? I have this mod, fully functional on CMPS and all, bt now I just need to enable flash banners to be used.

Thanks!

burntire 08-06-2006 10:43 PM

This hack is working fine on 3.6.0.


All times are GMT. The time now is 03:13 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.01511 seconds
  • Memory Usage 1,751KB
  • 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
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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