GHC Webmaster
08-11-2008, 09:09 AM
Hello,
I'm looking for a way to create a link which searches in the memberlist for a value in a custom profile field (single selection menu).
That in itself is not so difficult. See for example here:
http://www.vbulletin.com/forum/showthread.php?t=169266
However: I want the value to search for to be the value which the current user has selected in their own profile.
More specific: I have a single selection menu for countries. I want a link which states: Click here to find all the users in your country.
That would be something like
memberlist.php?do=getall&field7=[somecode whichs gets the integer value belonging to the country of the user clicking the link]
Any idea how this could be done?
Any help would be appreciated.
Regards,
Walrick
--------------- Added 1218451594 at 1218451594 ---------------
Please note that "$bbuserinfo[field7]" doesn not work.
The field is a single-selection menu, which means that the value which is needed in the URL is an integer. But $bbuserinfo[field7] gives me not the integer but the actual contents of the field. That is what makes this a difficult case. Somehow I have to translate the contents of the user's profile field into the corresponding integer.
I'm looking for a way to create a link which searches in the memberlist for a value in a custom profile field (single selection menu).
That in itself is not so difficult. See for example here:
http://www.vbulletin.com/forum/showthread.php?t=169266
However: I want the value to search for to be the value which the current user has selected in their own profile.
More specific: I have a single selection menu for countries. I want a link which states: Click here to find all the users in your country.
That would be something like
memberlist.php?do=getall&field7=[somecode whichs gets the integer value belonging to the country of the user clicking the link]
Any idea how this could be done?
Any help would be appreciated.
Regards,
Walrick
--------------- Added 1218451594 at 1218451594 ---------------
Please note that "$bbuserinfo[field7]" doesn not work.
The field is a single-selection menu, which means that the value which is needed in the URL is an integer. But $bbuserinfo[field7] gives me not the integer but the actual contents of the field. That is what makes this a difficult case. Somehow I have to translate the contents of the user's profile field into the corresponding integer.