[code idea]Hidden Forums

This forum is now closed as part of retiring phpBB2.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

This forum is now closed due to phpBB2.0 being retired.
Post Reply
honest
Registered User
Posts: 38
Joined: Sat Apr 24, 2004 6:09 pm

[code idea]Hidden Forums

Post by honest »

will this work to make it so that if a forum is hidden, and the user tries to view it by changing the http://asdfghjkl.com/forum/viewforum.php?f=5 to http://asdfghjkl.com/forum/viewforum.php?f=6 without being signed in it will notify the user that the forum doesnt exist, instead of prompting them to log in?

ViewForum.php
*after*
if ( !$is_auth['auth_read'] || !$is_auth['auth_view'] )
{

*add*
if ( !$userdata['session_logged_in'] )
{
if(!is_auth['auth_view'])
{
$message = ( !$is_auth['auth_view'] ) ? $lang['Forum_not_exist'] : sprintf($lang['Sorry_auth_read'], $is_auth['auth_read_type']);
}
safeTsurfa
I've Been Banned!
Posts: 1959
Joined: Sat May 08, 2004 10:21 am
Location: United Kingdom
Contact:

Post by safeTsurfa »

Somewhere in there )not checking) it will have a redirect command to login.php, so why not redirect to index.php instead?
safeTsurfa
Need help? First READ THIS
Personal projects: My Mods
User avatar
smithy_dll
Former Team Member
Posts: 7630
Joined: Tue Jan 08, 2002 6:27 am
Location: Australia
Name: Lachlan Smith
Contact:

Post by smithy_dll »

moved to a more appropriate forum
Systems Engineering
honest
Registered User
Posts: 38
Joined: Sat Apr 24, 2004 6:09 pm

Post by honest »

What im trying to do is completly deny the existance of any hidden forums, if the user is logged in, or logged out, i want hidden forums treated the same way as if the user tried to enter a nonexistant forum...
Post Reply

Return to “[2.0.x] MOD Writers Discussion”