We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Control Panel Member Search

Development and Programming

steve.sweetland's avatar
steve.sweetland
35 posts
16 years ago
steve.sweetland's avatar steve.sweetland

Following on from this thread

http://ellislab.com/forums/viewthread/111206/

I need to write myself an extension / plugin / module (?) to the current member search system in the control panel.

I really dont know an awful lot about this, so i was wondering if i could get some general direction.

I know thats really vague, but i cant really be specific - when i dont know what im being specific about. All i know for sure is the current member search form wont do what i want - so i need to make a search do what i want - preferably in the control panel.

Thanks for any help 😊

       
steve.sweetland's avatar
steve.sweetland
35 posts
16 years ago
steve.sweetland's avatar steve.sweetland

Reading this:

http://expressionengine.com/wiki/What_is_the_difference_between_modules_plugins_extensions_and_expansions/

Leads me to believe its an extension i need.

       
steve.sweetland's avatar
steve.sweetland
35 posts
16 years ago
steve.sweetland's avatar steve.sweetland

Reading THIS however:

http://expressionengine.com/developers/extension_hooks/

doesnt make me feel good…. this makes me feel like there isnt an extension hook to do what i want to…

       
steve.sweetland's avatar
steve.sweetland
35 posts
16 years ago
steve.sweetland's avatar steve.sweetland

OK.

Just updating this thread to let any readers / potential helpers know where im at.

Iv figured out that cp.member.php contains the functions member_search_form() and do_member_search() which i would be able to amend to achieve what i need to. Iv edited the form and sql to prove this theory, and i can do it - buuuut, if i do that, i lose the exisiting search functionality, and it involves more cludging than im really happy doing.

Theres no extension hook to change the functionality - so, the question is… how do i extend the control panel functionality to include functions that dont already exist?

       
Lisa Wess's avatar
Lisa Wess
20,502 posts
16 years ago
Lisa Wess's avatar Lisa Wess
Theres no extension hook to change the functionality - so, the question is… how do i extend the control panel functionality to include functions that dont already exist?

This would require hacking the core code and tracking your changes so you can upgrade and re-implement them.

       
steve.sweetland's avatar
steve.sweetland
35 posts
16 years ago
steve.sweetland's avatar steve.sweetland

If i write an extension to achieve the search functionality i want to do - is it possible to amend the ‘members and groups’ page to include my new link, without hacking around core code?

If not, ill just run it from a new tab… ultimately id like to be able to use this extension on other sites.

Looks like im learning how to write extensions today!

Next question: is there a hook for when a new custom profile field is added?

       
steve.sweetland's avatar
steve.sweetland
35 posts
16 years ago
steve.sweetland's avatar steve.sweetland

….actually, i think its a module i need to write.

       
steve.sweetland's avatar
steve.sweetland
35 posts
16 years ago
steve.sweetland's avatar steve.sweetland

…. just for everyones info: hacked cp.members.php to do what i want.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.