Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-24-2015, 03:22 PM
LethalJ LethalJ is offline
 
Join Date: Feb 2013
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default About me tab editing

Good afternoon guys,

Hoping someone can give me some insight on how I'd achieve this. Many of our forum users are complaining about having too much information in the about me TAB as our forum is heavily customizable and has alot of custom user profile fields which control everything from hiding postbit items, to backgorund colors and even user rank colors.

Long story short I'm trying to edit the about me page to display only the basic information but all profile fields are being called by {vb: raw block_data.fields} which is showing to all our users. I know there is an easier option which is changing the display page of them to options: 0ther as seen in the screenshot below but I'd rather them either stay where they are "edit profile" or if possible make a new display page for them.



If it possible to add another display page option eg called "Customize Profile" and then make a new page within "profile.php?do=editoptions"
If this isn't possible to do then if it possible fetching it from the custom fields individually instead of using {vb: raw block_data.fields}

I've tried using conditions such as <vb:if condition="$post['field2']">Location: {vb:raw post.field2}
<br /><br /></vb:if> but it only seems to work in postbit_legacy

Any help is greatly appreciated
Reply With Quote
  #2  
Old 09-24-2015, 08:57 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I believe it should be:

Code:
<vb:if condition="$userinfo['field2']">
[S]OR

Code:
<vb:if condition="$bbuserinfo['field2']">
[/S]

Off the top of my head without confirming, since you're on the profile page it won't parse fields associated with posts there, so you use the userinfo instead. [S]*Also its one or the other I can't recall which, waiting on coffee now (haha) and a lot on my mind recently with a little sadness so but[/S] one shows you the actual users info, the other shows the user browsings info i.e. try both and you'll see that with one userinfo it shows the actual users profile info and if I'm not mistaken bbuserinfo shows YOU, your data on their page. Ahh bugger gonna go confirm now off I go lol.

Edit: Yes per https://vborg.vbsupport.ru/showthread.php?t=309966 it's userinfo for the actual user, and bbuserinfo to show those browsing their own data on said page instead.
Reply With Quote
  #3  
Old 09-24-2015, 10:15 PM
LethalJ LethalJ is offline
 
Join Date: Feb 2013
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TheLastSuperman View Post
I believe it should be:

Code:
<vb:if condition="$userinfo['field2']">
[S]OR

Code:
<vb:if condition="$bbuserinfo['field2']">
[/S]

Off the top of my head without confirming, since you're on the profile page it won't parse fields associated with posts there, so you use the userinfo instead. [S]*Also its one or the other I can't recall which, waiting on coffee now (haha) and a lot on my mind recently with a little sadness so but[/S] one shows you the actual users info, the other shows the user browsings info i.e. try both and you'll see that with one userinfo it shows the actual users profile info and if I'm not mistaken bbuserinfo shows YOU, your data on their page. Ahh bugger gonna go confirm now off I go lol.

Edit: Yes per https://vborg.vbsupport.ru/showthread.php?t=309966 it's userinfo for the actual user, and bbuserinfo to show those browsing their own data on said page instead.

Thanks for the reply,

Yes I realized this earlier on and got it to pull the custom fields but still wondering if there is a way of creating a new display option to put custom fields into as seen in screenshot above.
At least now the about me tab isn't a scribble of information
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:25 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.03784 seconds
  • Memory Usage 2,185KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete