Version: 1.00, by Gary King
Developer Last Online: Jun 2020
Version: 3.0.0
Rating:
Released: 01-06-2004
Last Update: Never
Installs: 89
No support by the author.
Yes I know that there is already a a feature to stop guests from viewing threads, but then this also shows all the posts and threads counters to zero, and under Last Post it will say never (which sucks ). But, with my hack, it just asks guests to either login or register when viewing a thread and still shows all the right numbers
I checked my stats and we now have on average between 40 to 55 new registrations a day with this, thanks (compared to our usual 5 a day)! But man, I apologize to ask again, but I have a paid restricted area that we used to get about 3 people a week sign up for, but now we only one in the last month, and it's definitely because these protected areas always look empty. Any advice?
I checked my stats and we now have on average between 40 to 55 new registrations a day with this, thanks (compared to our usual 5 a day)! But man, I apologize to ask again, but I have a paid restricted area that we used to get about 3 people a week sign up for, but now we only one in the last month, and it's definitely because these protected areas always look empty. Any advice?
Try this:
Below the newly added code from this hack, add the following:
PHP Code:
if ($bbuserinfo['usergroupid'] == X and $forumid == X)
{
print_no_permission();
}
Of course replacing X with their respective numbers.
Thank you very much! That worked. I had to go through and add one for each forum. Not sure if there's an easier way, but this works. Thank you very much.
Here's what I added which is for 3 different forums that are only for certain groups (paid subscribers):
PHP Code:
if ($bbuserinfo['usergroupid'] == 2 and $forumid == 73)
{
print_no_permission();
}
if ($bbuserinfo['usergroupid'] == 2 and $forumid == 45)
{
print_no_permission();
}
if ($bbuserinfo['usergroupid'] == 2 and $forumid == 95)
{
print_no_permission();
}
Well I spoke too soon. Although it workds perfect if you manually change users to a primary usergroup, it blocks out "Secondary Usergroups" that are paid subscribers who have legitimate access.
What I'm wondering is if I can simply use the same codes, but instead of print_no_permission, add say three more that say if in a certain usergroup (paid subscribers that listed as registered id:2, and a secondary usergroup, id:35), then grant permission.
For example,
PHP Code:
if ($bbuserinfo['usergroupid'] == 9 and $forumid == 95)
{
grant_permission();
}
The "grant_permission" is totally wrong, I just don't know the term. But I'm just wondering how I can have it check userid and "allow" access. Any help is great. Thanks (also, even though the first 3 are disallowing the registered users, the secondary usergroups would have a different id number and should be able to enter). I hope this makes sense.
Well I spoke too soon. Although it workds perfect if you manually change users to a primary usergroup, it blocks out "Secondary Usergroups" that are paid subscribers who have legitimate access.
What I'm wondering is if I can simply use the same codes, but instead of print_no_permission, add say three more that say if in a certain usergroup (paid subscribers that listed as registered id:2, and a secondary usergroup, id:35), then grant permission.
For example,
PHP Code:
if ($bbuserinfo['usergroupid'] == 9 and $forumid == 95)
{
grant_permission();
}
The "grant_permission" is totally wrong, I just don't know the term. But I'm just wondering how I can have it check userid and "allow" access. Any help is great. Thanks (also, even though the first 3 are disallowing the registered users, the secondary usergroups would have a different id number and should be able to enter). I hope this makes sense.
if ($bbuserinfo['usergroupid'] == 2 and ($forumid == 73 or $forumid == 45 or $forumid == 95) and !array_search(X,$membergroups))
{
print_no_permission();
}
and replace X with the paid subscriber usergroupid. This code will check if the user has a membergroup of the paid subscribers group.