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)
-   -   Randomly positioned ad in between postbits in showthread (https://vborg.vbsupport.ru/showthread.php?t=98057)

fluentdesigns 02-05-2006 09:05 PM

heheh im lookin im lookin... :)

hotrod1 02-21-2006 02:07 PM

Great hack, thanks a bunch!

hbalagh1 03-06-2006 07:55 PM

how can we not have this display on certain forums ;)
thanks

UK Jimbo 03-06-2006 08:08 PM

Quote:

Originally Posted by hbalagh1
how can we not have this display on certain forums ;)
thanks

You should be able to test against $thread['forumid'] with something like:

don't display in forum id 22
Code:

<if condition="$GLOBALS['adsense_position'] == $post['postcount'] && $GLOBALS['adsense_position'] > 0 && $thread['forumid'] != 22">
don't display in forums id 21,22 or 23
Code:

<if condition="$GLOBALS['adsense_position'] == $post['postcount'] && $GLOBALS['adsense_position'] > 0 && ! in_array($thread['forumid'],array(21,22,23))">
I haven't tested these - let me know how you get on.

hbalagh1 03-06-2006 08:49 PM

seems to work great :)

Fuzz 03-07-2006 07:00 PM

***INSTALL****

Works great and thank you for sharing. Much appreciated!

Gottcha 03-07-2006 07:50 PM

edited the templated....installed the xml and i see the sponsored link on the forums but i dont see the ads .... any ideas?

UK Jimbo 03-07-2006 08:12 PM

Quote:

Originally Posted by Gottcha
edited the templated....installed the xml and i see the sponsored link on the forums but i dont see the ads .... any ideas?

Did you put the Google AdSense code where the comment says: <!-- ad code goes here -->

?

Gottcha 03-07-2006 09:36 PM

yes i did .... replaced the whole line with the adsense code.

UK Jimbo 03-07-2006 10:05 PM

Quote:

Originally Posted by Gottcha
yes i did .... replaced the whole line with the adsense code.

can you PM me the contents of the template please?

tribedude 03-08-2006 06:17 PM

This was working great for us initially (so I thought) but I am now getting many users who are complaining of blank pages and threads that lead to http:///

It seems all of these users are on IE. I haven't been able to replicate this behaviour on IE or Firefox.

Here is my postbit legacy:

Quote:

<!-- post #$post[postid] -->
<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 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" 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" $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" 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]" onclick="inlineMod.toggle(this)" />
</if>
</td>
</if>
</tr>
<tr valign="top">
<td class="alt2" width="175">

<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]" 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['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower]</if>$post[reputationdisplay]</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]">
<else />
<td class="alt1" id="td_post_$post[postid]">
</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">
$post[onlinestatus]
<if condition="$show['reputationlink']"><a href="reputation.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" border="0" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" /></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]">
<else />
<td class="alt1" align="$stylevar[right]">
</if>
<!-- controls -->
<if condition="$post['editlink']">
<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['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>
<!-- / 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 -->

<if condition="$show['spacer']">
</div>
$spacer_close
</if>
<!-- / post #$post[postid] -->
<if condition="$GLOBALS['adsense_position'] == $post['postcount'] && $GLOBALS['adsense_position'] > 0 && $thread['forumid'] != 13">
$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"><a name="post$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" /></a></td>
</tr>
<tr>
<td class="alt1" align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-xxxxxxxxxxxxx";
google_alternate_ad_url = "http://";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text";
google_ad_channel ="5418150519";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "22229C";
google_color_url = "000000";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

</td>
</tr>
</table>

</div>
$spacer_close
</if>

SIINSI 03-08-2006 06:42 PM

Quote:

Originally Posted by tribedude
This was working great for us initially (so I thought) but I am now getting many users who are complaining of blank pages and threads that lead to http:///

It seems all of these users are on IE. I haven't been able to replicate this behaviour on IE or Firefox.

Here is my postbit legacy:

I dunno if it's a coincidence or what but, my Firefox users have reported quick replying sending them to a blank white page.... I dunno if it's this hack. I dunno what it is...

tribedude 03-08-2006 06:46 PM

I think it might be the google alternate ad going to http://

I just saw that and put a functioning URL in there and we will see what happens....

SIINSI 03-08-2006 09:07 PM

Quote:

Originally Posted by tribedude
I think it might be the google alternate ad going to http://

I just saw that and put a functioning URL in there and we will see what happens....

Try this man....

http://www.vbulletin.com/forum/showt...hlight=firefox

http://www.vbulletin.com/forum/showthread.php?t=157022

Worked for me :D

Miguel

tribedude 03-09-2006 01:46 AM

Quote:

Originally Posted by SIINSI

Thanks Miguel but installing this plugin solved the quick reply issue for me a long time ago, however I am still getting complaints from users who click on threads in IE and end up going to http:///

UK Jimbo 03-09-2006 07:28 AM

Thanks for the PMs Gottcha, I think that your problem is running multiple Google ads on the same page. Have a read here and try doing a search for "multiple" in the Google AdSense search section.

mattyk72 03-21-2006 02:28 AM

clicking install :)

