vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   User Profile Field (https://vborg.vbsupport.ru/showthread.php?t=60283)

n00belit3 01-15-2004 10:40 PM

User Profile Field
 
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

PHP Code:

$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.

PHP Code:

<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%">&nbsp;</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

HTML Code:

<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 :(
HTML Code:

<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

Quote:

Originally Posted by n00belit3
Did exactly that and replaced the variables but yet i get nothing when i view my forums :(
HTML Code:

<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

Quote:

Originally Posted by corsacrazy
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

Quote:

Originally Posted by n00belit3
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:


All times are GMT. The time now is 06:19 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01212 seconds
  • Memory Usage 1,765KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_html_printable
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (22)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete