The website is for sale. Check here for more information.
This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.
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)

About MyBB-Plugins

Plug Yourself into the best MyBB AddOn.

Copyright © 2009-2021 MyBB-Plugins Forums.

Statistics

  • 51,000+ Posts
  • 19,000+ Members
  • 3,600+ Threads

Impressed? For sure
Check Full Stats here