Log in

View Full Version : Custom Profile Options


Davidspl
04-07-2006, 05:19 PM
Where can i find this hack, that adds extra comments for a user under there join date ect, as seen in attached picture.

And you fill the answers to these questions in the Additional Information part in your profile. Could be for things like favourite colour = red , ect

I see this site has it in edit profile, questions such as Favorite Hack and Real Name...

Thanks.

GTAce
04-07-2006, 06:04 PM
In the User Profile Fields section of your ACP, click "Add New User Profile Field" and fill out that information. Then, click "User Profile Field Manager" and find the id number of that new field. It will be in the name column, I'll use field2 for this example.

Just make note of that number and go to Style Manager and edit your postbit_legacy template (assuming you are using vertical postbits) and then place this code where you want it to display


<if condition="$post['field2']"><div>Custom Field: $post[field2]</div></if>

Replace the 2 with the id of your new field and "Custom Field" with the title of course.

Davidspl
04-07-2006, 07:47 PM
Thanks so much, just got it done, took me a little while but wanted to make no mistakes, thanks again for that, im well happy, it lot it looks really good. :banana:

GTAce
04-08-2006, 11:15 PM
Sure thing, glad it worked out :)

Dufachi
04-16-2006, 05:27 AM
Okay. I tried this.. but the template doesn't update for some reason.

Edit: nm. found out you need to edit 'postbit' and not the legacy one. :)

McMendo
11-02-2006, 07:31 PM
How can I make the fonts for the profile fields smaller? (without the User Title and the Custom User Title above the avatar picture getting smaller)

<div class="smallfont">renders the same size as the rest of the text in the post.

adwade
11-08-2006, 05:11 AM
Just wanted to post a LINK to a MOD that does this, however at the expense of additional queries. Per Farcaster, The MOD requires "a separate query for each profile field and for each post, thus the extra queries needed become exponential for the number of posts per page and the number of profile fields." :disappointed: Anyway, I found the MOD first and thought others might be interested to know such a MOD even exists.

Profile Fields in Postbits
Ref: https://vborg.vbsupport.ru/showthread.php?t=123619

LauraM
11-08-2006, 07:02 PM
Thanks, I've been wanting to figure out how to do this! But I do have another question, how do I make the fieldname in bold, without effecting the rest of the text, or the user's custom title text?

scdurwood
11-08-2006, 07:56 PM
easiest way should be:

<if condition="$post['field2']"><div>Custom Field: <strong>$post[field2]</strong></div></if>

LauraM
11-11-2006, 01:16 PM
Hmmm........that puts the text that comes after the fieldname in bold, but the fieldname is not bold. It's backwards, in other words.

However, in seeing how that effected the fields in question, I was able to figure out where it should go in order to do what I wanted, so thanks!

kennethsia
06-17-2007, 01:23 AM
easiest mod ever thank you =)