Additional Settings For Custom Profile Fields [1.2]
Destroy666 Offline
Junior Member
**
Posts: 27
Joined: Jul 2012
Post: #164
RE: Additional Settings For Custom Profile Fields
Thanks, xt_proffields_load($GLOBALS['mybb']->user); in global hook worked well.

However, I have already tried changing the UserCP hook to global, it shows the inputs but:
1) It gives warnings like: "Warning [2] Illegal string offset 'Manchester City' - Line: 581 - File: C:\xampp\htdocs\mybb\inc\plugins\xt_proffields.php PHP 5.4.7 (WINNT)". Manchester City is one of profile field values.
2) After clicking Update Profile value isn't changed, I'm only redirected to UserCP. Here's what I tried:

Code:
1
2
3
4
5
6
<form action="usercp.php" method="post">
                              Favorite club: {$xtpf_minp['fid4']}<br />
                              <input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
                              <input type="hidden" name="action" value="do_update_xt_proffields" />
                              <input type="submit" class="button" value="Update Profile" />
</form>


Also what about min/max selection?

05-03-2013 06:58 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: Additional Settings For Custom Profile Fields - Destroy666 - 05-03-2013 06:58 AM

 Standard Tools
Forum Jump: