Skip to content
WJunction - Webmaster Forum

How to implement CPA Lead on vbulletin?

Status
Not open for further replies.
I'm using vbulletin 3.8.x

I'm trying to make it so a user on my forum can view the specified forum (forum id 106) but when they click any of the threads in that forum the survey pops up first. here is the code im using -
Code:
<vb:if condition="$forum[forumid] == 106">
<script type="text/javascript">var isloaded = false;</script><script type='text/javascript' src='http://www.cpalead.com/mygateway.php?pub=124141&amp;gateid=MTQ2ODIy'></script><script type="text/javascript">if (!isloaded) { window.location = 'http://cpalead.com/adblock.php?pub=124141'; }</script><noscript><meta http-equiv="refresh" content="0;url=http://cpalead.com/nojava.php?pub=124141" /></noscript>
</vb:if>
I'm adding this code to the FORUMDISPLAY template right after the <head> tag. But the problem is that it shows up on EVERY forum :( any ideas as to why?

Or if someone knows a different way to do this please let me know, my goal is to let the users view the thread titles at least, but before they access the thread content they have to complete a survey.

**I don't need to hear and griping or complaining about how cpa lead ruins websites, blah blah fucking blah, I dont care, I've thought it out and this needs to be done :P**

Whoever helps me get this fully implemented I'll give free lifetime VIP to on my site elitecrackers.com ... if you want it :P

or $10, whichever you want :P
 

4 comments

try this

Admin CP -> Styles & Templates -> Style Manager -> « » -> Postbit Templates -> postbit or postbit_legacy (whatever u r using)

<if condition="$post[postcount] == 1 AND in_array($GLOBALS[forumid], array(X,Y,Z))">
CPA code here
</if>

X,Y,Z r forum id where u want survey to be shown
 
Status
Not open for further replies.

About the author

A
Active Member · Joined
145
Messages
0
Reactions
16
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom