WebArtz - The Web Design Forum
Welcome to WebArtz, Guest!

WebArtz is a nice place for discussions related to web designing and coding. We help our members to code their own website templates with HTML and CSS. We give them advice on various issues.

To know more about WebArtz Forum, visit the About Us page.

At the moment, you are viewing the forum as a guest. As a guest you can't make post and participate in discussions. You need to register and become a member of the forum. Click the register link below and become a part of this forum.

Thank You

WebArtz - The Web Design Forum
Welcome to WebArtz, Guest!

WebArtz is a nice place for discussions related to web designing and coding. We help our members to code their own website templates with HTML and CSS. We give them advice on various issues.

To know more about WebArtz Forum, visit the About Us page.

At the moment, you are viewing the forum as a guest. As a guest you can't make post and participate in discussions. You need to register and become a member of the forum. Click the register link below and become a part of this forum.

Thank You


You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

1Solved Username Above Avatar Sat Mar 17, 2012 6:27 pm

magicm00n

magicm00n
Registered Member
Registered Member
Hi, How can I make the usernames above the avatar in phpbb3?

2Solved Re: Username Above Avatar Sat Mar 17, 2012 6:44 pm

Mr.Joker

Mr.Joker
Mr. WebArtz
Mr. WebArtz
I think you cant, not sure still, but you dont have templates, and with templates you could edit and make it on top. Dont know other way.

3Solved Re: Username Above Avatar Sat Mar 17, 2012 8:27 pm

ankillien

ankillien
Administrator
Administrator
Hi,

This javascript could help...

Code:
$(function(){
  $('.postprofile dl').each(function(){
    var theBox = $(this).children('dt:first');
    var uNameX = theBox.children('strong').html()+'<br>';
    theBox.children('a').before(uNameX);
    theBox.children('strong').hide();
  });
});

I'm not sure if it will work. Its very tricky Razz

4Solved Re: Username Above Avatar Sat Mar 17, 2012 8:40 pm

magicm00n

magicm00n
Registered Member
Registered Member
It's working^^! but 1 little problem, I have an icon beside my username and it doesn't show now that my username is above my avatar. How can I make it show?

5Solved Re: Username Above Avatar Sat Mar 17, 2012 8:42 pm

ankillien

ankillien
Administrator
Administrator
I need a link to your forum to check that; and tell me how do you put that icon, using CSS or javascript?

6Solved Re: Username Above Avatar Sat Mar 17, 2012 8:48 pm

magicm00n

magicm00n
Registered Member
Registered Member
I used CSS to put the icon. This is the codes:

Code:
  p a[href="/u#"], .forabg a[href="/u1"],  .forumbg a[href="/u#"], .postprofile strong a[href="/u#"], .page-bottom a[href="/u#"], #chatbox_members a[href="/u#"], .module a[href="/u#"] {
        background: url("imagedirectlink") no-repeat;
        padding-left: 16px;
        padding-top: 2px;
    }

7Solved Re: Username Above Avatar Sat Mar 17, 2012 8:57 pm

ankillien

ankillien
Administrator
Administrator
This CSS code would do...

Code:
.postprofile a[href*="/u#"] strong {
background: url("imagedirectlink") no-repeat;
padding-left: 16px;
padding-top: 2px;
}

8Solved Re: Username Above Avatar Sat Mar 17, 2012 9:04 pm

magicm00n

magicm00n
Registered Member
Registered Member
Working! Thank you very much!!

What about ranks? I want to place it above the avatar but below the username, how can I do that?

9Solved Re: Username Above Avatar Sun Mar 18, 2012 3:38 am

medlsc

medlsc
Registered Member
Registered Member
I put the javascript code, but how to resize the username ?

http://med-lab-scietists.free-forums.biz/

10Solved Re: Username Above Avatar Sun Mar 18, 2012 9:39 am

ankillien

ankillien
Administrator
Administrator
magicm00n wrote:Working! Thank you very much!!

What about ranks? I want to place it above the avatar but below the username, how can I do that?

I'm working on it.

medlsc wrote:I put the javascript code, but how to resize the username ?

This CSS will resize the username...

Code:
.postprofile a strong {
font-size: 15px;
}

11Solved Re: Username Above Avatar Sun Mar 18, 2012 10:39 am

magicm00n

magicm00n
Registered Member
Registered Member
ankillien wrote:
I'm working on it.


Okay Smile

12Solved Re: Username Above Avatar Mon Mar 19, 2012 7:56 am

magicm00n

magicm00n
Registered Member
Registered Member
Bump Very Happy

13Solved Re: Username Above Avatar Mon Mar 19, 2012 8:58 am

ankillien

ankillien
Administrator
Administrator
Please avoid bumping topics. It is against the rules. Bumping won't help getting your request done fast, so please be patient.

14Solved Re: Username Above Avatar Mon Mar 19, 2012 9:11 am

magicm00n

magicm00n
Registered Member
Registered Member
Sorry thought threads can be bumped after 24hrs

15Solved Re: Username Above Avatar Mon Mar 19, 2012 1:17 pm

ankillien

ankillien
Administrator
Administrator
Try replacing the old javascript with this...

Code:
    $(function(){
      $('.postprofile dl').each(function(){
        var theBox = $(this).children('dt');
        var uNameX = theBox.children('strong').html()+'<br>';
        theBox.children('a').before(uNameX);
        theBox.children('strong').hide();
       
        var rankX = $(this).children('dd:first').html();
        $(this).children('dt').children('a:first').after('<br>'+rankX);
        $(this).children('dd:first').hide();
      });
    });

16Solved Re: Username Above Avatar Mon Mar 19, 2012 6:20 pm

magicm00n

magicm00n
Registered Member
Registered Member
Works, Thank you so much! Sorry for bumping the thread.

17Solved Re: Username Above Avatar Mon Mar 19, 2012 7:49 pm

ankillien

ankillien
Administrator
Administrator
Solved | Locked

Sponsored content


View previous topic View next topic Back to top  Message [Page 1 of 1]

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