Viewtopic body coding
3 posters
Page 1 of 2
Page 1 of 2 • 1, 2
Viewtopic body coding
Technical Details
Forum version : #phpBB2
Position : Founder
Concerned browser(s) : Google Chrome
Who the problem concerns : All members
When the problem appeared : viewing profile
Forum link : http://mafiaofoldschool.freeinvision.net/
Description of problem
Basically, I have added the coding by going into "Display" and then clicking onto "general" and lastly "viewtopic body" from this link - https://help.forumotion.com/t53485-putting-the-username-and-the-rank-under-the-avatarAfter I published the coding, I realised that everything worked, but i found this underneath the avatar: {postrow.displayedPOSTER_NAME}
So I clearly must have hit a snag in the coding process. I would show you screenshots of the admin panel, but somehow I'm unable to do that, even though I have been clicking onto "PrtSc" print screen.
I would advise you to gain some evidence by clicking onto the forum and click into "Support Desk" and you will see under the avatar what the problem is. Thanks guys!
Last edited by SkyGuide on October 22nd 2015, 12:27 am; edited 1 time in total
Re: Viewtopic body coding
Replace
- Code:
{postrow.displayedPOSTER_NAME}
- Code:
{postrow.displayed.POSTER_NAME}
Re: Viewtopic body coding
So, I have managed to reset the problem on my own
. Now I need to ask you how to properly add coding into the viewtopic body to insert the "Rank Image" under the avatar.Can you give me the instructions again please? My forum is phpBB2. I would really appreciate it.

Re: Viewtopic body coding
Can anyone help me out please with my request to obtain the right coding for the view body topic to insert the image under avatar?
Re: Viewtopic body coding
SkyGuide wrote:Can anyone help me out please with my request to obtain the right coding for the view body topic to insert the image under avatar?
Is the rank already showing under the avatar from your previous change with the template? I mean in general, even if only text/image or both.
Guest- Guest
Re: Viewtopic body coding
SkyGuide wrote:I had to reset the whole thing, so the rank isn't underneath the avatar.
Is it ONLY the rank you want underneath? or both the username and rank?
Guest- Guest
Re: Viewtopic body coding
Just the rank. Example:https://i.servimg.com/u/f21/19/06/59/53/admini10.png
Re: Viewtopic body coding
SkyGuide wrote:Just the rank. Example:https://i.servimg.com/u/f21/19/06/59/53/admini10.png
Go into the Admin Panel -->> Display -->> Templates -->> General -->> viewtopic_body
FIND THIS CODE
- Code:
<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 />
THEN REPLACE IT WITH THIS ONE
- Code:
<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_AVATAR}{postrow.displayed.POSTER_RANK}<br />
{postrow.displayed.RANK_IMAGE}<br /><br />
Guest- Guest
Re: Viewtopic body coding
Thanks budd. It all works now:). I have one more question to ask though, if you don't mind? How do you get the rank title moved to the middle?
Last edited by SkyGuide on October 22nd 2015, 12:30 am; edited 1 time in total
Re: Viewtopic body coding
SkyGuide wrote:Thanks budd. It all works now:). I have one more question to ask though, if you don't mind? How do you get the rank title to be moved to the middle?
You mean moved in middle of the fields, like between posts and reputation and the like?
Guest- Guest
Re: Viewtopic body coding
Like you have your name (rank title) and your admin image under avatar, but they are not in line with each other. Example: Admin title is underneath the avatar, but is above the admin image. Their just not in line with each other. They are both under the avatar, but the text is not in line with the image
Example: http://xenonduelacademy.lightbb.com/t3396-hey-tektekers-if-anyone-does-tekteks
In that image you will the text in red that is in line with the rank image. That's what I need. Please help! Thanks.
Example: http://xenonduelacademy.lightbb.com/t3396-hey-tektekers-if-anyone-does-tekteks
In that image you will the text in red that is in line with the rank image. That's what I need. Please help! Thanks.
Re: Viewtopic body coding
SkyGuide wrote:Like you have your name (rank title) and your admin image under avatar, but they are not in line with each other. Example: Admin title is underneath the avatar, but is above the admin image. Their just not in line with each other. They are both under the avatar, but the text is not in line with the image
Example: http://xenonduelacademy.lightbb.com/t3396-hey-tektekers-if-anyone-does-tekteks
In that image you will the text in red that is in line with the rank image. That's what I need. Please help! Thanks.
I think this is what you mean. Copy and paste this code, replacing the one you inserted last.
- Code:
<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_AVATAR}<br />
<br />
{postrow.displayed.POSTER_RANK}<br />
{postrow.displayed.RANK_IMAGE}<br />
Last edited by Draxion on October 22nd 2015, 1:17 am; edited 1 time in total
Guest- Guest
Re: Viewtopic body coding
Sorry budd. Its still not working
. This is very strange! I have a screenshot though of the problem
https://i.imgur.com/9OqvSQE.png

