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.

Viewtopic body coding

Page 1 of 2 1, 2  Next

View previous topic View next topic Go down

Solved Viewtopic body coding

Post by SkyGuide on October 18th 2015, 3:31 pm

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 - http://help.forumotion.com/t53485-putting-the-username-and-the-rank-under-the-avatar

After 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

SkyGuide
Forumember

Male Posts : 261
Reputation : 2
Language : english

http://oldschoolsociety.forumotion.org/

Back to top Go down

Solved Re: Viewtopic body coding

Post by KpuCk0 on October 18th 2015, 5:11 pm

Replace
Code:
{postrow.displayedPOSTER_NAME}
with
Code:
{postrow.displayed.POSTER_NAME}



KpuCk0
Graphic Designer
Graphic Designer

Male Posts : 783
Reputation : 155
Language : Bulgarian, English
Location : Bulgaria

http://www.lfszone.com

Back to top Go down

Solved Re: Viewtopic body coding

Post by SkyGuide on October 18th 2015, 6:27 pm

So, I have managed to reset the problem on my own Smile. 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.

SkyGuide
Forumember

Male Posts : 261
Reputation : 2
Language : english

http://oldschoolsociety.forumotion.org/

Back to top Go down

Solved Re: Viewtopic body coding

Post by SkyGuide on October 19th 2015, 6:32 pm

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?

SkyGuide
Forumember

Male Posts : 261
Reputation : 2
Language : english

http://oldschoolsociety.forumotion.org/

Back to top Go down

Solved Re: Viewtopic body coding

Post by Guest on October 19th 2015, 7:11 pm

@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


Back to top Go down

Solved Re: Viewtopic body coding

Post by SkyGuide on October 19th 2015, 10:30 pm

I had to reset the whole thing, so the rank isn't underneath the avatar.

SkyGuide
Forumember

Male Posts : 261
Reputation : 2
Language : english

http://oldschoolsociety.forumotion.org/

Back to top Go down

Solved Re: Viewtopic body coding

Post by Guest on October 19th 2015, 10:32 pm

@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


Back to top Go down

Solved Re: Viewtopic body coding

Post by SkyGuide on October 19th 2015, 11:29 pm

Just the rank. Example:https://i21.servimg.com/u/f21/19/06/59/53/admini10.png

SkyGuide
Forumember

Male Posts : 261
Reputation : 2
Language : english

http://oldschoolsociety.forumotion.org/

Back to top Go down

Solved Re: Viewtopic body coding

Post by Guest on October 19th 2015, 11:33 pm

@SkyGuide wrote:Just the rank. Example:https://i21.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


Back to top Go down

Solved Re: Viewtopic body coding

Post by SkyGuide on October 22nd 2015, 12:26 am

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

SkyGuide
Forumember

Male Posts : 261
Reputation : 2
Language : english

http://oldschoolsociety.forumotion.org/

Back to top Go down

Solved Re: Viewtopic body coding

Post by Guest on October 22nd 2015, 12:28 am

@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


Back to top Go down

Solved Re: Viewtopic body coding

Post by SkyGuide on October 22nd 2015, 12:55 am

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.

SkyGuide
Forumember

Male Posts : 261
Reputation : 2
Language : english

http://oldschoolsociety.forumotion.org/

Back to top Go down

Solved Re: Viewtopic body coding

Post by Guest on October 22nd 2015, 1:06 am

@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


Back to top Go down

Solved Re: Viewtopic body coding

Post by SkyGuide on October 22nd 2015, 1:16 am

Its not working this time budd. It sure is strange.


SkyGuide
Forumember

Male Posts : 261
Reputation : 2
Language : english

http://oldschoolsociety.forumotion.org/

Back to top Go down

Solved Re: Viewtopic body coding

Post by Guest on October 22nd 2015, 1:17 am

I edited it, try that code.

Guest
Guest


Back to top Go down

Solved Re: Viewtopic body coding

Post by SkyGuide on October 22nd 2015, 1:23 am

