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
  #22  
Old 04-14-2010, 02:06 AM
dearinfinity dearinfinity is offline
 
Join Date: Apr 2010
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hello-- how can I code this so as to make only guests and member ( NOT ADMINS / MODERATORS / ETC ) have to do survey?
Reply With Quote
  #23  
Old 04-18-2010, 10:43 AM
trungnt trungnt is offline
 
Join Date: Nov 2009
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by trungnt View Post
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
can anyone help for this question. i will pay for the solution

Thans
Reply With Quote
  #24  
Old 04-18-2010, 04:15 PM
Cedric_FP Cedric_FP is offline
 
Join Date: May 2005
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The referrer id links in this thread are a little disappointing.

Interesting hack though.
Reply With Quote
  #25  
Old 04-19-2010, 02:59 AM
dearinfinity dearinfinity is offline
 
Join Date: Apr 2010
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any idea how to make only certain membergroups have to do the CPA? anyone?
Reply With Quote
  #26  
Old 05-01-2010, 02:04 AM
ketusa ketusa is offline
 
Join Date: Aug 2008
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is this working with vb 3.8?
Reply With Quote
  #27  
Old 05-09-2010, 08:31 PM
jmw jmw is offline
 
Join Date: Jan 2005
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, does this work with 3.8.4?
Reply With Quote
  #28  
Old 06-02-2010, 09:10 PM
sosasoser sosasoser is offline
 
Join Date: Apr 2010
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a good idea, but I think my users would protest too much if I used this in the forums. We are a new site, so I can't alienate too many users.

If I could use this to restrict access to some other features, like addonchat and ibproarcade, I would do it in a heartbeat though.
Reply With Quote
  #29  
Old 08-16-2010, 10:56 PM
TheChaosFactor TheChaosFactor is offline
 
Join Date: Sep 2009
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sosasoser View Post
This is a good idea, but I think my users would protest too much if I used this in the forums. We are a new site, so I can't alienate too many users.

If I could use this to restrict access to some other features, like addonchat and ibproarcade, I would do it in a heartbeat though.

That's a great idea, and I'm willing to bet it can be done in a fairly similar fashion. If not, the links for chat and arcade could be replaced with a link to a survey that redirects to the desired area on completion....

You're a genius. Thank you for this.
Reply With Quote
  #30  
Old 09-28-2010, 05:22 AM
daveaite's Avatar
daveaite daveaite is offline
 
Join Date: Jul 2009
Location: Florida
Posts: 1,890
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There should be a mod that if a person does X # of surveys, they are allowed into like a certain usergroup

That would be perfect.

From there you can control the usergroups to view certain forums etc
Reply With Quote
  #31  
Old 10-20-2010, 08:13 PM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'd love it if there was a way to only have CPAlead work on attachments for certain usergroups. So CPAlead is only activated when a registered user goes to download an attachment, they then do their survey, then download the content.

That would be much more appealing ^^ Wonder if that is possible...
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 02:26 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04838 seconds
  • Memory Usage 2,311KB
  • 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
  • (2)bbcode_code
  • (2)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