Jump to the post that solved this thread.
Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved Add a hook to usercp.php
#4
Not Solved
Then just use:

$plugins->add_hook("usercp_do_profile_start", "my_function");

function my_function()
{
global $mybb;
// . . .
if (preg_match($regex, $mybb->input['profile_fields']['fid4'])) {
// filter here
}
}

You'll need to replace 'fid4' with 'fidX' X being the id of your new custom profile fields.
[retired]
Jump to the post that solved this thread.


Messages In This Thread
Add a hook to usercp.php - by marcus123 - 2014-01-27, 03:26 PM
RE: Add a hook to usercp.php - by Wildcard - 2014-01-27, 05:25 PM
RE: Add a hook to usercp.php - by marcus123 - 2014-01-27, 05:33 PM
RE: Add a hook to usercp.php - by Wildcard - 2014-01-27, 05:45 PM
RE: Add a hook to usercp.php - by marcus123 - 2014-01-27, 05:54 PM
RE: Add a hook to usercp.php - by Wildcard - 2014-01-27, 06:18 PM
RE: Add a hook to usercp.php - by marcus123 - 2014-01-27, 06:22 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)