MyBB Community Forums

Full Version: Link ID To Custom Profile Fields/Custom Edit Pages
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm trying to figure out how to add an ID number to a custom profile fields name in the usercp as well as the modcp so that eventually I can make links up at the top of those pages where people can click the link and it jumps down to that profile field so that can easily find it.

I'm thinking this will require some sort of core edit but for example I have added this to the top of my Mod CP in hopes that it would start something:
<a href="#find_me_{$customfields['fid31']}">Bio</a>

However, I need to be able to add the find me as an ID on the custom fields but I don't see a template for it anywhere:
id="find_me_{$customfields['fid']}"

Would this be possible?


ORRRRRR


Would it be possible to create my OWN custom edit profile/mod cp profile editor pages?

Like adding something along these lines in for specific custom fields:
{$customfields['fid31']}
^ Doing the above gave me this error so apparently the above isn't possible but maybe I'm using the wrong variable:
The following warnings occurred:
Warning [2] Illegal string offset 'fid31' - Line: 16 - File: modcp.php(3202) : eval()'d code PHP 5.4.45 (Linux)
File	Line	Function
/modcp.php(3202) : eval()'d code	16	errorHandler->error
/modcp.php	3202	eval
Just going to bump this again and simplify my question to see if anyone can answer it.

How would I customize the edit profile page? I know I will need to use the corrrect variables for the profile field id, name and content.

Anyone have an answer? Here is an example: https://s28.postimg.org/uz3y395sd/Capture.png