News:

Join the Facebook Fan Page.

Main Menu

user details

Started by samimikawi, March 22, 2017, 02:40:20 AM

Previous topic - Next topic

samimikawi

hello guys , small help , i have the below code , what if for example i want to show the username details instead of $user like example:

sami is a registered user in my forum and i want to echo his details and avatar in a custom php , i have the below code.

but no idea how to echo a specific user if i have his username .

thanks

echo '
   <table>';
   foreach($UserArray as $user)
   {
      loadMemberData($user['id']);
      loadMemberContext($user['id']);
     
      echo '
         <tr>
             <td class="windowbg">
            '.$memberContext[$user['id']]['avatar']['image'].'
             </td>
         </tr>';
      }
   echo '
   </table>';

Kindred

well, that's a mess... and won't ever work.

Can you be more specific as to what you are actually trying to do/output and why?
Are you doing this on  page outside of SMF?
If inside of SMF, what page?

is Sami logged in when you display his information or are you displaying his information as part of a search by another user?

etc etc etc...   you need to provide ALOT more detail...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

samimikawi

Dear Kindred,

i m making a staff page so example sami is administrator so i need to make a code to output

Sami - Founder (*)          ----------------- 
Sys Config             |              |
Join Date: 14/April/2016       |              |
Email: [email protected]         |              |
Country: ( FLAG)            |    AVATAR   |
Location: Dubai               |             |
Gender: ( Gender Logo )       |              |
Posts: 35              |               |
(1) (2) (3)                      -----------------

------------------------------------------------------------------

Founder is his primary Rank
Sami is clickable to go to his profile
(*) his stars that specified in the Founder in member group
Sys Config is the Additonal Member Group
(1) - facebook button going to his facebook
(2) - twitter button going to his twitter
(3) - google+ button going to his google+

------------------------------------------------------------------

Mode Installed:
1- Add Social Media Icons to Profiles
2- AddiotnalMembergroups
3- Country Flags
4- JDALIP - Join Date and Location In Posbit
5- Ranks Based on Time Online

-----------------------------------------------------------------

style and page already done only i need to display the output depend on the username i specify inside the code

thanks

Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

samimikawi

none of them is what i require

i just want a small code like example i put the username : Sami

and i want to get this sami avatar as example  what should i write just a small code and i can do the rest.

Kindred

Look at how those mods do it
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: