In the favourite users tab
or anywhere ultimately
i would love to see a feature that allows right click on a users name
"Locate User"
that calls this address and either opens in browser or in Dc++ in a tab if possible
http://www.hublist.org/?p=search&mode=users&nick=(Enter User variable here)
I'd write it but im not any good at C++
feature reqest search for user
Moderator: Moderators
-
- DC++ Contributor
- Posts: 3212
- Joined: 2003-01-07 21:46
- Location: .pa.us
Re: feature reqest search for user
resource.h:carl0s wrote:I'd write it but im not any good at C++
Code: Select all
IDC_HUBLIST_LOC_USER 1112
Code: Select all
COMMAND_ID_HANDLER(IDC_HUBLIST_LOC_USER, onHublistLocUser)
Code: Select all
LRESULT onHublistLocUser(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/);
Code: Select all
userMenu.AppendMenu(IDC_HUBLIST_LOC_USER, STRING(HUBLIST_LOCATE_USER));
Code: Select all
LRESULT onHublistLocUser(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/) {
int i = ctrlUsers.GetNextItem(-1, LVNI_SELECTED);
if(ctrlUsers.GetSelectedCount() == 1 && i != -1) {
string nick = (ctrlUsers.getItemData(i))->user->getNick();
WinUtil::openLink("http://www.hublist.org/?p=search&mode=users&nick=" + Util::encodeUri(nick));
}
return 0;
}
Code: Select all
HUBLIST_LOCATE_USER, // "Locate user using Hublist.org"