![]() |
Adding custom html code (adsense, ads...) after first post (postbit)
Adding custom html code (adsense, ads...) after first post (postbit)
How to do this in vb 3.5.0? I need to add custom code after first post on every thread page, but it only custom html only appears at first page. |
Try:
Code:
<if condition="$post[postcount] == 1">whatever</if> |
Thanks, but with code like this, custom html is shown only after first post on first page. At Page 2, Page 3 ... isn't shown because postcount != 1.
|
This was a thread on vBulletin.com yesterday...
http://www.vbulletin.com/forum/showthread.php?p=812388 http://www.vbulletin.com/forum/showthread.php?t=144577 Satan |
Quote:
|
still no way...
|
Hmm, try
HTML Code:
<if condition="!$GLOBALS['FIRSTPOSTID']"> |
great, with that conditional ! is working ok! :D
|
No worky for me in RC1. :(
Am I doing something wrong? |
|
How can I add the table code to this please? Nice mod thankyou.
|
How can I get the ads placed in a nice table as seen here? - http://forums.digitalpoint.com/showthread.php?t=28193
TIA |
Code:
<if condition="in_array($bbuserinfo[usergroupid], array(1))"> The above if conditionals show it after the first post of every thread page and show it only to guests. What it looks like: http://www.mustangevolution.com/foru...ad.php?t=16230 |
Ok we already scanned if its the first post and which usergroup the user has to display the ads.
I also want to have an IF clause which is checking the language the user is using. If its a guest or if the user has english selected a text should be shown in english. If he/she has german selected a text should be shown in german. Does anyone know the correct if clause for this? |
Just use phrases. If you have a german translation, it would automatic show for people who selected german.
|
Thank you very much Brent :)
|
Quote:
quick question where do i paste this? Quote:
how can i fix that up? |
Question, I want to show this to all members who are NOT part of "x" usergroup (Either listed as primary or secondary) So this way if a user is in a premium usergroup (Which is normally a secondary checkmark for them) that it doesnt show up. I know if they were in primary usergroup.. this is a easy thing..
But I have all users in the "Registered User" group, however those who have a paid subscription will convert to a "Secondary addition" premium usergroup. So any way to set something up like this so it doesnt show if a user is a part of "x" usergroup? |
Quote:
Code:
<if condition="is_member_of($bbuserinfo, X)"> |
Quote:
On 3.0.7 I wanted to disable the Triple triad from "x" usergroup by having the kind of code above to ensure they were a part of that premium usergroup.. sadly I never got the code right.. |
Exactly where do I need to paste this code?
Will it work in 3.6.0? Thanks in advance. |
Quote:
looks like this is working, thanks |
Quote:
|
Quote:
|
All times are GMT. The time now is 04:47 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:
|