View Full Version : Prevent guests from viewing 2nd page and higher in a thread
Lea Verou
11-24-2005, 10:00 PM
I made this just because it was requested (http://www.theadminzone.com/forums/showthread.php?t=16120).
This little plugin shows a no-premission page to guests that attempt to view the 2nd (or greater than 2) page of a thread.
Notice however that guests can bypass this by looking in the archive or the printable view of the page. :nervous:
Please, don't forget to click install if you use this. :)
Cap'n Steve
11-25-2005, 10:08 PM
I like this idea. Seems like a good way to encourage registration.
Lea Verou
11-25-2005, 10:12 PM
I like this idea. Seems like a good way to encourage registration.
As stated in the first post it wasn't my idea :)
Also, it can easily be bypassed as I said. Can you think of a way to prevent that? :nervous:
Cap'n Steve
11-25-2005, 11:38 PM
I'm not sure, but from looking at archive/index.php you might be able to use the archive_process_start hook to change $vbulletin->options['archive_postsperpage']
Lea Verou
11-25-2005, 11:42 PM
I'm not sure, but from looking at archive/index.php you might be able to use the archive_process_start hook to change $vbulletin->options['archive_postsperpage']
Yes but the thing I should use in the plugin for the archive should be the variable for the pagenumber, not the on for posts per page :)
MentaL
11-26-2005, 12:00 AM
i may use this :P fantastic!
Lea Verou
11-26-2005, 12:03 AM
i may use this :P fantastic!
Thank you :)
Snake
11-26-2005, 10:42 AM
Just installed this hack. Thanks.
Hello,
Any way to show a custom message opposed to the default? I would like to use a custom message for this feature since we are allowing them the right to read the first page of posts.
Lea Verou
11-26-2005, 09:57 PM
Hello,
Any way to show a custom message opposed to the default? I would like to use a custom message for this feature since we are allowing them the right to read the first page of posts.
I am unsure how to do this.
It shouldn't be very difficult.
You can try searching in modification tutorials :)
athoob
12-01-2005, 01:00 AM
great idea... loved it.. and installed :D
cooltechie
12-01-2005, 12:32 PM
As stated in the first post it wasn't my idea :)
Also, it can easily be bypassed as I said. Can you think of a way to prevent that? :nervous:
Since this mod (https://vborg.vbsupport.ru/showthread.php?t=96523) disallow members with no permissions to view forums/threads/posts through normal view, printthread, search or archive, can something be borrowed to work with your mod? I don't know php, but just saw their description.
The Geek
12-01-2005, 12:50 PM
iguana - you could change it from print_no_permissions to :
$vbulletin->url = "info.php";
eval(print_standard_redirect('redirect_phrase', true, true));
HTHs
Good work BTW ;)
dethfire
02-28-2006, 01:27 AM
can spiders be excluded?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.