TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 500
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 456
  • Total: 456

Shoutbox visible to guests, even if permission is denied

Started by septicfeige, January 18, 2008, 11:00:12 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

septicfeige

Hello everybody!

I'm running a SMF/TP installation, both latest version (1.1.4/0.98)
The German language pack is installed also.
There are no other mods installed.

I've set the shoutbox-block not to be visible to guests. If I browse to our site, everything seems allright. The shoutbox isn't visible.

See it here:
http://www.schwarze-rose-wow.de

But if I use the direct link to the shoutbox:
http://www.schwarze-rose-wow.de/smf/index.php?action=tpmod;sa=shoutbox
the last 20 shouts appear (that's the number the "show last shouts" option is set to).
Of course I'm not logged in while doing that.

I temporarly resolved this by not making the forum be visible to guests completly.
(Disabled 1st checkbox in the forum configuration section. But not right now any more, for demonstrating the issue).

But that isn't a long-term solution, because we have one board in the forum that should be accessible to guests.

Can someone help?

Thanks.

P.S.: Sorry for not giving you even the basic informations right away...That's the result of posting while actually beeing at work.

G6Cad

Whats wrong ?
Perhaps the lack of reading our posting guides we have, please read them, and the doc sections, and use the search.
Make the proper changes to your first post if you still need our help after you have read what we ask.

septicfeige

#2
I don't know if this is a smart fix, or the problem actually is somewhere else (e.g. some wrong settings, though I checked them).
But I added this at line 680 in TPortal.php


if ($user_info['is_guest'])
{die('You're not allowed to view the shoutbox!');}


...seems to work.

IchBin

While that is a temp option, that's not what you should check. You should check whether it's turned on for guests. Posting from my phone or I would look to see what variable to check.

This website is proudly hosted on Crocweb Cloud Website Hosting.