CUSTOMIZATION - Ranks »  Show posts from    to     

Icy Phoenix


Documentation And How To - CUSTOMIZATION - Ranks



Limun [ Sun 04 May, 2008 11:24 ]
Post subject: CUSTOMIZATION - Ranks
I have this problem...
some members in their "user menade" have in:
rank 1 title - Automatic ranks by posts and others have
rank 2 title - Automatic ranks by days

so to some members ranks above avatar is shown (to this who have ranks by posts)
ant to others it not show (to this who have ranks by days)

i dont know why this is becomed different affter upgrading to icy....

ranking

so question is....
any way to made this for all members same...
i want that all members have "rank 1 title - Automatic ranks by posts" like default

i have 5600 members please dont tell me that i will have to do it manualy one by one

thanks


KasLimon [ Sun 04 May, 2008 23:32 ]
Post subject: Re: Ranking
This query will set all existing users to rank by posts:

REPLACE ip_ WITH YOUR TABLE PREFIX
Specify the user ids you want to exclude in the highlighted part, separated by commas. Please do exclude anonymous (-1). All users excluded will not be affected by this query.
Code: [Hide] [Select]
UPDATE `ip_users` SET `user_rank` = '0' WHERE `user_id` NOT IN (-1,2,3);


Greets!


Limun [ Mon 05 May, 2008 02:59 ]
Post subject: Re: Ranking
KasLimon wrote: [View Post]
This query will set all existing users to rank by posts:

REPLACE ip_ WITH YOUR TABLE PREFIX
Specify the user ids you want to exclude in the highlighted part, separated by commas. Please do exclude anonymous (-1). All users excluded will not be affected by this query.
Code: [Hide] [Select]
UPDATE `ip_users` SET `user_rank` = '0' WHERE `user_id` NOT IN (-1,2,3);


Greets!


so i need to put only -1 and all members will be users with rank by posts ?

thanks Kas


KasLimon [ Mon 05 May, 2008 15:46 ]
Post subject: Re: Ranking
Yes


Limun [ Mon 05 May, 2008 15:47 ]
Post subject: Re: Ranking
KasLimon wrote: [View Post]
Yes Yes Yes Yes


thank you...i will report it when i made it...


Limun [ Mon 14 Jul, 2008 12:29 ]
Post subject: Re: Ranking
ok it worked perfectly

i made a mistake because i didnt thinked on administrators and moderators ranks , so they also becomed users by posts

thats why NOT IN (-1,2,3); u talked and i didnt thinked about

but i restored administrators and moderators ranks manualy (better this than 3000 members )

thank you very much KasL


Limun [ Thu 07 Aug, 2008 03:06 ]
Post subject: Re: SOLVED - Ranking
now i have trouble again with this

every new user is automactly added "rank 2 title - Automatic ranks by days" by default on when is registred

how to put it on "rank 1 title - Automatic ranks by posts" by default when is registred ?

thanks


andrea75 [ Thu 07 Aug, 2008 18:10 ]
Post subject: Re: SOLVED - Ranking
Limun wrote: [View Post]
now i have trouble again with this

every new user is automactly added "rank 2 title - Automatic ranks by days" by default on when is registred

how to put it on "rank 1 title - Automatic ranks by posts" by default when is registred ?

thanks


I have the same problem... I have tried to find a solution, but without success.


novice programmer [ Thu 07 Aug, 2008 18:25 ]
Post subject: Re: Ranking
Removing Solved tag....

Perhaps you should change the "0" for a "1" or "-1"


andrea75 [ Thu 07 Aug, 2008 18:27 ]
Post subject: Re: SOLVED - Ranking
Uhmmmm... maybe a find the solution, but I think is better if someone more expert confirm.

Try to execute this query:

Code: [Hide] [Select]
ALTER TABLE `phpbb_users` CHANGE `user_rank2` `user_rank2` INT( 11 ) NULL DEFAULT '-2'