Sorry budd. Its still not working Sad. This is very strange! I have a screenshot though of the problem

http://i.imgur.com/9OqvSQE.png

SkyGuide
Forumember

Male Posts : 261
Reputation : 2
Language : english

http://oldschoolsociety.forumotion.org/

Back to top Go down

Solved Re: Viewtopic body coding

Post by Guest on October 22nd 2015, 1:24 am

@SkyGuide wrote:Sorry budd. Its still not working Sad. This is very strange! I have a screenshot though of the problem

http://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


Back to top Go down

Solved Re: Viewtopic body coding

Post by Guest on October 22nd 2015, 1:28 am

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


Back to top Go down

Solved Re: Viewtopic body coding

Post by SkyGuide on October 22nd 2015, 1:34 am

Its still the wrong one Sad. 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? Smile Thanks budd

SkyGuide
Forumember

Male Posts : 261
Reputation : 2
Language : english

http://oldschoolsociety.forumotion.org/

Back to top Go down

Solved Re: Viewtopic body coding

Post by Guest on October 22nd 2015, 1:36 am

@SkyGuide wrote:Its still the wrong one Sad. 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? Smile Thanks budd

Okay, now I see like this, yes?

AVATAR
USERNAME
RANK TITLE
RANK IMAGE

Guest
Guest


Back to top Go down

Solved Re: Viewtopic body coding

Post by SkyGuide on October 22nd 2015, 1:39 am

Correct Smile. All lined up and in the centre underneath the avatar. All words are in line with each other. Thanks budd.

SkyGuide
Forumember

Male Posts : 261
Reputation : 2
Language : english

http://oldschoolsociety.forumotion.org/

Back to top Go down

Solved Re: Viewtopic body coding

Post by Guest on October 22nd 2015, 1:40 am

@SkyGuide wrote:Correct Smile. 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


Back to top Go down

Solved Re: Viewtopic body coding

Post by SkyGuide on October 22nd 2015, 1:44 am

Centre please? Smile thanks

SkyGuide
Forumember

Male Posts : 261
Reputation : 2
Language : english

http://oldschoolsociety.forumotion.org/

Back to top Go down

Solved Re: Viewtopic body coding

Post by Guest on October 22nd 2015, 1:48 am

Wasn't sure if you wanted your avatars centered so I made two codes for each option.

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


Back to top Go down

Solved Re: Viewtopic body coding

Post by brandon_g on October 22nd 2015, 1:51 am

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 Wink.

-Brandon


Remember to mark your topic when a solution is found.

brandon_g
Support Moderator
Support Moderator

Male Posts : 5344
Reputation : 488
Language : English
Location : USA

http://broadcastingduo.forumotion.com/

Back to top Go down

Solved Re: Viewtopic body coding

Post by SkyGuide on October 22nd 2015, 1:53 am

Your the best budd Smile. 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.


SkyGuide
Forumember

Male Posts : 261
Reputation : 2
Language : english

http://oldschoolsociety.forumotion.org/

Back to top Go down

Solved Re: Viewtopic body coding

Post by Guest on October 22nd 2015, 1:55 am

Did you use the one that centers your avatar or doesn't center it?

Guest
Guest


Back to top Go down

Solved Re: Viewtopic body coding

Post by SkyGuide on October 22nd 2015, 2:13 am

I sure did Smile. 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
Forumember

Male Posts : 261
Reputation : 2
Language : english

http://oldschoolsociety.forumotion.org/

Back to top Go down

Solved Re: Viewtopic body coding

Post by Guest on October 22nd 2015, 2:14 am

No, I don't think you understood my question. Razz
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


Back to top Go down

Solved Re: Viewtopic body coding

Post by SkyGuide on October 22nd 2015, 2:40 am

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.

SkyGuide
Forumember

Male Posts : 261
Reputation : 2
Language : english

http://oldschoolsociety.forumotion.org/

Back to top Go down

Page 1 of 2 1, 2  Next

View previous topic View next topic Back to top


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