PDA

View Full Version : Need Forumrunner modification


Rick
03-26-2012, 04:16 PM
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...


if (defined('IN_FRNR') && defined('FR_UTILS_INCLUDED') && !is_member_of($vbulletin->userinfo, 5, 6, 7))
{
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:

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.