Additional Settings For Custom Profile Fields [1.2]
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #165
RE: Additional Settings For Custom Profile Fields
(05-03-2013 06:58 AM)Destroy666 Wrote:  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.
Try downloading the file from the first post (I've updated it) so (hopefully) it "supports" PHP 5.4.

Use codes like this for displaying the value globally:

PHP Code:
$plugins->add_hook('global_start','xt_proffields_gs');
function xt_proffields_gs(){
	global $xtpf;
	$xtpf = xt_proffields_load($GLOBALS['mybb']->user);
}


(05-03-2013 06:58 AM)Destroy666 Wrote:  2) After clicking Update Profile value isn't changed, I'm only redirected to UserCP.
At least add the variable to display the inline_error in your template so you know why it isn't updated.

(05-03-2013 06:58 AM)Destroy666 Wrote:  Also what about min/max selection?
Maybe later.

05-04-2013 05:46 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 - RateU - 05-04-2013 05:46 AM

 Standard Tools
Forum Jump: