The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

how to manipulation or change font to bold in data message?

View previous topic View next topic Go down

Solved how to manipulation or change font to bold in data message?

Post by sasukekun on November 4th 2013, 5:28 pm

Hello guys, i want to ask Smile

how to manipulation or change font to bold or italic or strike in data message (only my ID/Account)?

example:
i need change text only (in dreams) to bold or italic or strike ??



maybe this topic can be solved with css,
i think Very Happy

my forum phpBB2
please someone help me, thanks Hello

sasukekun
Forumember

Posts : 253
Reputation : 6
Language : English

Back to top Go down

Solved Re: how to manipulation or change font to bold in data message?

Post by Ange Tuteur on November 5th 2013, 9:06 pm

Hi sasukekun,

I am not sure if this would be possible especially for a specific user. Unless we are able to use HTML in the profile fields, making it for 1 specific user is the issue.

So far the most I know(for phpbb2) would be using some jquery, but that is only for the label; not the data. I am not sure how to manipulate the data, but for the label this is what I've used:

Code:
$(function() {
$('span.label:contains("Location")').css('font-weight', 'bold');
});
It will only make the label 'location' bold; not the data. I'll try to look for a solution, but for now I thought I would post this for you.

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: how to manipulation or change font to bold in data message?

Post by sasukekun on November 6th 2013, 6:16 am

hi thanks for reply my topic Smile

i done try, but doesn't work XD

if I think it might be solved with CSS.
because first, all it takes is my ID number.
because I want to change my ID only.
 
and my ID in the forums, is = u1


i think, and correction me if i'm wrong Very Happy

thanks,, Smile

sasukekun
Forumember

Posts : 253
Reputation : 6
Language : English

Back to top Go down

Solved Re: how to manipulation or change font to bold in data message?

Post by levy on November 6th 2013, 10:20 am

Code:
.postprofile a[href="/u1"] label{
font-weight:bold;
}
I'm not sure if this will work , I don't tested .

levy
Hyperactive

Male Posts : 2582
Reputation : 345
Language : Romanian, English
Location : criticize artwork, not people!

http://help.forumotion.com/

Back to top Go down

Solved Re: how to manipulation or change font to bold in data message?

Post by Ange Tuteur on November 6th 2013, 5:50 pm

Thank you for reminding me of that sasukekun.

I cannot make just one type of data bold unfortunately, but I have a solution I hope will suffice for you for now.

First is the script to make only your profile have bold contents:
Administration Panel > Modules > HTML & JAVASCRIPT > Javascript codes management.

Create a new script, name what you wish, tick in all pages, then paste the code below and save.
Code:
$(function() {
$('.postdetails.poster-profile:has(a[href="/u1"])').css('font-weight', 'bold');
});
Now navigate to..
Display > Pictures and colors > Colors > CSS stylesheet

and paste this code to keep the span labels at normal font-weight:
Code:
.postdetails.poster-profile span.label{
font-weight:normal;
}
Submit, and it should appear as this:




Examples:

If you want to add more style just add more css to the code like this:
Code:
$(function() {
$('.postdetails.poster-profile:has(a[href="/u1"])').css('font-weight', 'bold').css('color', '#f00').css('text-shadow', '0px 0px 6px #f00');
});
Just remember the more properties you add the more properties you have to disallow from the labels by using the CSS I've provided.
Code:
.postdetails.poster-profile span.label{
font-weight:normal;
color:#808080;
text-shadow:none;
}

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: how to manipulation or change font to bold in data message?

Post by sasukekun on November 7th 2013, 5:55 am

SethC1995 wrote:Thank you for reminding me of that sasukekun.

I cannot make just one type of data bold unfortunately, but I have a solution I hope will suffice for you for now.

First is the script to make only your profile have bold contents:
Administration Panel > Modules > HTML & JAVASCRIPT > Javascript codes management.

Create a new script, name what you wish, tick in all pages, then paste the code below and save.
Code:
$(function() {
$('.postdetails.poster-profile:has(a[href="/u1"])').css('font-weight', 'bold');
});
Now navigate to..
Display > Pictures and colors > Colors > CSS stylesheet

and paste this code to keep the span labels at normal font-weight:
Code:
.postdetails.poster-profile span.label{
font-weight:normal;
}
Submit, and it should appear as this:




Examples:

If you want to add more style just add more css to the code like this:
Code:
$(function() {
$('.postdetails.poster-profile:has(a[href="/u1"])').css('font-weight', 'bold').css('color', '#f00').css('text-shadow', '0px 0px 6px #f00');
});
Just remember the more properties you add the more properties you have to disallow from the labels by using the CSS I've provided.
Code:
.postdetails.poster-profile span.label{
font-weight:normal;
color:#808080;
text-shadow:none;
}
yeah, its work ^^
now im understand :wouhou: 

thanks SethC1995, Your answer is very helpful bye

sasukekun
Forumember

Posts : 253
Reputation : 6
Language : English

Back to top Go down

Solved Re: how to manipulation or change font to bold in data message?

Post by Sir Chivas™ on November 7th 2013, 5:58 am

Is this solved?

Sir Chivas™
Support Moderator
Support Moderator

Male Posts : 6783
Reputation : 430
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

Solved Re: how to manipulation or change font to bold in data message?

Post by sasukekun on November 7th 2013, 7:31 am

yeah solved Smile

sasukekun
Forumember

Posts : 253
Reputation : 6
Language : English

Back to top Go down

Solved Re: how to manipulation or change font to bold in data message?

Post by Sanket on November 7th 2013, 7:38 am

Topic Solved & Archived.

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum