Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 

No none activated user count and shown

Do you want this in next IcyPhoenix release?

Yes, it's usefull
You can, I don't care about it.
No, because I don't like it.

View Results
Reply with quote Download Post 
Post No none activated user count and shown 
 
Hello @all,

if you want that users whitch are not activated shouldn't be shown in
memberlist and shouldn't be count.

OPEN includes/functions.php
FIND
Code: [Download] [Hide] [Select]
        case 'newestuser':
            $sql = "SELECT user_id, username
                FROM " . USERS_TABLE . "
                WHERE user_id <> " . ANONYMOUS . "
                ORDER BY user_id DESC
                LIMIT 1";
            break;

REPLACE WITH
Code: [Download] [Hide] [Select]
        case 'newestuser':
            $sql = "SELECT user_id, username
                FROM " . USERS_TABLE . "
                WHERE user_id <> " . ANONYMOUS . " AND user_active = 1
                ORDER BY user_id DESC
                LIMIT 1";
            break;



OPEN memberlist.php
FIND
Code: [Download] [Hide] [Select]
    $sql = "SELECT count(*) AS total
        FROM " . USERS_TABLE . " u
        WHERE user_id <> " . ANONYMOUS . " AND user_active = 1
        $where_sql
        $alpha_where";

REPLACE WITH
Code: [Download] [Hide] [Select]
    $sql = "SELECT count(*) AS total
        FROM " . USERS_TABLE . " u
        WHERE user_id <> " . ANONYMOUS . " AND user_active = 1
        $where_sql
        $alpha_where";


FIND
Code: [Download] [Hide] [Select]
$sql = "SELECT u.*, t.*
    FROM " . USERS_TABLE . " u, " . THEMES_TABLE . " t
    WHERE u.user_id <> " . ANONYMOUS . "
    AND t.themes_id = u.user_style
    $where_sql
    $alpha_where
    ORDER BY $order_by";

REPLACE WITH
Code: [Download] [Hide] [Select]
$sql = "SELECT u.*, t.*
    FROM " . USERS_TABLE . " u, " . THEMES_TABLE . " t
    WHERE u.user_id <> " . ANONYMOUS . " AND user_active = 1
    AND t.themes_id = u.user_style
    $where_sql
    $alpha_where
    ORDER BY $order_by";


@MG: Maybe it could be standard in IcyPhoenix.
 



 
TheSteffenSend private message  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: No None Activated User Count And Shown 
 
Hi! That rules! Great work TheSteffen! (Danke viele)

It's a little bit strange when you clean users and you see that number of users goes down .
Can it be a standard?
 




____________
My 2 IP Forums:
ModMovil: Motorola, Nokia, SonyEricsson
 
tiolaluSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: No none activated user count and shown 
 
Only mighty knows  

ps: great work steffen
 




____________
? Zuker - EDDB - LPM - Sharefields
 
ZukerSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: No none activated user count and shown 
 
It's not from me Zuker  

It's from phpbb... but it was important for my site.

Great you like it  
 



 
TheSteffenSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: No none activated user count and shown 
 
TheSteffen wrote: [View Post]
It's not from me Zuker  

It's from phpbb... but it was important for my site.

Great you like it  

He he he...

Steffen, create a poll... and when we will reach 25 votes casted we will take the decision that the major part of users did choose...

DemocrIcy Phoenix!
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: No None Activated User Count And Shown 
 
I have to say I like it...

I've been doing this manualy for the last two years, I think it would be a cool feature.

After all who needs non-Active Users  
 



 
jzSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: No none activated user count and shown 
 
I have vote now and i voted for yes.

but if MG wants to add this, the admin should see ALL users.  
 




____________

Play Games at GamesCampus!
 
KugeLSichASend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: No none activated user count and shown 
 
BTW who have voted before TheSteffen edited his post, please vote again
 




____________

Play Games at GamesCampus!
 
KugeLSichASend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: No None Activated User Count And Shown 
 
voted again  
 



 
jzSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: No none activated user count and shown 
 
personally I don't care about the number of members  
 



 
z3d0Send private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: No None Activated User Count And Shown 
 
Voted again .
 




____________
My 2 IP Forums:
ModMovil: Motorola, Nokia, SonyEricsson
 
tiolaluSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: No none activated user count and shown 
 
z3d0 wrote: [View Post]
personally I don't care about the number of members  


me too
 




____________
? Zuker - EDDB - LPM - Sharefields
 
ZukerSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: No none activated user count and shown 
 
I like it, but it should be optional.
Like a ACP switch in user management: Show not activated users - yes / no
 




____________
No support via PM or E-Mail!
FAP 3, yeah baby, yeah!
 
TomSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: No none activated user count and shown 
 
Ok... added with a switch...
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: No none activated user count and shown 
 
Thanks, you are the greatest  
 



 
TheSteffenSend private message  
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events


  

 

  cron