Register | Login | |||||
Main
| Memberlist
| Active users
| ACS
| Commons
| Calendar
| Online users Ranks | FAQ | Color Chart | Photo album | IRC Chat |
| |
0 user currently in Acmlmboard support?. |
Acmlm's Board - I2 Archive - Acmlmboard support? - Blocking view from guests | | | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread |
User | Post | ||
Yoshi Dude XKEEPER STOLE MY CAR KEYS Level: 79 Posts: 3020/3271 EXP: 4572680 For next: 6787 Since: 03-15-04 From: give me a number folks. Since last post: 3 hours Last activity: 2 hours |
| ||
I want to have it so that my board (v1.92 if it matters) cannot be viewed by guests. Anyone not logged in would only see a page prompting them to login or register. How would I go about this? My knowledge of PHP is very limited, and I have no idea what to do or how difficult it'd be. I know having someone request to have everything done for them is annoying, I'm sorry about this. It'd help a lot. |
|||
Rainbow Yoshi Level: 30 Posts: 483/496 EXP: 159486 For next: 6383 Since: 04-08-05 Since last post: 14 hours Last activity: 4 hours |
| ||
Put this on every page or on layout not sure if(!$log) errorpage('You must be logged in to BLAH BLAH BLAH.'); |
|||
Yoshi Dude XKEEPER STOLE MY CAR KEYS Level: 79 Posts: 3022/3271 EXP: 4572680 For next: 6787 Since: 03-15-04 From: give me a number folks. Since last post: 3 hours Last activity: 2 hours |
| ||
Originally posted by Rainbow Shy GuyWoo, it works! Thanks a bunch. |
|||
Elric Chasupa Currently Playing: You Like A Lute. Level: 40 Posts: 558/687 EXP: 440016 For next: 1293 Since: 03-15-04 From: Melniboné Since last post: 6 hours Last activity: 6 hours |
| ||
So which file(s) did it have to go in? | |||
Yoshi Dude XKEEPER STOLE MY CAR KEYS Level: 79 Posts: 3025/3271 EXP: 4572680 For next: 6787 Since: 03-15-04 From: give me a number folks. Since last post: 3 hours Last activity: 2 hours |
| ||
Originally posted by ElricI don't remember exactly, just files viewed by members. thread.php, forum.php, that good stuff. There's always a register and login link available. |
|||
Elric Chasupa Currently Playing: You Like A Lute. Level: 40 Posts: 563/687 EXP: 440016 For next: 1293 Since: 03-15-04 From: Melniboné Since last post: 6 hours Last activity: 6 hours |
| ||
Oh. I was really hoping it'd be something simple like each of the thread layout pages. Oh well. I wasn't planning to use it anyway... | |||
Mercury Shyguy Level: 16 Posts: 62/88 EXP: 18132 For next: 2124 Since: 07-08-04 From: Hihihi. Since last post: 1 day Last activity: 1 day |
| ||
Most (all?) pages use layout.php, so if you would put it there, it should work as well. | |||
DarkSlaya POOOOOOOOOOOORN! Level: 88 Posts: 4124/4249 EXP: 6409254 For next: 241410 Since: 05-16-04 From: Montreal, Quebec, Canada Since last post: 8 hours Last activity: 5 hours |
| ||
Originally posted by Mercury Nope, since it would block register.php and login.php too. |
|||
Mercury Shyguy Level: 16 Posts: 63/88 EXP: 18132 For next: 2124 Since: 07-08-04 From: Hihihi. Since last post: 1 day Last activity: 1 day |
| ||
Well that can be fixed with checking the current file path. But yeah, might be easier to just put it on every page. (edited by Mercury on 09-18-05 10:29 AM) |
|||
Cellar Dweller Flurry !!! Level: 27 Posts: 250/269 EXP: 107817 For next: 8342 Since: 03-15-04 From: Arkansas Since last post: 16 days Last activity: 34 min. |
| ||
You could place the message in layout.php, and then set a variable in register.php and login.php that disables it. function.php could set the variable to the value that indicates that the message should be displyed, to prevent bypassing the restriction by a guest setting the variable from the client. For the pages that don't need the message, set the variable in between the require statements for function.php and layout.php to the value that indiactes the that the message is not needed. |
|||
Book Keeper ♫♫♫ n00blet ♫♫♫ Level: 21 Posts: 149/160 EXP: 49435 For next: 508 Since: 03-15-04 From: Wired Bookworm eat fresh! Since last post: 20 hours Last activity: 8 hours |
| ||
make register and login require layout2.php and leave the others as layout.php. It might be nicer to use, if(!$log) errorpage('You must be logged. Register / Login'); (edited by Wolfling on 09-18-05 04:05 PM) |
|||
ExKeeper Bullet Bill Level: 31 Posts: 490/512 EXP: 180084 For next: 5279 Since: 03-05-05 From: Riiight ^ Since last post: 1 day Last activity: 6 hours |
| ||
here is my version, place this under if($ipbanned) die(\\\"$header $tblstart$tccell1>Sorry, but your IP address is banned from this board.$tblend$footer\\\"); in layout.php: if(!$log and $url!=%register.php% and $url!=%login.php%) die(\\\"$header $tblstart$tccell1>You must be logged in to access the board.$tblend$footer\\\"); I think this one will work |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread |
Acmlm's Board - I2 Archive - Acmlmboard support? - Blocking view from guests | | | |