PDA

View Full Version : Mods can search users by email address


Spinball
02-12-2005, 10:00 PM
My mods have requested the ability to search for users by email address.
Useful if they want to find people from a particular organisation who are using real email addresses.
It's an easy hack requiring 1 file edit. Nothing fancy, but useful results.
13th Feb 2005.
Updated 15th April 2005 to work on 3.0.7

Watson
02-14-2005, 09:51 AM
Thanks for this

/me clicks install

MauriceReed
02-16-2005, 01:28 AM
nice little addition mate...installed

Watson
02-18-2005, 08:19 PM
Got this problem from 1 of my mods

was in the mod control panel a few mins ago and decided to try this email search function out.

i entered my email address into the field and left the username field blank. I got the following message

Please Complete All Required Fields.

If I put in a username it seemed to ignore the fact that an email address had been entered.

Spinball
02-18-2005, 08:34 PM
Well it works perfectly for me so I can only think you implemented the hack wrongly.
The line
if (empty($findname) and empty($findemail))
ensures that the 'please complete required fields' message only happens if both the name and email address are empty.

Watson
02-19-2005, 08:18 AM
[removed]

Note: You break the license agreement when posting up a whole vBulletin file. It's firmly against our rules to do so here :)

Spinball
02-22-2005, 05:54 PM
It looks alright. Sorry, I'm stumped, then :(

Godzilla MR2
03-14-2005, 11:23 PM
ya, I get the same thing. Please Complete All Required Fields.
vb3.0.7

Spinball
03-15-2005, 08:30 AM
Maybe a better coder than me could look into this?

Marco van Herwaarden
03-15-2005, 11:06 AM
You are missing 1 edit.

Find in the modcp/user.php:
globalize($_REQUEST, array('findname' => STR_NOHTML, 'exact'));


and REPLACE with:
globalize($_REQUEST, array('findname' => STR_NOHTML, 'findemail' => STR_NOHTML, 'exact'));

YLP1
03-19-2005, 01:55 PM
I am running ver 3.0.7 and my User.php is very different. Will there be revised mod for this version?

Thanks in advance.

Spinball
03-21-2005, 04:09 PM
Thanks MarcoH64.
YLP1, it takes me a whole day to upgrade vB to a new version so when they released 3.0.6 and 3.0.7 so quickly after 3.0.5 I got a bit fed up with the vB team. So I'm still at 3.0.6.
When I can be bothered to go to 3.0.7 I will have to revisit this hack, I guess.

Marco van Herwaarden
03-21-2005, 07:24 PM
I am running ver 3.0.7 and my User.php is very different. Will there be revised mod for this version?

Thanks in advance.There is exactly 1 line (a bit) different between 3.0.6 and 3.0.7

Watson
03-23-2005, 05:25 AM
Cheers guys :)

Spinball
04-17-2005, 12:11 PM
Just (finally!) got round to updating this hack now I have upgraded our board.
Tested with 3.0.7 and it works fine.

Megareus Rex
05-22-2005, 10:55 PM
Excellent hack. Glad to have it.

mma365
04-02-2007, 01:38 PM
Will this work with 3.6?

Spinball
04-02-2007, 02:34 PM
No I think it requires a tweak.
I don't know how to work the new plugin system so I haven't updated this.