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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,970
  • Latest: bynw
Stats
  • Total Posts: 196,046
  • Total Topics: 21,335
  • Online today: 374
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 153
  • Total: 153

Help! Guests able to access "no guest areas"

Started by sturmkatze, November 16, 2009, 05:43:55 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sturmkatze

Okay, that worked, now if I can just get the category thing to work. Lost on that explanation.

IchBin

Get what to work? As far as I know there is only a fix for beta5 for the category permissions issue.

sturmkatze

Oh man :tickedoff: When is that out? And will it work w/ my mods. Especially the FCKEditor mod... Kinda, really need that security. I guess I can password protect it, but that's kind of crude.

ed_m2

hmm sorry to resurect this... just come across this problem and i want to restrict a page with a list of emails on it.

its a php article so i'd have thought i could just wrap an if() {     } round it checking for a membergroup but cant seem to get any of the ssi functions to work in order to do this....

IchBin

I've posted this type of code quite a few times.


global $user_info;

// Change numbers below to your group ID's
$mygroups = array(4,7,10);

if (array_intersect($user_info['groups'], $mygroups)) {
    echo 'what you need to show only to groups in mygroups array';
}


You can get the group ID number by hovering your mouse over the group links in the ACP.

ZarPrime

I have just verified that ...
This bug has been fixed for TinyPortal 1.0 beta 5

For instance, as a guest, you should not be able to access this php article ...
http://talesofthehavenexpanse.com/smf2test/index.php?page=10

At this point, the bug will likely never be fixed for beta 4.

ZarPrime

Freddy

Confirmed it works, I get :

Sorry, you are not allowed to view this article.

ed_m2

ah i think it was the global declaration i was missing... thanks.

sturmkatze


Lesmond


This website is proudly hosted on Crocweb Cloud Website Hosting.