Marv 03-23-2006 11:06 AM

Hi UK Jimbo,

I?ve got my own custom Ads showing up above the first post and under the lastpost. Any chance that your plugin could show the Ads only under the firstpost and above the lastpost ? Otherwise sometimes there would be 2 Ads showing up and that?s not nice and clean..

Guess it could be done with another conditional in
PHP Code:

<if condition="$GLOBALS['adsense_position'] == $post['postcount'] && $GLOBALS['adsense_position'] > 0"

I need it that way, that ads delivered by this plugin only appear
  1. under the first post
  2. above the last post
  3. if the whole thread has at least 3 posts (so the plugin-ads can show up between the first and second or second and third post)


Any ideas ?

Marv 03-25-2006 08:24 AM

Quote:

Originally Posted by Marv
I need it that way, that ads delivered by this plugin only appear
  1. under the first post
  2. above the last post
  3. if the whole thread has at least 3 posts (so the plugin-ads can show up between the first and second or second and third post)

Jason,

even better would be a second one for registered users where Adsense only appears:
  1. under the first post
  2. above the last post
  3. if the whole thread has at least 5 posts (so the plugin-ads can show up without overloading the thread with ads)
  4. under the lastpost as Andreas mentioned before. The reason is clear - that?s the post most users read first and should lead to the best reveniews

Would turn this plug-in into a must-have for all AdSense and Yahoo publishers, which have already own custom ads or adservers running on their forums ;)

Marv 03-30-2006 01:39 PM

Quote:

Originally Posted by Marv
  1. under the first post
  2. above the last post ($perpage=10)
  3. if the whole thread has at least 3 posts (so the plugin-ads can show up between the first and second or second and third post)

May be someone can help me out. I?ve tried to implement these 3 conditions that way_

PHP Code:

<!-- RandomAds for unregistered users -->
<if 
condition="is_member_of($bbuserinfo, 1) AND $GLOBALS[threadinfo][replycount] >= 3">
<if 
condition="$post['postid'] > '1' AND $post['postid'] <> '10' AND $post['postid'] <> '20' AND $post['postid'] <> '30' AND $post['postid'] <> '40' AND $post['postid'] <> '50' AND $post['postid'] <> '60' AND $post['postid'] <> '70' AND $post['postid'] <> '80' AND $post['postid'] <> '90'">
<if 
condition="$GLOBALS['adsense_position'] == $post['postcount'] && $GLOBALS['adsense_position'] > 0">
$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="alt2" align="center">
<
script type="text/javascript"><!--
google_ad_client "pub-xxxxxxxxxxxxx";
google_alternate_ad_url "http://www.mysite.com/forum/google_adsense_script.html";
google_ad_width 728;
google_ad_height 90;
google_ad_format "728x90_as";
google_ad_type "text";
google_ad_channel ="9100589350";
google_color_border "EFF0F3";
google_color_bg "EFF0F3";
google_color_link "445683";
google_color_url "445683";
google_color_text "798AB4";
//--></script>
<script type="text/javascript"
  
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</
script>
    </
