View Full Version : User Profile Field
n00belit3
01-15-2004, 10:40 PM
I made a new user profile field but how can i make it so that it shows next to location, posts, etc. in view topic?
corsacrazy
01-15-2004, 10:44 PM
edit template postbit :) and inslude it , see a post on vb.com or serch 4 it here mate
n00belit3
01-15-2004, 10:56 PM
ahhh ive found a few similar threads but not exactly what im looking for, cant you just tell me?
n00belit3
01-15-2004, 11:09 PM
omg i just need to find the code for editing the template postbit where is it??!?!?1
g-force2k2
01-15-2004, 11:21 PM
It's just
$post[fieldX]
X being the profilefieldid that you added.
It's easy to see if you just view the postbit templates don't be so demanding of people just trying to help.
Cheers,
g-force2k2
n00belit3
01-15-2004, 11:34 PM
sorry for my impatience, just really frustrating when something is supposed to be so simple and its giving me a headache cause i cant find it, is this piece of code in newthread.php, showtrhead.php, etc.? thnx in advance
g-force2k2
01-15-2004, 11:40 PM
Yeah it can be fustrating, and you don't need to apologize.
You add them:
Admin CP >> Edit Style >> Edit Templates >> Postbit Templates >> postbit_userinfo template
If you see where the other $post[fieldX] are you can put other word OR coding around it etc.
ie. if the field you made is for Hair Color and the profilefieldid was 6 then you would put something like.
<b>Hair Color: </b>$post[field6]<br />
below say $post[field5 OR 4]
Cheers,
g-force2k2
n00belit3
01-16-2004, 05:48 AM
Ok i think ive narrowed it down, its somewhere in this code but where exactly do i do the edting ( as you can see im not too experienced):
<!-- user info -->
<table cellpadding="0" cellspacing="$stylevar[cellpadding]" border="0" width="100%">
<tr>
<if condition="$show['avatar']"><td class="alt1"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
<td nowrap="nowrap">
<div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a style="font-size:14pt" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
$post[onlinestatus]
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]
</if>
</div>
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
</td>
<td width="100%"> </td>
<td valign="top" nowrap="nowrap">
<div class="smallfont">
<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
<div>
$vbphrase[posts]: $post[posts]
<if condition="$show['reputation']">$post[reputationdisplay]</if>
</div>
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div>
</div>
</td>
</tr>
</table>
<!-- / user info -->
Zachery
01-16-2004, 05:52 AM
under
<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
add
[html]<if condition="$post[fieldX]"><div>Bla: $post[fieldX]</div></if>
Replace X with the ID number and Bla witha a heading :)
n00belit3
01-16-2004, 06:31 AM
Did exactly that and replaced the variables but yet i get nothing when i view my forums :(
<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
<if condition="$post[field5]"><div>Favorite Band: $post[field5]</div></if>
Zachery
01-16-2004, 06:48 AM
Did exactly that and replaced the variables but yet i get nothing when i view my forums :(
<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
<if condition="$post[field5]"><div>Favorite Band: $post[field5]</div></if>
did you enter anything for it
n00belit3
01-16-2004, 06:49 AM
hehe yea
Zachery
01-16-2004, 06:50 AM
are you sure its field 5?
n00belit3
01-16-2004, 06:55 AM
yup.... so close yet so far :ermm:
corsacrazy
01-16-2004, 07:09 AM
are u useing the postbit like old vb2? of so edit postbit _legacy if not than make changest to the postbit template
Zachery
01-16-2004, 07:10 AM
are u useing the postbit like old vb2? of so edit postbit _legacy if not than make changest to the postbit template
omg <hits head> totaly forgot :) make sure to edit the correct template... :D
n00belit3
01-16-2004, 07:18 AM
Im going to Admin cp >>style manager >> Edit templates >> Postbit Templates>> postbit
then editing the code
I just assume the template i am modifying is the one i am using, how can i make sure though?
n00belit3
01-16-2004, 07:28 AM
lol ok well that isnt the template, i made some big changes to the code and nothing happened *slaps himself* How do i make sure the template i am editing is the one im using?
Zachery
01-16-2004, 07:35 AM
lol ok well that isnt the template, i made some big changes to the code and nothing happened *slaps himself* How do i make sure the template i am editing is the one im using?
are you using the legacy lik here? or the one at vbulletin.com is?
n00belit3
01-16-2004, 12:36 PM
the one at vbulletin.com but ive made some changes to it like colors etc.
n00belit3
01-16-2004, 10:44 PM
i guess somethings are just not meant to be :cry:
n00belit3
01-17-2004, 06:04 AM
OMG.......... problem solved i had to edit postbit_legacy not postbit since i had made a few changes to the default style :knockedout:
took me forever but i got it :banana:
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.