![]() |
I have another question:
In PostbitLegacy (is my template) I view on insert my adsense code for appars at end of post (post/text by user) but appears, logicaly, in all posts. I want appears ever 3 posts, for example: I add this code: Code:
<vb:if condition="$post[postcount] % X == 0"> Ins opssible made this? Regards. |
Try changing the "X" to a "3".
|
Sorry, yes, I try to change X to 3.
I have the problem indicate above. I insert my adsense code, with this code indicate above just after this in postbit_legacy template Code:
<div id="post_message_{vb:raw post.postid}"> Code:
<vb:if condition="$post[postcount] % 3 == 0"> If you want I can attach a screenshoot. Thanks and regards!! |
Locate this at the very end:
HTML Code:
{vb:raw template_hook.postbit_end} HTML Code:
<vb:if condition="(THIS_SCRIPT == showthread) AND !($post[postcount] % 3)"> |
Thanks MarkFL,
With your code, I have my text every 3 posts but between posts. My iddea, if its possible, is, just at end of the text/reply of the post user, inside the post. Again, thank you! :) |
Quote:
HTML Code:
<div id="post_message_{vb:raw post.postid}"> |
Thanks MarkFL,
Works perfect!! I try in other positions, but in this position, work perfect!!! Appears the code at end of post inside post :) Thanks!!! In other question, its possible insert the code for, ever 3 or 5 posts but with different content? I'm explain: Code:
<vb:if condition="(THIS_SCRIPT == showthread) AND !($post[postcount] % 3)"> Code:
<vb:if condition="(THIS_SCRIPT == showthread) AND !($post[postcount] % 5)"> Again, thank you! Edit: Now I try with your code and yes, works perfect :) Thanks master. |
Hello.
In this lasts weeks I edit this ads in location, but continue with my last doubt, if its is possible, real are fantastic: My iddea: We have the code A of adsense (for one add) and also, we have the code B for other/config add. Mi iddea, if its possible. In the first post number 3 (for example) appears the code A, in the post 6 de code B, in the post 9 de code A, in the post 12 the code B...etc... . If I use this: Code:
<vb:if condition="(THIS_SCRIPT == showthread) AND !($post[postcount] % 3)"> Code:
<vb:if condition="(THIS_SCRIPT == showthread) AND !($post[postcount] % 5)"> Sorry if I not explained well. This, is a little important for me :) Thanks in advanced! Regards! |
All times are GMT. The time now is 08:31 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:
|