Hello There, Guest! › Register

MySubscriptions 2.2 released.
Looking for a custom plugin for your site? Ask here for a quote.

Show profilefields on pop up buddylist
#1

i hope that this time i'm in the right place Tongue

i want to show profilefields on pop up  buddylist but i don't know what php file i've to edit xD

Any clue?

Edit:
i think that i've to edit misc.php
i add something like this
PHP Code:
$useroptq2 $db->query("SELECT fid4 FROM test_userfields WHERE ufid=". (int)$user['uid']. "");
 
        $user_opt2 $db->fetch_array($useroptq2"fid4");
 
        $user_opt2 $user_opt2["fid4"]; 
but nothing Undecided

i also read this
http://community.mybb.com/thread-162659.html

but nothing Sad

somebody can help me?

sorry for my bad english i'm romanian
Reply
#2

You need to edit the misc.php file, that's right. You will also need to modify the templates that belong to the popup list in order to show the profile fields.
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
Reply
#3

i insert this on misc.php

$useroptq2 = $db->query("SELECT fid4 FROM test_userfields WHERE ufid=". (int)$user['uid']. "");
$user_opt2 = $db->fetch_array($useroptq2, "fid4");
$user_opt2 = $user_opt2["fid4"];


and this on the misc_buddypopup_user_online
{$user_opt2}

but nothing...for you where do i do wrong?
Reply
#4

Where exactly did you put that? You need to put that inside the
PHP Code:
elseif($mybb->input['action'] == "buddypopup"

if clause. before:
PHP Code:
eval("\$buddys['online'] .= \"".$templates->get("misc_buddypopup_user_online")."\";"); 


But your code won't work because $user is not what you want. You want $buddy
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
Reply
#5

i put exactly after the elseif
but i don't understand what you mean by

Quote:But your code won't work because $user is not what you want. You want $buddy

EDIT

ahhh now i understand
like i say i no speak or understand english very well Big Grin

thank's so much Diogo , your better than official support
Reply
#6

I'm glad it's working Wink
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
Reply




Users browsing this thread: 1 Guest(s)