Username font size

Go down

Solved Username font size

Post by ifelthope1126 on Tue Nov 06, 2018 2:19 pm

Technical Details


Forum version : #phpBB2
Position : Founder
Concerned browser(s) : Mozilla Firefox
Screenshot of problem : https://i.servimg.com/u/f82/16/02/93/28/captur10.png
Who the problem concerns : Yourself
Forum link : http://testforum.lithuanianforum.net/

Description of problem

Hi guys!

I could use a little help with my forum coding. What I actually want to do, is to make username font bigger in size, but only in posts. I tried some codes which I found here, but it changed username size everywhere: at the homepage, last messages, widgets, memberlist, online members, etc. I need username font to stay at size 12 px everywhere, and in posts to be bigger, like 20 px. I have slightly modified viewtopic_body template on my forum. I can provide you my forum CSS code, templates, test account or even login to founder account, whatever you need, just please help me with this Smile
avatar
ifelthope1126
Forumember

Female Posts : 91
Reputation : 9
Language : Lithuanian, Russian, English

http://sunset.forumtwilight.com

Back to top Go down

Solved Re: Username font size

Post by Jadster on Tue Nov 06, 2018 2:54 pm

I see you are using PhpBB2.

Try following the steps in this thread below and see if that will work!

https://help.forumotion.com/t113294-changing-username-font-size

Cheers,
James
avatar
Jadster
Forum Reviewer
Forum Reviewer

Male Posts : 295
Reputation : 37
Language : English
Location : Omaha, NE

http://adminvortex.forumotion.com/

Back to top Go down

Solved Re: Username font size

Post by ifelthope1126 on Tue Nov 06, 2018 3:04 pm

You're right, it's phpBB2. Already tried that, no use sadly Sad Anyway, thank you for trying to help!
avatar
ifelthope1126
Forumember

Female Posts : 91
Reputation : 9
Language : Lithuanian, Russian, English

http://sunset.forumtwilight.com

Back to top Go down

Solved Re: Username font size

Post by APE on Tue Nov 06, 2018 5:50 pm

Can you make it so guests can see atleast one part of your forum posts so we can get the codes off of your forum so we can give you the right settings by CSS files.



avatar
APE
Administrator
Administrator

Male Posts : 13563
Reputation : 1439
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: Username font size

Post by ifelthope1126 on Tue Nov 06, 2018 7:29 pm

I'm sorry,completely forgot to do that. Now I did, you're all welcome to take a look, thanks!
avatar
ifelthope1126
Forumember

Female Posts : 91
Reputation : 9
Language : Lithuanian, Russian, English

http://sunset.forumtwilight.com

Back to top Go down

Solved Re: Username font size

Post by APE on Wed Nov 07, 2018 7:34 am

Hello give this a try it should work.


Code:
a span strong {
    font-size: 15px !important;
}



Please note that if you have a long name then it will step down at some point



avatar
APE
Administrator
Administrator

Male Posts : 13563
Reputation : 1439
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: Username font size

Post by ifelthope1126 on Wed Nov 07, 2018 11:48 am

I know that, thank you for warning. Actually, right now I just want to find the way to modify username font size in post only without affecting it everywhere else. Once I figure it out, I'll modify the size if necessary.

I just tried your code. It worked, but as you can see, font became bigger not only in posts, but everywhere Sad I need it to change in posts only.
avatar
ifelthope1126
Forumember

Female Posts : 91
Reputation : 9
Language : Lithuanian, Russian, English

http://sunset.forumtwilight.com

Back to top Go down

Solved Re: Username font size

Post by skouliki on Wed Nov 07, 2018 12:37 pm

@ifelthope1126 wrote:I know that, thank you for warning. Actually, right now I just want to find the way to modify username font size in post only without affecting it everywhere else. Once I figure it out, I'll modify the size if necessary.

I just tried your code. It worked, but as you can see, font became bigger not only in posts, but everywhere Sad I need it to change in posts only.

hi

i dont think thats possible i mean to change it only in posts
the only way is to rename the element as the user did in the link above
avatar
skouliki
Manager
Manager

Female Posts : 5094
Reputation : 823
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Solved Re: Username font size

Post by ifelthope1126 on Wed Nov 07, 2018 12:50 pm

Well, that's sad. But there are some forums which have different sizes of username fonts. Don't know forum versions though, but there they are, for example: http://underthesun.forumotion.com/
http://medioaevo.forumotion.com/
So I still think there is a way to do that Smile
avatar
ifelthope1126
Forumember

Female Posts : 91
Reputation : 9
Language : Lithuanian, Russian, English

http://sunset.forumtwilight.com

Back to top Go down

Solved Re: Username font size

Post by skouliki on Wed Nov 07, 2018 12:52 pm

@skouliki wrote:
@ifelthope1126 wrote:I know that, thank you for warning. Actually, right now I just want to find the way to modify username font size in post only without affecting it everywhere else. Once I figure it out, I'll modify the size if necessary.

I just tried your code. It worked, but as you can see, font became bigger not only in posts, but everywhere Sad I need it to change in posts only.

hi

i dont think thats possible i mean to change it only in posts
the only way is to rename the element as the user did in the link above
avatar
skouliki
Manager
Manager

