The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Stop Members Bypassing Restrictions By Logging Out Details »» | |||||||||||||||||||||||||||
Stop Members Bypassing Restrictions By Logging Out
Developer Last Online: May 2018
This addon has been withdrawn.
Show Your Support
|
Comments |
#12
|
|||
|
|||
so its useless for admins who already have guests not be able to view the forum
|
#13
|
|||
|
|||
Quote:
The biggest reason to let guests see your forum is to entice them to register by showing them what they COULD get if they registered. The biggest reason not to let guests see your forum is to force them to register - if they can browse as a guest, why do they need to register? With this mod, you can let first time visitors see your forum, so they are tempted into registering, and once registered, they have to remain logged-in to view the forum. So you can get the best of both worlds. This mod works especially well with the limited guest viewing system, forming a combination that drives people to register and then stay registered and logged in. |
#14
|
||||
|
||||
Thanks for this! Been waiting for something like this for a long time.
|
#15
|
||||
|
||||
I edited that piece of code just as you said..and I am not sure why it isn't working but as a banned user I can log off and log back in just fine ( and see the forum after log out )..all that.
|
#16
|
|||
|
|||
The cookie only gets set when the member views a thread or forum. If you try to test this by clearing your cookies then logging into an *already banned* account, it won't work.... because you don't have the cookie.
It would, however, work for the person that was banned, because they would (presumably) have viewed at least one thread before they got banned, and thus would have the cookie set. If you *really* want it to work for banned users who have cleared their cookies previously, you could add something like the following to the plugin definitions : Code:
<plugin active="1"> <title><![CDATA[NGB System [Profile Start Check]]]></title> <hookname>global_start</hookname> <phpcode><![CDATA[ if ($userinfo['usergroupid'] == 8) { ($hook = vBulletinHook::fetch_hook('ngb_plugin')) ? eval($hook) : false; } ]]></phpcode> </plugin> |
#17
|
||||
|
||||
OK, would this be an adequate test of the system:
Make a user look at a thread Ban that user Login as that user and test? Would that be a good test/would it hurt my other account at all? |
#18
|
|||
|
|||
Quote:
Once you have viewed a thread while logged in (you have to not be in vB's default banned usergroup, id 8, in order to read threads), it should deny you the ability to read the forum threads as a guest, until you clear your cookies. What exactly are you trying to test? Are you trying to test that this product will stop people who have previously read a thread while logged in from continuing to read threads if they log out? If so, just install, read a thread, logout, and see if you can still read threads. Are you trying to test that this mod stops users you have banned from browsing the forum as a guest? It will stop them reading threads, but only if they read at least one thread before you banned them. |
#19
|
|||
|
|||
This is an interesting add on.
One thing though.....I find it good practise to view as a guest myself at times. For instance after creating a new forum and setting permissions. I need to see what guests can view, as well as registered users. I presume Admin (me) would have to clear cookies to view as a guest. It would be good to have the Admin account unaffected. |
#20
|
|||
|
|||
Quote:
Try editing the product file before importing, replacing: Code:
if (!isset($_COOKIE['NGBaccess'])) { // we do NOT use vbsetcookie, because cookies set with vbsetcookie() are erased when the user logs out! setcookie("NGBaccess", "yes", time()+31104000, "/"); } Code:
if ( !isset($_COOKIE['NGBaccess']) AND !in_array($bbuserinfo['usergroupid'], array(6)) ) ) { // we do NOT use vbsetcookie, because cookies set with vbsetcookie() are erased when the user logs out! setcookie("NGBaccess", "yes", time()+31104000, "/"); } |
#21
|
|||
|
|||
Removed the beta tag, as this hack has been in use for awhile now without issues.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|