vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Show Thread Enhancements - Adsense as second post. 2 Sizes - Big for guests, small for members (https://vborg.vbsupport.ru/showthread.php?t=136743)

DiSpy 03-31-2007 10:47 PM

After a day of searching the forums, I found this:

Code:

<if condition="$post['islastshown']">
Trying it now... will post again if it doesn't work.

EDIT: Works perfect.

popowich 04-15-2007 01:16 AM

StarBug, you're my hero! At least for the next few minutes. :D

I wish there was a way to highlight this mod to separate it from the other "adsense in threads" mods.

-Raymond

Caddyman 04-15-2007 05:28 AM

how can i show this after say the 5th post on every page?

popowich 04-15-2007 10:21 AM

I think after the first makes more sense. You won't always have 4 posts.

Anyways, is there a way to make it show up as the second post on every page?

-Raymond

Mrdby 04-17-2007 04:07 PM

i added it...saved it and it's not showing anything

Mrdby 04-17-2007 04:26 PM

i use 3.6.5 i added everything..the google link show up..but not the referral icon or anything.

StarBuG 04-17-2007 05:15 PM

Do you use a ad blocker?
Sometimes the easiest solution is the right one.

If not copy and paste my code above into the templates and check if it shows up.
If it does you did something wrong. Replace my adsense code with yours and you are good to go.

@popowich: to be honest I have no clue. I am not a big programmer, I call myself "modifier" ;)

Mrdby 04-17-2007 05:22 PM

I will try again

Mrdby 04-18-2007 12:41 AM

i added your full code...on the default and all i get is the KATRINA add showing.

StarBuG 04-18-2007 03:41 PM

Ok then you have no problem at all ;)
You are currently receiving public service ads.

Google adsense takes a few days to display relevant ads to your site.

Replace my code with your adsense code (you can leave mine if you feel generous :p) and wait a few days. The ads will show up over time, depending on the saturation of your keywords.
And make your forum readable for guests. Only this way google can serve you relevant ads.

If you want to take a read on google adsense I would suggest:

http://forums.digitalpoint.com/

This is a great community for webmasters.

Good Luck

StarBuG

Mrdby 04-18-2007 03:42 PM

what do u mean? I thought soon as I ad that code..the ads should come up? I did just add google ad at the footer of my forum and they start running asap.

StarBuG 04-19-2007 03:47 AM

Read the adsense FAQ.

This is not a problem of this modification, it is a normal adsense behavior

Mrdby 04-19-2007 03:49 AM

Quote:

Originally Posted by StarBuG (Post 1230985)
Read the adsense FAQ.

This is not a problem of this modification, it is a normal adsense behavior

So how long does it take?

StarBuG 04-19-2007 02:45 PM

Normaly 3-5 days.

Take a read in the forum I suggested above.
You'll find every question answered there plus hundrets of tips to improve your adsense earnings. ;)

StarBuG 05-06-2007 07:43 AM

I have changed the condition to show the advertising on every page as second post, not just on page one.

The old condition was:
Code:

<if condition="THIS_SCRIPT == 'showthread' AND  $post[postid] == $GLOBALS['qrfirstpostid'] AND ($show[member])">
the new condition is:
Code:

<if condition="THIS_SCRIPT == 'showthread' AND !$GLOBALS['FIRSTPOSTID'] AND ($show[member])">
Simply replace the old conditions (2x) with the new one and the ads will show on every page of every thread as second post.

StarBuG

The hack is now version 1.1

Best regards

StarBuG

Propozime 06-09-2007 10:09 PM

hi guys i done everything what is sayis in the install pack but nothing is showing up can some one help me please

StarBuG 06-10-2007 08:46 AM

Do you use an adblock software?

Propozime 06-10-2007 09:12 AM

i fixt this thanks :)

StarBuG 06-10-2007 09:29 AM

You'r welcome ;)

StarBuG 06-11-2007 09:52 AM

I have just released an add-on for this mod.


