vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=34)
-   -   Interrupt Unsubscribed (or other) Users (https://vborg.vbsupport.ru/showthread.php?t=72778)

amykhar 12-10-2004 10:00 PM

Interrupt Unsubscribed (or other) Users
 
This hack is designed to insert a sales pitch to non-paying members every 10 pages that they view.

It requires that the is_member_of improvement hack be installed IF you plan to check for more than one usergroup. That hack can be found here:
https://vborg.vbsupport.ru/showthrea...t=is_member_of

It can be customized to interrupt users of any group you choose with any message you choose before allowing them to click a link and continue on.

Note that this hack is in beta. It seems to be running ok, but may have a bug or two. Install at your own risk. Please only install this if you understand how to run queries and modify php code and help fix any bugs that may arise.

No screen shot is included because the look of the interruption page depends entirely on your needs.

kall 12-12-2004 03:43 AM

Oooh! Nice! Thank you for sharing!

In theory, this concept could be used to display an ad on a page every 'x' pageviews instead, yes?

(Instead of having adsense code on every showthread page, only have it on every 10 pages...that kind of thing).

Brad 12-12-2004 03:45 AM

Nice work Amy! :D

Mephisteus 12-12-2004 09:58 AM

I might have a use for this :) Nice work :)

sabret00the 12-12-2004 10:53 AM

nice work :)

amykhar 12-12-2004 01:27 PM

Quote:

Originally Posted by kall
Oooh! Nice! Thank you for sharing!

In theory, this concept could be used to display an ad on a page every 'x' pageviews instead, yes?

(Instead of having adsense code on every showthread page, only have it on every 10 pages...that kind of thing).

Exactly. You control what usergroups see the intermittant page, how often it's displayed and what is on the page. There's a bunch of different uses for it.

mcyates 12-12-2004 03:07 PM

its showing up for everyone. I have the following usergorups who shoul'd see the ads:

// Redirect unsubscribed users every 10 pages, starting at page 1
if (!is_member_of($bbuserinfo,2,5,6,7))

amykhar 12-12-2004 03:55 PM

Quote:

Originally Posted by mcyates
its showing up for everyone. I have the following usergorups who shoul'd see the ads:

// Redirect unsubscribed users every 10 pages, starting at page 1
if (!is_member_of($bbuserinfo,2,5,6,7))

Do you have the is_member_of improvement hack properly installed?

mcyates 12-12-2004 04:10 PM

is_member_of improvement hack!!!!!

What's this? I don't have the "is_member_of improvement hack" installed?

mcyates 12-12-2004 04:11 PM

It requires that the is_member_of improvement hack be installed IF you plan to check for more than one usergroup. That hack can be found here:
https://vborg.vbsupport.ru/showthrea...t=is_member_of

Ohhh, tell me in the txt file. didn't read it all. Would be better if you put that in the description of the hack In bold red!!! I'll install it now.

Thanks


All times are GMT. The time now is 05:48 AM.

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.01690 seconds
  • Memory Usage 1,727KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete