PDA

View Full Version : Adminbit Question


Sanctum
01-19-2003, 03:43 AM
<tr>
<td bgcolor="$backcolor" nowrap><normalfont>
$onlinestatus</normalfont></td>
<td bgcolor="$backcolor" nowrap
width=100%><normalfont><b>
<a href="member.php?s=$session[sessionhash]&action=
getinfo&userid=$user[userid]">$user[username]
</a></b><br>$user[avatar]</normalfont></td>
<td bgcolor="$backcolor" nowrap><normalfont>$user[location]
</normalfont></td>
<td bgcolor="$backcolor"nowrap><normalfont>
$sendpmlink</normalfont></td>
</tr>



where its says $ user [userid ] how can I substitute this for a $ userinfo [ field x ] and get the information to show up?

Sanctum
01-19-2003, 04:11 AM
Ok I sorta figured out my own answer my next question would be this instead of the one previous. where it says [ location ] for the user how do i define the fields in the addtional fields area. Better yet what template are the default field names like location, intrests etc on.

See what I did was edit a few templates to get to this point now the problem is getting the information there that I want.

The additonal information like in the mod I undertook relies on the additonal profile fields you make yourself for the user. Ive tried simply putting in $ userinfo [ field 1 ] but it doesnt work.

Look at the attached image and youll see what Im looking for. Instead of the "username" I want to show a field called "Main" for the username currently there. Then I want to add in other fields as you can tell. If I cant get a direct link using the profile field parameters is there a way to have them included? I have papi installed also so is there a way use papi to do what Im wanting? Please any insight would be greatly appreciated.

By the way this is the "groups" template area Im editing.

Sanctum
01-20-2003, 11:41 AM
anyone?

Sanctum
01-21-2003, 10:23 AM
How do I include the "commands" so That I can use the $userinfo[field x] includes on the groups area of the forums. Please look at the pic. I have been able to use [user] [location] etc but not the field paramters HELP PLEASE :(

Cypher720
01-21-2003, 12:54 PM
i have no clue...thats why im not responding....ask filbie - he night know

Brad
01-21-2003, 10:52 PM
i belive it requires hacking showgroups.php or some code in the phpinclude template to show custom feilds on that page.

Sanctum
01-22-2003, 11:24 AM
Hmm I dont think it requires hacking any php code. Papi helps bypass alot of that. What I was thinking is finding out exactly which template defines the default [user][username][location] fields and changing / redefining them. If I can do that I can post to here what the php is. OR I can just add the [field x] parameters.

Sanctum
01-26-2003, 06:45 AM
shameless bump for a reply

Sanctum
01-26-2003, 12:04 PM
well doesnt matter i abandoned the idea. no way to figure it out

filburt1
01-26-2003, 02:24 PM
Editing bits almost always requires hacking.