ADD-ON:
In addition you can add a Google Adsense link unit as last post of a thread on any page for members and guests. This advertising will only show if the thread has more then one post so that it does not show 2 advertisings directly below each other in case that the thread has no replies yet. Google Adsense has updated its ToS so that you are now allowed to use up to three link units on one page. So if you already use my "Adsense Link Unit in Navbar" Mod there woun't be a problem.

I hope you like it.

Let me know how it works out ;)

StarBuG

popowich 06-16-2007 07:18 PM

Quote:

v1.15 - 2007/06/11: Add-on - Google Adsense Link unit as last post of every thread for guests and members.
It makes more sense to me for this to be a separate mod.

It is out of scope for the original product name.

Actually, I've already done the linkbar as last post w/ another product.

-Raymond

MajorFm.com 06-17-2007 02:15 PM

how can i make the link unit be the 2nd post?

StarBuG 06-17-2007 04:11 PM

Just replace the existing adsense code in my original modification with the adsense code for the link unit.

John Diver 07-01-2007 06:41 PM

Nothing is coming up on my design for some reason...

This is my postbit code:

Quote:

<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr>
<if condition="$show['announcement']">
<td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]" colspan="2">
<img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" />
<phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase>
</td>
<else />
<td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-right: 0px" $post[scrolltothis]>
<!-- status icon and date -->
<a name="post$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" /></a>
$post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
$post[firstnewinsert]
<!-- / status icon and date -->
</td>
<td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-left: 0px" align="$stylevar[right]">
&nbsp;
<if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a></if>
<if condition="$show['inlinemod']">
<input type="checkbox" name="plist[$postid]" id="plist_$postid" style="vertical-align:middle; padding:0px; margin:0px 0px 0px 5px" value="$post[checkbox_value]" />
</if>
</td>
</if>
</tr>
<tr valign="top">
<td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px">

<div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]
</if>
</div>

<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>

<if condition="$show['avatar']">
<div class="smallfont">
&nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</div>
</if>

<div class="smallfont">
&nbsp;<br />
<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
<div>
$vbphrase[posts]: $post[posts]
</div>
<if condition="$show['infraction']"><div>$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
<if condition="$show['reputation']"><div><if condition="$show['reppower']"><span id="reppower_$post[postid]_$post[userid]">$vbphrase[reppower]</span>: $post[reppower]</if><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
</div>

</td>
<if condition="$show['moderated']">
<td class="alt2" id="td_post_$post[postid]" style="border-right: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">
<else />
<td class="alt1" id="td_post_$post[postid]" style="border-right: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">
</if>

<if condition="$show['messageicon'] OR $post['title']">
<!-- icon and title -->
<div class="smallfont">
<if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
<if condition="$post['title']"><strong>$post[title]</strong></if>
</div>
<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
<!-- / icon and title -->
</if>

<!-- message -->
<div id="post_message_$post[postid]">$post[message]</div>
<!-- / message -->

<if condition="$show['attachments']">
<!-- attachments -->
<div style="padding:$stylevar[cellpadding]px">

<if condition="$show['thumbnailattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_thumbnails]</legend>
<div style="padding:$stylevar[formspacer]px">
$post[thumbnailattachments]
</div>
</fieldset>
</if>

<if condition="$show['imageattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_images]</legend>
<div style="padding:$stylevar[formspacer]px">
$post[imageattachments]
</div>
</fieldset>
</if>

<if condition="$show['imageattachmentlink']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_images]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[imageattachmentlinks]
</table>
</fieldset>
</if>

<if condition="$show['otherattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_files]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[otherattachments]
</table>
</fieldset>
</if>

<if condition="$show['moderatedattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attachments_pending_approval]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[moderatedattachments]
</table>
</fieldset>
</if>

</div>
<!-- / attachments -->
</if>

<if condition="$post['signature']">
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>

<if condition="$show['postedited']">
<!-- edit note -->
<div class="smallfont"> <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
<em>
<phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
<if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
</em>
</div>
<!-- / edit note -->
</if>