td>
</
tr>
</
table>
</
div>
$spacer_close
</if>
</if>
</if>
<!-- / 
RandomAds for unregistered users --> 

But I hit and miss. Does anyone see, where I went wrong..? Guess I can?t see the wood because of all the trees... :confused:

UK Jimbo 03-30-2006 01:47 PM

@Marv

Try replacing the plugin code with this (untested)

edit: removed, that's not going to work. Have a meeting to go to now but will look at it a bit later

UK Jimbo 03-30-2006 01:50 PM

Took less time than I thought - give this a try:

Code:

// only for non-threaded display
if($threadedmode == 0) {

        // only need to do the calculation once
        if( $counter == 2 && empty($GLOBALS['adsense_position'] && $totalposts >= 3 ) ) {

                $_min = $postcount;
                $_max = min($totalposts,$_min+$perpage-1) - 1;

                $GLOBALS['adsense_position'] = rand($_min,$_max);
        }

}


EyeCrave 03-30-2006 11:59 PM

I get this error with that code above:

Parse error: parse error, unexpected T_BOOLEAN_AND, expecting ')' in /pathto/showthread.php(1031) : eval()'d code on line 5

BTW - awesome plugin.

UK Jimbo 03-31-2006 06:38 AM

OOps - that's what happens when you do things in a hurry. Try this for size:

Code:

// only for non-threaded display
if($threadedmode == 0) {

        // only need to do the calculation once
        if( $counter == 2 && empty($GLOBALS['adsense_position']) && $totalposts >= 3 ) {

                $_min = $postcount;
                $_max = min($totalposts,$_min+$perpage-1) - 1;

                $GLOBALS['adsense_position'] = rand($_min,$_max);
        }

}


EyeCrave 03-31-2006 08:02 PM

Works. Thank you!

Marv 04-01-2006 08:46 AM

Quote:

Originally Posted by UK Jimbo
OOps - that's what happens when you do things in a hurry.

Thx UK-Jimbo,

I?ll give it a try and report back to you asap.

The Chief 04-05-2006 04:23 PM

installed and works great!!

UK Jimbo 04-06-2006 02:38 AM

Quote:

Originally Posted by Marv
Thx UK-Jimbo,

I?ll give it a try and report back to you asap.

Any luck?

