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

custom /member/profile URIs and/or hook

Development and Programming

viewcreative's avatar
viewcreative
116 posts
16 years ago
viewcreative's avatar viewcreative

Hi.

I’m currently working on a client project that requires a heavily customised member profile / member control panel.

I’ve reached a point where I can’t quite work out what I need to do next.

Basically we require the ability to to listen for custom URIs e.g.

/member/profile/do_something_extra_special

and then carry out an action based on the URI e.g.

function some_made_up_hook() {
  global $IN;
  
  switch($IN->segs[3]) {
    case 'do_something_extra_special':
      // do something....
    break;

  }

}

However. As you are more than likely already aware, no suck hook exists.

If anyone can provide any insight, or just further information as to where I would go about adding my own hook and/or can bring anything more to the table, I’d be eternally grateful.

If I’m headed in the wrong direction and would be better off working within EE templates and modules to achieve the required functionality please advise. I’m generally confused as to what direction I should be taking. Any input is welcome.

Thanks in advance.

Matt

       
viewcreative's avatar
viewcreative
116 posts
16 years ago
viewcreative's avatar viewcreative

From just writing the above post, I think I’ve come to the conclusion that I should opt for the Module approach.

If any one has anything to add, then please feel free.

       

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.