PDA

View Full Version : Expert needed: Template mod for Advertising


jnrdavo
01-20-2011, 04:34 AM
Hi guys,

I'm running two website, both with vb 4.1

I've modified the postbit_legacy template so that a google ad is popped up after the last post (based on one of the mods on this forum).

So, all working fine when not logged in, but when logged in, it doesn't work on one of the forums!

To clarify:

When logged in to http://www.ozvolks.com/forums I can see the google ad at the bottom of the last post every time (also works when not logged in).

When logged in to http://www.ozaudi.com/forums I can't see the google ad. However, if I log out, then I can see the ad.

I've looked at the page source when logged in and can see that the code doesnt exist when logged in.

I've also copied the templates from ozvolks to ozaudi (additional.css & postbit_legacy), but still no luck...

I've also disabled any plugins' in ozaudi, with the only ones left being identical in order and revision number to ozvolks.

Not sure where else to look..

Any help is REALLY appreciated.

your24hourstore
01-20-2011, 07:27 PM
so was the bit you changed in the template the area for VB advertising in forum thread would appear? you just use google ads in that area instead of self advertisement?

if so the permissions are just not set correctly for the one not showing when your logged in

jnrdavo
01-21-2011, 06:57 PM
sory your24hourstore, not quite sure what you are asking..

Yes, it's just google ads in the template, not self advertising.

The modification was done to the postbit_legacy template, here it is...

<vb:if condition="$post['islastshown']">

<li class="firstpost_advert_container"><div class="firstpost_advert">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-753992401340nnnn";
/* slim long one, created 10/18/10 */
google_ad_slot = "444781nnnn";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
</li>

</vb:if>


It was based on one of the mods on this board.

I'm happy to agree that it's something to do with permissions, but I'm not sure where :-)

jnrdavo
01-30-2011, 05:19 PM
bump... Still looking for answers on this one :-)

your24hourstore
01-31-2011, 12:52 AM
this is odd, when you log on as a user does the same thing happen, is this just your admin account?.

its weird because I'm not sure google ads even need permissions, the self advertising does of course, and most google ads show up in the area below the self ads spots, but I'm not sure if they are controlled by vb adverting perms!.

I'm not sure but i think google has a spot below every single spot vb ads are allotted.
let me play with it. ok i messed with them and i don't think google is controlled by perms they are seen by anyone who is viewing the page it seems. so it must be in the template hack. did you have to actually edit the template by hand or was it an XML upload?

jnrdavo
01-31-2011, 03:08 AM
thanks for the help.

I just tried to login as a 'normal' user... same problem..

Even stranger, my admin account on my other forum works fine!

jnrdavo
02-10-2011, 05:02 AM
bump... Just hoping that some expert can help me on this one..... This is the forum that I have most users, so I'm missing the most revenue :-(

Why does it have to work on the other forum with minimal traffic :down:

your24hourstore
02-10-2011, 12:17 PM
ok do this :) , grab the code from the template edit of postbit_legacy on the one thats showing, and paste it into the forum that isnt working :)

now it still doesn't work we know it isnt in the postbit template

jnrdavo
02-10-2011, 05:34 PM
thanks your24hourstore....

Tried that the other week, no differences (actually copied the postbit_legacy from the working forum to the non-working one.

Just to double check, I copied contents to a text file from both forums and run a 'fc' (file compare).... no differences came up..

So we can safely say that it's not the postbit_legacy template :-)

That just probably makes it harder to work out :-(

jnrdavo
02-12-2011, 07:03 PM
ok, a bit more on this..

I've tried to go to my page on another laptop, but am not logged in at all..

I can now see the advertising on the last post...

So, obviously something to do with permissioning.... Where would I look?