GrendelKhan{TSU 04-06-2006 11:17 AM

I don't know if cause I installed this wrong or the Googlebot just isn't doing its job (so to speak)...

but I'm having trouble actually getting relevant ads. I don't think the googlebot is actually "reading" the content of the page. I always get ads for "free forum software" and related.

ie: I think its basically only reading the footer. or something

any ideas as to what is blocking or causing the Gbot to not actually dig into the content?

UK Jimbo 04-06-2006 03:09 PM

Hi GrendelKhan

Are the pages publically visible or do you have to register to see them? If Googlebot can't get at the pages (and content) from the same URL that you're using to access it then it can't index it. Sometimes it might take a while for pages to get indexed. I'd give it a couple of days and see how it goes. Post back and let me know how you get on.

GrendelKhan{TSU 04-08-2006 12:28 PM

Quote:

Originally Posted by UK Jimbo
Hi GrendelKhan

Are the pages publically visible or do you have to register to see them? If Googlebot can't get at the pages (and content) from the same URL that you're using to access it then it can't index it. Sometimes it might take a while for pages to get indexed. I'd give it a couple of days and see how it goes. Post back and let me know how you get on.

Hey jimbo, thanks for the reply (sorry I've been out this week and didn't see it).

The threads are all public. (no registration necessary to read)
And its been like this for weeks. :/

(eg:
here's one with a ton of text about the superbowl and ward winning MVP...but again, the ads are still "free forum software etc."
http://www.naestar.net/forums/showthread.php?t=19196 )

UK Jimbo 04-09-2006 08:37 AM

Quote:

Originally Posted by GrendelKhan{TSU
(eg:
here's one with a ton of text about the superbowl and ward winning MVP...but again, the ads are still "free forum software etc."
http://www.naestar.net/forums/showthread.php?t=19196 )

Hotels in Seoul of Korea
Animaged images for ?150
All Steelers games on DVD

were the ads I got. Looks like it's working.

GrendelKhan{TSU 04-09-2006 09:11 AM

Quote:

Originally Posted by UK Jimbo
Hotels in Seoul of Korea
Animaged images for ?150
All Steelers games on DVD

were the ads I got. Looks like it's working.

really? :/
is some kinda of geo-location in effect? where are you located?

I get 4 forum software or other related ads. :( (ie: pretty useless)
(see image).

can you check some other threads and see if you get related ads? I'd appreciated it greatly. I want to see if its just feeding me those ads.

tamborinegal 04-10-2006 01:44 AM

Works very well. Thank you. :)

Clancy

Makaveli105 04-10-2006 03:20 PM

Quote:

Originally Posted by GrendelKhan{TSU
really? :/
is some kinda of geo-location in effect? where are you located?

I get 4 forum software or other related ads. :( (ie: pretty useless)
(see image).

can you check some other threads and see if you get related ads? I'd appreciated it greatly. I want to see if its just feeding me those ads.

I see relevant ads.

Steelers pendants
Pittsburg Steelers
Pittsburg Steelers
Seoul Hotels

---

Thanks UK Jimbo, I'll give it a go :D

arossphoto 04-12-2006 12:29 AM

Quote:

Originally Posted by UK Jimbo
Took less time than I thought - give this a try:

Code:

// only for non-threaded display
if($threadedmode == 0) {

        // only need to do the calculation once
        if( $counter == 2 && empty($GLOBALS['adsense_position'] && $totalposts >= 3 ) ) {

                $_min = $postcount;
                $_max = min($totalposts,$_min+$perpage-1) - 1;

                $GLOBALS['adsense_position'] = rand($_min,$_max);
        }

}


I've installed and it's working very well. Will the code above display the ads after the first post and before the last? Would you mind showing me what the whole code for the post bit would look like, and is it possible to show the ads to certain usergroups?

Cheers.

Marv 04-12-2006 12:00 PM

Quote:

Originally Posted by UK Jimbo
Any luck?

Sorry for the delay, Jimbo :)

I?ve installed your code and modified it, so that certain usergroups see/don?t see ads, and to create different ad-channels to have a better overview (targeting).

The code seemed to work fine, but in the last days I had to notice that ads also appeared under the last post. Dunno why, but that?s the situation by now.

UK Jimbo 04-12-2006 12:10 PM

Hi guys - I'm really tied up at the moment. Will take a look ASAP but that might be in a few days time.

James

Niall Fernie 04-13-2006 03:04 PM

I know this is a bit basic, but I missed it on about 20 ocassions during my installation on this plugin.

Make sure you have the plugin/hook system enabled on your board, I was doing a test install on my other vB setup (small site - new install) and could not get this to work at all, until I read the text that vB had been almost shouting at me since the start "the plugin/hook system is currently disabled..."

Enabled it and worked first time.

I know you've probably just wasted 30 seconds of your life reading this, but I've just read every post here before reading the error message so just hoping to save someone 10 minutes.

Great plugin, easy install (especially if you're not as dopy as me)

[cleeeck]INSTALL[/cleeeck]

sandrodz 04-13-2006 11:13 PM

installed, works like charm... only concern is if I can set it to display at the end of the last post only? or after the first post only? cause I believe this kind of random placing isn't efficient in my case... thank you!


All times are GMT. The time now is 12:40 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.01802 seconds
  • Memory Usage 1,925KB
  • 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
  • (5)bbcode_code_printable
  • (2)bbcode_php_printable
  • (17)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
  • (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