</td>
</tr>
<tr>
<td class="alt2" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px">
$post[onlinestatus]
<if condition="$show['reputationlink']">
<span id="reputationmenu_$post[postid]"><a href="reputation.php?$session[sessionurl]p=$post[postid]" rel="nofollow" id="reputation_$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" border="0" /></a></span>
<if condition="$show['popups']"><script type="text/javascript"> vbrep_register("$post[postid]")</script></if>
</if>
<if condition="$show['infractionlink']"><a href="infraction.php?$session[sessionurl]do=report&amp;p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/infraction.gif" alt="<phrase 1="$post[username]">$vbphrase[add_infraction_for_x]</phrase>" border="0" /></a></if>
<if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a></if>
$post[iplogged]
&nbsp;
</td>
<if condition="$show['moderated']">
<td class="alt2" align="$stylevar[right]" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-left: 0px; border-top: 0px">
<else />
<td class="alt1" align="$stylevar[right]" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-left: 0px; border-top: 0px">
</if>

<!-- controls -->
<if condition="$post['editlink']">
<img style="display: none" id="progress_$postid" src="$stylevar[imgdir_misc]/progress.gif" alt="$vbphrase[loading_editor_please_wait]" />
<a href="$post[editlink]" name="vB::QuickEdit::$post[postid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
</if>
<if condition="$post['forwardlink']">
<a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" border="0" /></a>
</if>
<if condition="$post['replylink']">
<a href="$post[replylink]" rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>
</if>
<if condition="$show['multiquote_post']">
<a href="$post[replylink]" rel="nofollow" onclick="return false"><img src="$stylevar[imgdir_button]/multiquote_<if condition="$show['multiquote_selected']">on<else />off</if>.gif" alt="$vbphrase[multi_quote_this_message]" border="0" id="mq_$post[postid]" /></a>
</if>
<if condition="$show['quickreply'] AND !$show['threadedmode']">
<a href="$post[replylink]" rel="nofollow" id="qr_$post[postid]" onclick="return false"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a>
</if>
<if condition="$show['moderated']">
<img src="$stylevar[imgdir_misc]/moderated.gif" alt="$vbphrase[moderated_post]" border="0" />
</if>
<if condition="$show['deletedpost']">
<img src="$stylevar[imgdir_misc]/trashcan.gif" alt="$vbphrase[deleted_post]" border="0" />
</if>
<if condition="$show['redcard']">
<a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/redcard.gif" alt="$vbphrase[received_infraction]" border="0" /></a>
<else />
<if condition="$show['yellowcard']">
<a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/yellowcard.gif" alt="$vbphrase[received_warning]" border="0" /></a>
</if>
</if>
<!-- / controls -->
</td>
</tr>
</table>

<!-- post $post[postid] popup menu -->
<div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$post[username]</td>
</tr>
<if condition="$show['profile']">
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$post[userid]">$vbphrase[view_public_profile]</a></td></tr>
</if>
<if condition="$show['pmlink']">
<tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['emaillink']">
<tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['homepage']">
<tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
</if>
<if condition="$show['search']">
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[find_more_posts_by_x]</phrase></a></td></tr>
</if>
<if condition="$post['userid'] AND $show['member']">
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
</if>
</table>
</div>
<!-- / post $post[postid] popup menu -->
<!-- Google AdSense in Posts for Guests -->
<if condition="THIS_SCRIPT == 'showthread' AND !$GLOBALS['FIRSTPOSTID'] AND (!$show[member])">

<if condition="$show['spacer']">
</div>
$spacer_close
</if>

<if condition="$show['spacer']">
$spacer_open
<div id="edit$post[postid]" style="padding:0px 0px $stylevar[cellpadding]px 0px">
<if condition="!$post['islastshown']"><!-- this is not the last post shown on the page --></if>
</if>

