Badams66 Posted May 9, 2004 Posted May 9, 2004 (edited) Im currently helping a couple friends build a car site using phpBB, and they wanted some web based games on it...well i had no trouble with that, but they want to force the users to login before they can get to these "blank" pages with games... All the blank pages are, is an edited portal main page using EZPortal If you would like to have a look, the site is HI-Revs In case you don't understand what i mean, without logging in on a phpBB site, press the "Check your provate messages" link....youll be taken to a login page Well, if the user isn't logged in, and try to get to one of the games, they want the login page to show up.... hope that explains it well enough P.S. Don't tell me about how bad the name is...i know its terrible, but it wasn't my choice.... Edited May 9, 2004 by Tyme_66 Share this post Link to post Share on other sites More sharing options...
CyBerHigh Posted May 14, 2004 Posted May 14, 2004 let me get this, you are wanting to have ppl login before they can play those games. if that is right, you can do that if you are willing to edit the one of the tpl files of the site. i am not even sure how ezportal works, but if there is a seperate tpl file for the games stuff the code would be like this at the top. This goes at the very top of the file: <!-- BEGIN switch_user_logged_in --> put all the game stuff in here <!-- END switch_user_logged_in --> Then put at the very bottum of the file this: <!-- BEGIN switch_user_logged_out --> <script LANGUAGE="JavaScript"> var VersionString = navigator.appVersion if (navigator.appName == "Netscape") { if (VersionString.substring(0,1) >= 1) { // Netscape 3.0 (or later) browsers go to this location: location = "login.php" } } if (navigator.appName == "Microsoft Internet Explorer") { if (VersionString.substring(0,1) >= 1) { // Microsoft Internet Explorer users go to this location: location = "login.php"; } } </script> <!-- END switch_user_logged_out --> hope that helps, that may not be exactly wut you need to do but it is close, i don't know how you did the site or how ezportal works but with my portal and all my editing of phpbb that seems to work Share this post Link to post Share on other sites More sharing options...
Badams66 Posted May 16, 2004 Posted May 16, 2004 Thanks so much...if it was my site i would have taken the time to do all that and make it look good, but, like i said, its just my friends site But your method seems to work like a charm! Share this post Link to post Share on other sites More sharing options...
CyBerHigh Posted May 20, 2004 Posted May 20, 2004 yep anytime, i enjoy working with the phpbb system Share this post Link to post Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now