EDIT: (I can't post another message because I'm the last user that post and is not passed one day since this post... it's a new function! )

KasLimon wrote: [View Post]
This query will set all existing users to rank by posts:

REPLACE ip_ WITH YOUR TABLE PREFIX
Specify the user ids you want to exclude in the highlighted part, separated by commas. Please do exclude anonymous (-1). All users excluded will not be affected by this query.
Code: [Hide] [Select]
UPDATE `ip_users` SET `user_rank` = '0' WHERE `user_id` NOT IN (-1,2,3);


Greets!


Uhmmmm.... I think that could be enough to execute this query:

Code: [Hide] [Select]
UPDATE phpbb_users SET user_rank2 = '-2' WHERE user_rank2 = '-1'


Because I see that Limun (but I was the same problem) has got rank by days on rank2. It's right?


Limun [ Fri 08 Aug, 2008 00:28 ]
Post subject: Re: Ranking
i m confused now

all i want that rank1 is "ranking by posts" as default also when new members register
rank2 is not important .... it can be empty


andrea75 [ Fri 08 Aug, 2008 09:57 ]
Post subject: Re: Ranking
Limun wrote: [View Post]
i m confused now

all i want that rank1 is "ranking by posts" as default also when new members register
rank2 is not important .... it can be empty


To do this I have executed this queries:

Code: [Hide] [Select]
ALTER TABLE `phpbb_users` CHANGE `user_rank2` `user_rank2` INT( 11 ) NULL DEFAULT '-2'


This set as default for new members only first rank (by posts), and remove the second (by days)

Code: [Hide] [Select]
UPDATE phpbb_users SET user_rank2 = '-2' WHERE user_rank2 = '-1'


This empty the second rank for old members that has got "ranking by days" on their profile, but I think that you don't need to do this, because you have made the same thing with query that KasLimon suggest you, even if that don't need to set again all ranks for admin, mod, ecc. ecc.


Limun [ Fri 08 Aug, 2008 11:32 ]
Post subject: Re: Ranking
hmmm

so whic one of those 2 i need to do

as i see all is about user_rank2 , i dont see user_rank


andrea75 [ Fri 08 Aug, 2008 12:36 ]
Post subject: Re: Ranking
Limun wrote: [View Post]
hmmm

so whic one of those 2 i need to do

as i see all is about user_rank2 , i dont see user_rank


Use only first....
You don't see user_rank because this rank is ok. The problem, if u see the first image you post, is on user_rank2, that by default is actually set on "ranking by days". With first query I post above you'll set as empty rank2 by default, so all new users will have only "ranking by post" on their profile.
I hope you can understand now.....


Limun [ Fri 08 Aug, 2008 12:41 ]
Post subject: Re: Ranking
andrea75 wrote: [View Post]
Limun wrote: [View Post]
hmmm

so whic one of those 2 i need to do

as i see all is about user_rank2 , i dont see user_rank


Use only first....
You don't see user_rank because this rank is ok. The problem, if u see the first image you post, is on user_rank2, that by default is actually set on "ranking by days". With first query I post above you'll set as empty rank2 by default, so all new users will have only "ranking by post" on their profile.
I hope you can understand now.....


but my rank1 is empty to all who is new registred (my first picture is before this new problem)

see this pic-this is newest registred member

abbba


andrea75 [ Fri 08 Aug, 2008 14:42 ]
Post subject: Re: Ranking
Limun wrote: [View Post]
andrea75 wrote: [View Post]
Limun wrote: [View Post]
hmmm

so whic one of those 2 i need to do

as i see all is about user_rank2 , i dont see user_rank


Use only first....
You don't see user_rank because this rank is ok. The problem, if u see the first image you post, is on user_rank2, that by default is actually set on "ranking by days". With first query I post above you'll set as empty rank2 by default, so all new users will have only "ranking by post" on their profile.
I hope you can understand now.....


but my rank1 is empty to all who is new registred (my first picture is before this new problem)

see this pic-this is newest registred member

abbba


Check in phpmyadmin what is the default value for user_rank, and make sure that it were "0".


Limun [ Fri 08 Aug, 2008 15:51 ]
Post subject: Re: Ranking
see pic

rnk

"Da" mean "Yes"


andrea75 [ Fri 08 Aug, 2008 17:04 ]
Post subject: Re: Ranking
Limun wrote: [View Post]
see pic

rnk

"Da" mean "Yes"


Uhmmmm... try this:

Code: [Hide] [Select]
ALTER TABLE `phpbb_users` CHANGE `user_rank` `user_rank` INT( 11 ) NULL DEFAULT '0';
ALTER TABLE `phpbb_users` CHANGE `user_rank2` `user_rank2` INT( 11 ) NULL DEFAULT '-2';


This should work.


Limun [ Sat 09 Aug, 2008 01:07 ]
Post subject: Re: Ranking
yes it work on my test forum..
i didnt ttryed in real one,because i cant export database from phpmyadmin i dunno why ...i get 0 mb and from ACP database is around 170mb

i will report when i done it on real forum

thank you andrea75 for your help


andrea75 [ Sat 09 Aug, 2008 09:17 ]
Post subject: Re: Ranking
You're welcome!


Limun [ Thu 14 Aug, 2008 16:15 ]
Post subject: Re: Ranking
Fixed...

thank you again andrea75 very much 0007


novice programmer [ Fri 22 Aug, 2008 09:35 ]
Post subject: Re: [Solved] Ranking
Locking and moving to faqs.


Mighty Gorgon [ Thu 28 Aug, 2008 15:05 ]
Post subject: Re: [Solved] Ranking
There is no need to lock this.

Please lock only when strictly needed.




Powered by Icy Phoenix