Female Posts : 5094
Reputation : 823
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Solved Re: Username font size

Post by ifelthope1126 on Wed Nov 07, 2018 12:55 pm

Okay, and how can I do this?
avatar
ifelthope1126
Forumember

Female Posts : 91
Reputation : 9
Language : Lithuanian, Russian, English

http://sunset.forumtwilight.com

Back to top Go down

Solved Re: Username font size

Post by SLGray on Wed Nov 07, 2018 2:20 pm

You have to modify the templates.



When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
avatar
SLGray
Administrator
Administrator

Male Posts : 44802
Reputation : 3163
Language : English
Location : United States

http://fmthemesdesignteam.forumotion.com/

Back to top Go down

Solved Re: Username font size

Post by Jadster on Wed Nov 07, 2018 2:51 pm

To change the template, follow these steps.

Access Admin Panel -> Display Tab -> Templates -> General administration -> viewtopic-body

Then find this code:
Code:
        <!-- BEGIN displayed -->
          <tr class="post">
              <td class="{postrow.displayed.ROW_CLASS}"{postrow.displayed.THANK_BGCOLOR} valign="top" width="150">
                <span class="name"><a name="{postrow.displayed.U_POST_ID}"></a><strong>{postrow.displayed.POSTER_NAME}</strong></span><br />
                    <span class="postdetails poster-profile">
                    {postrow.displayed.POSTER_RANK}<br />
                    {postrow.displayed.RANK_IMAGE}{postrow.displayed.POSTER_AVATAR}<br /><br />
                    <!-- BEGIN profile_field -->

Replace with this:
Code:
        <!-- BEGIN displayed -->
          <tr class="post">
              <td class="{postrow.displayed.ROW_CLASS}"{postrow.displayed.THANK_BGCOLOR} valign="top" width="150">
                <span class="name2"><a name="{postrow.displayed.U_POST_ID}"></a><strong>{postrow.displayed.POSTER_NAME}</strong></span><br />
                    <span class="postdetails poster-profile">
                    {postrow.displayed.POSTER_RANK}<br />
                    {postrow.displayed.RANK_IMAGE}{postrow.displayed.POSTER_AVATAR}<br /><br />
                    <!-- BEGIN profile_field -->

Then just click save!

Hope this helps!

Cheers,
James
avatar
Jadster
Forum Reviewer
Forum Reviewer

Male Posts : 295
Reputation : 37
Language : English
Location : Omaha, NE

http://adminvortex.forumotion.com/

Back to top Go down

Solved Re: Username font size

Post by ifelthope1126 on Wed Nov 07, 2018 11:00 pm

Thank you, I just did what you suggested, but my username just got bold, nothing more Sad I can provide you my login details, so you can take a look and see, what I did wrong, If you need it.
avatar
ifelthope1126
Forumember

Female Posts : 91
Reputation : 9
Language : Lithuanian, Russian, English

http://sunset.forumtwilight.com

Back to top Go down

Solved Re: Username font size

Post by skouliki on Thu Nov 08, 2018 1:00 am

You need to style it thats why we change the templates in order to have a unique element to style it as we want
avatar
skouliki
Manager
Manager

Female Posts : 5094
Reputation : 823
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Solved Re: Username font size

Post by ifelthope1126 on Thu Nov 08, 2018 1:19 am

PM sent to Draxion by his request with my login details. Thank you all for trying to help me!
avatar
ifelthope1126
Forumember

Female Posts : 91
Reputation : 9
Language : Lithuanian, Russian, English

http://sunset.forumtwilight.com

Back to top Go down

Solved Re: Username font size

Post by pedxz on Thu Nov 08, 2018 1:28 am

Hey @ifelthope1126,
You can use this code:
Code:
.post .row1 a[href^="/u"],
.name2 /* or */ {
      font-size: 20px!important;
}


Cordially,
pedxz.
avatar
pedxz
Forumember

Male Posts : 160
Reputation : 32
Language : speaker daemonium & português
Location : Portugal

https://ajuda.forumeiros.com/u62843

Back to top Go down

Solved Re: Username font size

Post by ifelthope1126 on Thu Nov 08, 2018 2:40 pm

I'm sorry, this doesn't work too Sad
avatar
ifelthope1126
Forumember

Female Posts : 91
Reputation : 9
Language : Lithuanian, Russian, English

http://sunset.forumtwilight.com

Back to top Go down

Solved Re: Username font size

Post by Draxion on Fri Nov 09, 2018 1:22 am

Solved by editing the template viewtopic_body, adding a simple div element to the username with the class "custom_username" and then used this CSS to modify it.

Code:
div.custom_username > a > span > strong {
  font-size: 20px;
}

Problem solved & topic archived.
Please read our forum rules: ESF General Rules


NEVER provide your founder's account or email
Please provide forum's URL when dealing with design and appearance issues
Don't forget to mark the topic as when the issue is resolved. This helps the staff greatly.
PM Support is prohibited!
TOS | General Rules | FAQ | Tricks & Tips | Latest Updates | Introduce Yourself

avatar
Draxion
Support Moderator
Support Moderator

Male Posts : 2248
Reputation : 284
Language : English
Location : USA

http://www.draxionsgameden.com/

Back to top Go down

Back to top


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