<table class="tborder" id="post$post[postid]" align="center" border="0" cellpadding="6" cellspacing="1" width="100%">
<tbody><tr>
<td class="thead" id="currentPost">
<div class="normal">
<!-- status icon and date -->
<img title="Alt" class="inlineimg" src="images/statusicon/post_old.gif" alt="Alt" border="0"></a> Today
<!-- / status icon and date -->
</div>
</td>
</tr>
<tr>
<td class="alt2" style="padding: 0px;">
<!-- user info -->
<table border="0" cellpadding="0" cellspacing="6" width="100%">
<tbody>
<tr>
<td class="alt2">
<!-- Adsense Referal Code start -->
<script type="text/javascript"><!--
google_ad_client = "pub-5988350962952956";
google_ad_width = 125;
google_ad_height = 125;
google_ad_format = "125x125_as_rimg";
google_cpa_choice = "CAAQ0f2XhAIaCA6IC4oIlz0_KK2293M";
google_ad_channel = "6607026933";
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
Tester1
<!-- Adsense Referal Code end-->

</td>
<td nowrap="nowrap">
<span class="bigusername"><u>Advertising</u></span><br />
<span class="smallfont">Signup Through Us For Free POker Tournaments</span>
</td>
<td width="100%">&nbsp;</td>
<td valign="top" nowrap="nowrap">
<div class="smallfont">
<div>This advertising will not be shown</div>
<div>in this way to registered members.</div>
<div><a href="register.php">Register</a> your free account today</div>
<div>and become a member on</a></div>
<div>$vboptions[bbtitle]</div>
<div>By registering you will receive</div>
<div>free entry to our regular tournaments!</div><br />
<div><a href="register.php">Register</a> your free account today</div>
</div>
</td>
</tr>
</tbody></table>
<!-- / user info -->
</td>
</tr>
<tr>
<td class="alt1" id="td_post_$post[postid]">
<!-- message, attachments, sig -->
<!-- icon and title -->
<div class="smallfont">

<img title="Standard" class="inlineimg" src="images/icons/icon14.gif" alt="Standard" border="0">
<strong>Unique Bonuses Just For DeuceAce Members!</strong>
</div>
<hr style="color: rgb(134, 134, 134);" size="1">
<!-- / icon and title -->
<!-- message -->
<div>
<!-- Adsense large rectangle start -->
Tester2
<!-- Adsense large rectangle end -->
</div>
<!-- / message -->
<!-- message, attachments, sig -->
</td>
</tr>
</tbody></table>
<!-- / post $post[postid] popup menu -->
</if>
<!-- / Google AdSense in Posts for Guests End-->

<!-- Google AdSense in Posts for Members -->
<if condition="THIS_SCRIPT == 'showthread' AND !$GLOBALS['FIRSTPOSTID'] AND ($show[member])">

<if condition="$show['spacer']">
</div>
$spacer_close
</if>

<if condition="$show['spacer']">
$spacer_open
<div id="edit$post[postid]" style="padding:0px 0px $stylevar[cellpadding]px 0px">
<if condition="!$post['islastshown']"><!-- this is not the last post shown on the page --></if>
</if>

<table class="tborder" id="post$post[postid]" align="center" border="0" cellpadding="6" cellspacing="1" width="100%">
<tbody><tr>
<td class="thead" id="td_post_$post[postid]">
<div class="normal">
&nbsp;
</div>
</td>
</tr>
<tr>
<td class="alt1" align="center">
<div>
Test Guests End //
</div>
</td>
</tr>
</tbody>
</table>
</if>
<!-- / Google AdSense in Posts for Members end-->
<!-- Google AdSense Link unit as last post for all -->
<if condition="THIS_SCRIPT == 'showthread' AND $post['islastshown'] and !$GLOBALS['vbulletin']->GPC['ajax'] AND $post[postcount]!=1">

<if condition="$show['spacer']">
</div>
$spacer_close
</if>

<if condition="$show['spacer']">
$spacer_open
<div id="edit$post[postid]" style="padding:0px 0px $stylevar[cellpadding]px 0px">
<if condition="!$post['islastshown']"><!-- this is not the last post shown on the page --></if>
</if>

