The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

How to move username, and rank above avatar?

3 posters

Go down

Solved How to move username, and rank above avatar?

Post by PlatinumWata June 17th 2011, 8:41 pm

Hello guys,

I want to put a username, and rank above the avatars. However, I want a rank image to be displayed under avatar. I know this can be done, but how?
PlatinumWata
PlatinumWata
Forumember

Male Posts : 447
Reputation : 0
Language : English
Location : United States (born from England)

Back to top Go down

Solved Re: How to move username, and rank above avatar?

Post by Nera. June 17th 2011, 11:12 pm

Hi,

PunBB?
You want to have it like this?
1. Name
2. Rank
3. Avatar
4. Rank

Go to viewtopic_body template, copy this
Code:
{postrow.displayed.POSTER_RANK_NEW}{postrow.displayed.RANK_IMAGE}

Paste it above this
Code:
      <div class="user-basic-info">


This one is for letter rank => {postrow.displayed.POSTER_RANK_NEW}
This one for image rank => {postrow.displayed.RANK_IMAGE}

Rearange it as you want it. If you want only image above grab only image variable and delete if from below if you don't wont it below. Save and publish template.
Nera.
Nera.
Energetic

Female Posts : 7078
Reputation : 2017
Language : English
Location : -

Back to top Go down

Solved Re: How to move username, and rank above avatar?

Post by PlatinumWata June 18th 2011, 12:21 am

Yea, something like that.

I want it like:

1. Name
2. Rank
3. Avatar.
4. Picture Rank

Do I still do the same thing as you mentioned?
PlatinumWata
PlatinumWata
Forumember

Male Posts : 447
Reputation : 0
Language : English
Location : United States (born from England)

Back to top Go down

Solved Re: How to move username, and rank above avatar?

Post by Russel June 18th 2011, 12:30 am

Yes, you should exactly do what Nera mentioned above Smile
Russel
Russel
Active Poster

Male Posts : 1407
Reputation : 236
Language : English, Filipino
Location : Philippines

Back to top Go down

Solved Re: How to move username, and rank above avatar?

Post by Nera. June 18th 2011, 12:42 am

PlatinumWata wrote:
Do I still do the same thing as you mentioned?

Find this one
Code:
{postrow.displayed.POSTER_RANK_NEW}
Delete it from her first place and paste above this
Code:
<div class="user-basic-info">

Save + Publish
Nera.
Nera.
Energetic

Female Posts : 7078
Reputation : 2017
Language : English
Location : -

Back to top Go down

Solved Re: How to move username, and rank above avatar?

Post by PlatinumWata June 18th 2011, 12:51 am

Worked like a charm (as I see in preview)

How do I publish it? And for some reason the picture image is not displaying.
PlatinumWata
PlatinumWata
Forumember

Male Posts : 447
Reputation : 0
Language : English
Location : United States (born from England)

Back to top Go down

Solved Re: How to move username, and rank above avatar?

Post by Nera. June 18th 2011, 12:58 am

There should be no reason for that. See => PunBB http://i.imm.io/6yqL.png

That part in your templates should look like this after you change places.
Code:
                  <div class="user">
                     <div class="user-ident">
                        <h4 class="username">{postrow.displayed.POSTER_NAME}</h4>
{postrow.displayed.POSTER_RANK_NEW}
                        <div class="user-basic-info">
                           {postrow.displayed.POSTER_AVATAR}

                           {postrow.displayed.RANK_IMAGE}
                        </div>
                     </div>

You publish it by clicking the green cross.
Nera.
Nera.
Energetic

Female Posts : 7078
Reputation : 2017
Language : English
Location : -

Back to top Go down

Solved Re: How to move username, and rank above avatar?

Post by PlatinumWata June 18th 2011, 1:01 am

Mine looks like this: Is this correct?

Code:
<div class="postbody"{postrow.displayed.THANK_BGCOLOR}>
                  <div class="user">
                     <div class="user-ident">
                        <h4 class="username">{postrow.displayed.POSTER_NAME}</h4>
                                                                {postrow.displayed.POSTER_RANK_NEW}
                        <div class="user-basic-info">
                           {postrow.displayed.POSTER_AVATAR}<br />
                           {postrow.displayed.RANK_IMAGE}
                        </div>

PlatinumWata
PlatinumWata
Forumember

Male Posts : 447
Reputation : 0
Language : English
Location : United States (born from England)

Back to top Go down

Solved Re: How to move username, and rank above avatar?

Post by Nera. June 18th 2011, 1:03 am

Yes it is and all is OK when I use yours.
Nera.
Nera.
Energetic

Female Posts : 7078
Reputation : 2017
Language : English
Location : -

Back to top Go down

Solved Re: How to move username, and rank above avatar?

Post by PlatinumWata June 18th 2011, 1:06 am

It worked now!

Thanks for your help! Do you have MSN mate?

Also, is their anyway I can have rank image alone without a rank text?
PlatinumWata
PlatinumWata
Forumember

Male Posts : 447
Reputation : 0
Language : English
Location : United States (born from England)

Back to top Go down

Solved Re: How to move username, and rank above avatar?

Post by Nera. June 18th 2011, 1:15 am

I don't use MSN.

Just delete the variable
Code:
{postrow.displayed.POSTER_RANK_NEW}
It will delete all only written ranks.

Or you can also use &nbsp*; to in ranks names. Leave out the star.

I have to go now, by Hello
Nera.
Nera.
Energetic

Female Posts : 7078
Reputation : 2017
Language : English
Location : -

Back to top Go down

Solved Re: How to move username, and rank above avatar?

Post by PlatinumWata June 18th 2011, 1:20 am

Cool, thanks.
PlatinumWata
PlatinumWata
Forumember

Male Posts : 447
Reputation : 0
Language : English
Location : United States (born from England)

Back to top Go down

Solved Re: How to move username, and rank above avatar?

Post by Nera. June 18th 2011, 1:21 am

You welcome.

Solved ~ Locked
Nera.
Nera.
Energetic

Female Posts : 7078
Reputation : 2017
Language : English
Location : -

Back to top Go down

Back to top

- Similar topics

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