![]() |
Quote:
|
Quote:
|
Quote:
|
Quote:
PHP Code:
|
ok...this is all new to me but i added the code and i see the bar that says sponsored ads but i dont see any ads???
www.fragtraders.com/forums |
Quote:
|
good question and i did replace the code with my adsense code.
i also checked another forum from a member on here and didnt see the ads there either this is the other site....again i see the bar but no ads under it http://www.atvpros.net/forums/showthread.php?t=8 |
Quote:
- Make sure the forums threaded and Display options under VBULLETIN OPTIONS is turned off. - Make sure you uploaded the pluging through the browse option and not manually. - Place the code in Postbit at the bottom, or try the Postbit_legacy - Try logging in with a test account set to normal user. Maybe because you are an admin or mod you can't see the ads. - Double check your adsense code since the pluging seems to be working. Whats a link to your site I'll look around see if I have any luck. |
Quote:
EDIT: I just went to your site and I can see the ads just fine. http://www.fragtraders.com/forums/sh...=3097#post3097 |
<a href="http://www.fragtraders.com/forums/showthread.php?t=44" target="_blank">http://www.fragtraders.com/forums/showthread.php?t=44</a>
this is my site |
Quote:
|
just checked a friends computer and all is well...great hack.... now to find out why i cant see the ads
|
I don't think that it's the same problem but worth me mentioning it here.
When I tested this yesterday on visordown.com I noticed on some pages that the adsense ad won't appear when there's already a Google ad on the page and they don't have sufficient information about the page that the ad's on. The issue is covered in the Google Adsense FAQ here Quote:
On a totally different note the CTR has significantly increased since we moved from the old system of fixed position after the third ad to using this hack on. |
I think you have a "&" too much in you first line :)
Quote:
|
Quote:
&& is the same as writing AND and is a logical AND & is a bitwise operator http://uk.php.net/manual/en/language...rs.logical.php http://uk.php.net/manual/en/language...rs.bitwise.php |
Thats very strage, i get a parse error when i use your version, but with one it works perfectly....
|
Copy/paste your template code please.
|
Code:
<!-- post #$post[postid] --> |
Hi DG,
It might be a plan to remove the vBulletin code from that post above. Copy/pasted that template from above and it works fine for me with the &&. I don't why there should/would be an error, it's low level fundamental PHP. You might be better off replacing the && with AND on your system. James, puzzled |
Hi Jimbo,
ok now i'm gettn crazy :D i tested AND --> works perfectly - then thought bout testing && again --> also works :confused: why .... I'm shure i tested it before several times with getting parse errors. |
Magic. PEBKAC.
|
install, thanks for this Jimbo, works perfectly
|
one last question, i think, what would I add to the following to keep this from showing in certain forums...
Code:
<if condition="$GLOBALS['adsense_position'] == $post['postcount'] && $GLOBALS['adsense_position'] > 0 && is_member_of($bbuserinfo,array(1,2,3,4,8,9,11,14,15,19))"> |
I did (it again :D) --> a little modification to show all guests Ad, but let the reg. users choose if they want to get ad-posts or not.
Install: new profile field (single choice) On/Off (parameters) - note the field numer (e.g. 6) Ad the following code at the end of your postbit (_legacy) Code:
<if condition="in_array($bbuserinfo[usergroupid], array(1))"> |
Could some1 tell me where to put the HTML code,
i installed the xml file through plug-in manager, but What Now? |
Quote:
The vBulletin manual explains how to edit styles/templates. :) |
Quote:
PHP Code:
Quote:
|
OK, I added Doc's code....doesn't seem to be working. All members are seeing the ads with the default for members set to off.
Doc, where you have ad start and ad between twice in the code, am I right in thinking the adsense code should be inserted in both areas? |
<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="thead" align="left">Sponsored Links</td> </tr> <tr> <td class="alt1" align="center"> <!--e-bannerx.com code begin-->
<SCRIPT language=JavaScript type=text/javascript> <!-- var rnd = Math.round(Math.random() * 10000000); document.writeln('<SCR'+'IPT language=JavaScript type=text/javascript src="http://www.e-bannerx.com:8888/adrevolver/banner?js&place=13471&cpy='+rnd+'">'); document.writeln('</SC'+'RIPT>'); //--> </SCRIPT><NOSCRIPT> <IFRAME src="http://www.e-bannerx.com:8888/adrevolver/banner?place=13471&cpy=1" width=468 height=60 scrolling=no allowtransparency=true frameborder=0 marginheight=0 marginwidth=0> <A href="http://www.e-bannerx.com:8888/adrevolver/href?place=13471&rnd=1000" target="_blank"> <IMG src="http://www.e-bannerx.com:8888/adrevolver/banner?img&place=13471&rnd=1000" width=468 height=60 border=0 alt="e-bannerx.com" ismap></A></IFRAME></NOSCRIPT> <!--e-bannerx.com code end--> </td> </tr> </table> </div> $spacer_close </if> ($hook = vBulletinHook::fetch_hook('postbit_imicons')) ? eval($hook) : false; where in postbit do I add this, I have tried the end it dont work |
Quote:
I've no idea what you're doing with the code $hook = vBulletinHook::fetch_hook('postbit_imicons')) that shouldn't be in a template anywhere and isn't part of this hack. |
add it where, I dont know where to add it, and I copied and pasted from this thread
|
<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="thead" align="left">Sponsored Links</td> </tr> <tr> <td class="alt1" align="center"> <!-- ad code goes here --> </td> </tr> </table> </div> $spacer_close </if> |
Install the plugin then at the end of the postbit or postbit_legacy template copy in the code as per the instructions at the top of this thread.
Info on how to edit templates and how to upload plugins is described in detail on the vBulletin site. http://www.vbulletin.com/ |
Brilliant! This is exactly the kind of ad placement that I was hoping to find. Tower and header/footer ads get ignored, and intrusive pop-over ads are just wrong. This is perfect!
Many Thanks! |
where in the end why isnt there a find this and add below it like most plugins?
Quote:
|
Quote:
|
Quote:
its only simple if you know what you are doing like anything is simple to ppl who know what they are doing, like I said why not have a find and put below that would make it simple |
Quote:
If you still don't get anywhere then I don't think this hack is for you. Maybe get someone else to help you out. :) |
great addition, I hope this helps me out :D
|
This hack is brilliant, installed in 30 seconds. nice work!
|
All times are GMT. The time now is 11:25 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|