<table class="tborder" id="post$post[postid]" align="center" border="0" cellpadding="6" cellspacing="1" width="100%">
<tbody><tr>
<td class="thead" id="td_post_$post[postid]">
<div class="normal">
&nbsp;
</div>
</td>
</tr>
<tr>
<td class="alt1" align="center">
<div>
Testing End//
</div>
</td>
</tr>
</tbody>
</table>
</if>
<!-- Google AdSense Link unit as last post for all -->
ANyone know what could be wrong?
I just changed a few things for the adsense code for testing.

Looking forward to getting this working :)

Thanks

StarBuG 07-03-2007 03:34 PM

Add your template as txt file attachment, it is horrible to read through code like this ;)

John Diver 07-04-2007 02:56 PM

Added :)

Thanks for the help!

StarBuG 07-05-2007 05:18 PM

I just created a new style and pasted your postbit into it.

It works perfectly for me.

Are you sure you are not using an adblocker that blocks advertising?
Do you see the ads here: http://www.patientenfragen.net/showthread.php?t=2278

???

Greetings

StarBuG

John Diver 07-06-2007 09:38 AM

Thanks for this! Best support I have seen for a product!

I see the ad on your style and don't have any adblockers installed.

I can't think of any reason why it wouldn't be showing up.

Thanks again

StarBuG 07-06-2007 11:30 AM

Is this the first time you are using adsense on your site?

If it is it can take up to 3 weeks for google to show ads on your site.
In my adsense code I have set the ads to not show public service ads instead just show the background color.
Maybe this is the case for you too?

StarBuG

John Diver 07-13-2007 10:50 AM

Hey,

Sorry, I thought I replied to this.

If you take a look at the code, Im not using adsense but different advertising code for poker sites, so adsense crawling shouldnt be a problem.

Thanks
John

John Diver 07-20-2007 11:04 AM

Hey,

Just checking if you have any idea whats wrong?

StarBuG 07-20-2007 04:49 PM

Like I said, I used your postbit on my forum and everything worked perfect

There seems to be something wrong with the different ad code you are using.

Sorry, I can't help you here.

StarBuG

esck 08-13-2007 09:02 PM

great mod, thanks a lot

jacki 08-21-2007 07:47 PM

in below code, post is specified, I want to show that in three different posts, how can I manage it?


PHP Code:

<!-- Adsense large rectangle start -->
<if 
condition="(THIS_SCRIPT == showthread) AND ($post[postcount] == '1,')">
<
br /> 


StarBuG 08-22-2007 02:43 PM

Code:

<if condition="(THIS_SCRIPT == showthread) AND ($post[postcount] == '1') OR ($post[postcount] == '2') OR ($post[postcount] == '3')">

jmw 08-28-2007 10:38 PM

Like this hack. Starbug,

1. Does it work with 3.6.8?
2. If so, how can I just show ads to everybody, myself admin included?

Using the legacy.

WarLion 08-29-2007 11:57 AM

Quote:

Originally Posted by StarBuG (Post 1192670)
If you are asking that, then you are using the "postbit" template ;)

To use the "postbit_legacy" template you have to copy the content from that template to "Postbit" ;)

StarBuG, actually no you can change your style of postbit in admincp --> vboptions --> configuration style & lenguage

, this is a cool hack thanks for that im testing in vb3.6.8 but i haave one problem , mi second addon is not showing nothis the firs one only shows Make your donation today (about the huracain that hit here in yucatan "im from cancun that was close") i just get yi adsense is this ok , this will show in a few days or i am making somethin wrong

if you like to see
http://www.warlionhosting.com/foro/s...hp?p=70#post70


thanks for you help

StarBuG 08-29-2007 02:29 PM

Yes it works with 3.6.8.
to show it to everyone remove the member part code block and from the guest code (at the top) remove "AND (!$show[member])" from the condition.

Adsense shows public service ads if your site is not yet spidered, this will change in a few days.

StarBuG

romanticyao 02-02-2008 08:46 PM

this is very useful, thanx

xony 06-12-2008 09:07 PM

3.7.1. not found?:(


All times are GMT. The time now is 06:49 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.01441 seconds
  • Memory Usage 1,907KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_php_printable
  • (4)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
  • (40)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