News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Some questions with SSI.

Started by djmentos, December 26, 2009, 04:32:47 AM

Previous topic - Next topic

djmentos

Hi.

I have 2 questions.
1. Is it possible to set ban active on ssi pages? Now user has ban only on /forum/ but he can visit other pages.

2. Can I make my own actions at 'who's online' page? Id like to add it from sites which are using ssi.
example.
user is at: /shop.php (+ssi)
and on board i can see: 'User is at shop.' :D

Arantor

1. You want to ban folks from using SSI pages, or want to set up permissions for it? (The two are quite different, but both are doable, though SSI should be checking for banned users too)

2.

$_GET['action'] = 'shop';
ssi_logOnline('array');


Then to Who.english.php add:

$txt['whoall_shop'] = 'User is at shop';
Holder of controversial views, all of which my own.


Kays

#2
To set bans as active using SSI.php add the following before SSI.php is included.

$ssi_ban = 1;

$ssi_ban = true;

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

spottedhog

Kays, would you please consider modifying your posting?

Please change this:

$ssi_ban = 1;

...to this:

$ssi_ban = true;

I had tested this a long time ago and only $ssi_ban = true; worked for me.  Recently someone else had a problem with banned users being able to see a page using $ssi_ban = 1;, but instead $ssi_ban = true; worked for them.

Link:  http://www.simplemachines.org/community/index.php?topic=390093

Kays

My mistake. I don't know why I used  1 instead of true. For 2.0 === is used to check instead of == so the match needs to be exact. For 1.x it didn't matter.

Thanks for pointing this out.

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

Advertisement: