vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Need Forumrunner modification (https://vborg.vbsupport.ru/showthread.php?t=280682)

Rick 03-26-2012 04:16 PM

Need Forumrunner modification
 
I've been trying to get the developer of Forumrunner to implement a system which would make it so that only my paying members (specific user group) could use the Forumrunner app.

Forumrunner visitors are not clicking on ads and I'm losing money. It would make a lot of sense to require those who want to use the "no frills" app to pay a premium to do so.

TIA

BirdOPrey5 03-26-2012 11:19 PM

A plugin with this code on global_start hooks works, but, then no one can login because they are guests until they login...

PHP Code:

if (defined('IN_FRNR') && defined('FR_UTILS_INCLUDED') && !is_member_of($vbulletin->userinfo567)) 
{
  
fr_standard_error("You do not have permission to use this app.");


It only allows usergroups 5, 6, and 7 to use forumrunner... it's a start anyway.

Rick 03-28-2012 12:40 AM

Any other suggestions or help? Obviously no one being able to log in would be a bit of an issue;)

BirdOPrey5 03-28-2012 03:43 PM

Yeah I played with this some more and I got it working (I think.) I only tested it for a couple minutes because I didn't want to lock out my users.

Make new plugin on global_start hook:
Code:

global $vbulletin;

if ((THIS_SCRIPT == 'showthread' OR THIS_SCRIPT == 'forumdisplay') AND defined('IN_FRNR') && defined('FR_UTILS_INCLUDED') && (!is_member_of($vbulletin->userinfo, 5, 6, 7)))
{
  fr_standard_error("You must log in below to view the site. Only users with valid subscriptions may use this app.");
}

When a user first gets to your forum in forumrunner they will see a message they need to login (the message in red above). They will be allowed to login.

What this plugin blocks is viewing of forums or threads.

Also customize the usergroups (in blue) above- 5, 6, 7 are mods, admins, and super-mods- adjust them to your needs.


All times are GMT. The time now is 05:30 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.01475 seconds
  • Memory Usage 1,717KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete