Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
CpaLead Monetize Certain Forums For Guests or members Details »»
CpaLead Monetize Certain Forums For Guests or members
Version: 1.00, by hobsdv hobsdv is offline
Developer Last Online: Apr 2012 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 4.0.2 Rating:
Released: 03-10-2010 Last Update: Never Installs: 13
Template Edits
Re-useable Code Translations  
No support by the author.

What it does ?
This Uses CPALead to monetize certain forums, so for example if you have a forum for watching videos or downloading files you can block that forum from either guests or members until they complete a short free survey.

Once you join CPALead and create a widget code you can choose to have people complete a survey everytime they visit a page or just once or after x amount of hours.

This is a good option if you want members to only complete a survey once and then never again.

Example:
Forum Not Blocked
Forum Blocked



Install instructions :
To block members and Guests.
Place this code in your FORUMDISPLAY template below the opening <head> tag. Replace the xx with your forum id Number.
Code:
<vb:if condition="in_array($foruminfo[forumid], array(xx))">
CPALead Script Here..
</vb:if>
To block Only Guests.
Place this code in your FORUMDISPLAY template below the opening <head> tag. Replace the xx with your forum id Number.
Code:
<vb:if condition="$show['member']">
<vb:elseif condition="in_array($foruminfo[forumid], array(xx))" />
CPAlead Code...
<vb:else />
</vb:if>
To place it on multiple forums replace array(xx)) with array(xx,xx,xx,xx)) replace xx with your forum id.

Please mark as installed if used....

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 03-12-2010, 02:32 PM
hobsdv hobsdv is offline
 
Join Date: May 2006
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by denman75 View Post
looks great abp works good for me
would only change the example forums ,since u are offering illegal warez links if they look past the survey blocker
i dont mind ,but before u are getting in problems better save than sorry m8 ...
working on changing them, never realised until after i did it.
Reply With Quote
  #13  
Old 03-12-2010, 11:21 PM
nyunyu nyunyu is offline
 
Join Date: Dec 2004
Location: Malaysia
Posts: 253
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good trick, however, it would be best if someone can make it into product.
So, we can choose which group sees this instead of members, guests.
Or perhaps threads with which keyword trigger a survey. etc.
Reply With Quote
  #14  
Old 03-13-2010, 02:18 AM
nyunyu nyunyu is offline
 
Join Date: Dec 2004
Location: Malaysia
Posts: 253
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, on my forum, guests can see the thread and everything.
How can I make if using this edit, I want them apart from being shown CPAlead on forumdisplay, also being shown when they view the thread? (since they can see the thread from forumhome, they just can click on it and this edit don't render there).

Please advice.
Reply With Quote
  #15  
Old 03-13-2010, 04:20 AM
hobsdv hobsdv is offline
 
Join Date: May 2006
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nyunyu View Post
Ok, on my forum, guests can see the thread and everything.
How can I make if using this edit, I want them apart from being shown CPAlead on forumdisplay, also being shown when they view the thread? (since they can see the thread from forumhome, they just can click on it and this edit don't render there).

Please advice.
TO pace it on threads within a specific forum use the following code.

Add in SHOWTHREAD template below the <head> tag. replace the xx with forum id
Code:
<vb:if condition="in_array($thread['forumid'], array(xx))">
CPAlead code....
</vb:if>
Reply With Quote
  #16  
Old 03-13-2010, 12:02 PM
nyunyu nyunyu is offline
 
Join Date: Dec 2004
Location: Malaysia
Posts: 253
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hobsdv View Post
TO pace it on threads within a specific forum use the following code.

Add in SHOWTHREAD template below the <head> tag. replace the xx with forum id
Code:
<vb:if condition="in_array($thread['forumid'], array(xx))">
CPAlead code....
</vb:if>

Great! It's working!
Thanks mate. Now, time to monitor how much bounce rate will I get from using this..lol.
Reply With Quote
  #17  
Old 03-13-2010, 04:14 PM
AzzidReign's Avatar
AzzidReign AzzidReign is offline
 
Join Date: Apr 2006
Posts: 497
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'll have to look into this...I've been trying to monetize my site lately and I've been meaning to try out some CPA companies. Just don't know if 12-18 year olds are good demographics for CPA...if I could capitalize on something like this with the ~30mill pageviews I get a month, I'd be hella happy.
Reply With Quote
  #18  
Old 03-13-2010, 04:36 PM
nyunyu nyunyu is offline
 
Join Date: Dec 2004
Location: Malaysia
Posts: 253
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry, that code just shows the CPAlead to ALL members staff included.
I just want to show the ads to Guest/Unregistered.

I tried this instead but got invalid nesting.

Code:
<vb:if condition="$show['member']">
<vb:elseif condition="in_array($thread['forumid'], array(xx))" />
CPAlead Code...
<vb:else />
</vb:if>

Any advice?
Reply With Quote
  #19  
Old 03-14-2010, 10:49 PM
Dr.osamA's Avatar
Dr.osamA Dr.osamA is offline
 
Join Date: Aug 2004
Location: Syrie
Posts: 979
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanxx

installed
________
Friday Night Lights Advice
Reply With Quote
  #20  
Old 03-19-2010, 10:49 AM
trungnt trungnt is offline
 
Join Date: Nov 2009
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how to make cpalead on THREAD ON certain forum.

Let's say i want users to fill in survey form before access all thread on forum, ID 108.

Thanks
Reply With Quote
  #21  
Old 03-21-2010, 02:54 PM
nyunyu nyunyu is offline
 
Join Date: Dec 2004
Location: Malaysia
Posts: 253
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone could help?
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:43 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
  • Page Generation 0.07669 seconds
  • Memory Usage 2,319KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete