vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Mods can search users by email address (https://vborg.vbsupport.ru/showthread.php?t=76238)

Spinball 02-12-2005 10:00 PM

Mods can search users by email address
 
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

Quote:

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
PHP Code:

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:
PHP Code:

    globalize($_REQUEST, array('findname' => STR_NOHTML'exact')); 

and REPLACE with:
PHP Code:

    globalize($_REQUEST, array('findname' => STR_NOHTML'findemail' => STR_NOHTML'exact')); 



All times are GMT. The time now is 12:32 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02325 seconds
  • Memory Usage 1,736KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete