Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Bold Profile Field Titles Details »»
Bold Profile Field Titles
Version: 1.00, by cheat-master30 cheat-master30 is offline
Developer Last Online: Apr 2010 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 3.8.x Rating:
Released: 02-07-2009 Last Update: Never Installs: 7
Template Edits
Re-useable Code Translations  
No support by the author.

And the award for world's most minor template modification ever goes to... But seriously, after a quick check on vBulletin.com and various other sites, I have come to the conclusion the standard profile field titles in the about me tab are just not 'stand out' enough from the actual text, so I've made a very minor modification which boldens the titles to differentiate between the profile field name and user content in a much easier way.

So first up, the original code to modify is this:
Code:
<dt class="shade" id="[whatever]">Location</dt>
This is the code that's supposed to give the slight colour difference between the title and the content, but really, on a customised profile style doesn't really do it's job that well. You then go to this template:

Member Info Templates > memberinfo_profilefield

And then find this code:
Code:
<dt class="shade" id="profilefield_title_$profilefield[profilefieldid]">$profilefield[title]</dt>
And add either <b> or <strong> tags where bolded in the piece of code below:

Quote:
<dt class="shade" id="profilefield_title_$profilefield[profilefieldid]"><b>$profilefield[title]</b></dt>
See attachments for difference between this and default.

Edit: Because of a problem where it applies only to a certain user profile for some reason (might actually be who you're logged in as or the like), here's a piece of code as released by vbplusme:

Find this piece of code in Style Manager -> All Style Options

Code:
.shade, a.shade:link, a.shade:visited { color: #777777; text-decoration: none; }
And replace with:

Code:
.shade, a.shade:link, a.shade:visited { color: #777777; text-decoration: none; font-weight: bold; }

Screenshots

File Type: jpg ProfileDefault.jpg (65.9 KB, 0 views)
File Type: jpg Nondefaultprofilefields.jpg (102.3 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 02-09-2009, 01:27 AM
Charlie98902 Charlie98902 is offline
 
Join Date: Dec 2006
Posts: 1,156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi thanks for the tip however to be different I used this.

<dt class="shade" id="profilefield_title_$profilefield[profilefieldid]"><b><span style="color: Blue;">$profilefield[title]</b></span></dt>

To show different color than just bold and this helps make it stand out as well. You can choose what ever color you wish as well.
Reply With Quote
  #3  
Old 02-09-2009, 02:04 AM
vbplusme vbplusme is offline
 
Join Date: Sep 2008
Location: CyberSpace
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Better yet, modify the .shade property in Main CSS then you don't need to change any template code.
Original:

HTML Code:
.shade, a.shade:link, a.shade:visited { color: #777777; text-decoration: none; }
Modified:
HTML Code:
.shade, a.shade:link, a.shade:visited { color: #0000FF; font-weight: bold; text-decoration: none; }
ENJOY!
Reply With Quote
  #4  
Old 02-09-2009, 02:31 AM
Charlie98902 Charlie98902 is offline
 
Join Date: Dec 2006
Posts: 1,156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Charlie98902 View Post
Hi thanks for the tip however to be different I used this.

<dt class="shade" id="profilefield_title_$profilefield[profilefieldid]"><b><span style="color: Blue;">$profilefield[title]</b></span></dt>

To show different color than just bold and this helps make it stand out as well. You can choose what ever color you wish as well.
Seems to work only on my profile but no one elses?
Reply With Quote
  #5  
Old 02-09-2009, 02:47 AM
vbplusme vbplusme is offline
 
Join Date: Sep 2008
Location: CyberSpace
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

HUH? That is a CSS class reference it can not NOT work if its called OR is being replaced by something else that is hard coded to usurp it, like adding another <style> tag after it. Works fine on my site but I haven't made any mods to that code.
Reply With Quote
  #6  
Old 02-09-2009, 02:50 AM
Charlie98902 Charlie98902 is offline
 
Join Date: Dec 2006
Posts: 1,156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not the css one you made but the html one I used. I have to go to bed as I must get up at 3 am tomorrow but I will post back on what I did and what happened as well. I couldn't find the css to use yours. Well the line of css not the main css to change.
Reply With Quote
  #7  
Old 02-09-2009, 02:55 AM
vbplusme vbplusme is offline
 
Join Date: Sep 2008
Location: CyberSpace
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh, that's why. That class is definitely in Main CSS, on mine, its in the "Additional CSS Definitions" at the bottom of the page, top box. HTH
Reply With Quote
  #8  
Old 02-09-2009, 10:03 AM
Charlie98902 Charlie98902 is offline
 
Join Date: Dec 2006
Posts: 1,156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by vbplusme View Post
Oh, that's why. That class is definitely in Main CSS, on mine, its in the "Additional CSS Definitions" at the bottom of the page, top box. HTH
Thanks I found out where you were talking about and that did it for all it seems.
Reply With Quote
  #9  
Old 02-09-2009, 07:57 PM
cheat-master30's Avatar
cheat-master30 cheat-master30 is offline
 
Join Date: Mar 2007
Location: Information Classified
Posts: 1,715
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'll be updating it with the CSS version if you don't mind, the only reason there was a problem with the existing version is because originally, it wasn't meant to be released as a mod and I basically coded it to fix a certain profile.
Reply With Quote
  #10  
Old 02-09-2009, 08:01 PM
cheat-master30's Avatar
cheat-master30 cheat-master30 is offline
 
Join Date: Mar 2007
Location: Information Classified
Posts: 1,715
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks vbplusme, updated.
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 09:35 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04661 seconds
  • Memory Usage 2,321KB
  • Queries Executed 24 (?)
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
  • (4)bbcode_code
  • (2)bbcode_html
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (2)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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_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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete