vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vBAds: Sharing System (https://vborg.vbsupport.ru/showthread.php?t=115227)

nelto 05-15-2006 11:47 AM

I just looked to this code (since it was breaking my table threads)
Quote:

<if condition="THIS_SCRIPT == 'showthread'">
<if condition="!$GLOBALS['FIRSTPOSTID']">

$spacer_open
<div style="padding:0px 0px $stylevar[cellpadding]px 0px">

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead" align="left"> <if condition="$show['adsense']">$vboptions[bbtitle]$vbphrase[sponsored_links]<else />$post[musername]$vbphrase[sponsored_links]</if></td>
</tr>
<tr>
<td class="alt1" align="center">
<script type="text/javascript"><!--
google_ad_client = "$clientid";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "336699";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_url = "008000";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</if>
</td>
</tr>
</table>

</div>
$spacer_close

</if>
</if>
And Im wonderign hy the tow closing if tags at the bottom since the first 2 if tags are already closed.?

WritersBeat 05-26-2006 12:21 PM

was breaking mine to

netdebut 05-29-2006 10:58 AM

I don't really see this working. I was giving it some time and perhaps it would show up... nothing on my end. I may have to look for another hack.

netdebut 05-30-2006 06:57 AM

Found out it wasn't working when I pasted the script in postbit_legacy, but it works in just postbit.

brady_44 05-30-2006 10:23 AM

Quote:

Originally Posted by nelto
This command:
Default Value: pub-
in the instructions isnt passing the defautl value to the filed.

So unless the hack releaser gets this little bug worked out YOUR members NEED to put pub-123456789

If the hack was working 100% your members didnt had to put pub- becouse it was already there.... but since it isnt working 100% they HAVE to.

Any fix for this? I had it installed briefly, and in several threads there were adsense ads being shown that had absolutely no publisher id... not the thread starters or my own. I would love this if the ads shown were mine by default unless the user specified their adsense code.

netdebut 05-30-2006 11:33 AM

Yep, I'm experiencing the same thing Brady.

netdebut 05-30-2006 11:46 AM

Guess what, I figured out why it's popping out (however, I still can't figure out the client id problem yet):

Quote:

<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</if>
</td>
That's an extra </if>! Remove it and it'll be fine!

netdebut 05-30-2006 11:58 AM

Obviously "$clientid" is not the correct string to display it... please, someone help figure it out. I've been trying to debug it but to no avail. I've only figured out that extra </if> tag.

contactsonia 05-31-2006 05:26 PM

Any ideas how can we desplay the ADs somewhere else than after first post?

I dispaly an AdSense Ad above quick reply textarea so if there is only one post in the thread than the Ad is show twice in a row which doesn't look good.

kobescoresagain 06-01-2006 02:26 PM

I haven't downloaded this yet, considering doing it tonight. My question, is it possible to change the amount of ad shows they get? Either in general or by user, usergroup, or some other way? Thanks


All times are GMT. The time now is 02:04 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.01068 seconds
  • Memory Usage 1,740KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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