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
Very nice, i have only one problem, for those of us using portals such as vbindex i figured out taht you can still view threads as unregistered by clicking under "latest threads". Is there any way from preventing unregistered users from doing this?
Very nice, i have only one problem, for those of us using portals such as vbindex i figured out taht you can still view threads as unregistered by clicking under "latest threads". Is there any way from preventing unregistered users from doing this?
I would normally tell you to ask in the vBIndex support thread, but I'm feeling nice today
So here we go:
Open up the vbindex.php for vBIndex and find
PHP Code:
if ($vbindex['options'] & VBI_SHOWTHREADS) {
Replace with
PHP Code:
if ($vbindex['options'] & VBI_SHOWTHREADS and $bbuserinfo[userid] != 0) {
Great hack, thank you. Can someone tell me how to accomplish this though: I have a few forums that only certain usergroups (paid subscribers) can access, but I want regular registered users to be able to see the post counts and threads, but not the content, just like guests now see with this hack (as opposed to "Never" and 0's). Is this possible? Thank you. Also, it works perfect for guests in these areas, just not registered users.
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();
}