Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
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
Posted on 09-18-05 05:29 AM Link | Quote
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
Posted on 09-18-05 06:00 AM Link | Quote
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
Posted on 09-18-05 07:17 AM Link | Quote
Originally posted by Rainbow Shy Guy
Put this on every page or on layout not sure
if(!$log) errorpage('You must be logged in to BLAH BLAH BLAH.');
Woo, 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
Posted on 09-18-05 08:27 AM Link | Quote
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
Posted on 09-18-05 11:30 AM Link | Quote
Originally posted by Elric
So which file(s) did it have to go in?
I 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
Posted on 09-18-05 11:54 AM Link | Quote
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
Posted on 09-18-05 03:29 PM Link | Quote
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
Posted on 09-18-05 03:53 PM Link | Quote
Originally posted by Mercury
Most (all?) pages use layout.php, so if you would put it there, it should work as well.


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
Posted on 09-18-05 07:20 PM Link | Quote
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.
Posted on 09-19-05 01:01 AM Link | Quote
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
Posted on 09-19-05 01:04 AM Link | Quote
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
Posted on 09-24-05 07:01 AM Link | Quote
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 | |


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.021 seconds.