PDA

View Full Version : Predefiined search in a button/link


1atlas
05-05-2005, 06:35 PM
Hi,
I would like to create a button/link which links to the memberlist but through a query. I understand creating the button but confused on the search with a set value.

For example: Here is the button text: [Click here to view all Male Members.] When clicked, the memberlist screen is shown with all members who have the custom profile field 'sex' set to "Male". Essentially the same thing as the letterbits but selecting by a field other than just the first letter of a username.

Thanks!

Anyone think this is possible?

1atlas
05-17-2005, 07:51 PM
Anyone?

Princeton
05-17-2005, 08:05 PM
I think this is the url -- not sure (just guessing)

memberlist.php?s=&do=getall&field14=1&sort=username&order=desc&pp=50

change the following:
field14=1 (this is the profile field and option)
sort=username (sorting option)
order (asc/desc)
pp (perpage)

1atlas
05-19-2005, 05:59 PM
Princeton..... You ROCK!!! Thanks so much!