vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Profile Enhancements - Bold Profile Field Titles (https://vborg.vbsupport.ru/showthread.php?t=204638)

cheat-master30 02-07-2009 10:00 PM

Bold Profile Field Titles
 
1 Attachment(s)
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; }

Charlie98902 02-09-2009 01:27 AM

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

vbplusme 02-09-2009 02:04 AM

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!

Charlie98902 02-09-2009 02:31 AM

Quote:

Originally Posted by Charlie98902 (Post 1738251)
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. :D

Seems to work only on my profile but no one elses?

vbplusme 02-09-2009 02:47 AM

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.

Charlie98902 02-09-2009 02:50 AM

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.

vbplusme 02-09-2009 02:55 AM

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

Charlie98902 02-09-2009 10:03 AM

Quote:

Originally Posted by vbplusme (Post 1738302)
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.

cheat-master30 02-09-2009 07:57 PM

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.

cheat-master30 02-09-2009 08:01 PM

Thanks vbplusme, updated.


All times are GMT. The time now is 05:29 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.01142 seconds
  • Memory Usage 1,739KB
  • 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
  • (4)bbcode_code_printable
  • (2)bbcode_html_printable
  • (3)bbcode_quote_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