https://i.imgur.com/9OqvSQE.png
Re: Viewtopic body coding
SkyGuide wrote:Sorry budd. Its still not working. This is very strange! I have a screenshot though of the problem
https://i.imgur.com/9OqvSQE.png
Just so I'm clear in what you want... you want the Rank Image and Rank Text have a space between each other, right?
Guest- Guest
Re: Viewtopic body coding
Okay, I understand now. Use this...
- Code:
<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_AVATAR}<br />
{postrow.displayed.POSTER_RANK}<br />
<br />
{postrow.displayed.RANK_IMAGE}<br />
Guest- Guest
Re: Viewtopic body coding
Its still the wrong one
. Let me give you another example:
SkyGuide
SkyGuide
Top one would be the rank title "Grand founder"
Bottom one would be " Admin image"
Lined up like that example.
Could you help me get this please?
Thanks budd

SkyGuide
SkyGuide
Top one would be the rank title "Grand founder"
Bottom one would be " Admin image"
Lined up like that example.
Could you help me get this please?

Re: Viewtopic body coding
SkyGuide wrote:Its still the wrong one. Let me give you another example.
SkyGuide
SkyGuide
Top one would be the rank title "Grand founder"
Bottom one would be " Admin image"
Lined up like that example.
Could you help me get this please?Thanks budd
Okay, now I see like this, yes?
AVATAR
USERNAME
RANK TITLE
RANK IMAGE
Guest- Guest
Re: Viewtopic body coding
Correct
. All lined up and in the centre underneath the avatar. All words are in line with each other. Thanks budd.

Re: Viewtopic body coding
SkyGuide wrote:Correct. All lined up and in the centre underneath the avatar. All words are in line with each other. Thanks budd.
Did you want them aligned on the left or centered?
Guest- Guest
Re: Viewtopic body coding
Wasn't sure if you wanted your avatars centered so I made two codes for each option.
Paste this code for a centered avatar.
Paste this code to have the avatars NOT centered.
Paste this code for a centered avatar.
- Code:
<span class="name"><a name="{postrow.displayed.U_POST_ID}"></a></span><br/>
<span class="postdetails poster-profile">
<center>{postrow.displayed.POSTER_AVATAR}</center><br />
<center><strong>{postrow.displayed.POSTER_NAME}</strong></center><br />
<center>{postrow.displayed.POSTER_RANK}</center><br />
<center>{postrow.displayed.RANK_IMAGE}</center><br />
Paste this code to have the avatars NOT centered.
- Code:
<span class="name"><a name="{postrow.displayed.U_POST_ID}"></a></span><br/>
<span class="postdetails poster-profile">
{postrow.displayed.POSTER_AVATAR}<br />
<center><strong>{postrow.displayed.POSTER_NAME}</strong></center><br />
<center>{postrow.displayed.POSTER_RANK}</center><br />
<center>{postrow.displayed.RANK_IMAGE}</center><br />
Guest- Guest
Re: Viewtopic body coding
Is this solved? I see it has been marked with the solved icon. If it's not solved, please don't use the solved icon, as it could confuse us and accecidentally archived
.
-Brandon

-Brandon


Remember to mark your topic

General Rules | Tips & Tricks | FAQ | Forgot Founder Password?

Team Leader
Review Section Rules | Request A Review | Sticker Points
Re: Viewtopic body coding
Your the best budd
. It works. Could you do me one more favour please? I would like for you to possibly join both the rank title and rank image togther please as they are abit far apart. They are in line with each other, but just far apart, if you know what I mean? The forum name can stay where it is. thats fine. Its just the rank image and rank title that needs to be closer to each other.

Re: Viewtopic body coding
Did you use the one that centers your avatar or doesn't center it?
Guest- Guest
Re: Viewtopic body coding
I sure did
. But its not to my liking though. Rank needs to be closer rank title. Like joined and in line.
Skyguide
skyguide both in centre under avatar.
forum name can stay though in the new position.

Skyguide
skyguide both in centre under avatar.
forum name can stay though in the new position.
Re: Viewtopic body coding
No, I don't think you understood my question. 
I gave you two codes to use; one that centers the avatar, one that doesn't. I need to know which one you used.

I gave you two codes to use; one that centers the avatar, one that doesn't. I need to know which one you used.
Guest- Guest
Re: Viewtopic body coding
lol sorry. I used both of them. None of them join together the rank title and the rank image. Don get me wrong as the codes do work, but not in the way it should.
Page 1 of 2 • 1, 2

» [IMPORTANT] viewtopic body Broken
» Help with viewtopic?
» viewtopic help
» viewtopic problem
» Post number in viewtopic
» Help with viewtopic?
» viewtopic help
» viewtopic problem
» Post number in viewtopic
Page 1 of 2
Permissions in this forum:
You cannot reply to topics in this forum