1

Topic: Adding Featured Criteria to CP Filter

[img]http://www.filipina-lady.net/test253/featuremod01.jpg[/img]


[img]http://www.filipina-lady.net/test253/featuremod02.jpg[/img]

[img]http://www.filipina-lady.net/test253/featuremod03.jpg[/img]

[img]http://www.filipina-lady.net/test253/featuremod04.jpg[/img]


THE FOLLOWING IS RAMIL'S CODE TO ADD FEATURED MEMBERS AS A FILTER CRITERIA


In your Includes folder OPEN: cp.members.php


FIND:  $_GET['status'] == "0"

On the same line AFTER "0" ADD:  ||  $_GET['status'] == "3"

NOTE: you have to add ||  $_GET['status'] == "3" after every instance of  $_GET['status'] == "0". For version 2.5.3 there were five  $_GET['status'] == "0" in cp.members.php.

[img]http://www.filipina-lady.net/test253/featuremod05.jpg[/img]


FIND: $wherestatus = $status == 0 ? "m.active='0'" : $wherestatus;

ADD ON NEXT LINE: $wherestatus = $status == 3 ? "m.featured='1'" : $wherestatus;


FIND: $status_box['0'] = ($LANG['members']['inactive']);

ADD ON NEXT LINE: $status_box['3'] = "Featured";


Thanks Ramil for the code
http://www.vldcrowd.com

2

Re: Adding Featured Criteria to CP Filter

I did not say this in the tutor above, but I wanted to say this little gem gave me the freedom to choose featured members where I want. Before, I use to only choose featured members that were located close together so it would make it easier to find them. Now with the Feature filter, I have no fear of choosing featured members anyplace on my site be it page 3, page 10,  page 14,  page 22, etc and when time comes to de-select, I can now filter and find quickly.  Basically I now have the freedom to choose featured members no matter where they are located  without fear of having to spend tons of time trying to find them  when I was ready to de-select to add new members.

NOTE:  those who may remark that I can de-select featured members by editing the members account, I know that. It is still too cumbersome and time consuming. The filter makes it ten times faster and better.

Thanks Ramil.

Last edited by db3204 (2009-09-15 10:37:35)