DragonPrime - LoGD Resource Community
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • April 25, 2018, 01:09:10 PM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: Kick Player  (Read 4785 times)
0 Members and 1 Guest are viewing this topic.
Sichae
iMod God
SVN Users
Mod God
*
Offline Offline

Posts: 3458


If ya didn't get it by now... you're hopeless...


View Profile WWW
« on: July 05, 2005, 10:00:43 PM »

Logs off and (optional) will lock their account. Should only be used in extreme cases.

Discussed here: http://dragonprime.net/index.php?board=20;action=display;threadid=2528

http://dragonprime.net/index.php?module=Downloads;sa=dlview;id=56
« Last Edit: July 07, 2006, 02:18:22 PM by Sichae » Logged

If you didn't understand anything in the above post, don't try to attempt anything suggested.

Freeze
Guest
« Reply #1 on: July 05, 2005, 10:08:14 PM »

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRI NG, expecting ')' in /home/lotgdre/public_html/modules/kick.php on line 11

Thats when you enter the Manage Modules.
« Last Edit: July 05, 2005, 10:08:41 PM by Anakin » Logged
Sichae
iMod God
SVN Users
Mod God
*
Offline Offline

Posts: 3458


If ya didn't get it by now... you're hopeless...


View Profile WWW
« Reply #2 on: July 05, 2005, 10:12:26 PM »

Fixed.
Logged

If you didn't understand anything in the above post, don't try to attempt anything suggested.

Freeze
Guest
« Reply #3 on: July 05, 2005, 10:21:56 PM »

I'm assuming you just set it to yes- "Has player been Kicked?"

Once set to yes, player is not logged off or locked.
Logged
Freeze
Guest
« Reply #4 on: July 05, 2005, 10:22:32 PM »

I retract that statement, it just took a few refreshes to activate. Thanks, it works great.
Logged
Sichae
iMod God
SVN Users
Mod God
*
Offline Offline

Posts: 3458


If ya didn't get it by now... you're hopeless...


View Profile WWW
« Reply #5 on: July 05, 2005, 10:22:33 PM »

You need to wait until they hit either the forest, village, shades or graveyard for it to take place. Tongue
Logged

If you didn't understand anything in the above post, don't try to attempt anything suggested.

Freeze
Guest
« Reply #6 on: July 05, 2005, 10:28:34 PM »

Ah. I was trying it on an account with SU powers, so it was in the grotto. Thanks.
Logged
Turock
Guest
« Reply #7 on: July 18, 2005, 10:36:34 PM »

Just a suggestion, instead of setting the session['loggedin'] to 0, use an SQL query.  That way anything the booted player does next results in them getting the login screen.  If a player is being disruptive they are going to do it in the commentary.  The way the module is now a disruptive player can continue to post and not get kicked.
Logged
Sichae
iMod God
SVN Users
Mod God
*
Offline Offline

Posts: 3458


If ya didn't get it by now... you're hopeless...


View Profile WWW
« Reply #8 on: July 18, 2005, 10:48:20 PM »

Done.
Logged

If you didn't understand anything in the above post, don't try to attempt anything suggested.

sixf00t4
Mod God
*****
Offline Offline

Posts: 1916



View Profile WWW
« Reply #9 on: September 13, 2005, 10:55:12 AM »

 Huh  what's going on with this module?  everything looks fine code wise...at first glance anyway, but it is taking me to a white page and the player is not kicked...
Logged

heywood
Guest
« Reply #10 on: October 22, 2005, 06:42:45 AM »

Im getting the same thing Six... I dunno will have to try it again.
Found a typo:

Line 43
Code:
function kick_fun(){

Should be:
Code:
function kick_run(){

I also had to change a mysql table callout to get it to work with mysql on my host.

I had to change Line 60:
From:
Code:
$sql = "UPDATE accounts SET loggedin=0 $extra WHERE acctid=$id";

To:
Code:
$sql = "UPDATE logd_accounts SET loggedin=0 $extra WHERE acctid=$id";

Now the kick works successfully.
« Last Edit: October 22, 2005, 08:15:18 AM by Merlin » Logged
sixf00t4
Mod God
*****
Offline Offline

Posts: 1916



View Profile WWW
« Reply #11 on: October 22, 2005, 08:16:59 AM »

Im getting the same thing Six... I dunno will have to try it again.
Found a typo:

Line 43
Code:
function kick_fun(){

Should be:
Code:
function kick_run(){

I also had to change a mysql table callout to get it to work with mysql on my host.

I had to change Line 60:
From:
Code:
$sql = "UPDATE accounts SET loggedin=0 $extra WHERE acctid=$id";

To:
Code:
$sql = "UPDATE logd_accounts SET loggedin=0 $extra WHERE acctid=$id";

Now the kick works successfully.

I say, good show ol boy!

btw,
Code:
$sql = "UPDATE ".db_prefix("accounts")." SET loggedin=0 $extra WHERE acctid=$id";

is how the last part should look.
Logged

heywood
Guest
« Reply #12 on: October 22, 2005, 08:39:53 AM »

Maybe Sichae was thinking of kicking players as fun and it wasnt really a typo Smiley

Thanks for the sql table info, I remember that from the amulets module where the ".db_prefix needed to be used. Yours is correct.
« Last Edit: October 22, 2005, 08:40:48 AM by Merlin » Logged
Sichae
iMod God
SVN Users
Mod God
*
Offline Offline

Posts: 3458


If ya didn't get it by now... you're hopeless...


View Profile WWW
« Reply #13 on: October 22, 2005, 09:20:18 AM »

Fixed.
Logged

If you didn't understand anything in the above post, don't try to attempt anything suggested.

Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Welcome to DragonPrime - The LoGD Resource Community!

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
43 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search