PDA

View Full Version : annoying whosonline guest


Lionel
12-31-2001, 03:11 PM
In a forum for members only, if a guest attempts to view a protected location, whosonline shows the guest in that location. Is there a way to have it :"attempting to access members only location" if is guest and board or forum protected?

Admin
12-31-2001, 03:21 PM
I was trying to do something like this a while ago but as far as I remember it wasn't that simple.
I'll have another go at it later...

Lionel
12-31-2001, 03:25 PM
but, cant we say if userid=0 (all guests have same id) and not in faq, register.php and other permissable location, then say attempting to view a restricted area?

Admin
12-31-2001, 03:27 PM
I was thinking of something a lot more global, to fit all boards with their permissions.
So even if a registered user tries to see a private forum we will see the right message.

Lionel
12-31-2001, 03:51 PM
post a quick one that will show all guests as attempting to view members only area? ;)

Freddie Bingham
12-31-2001, 04:16 PM
You could intercept the update to the location field and alter it to be something else in the show_nopermission() call. Look at the updateuserforum() function as a guide perhaps.

nuno
12-31-2001, 05:06 PM
nice tx for the hint freddie ;)