suspended users

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   suspended users
Killa
CZ Super Newbie
Killa has been a member for over 20 year's 20 Year Member
usa.gif newyork.gif
Gender: Male
Status: Offline
Joined: Apr 02, 2004
0.01 posts per day
Posts: 65
Points: 4,417
   
it seems some of my members get suspended at random.I have not suspended them nor do they show in the suspended cat. in the admin panel..just wondering what could be causing this thx...



Back to top Reply with quote
#2   re: suspended users
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,475
   
in file deleteuserconf.php line 22 you will have

$db->sql_query("UPDATE ".$user_prefix."_users SET name='"._MEMDEL."', user_email='".md5($email)."', user_password='".md5($user_email)."', user_website='', user_sig='', user_regdate='Non 0, 0000', user_level='-1', user_active='0', user_allow_pm='0', points='0' WHERE user_id='$del_uid'");

just remove the points='0' and it will work.

You should end with this

$db->sql_query("UPDATE ".$user_prefix."_users SET name='"._MEMDEL."', user_email='".md5($email)."', user_password='".md5($user_email)."', user_website='', user_sig='', user_regdate='Non 0, 0000', user_level='-1', user_active='0', user_allow_pm='0' WHERE user_id='$del_uid'");




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   re: suspended users
Killa
CZ Super Newbie
Killa has been a member for over 20 year's 20 Year Member
usa.gif newyork.gif
Gender: Male
Status: Offline
Joined: Apr 02, 2004
0.01 posts per day
Posts: 65
Points: 4,417
   
I dont see that file anywhere could you tell me where its located...thx



Back to top Reply with quote
#4   re: suspended users
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,475
   
When you say suspended i can only think that you have the NSNYA add-on. look in modules/Your_Account/admin/ for the file above.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#5   Re: re: suspended users
Killa
CZ Super Newbie
Killa has been a member for over 20 year's 20 Year Member
usa.gif newyork.gif
Gender: Male
Status: Offline
Joined: Apr 02, 2004
0.01 posts per day
Posts: 65
Points: 4,417
   


Originally posted by Telli @ Tue Apr 13, 2004 12:22 am:

When you say suspended i can only think that you have the NSNYA add-on. look in modules/Your_Account/admin/ for the file above.


hmmm there is no admin folder there...Im using your czenhanced 7.0



Back to top Reply with quote
#6   re: suspended users
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,475
   
Check the settings under admin>users make sure that you have that setting turned off.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#7   re: suspended users
Killa
CZ Super Newbie
Killa has been a member for over 20 year's 20 Year Member
usa.gif newyork.gif
Gender: Male
Status: Offline
Joined: Apr 02, 2004
0.01 posts per day
Posts: 65
Points: 4,417
   
yes its turned off its set to 0 weeks which says its disabled..what odd is sometime the users can log in....but most of the time it says there account has been suspended...odd and it dont happen to all my members just some.



Back to top Reply with quote
#8   re: suspended users
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,475
   
If you dont use it delete the whole function from the bottom of the mainfile.php then it wont suspend them.


Find and delete from the bottom of the mainfile.php

// NSN Mod
// WARNING THIS SECTION OF CODE CAN SLOW SITE LOAD TIME DOWN!!!!!!!!!!!!!
// IF YOU DO NOT WANT TO USE THIS CODE YOU DO NOT HAVE TO.
// THIS FUCTION IS IN USER ADMIN AND CAN BE TRIGGERED ONLY
// WHEN THE ADMIN WANTS IT RUN.
list($autosuspend) = $db->sql_fetchrow($db->sql_query("SELECT autosuspend FROM ".$prefix."_users_config WHERE ucid='1'"));
if ($autosuspend > 0){
    $st = $lv - $autosuspend;
    $susresult = $db->sql_query("SELECT user_id FROM ".$user_prefix."_users WHERE user_lastvisit <= $st AND user_level > 0");
    while(list($sus_uid) = $db->sql_fetchrow($susresult)) {
        $db->sql_query("UPDATE ".$user_prefix."_users SET user_level='0', user_active='0' WHERE user_id='$sus_uid'");
    }
}




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#9   re: suspended users
Killa
CZ Super Newbie
Killa has been a member for over 20 year's 20 Year Member
usa.gif newyork.gif
Gender: Male
Status: Offline
Joined: Apr 02, 2004
0.01 posts per day
Posts: 65
Points: 4,417
   
working fine now thx icon_smile.gif



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum