vb.org Archive

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

Davidspl 04-07-2006 04:19 PM

Custom Profile Options
 
1 Attachment(s)
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 05: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


HTML Code:

                                        <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 06: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 10:15 PM

Sure thing, glad it worked out :)

Dufachi 04-16-2006 04: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)

Code:

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


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:

Code:

<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!


All times are GMT. The time now is 10:54 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.01794 seconds
  • Memory Usage 1,728KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete