Placing the user's profile information above the post
2 posters
Page 1 of 1
Placing the user's profile information above the post
Hey guys it's been awhile! So yeah got back into coding and i'm working on a pet project and hit a snag. I want to do something similar to this: http://swordartonline.proboards.com/index.cgi?board=clarkswood&action=display&thread=8085 (Scroll down to see how the user information is displayed) on my forums. Now I'm using Punbb because quite frankly it's the most underrated version of them all and tinkering with it is quite fun, however I hit a proverbial snag with the CSS. I located the tags that manage the profile information however the only way to move it so far has when I changed this:
To this:
However when it does move it sits on the forum itself kind like a higher layer instead of being on the forums layer. So if anyone else knows how to do this or tests it out themselves let me know, I'll continue to mess around with it myself to see if any other tags move it and if I do find a solution I'll change the topic to solved.
-Eman and Kou
- Code:
.pun .post .user {
float: right;
margin-right: -16em;
margin-top: -1.8em;
position:relative;
}
To this:
- Code:
.pun .post .user {
float: top;
margin-right: -16em;
margin-top: -1.8em;
position:fixed;
}
However when it does move it sits on the forum itself kind like a higher layer instead of being on the forums layer. So if anyone else knows how to do this or tests it out themselves let me know, I'll continue to mess around with it myself to see if any other tags move it and if I do find a solution I'll change the topic to solved.
-Eman and Kou
Re: Placing the user's profile information above the post
Have you tried this with the templates?
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Placing the user's profile information above the post
Not yet I haven't I actually thought about doing it next, but it seemed more logical that it would be controlled through the CSS spreadsheet.
EDIT: Okay so I remembered something of an update Forumotion did a year or two back where they placed the profiles positioning in the general section so is there a way to like turn that off completely? That would probably help the process out a little bit since apparently I can still move it from left to right when i'm deciding it's position in the topic, but the background bar won't follow.
EDIT 2: Here's an example of the current look for reference, I have the profiles set to the left in the general tab but in the css I have them floating to the right of the post: http://sao-mcinc.rpg-boards.com/t15-yukinayuki-konahana
Also side note of the edit: Current tinkering with the templates does not change the positioning of the profile in the post.
EDIT: Okay so I remembered something of an update Forumotion did a year or two back where they placed the profiles positioning in the general section so is there a way to like turn that off completely? That would probably help the process out a little bit since apparently I can still move it from left to right when i'm deciding it's position in the topic, but the background bar won't follow.
EDIT 2: Here's an example of the current look for reference, I have the profiles set to the left in the general tab but in the css I have them floating to the right of the post: http://sao-mcinc.rpg-boards.com/t15-yukinayuki-konahana
Also side note of the edit: Current tinkering with the templates does not change the positioning of the profile in the post.
Re: Placing the user's profile information above the post
I inputted the code and i'm looking through it right now but it's giving me an error message that a tag has been closed without being opened or wasn't opened at all: "The tag has been closed before being opened or the tag hasn't been opened."
Re: Placing the user's profile information above the post
I just tested this on my punBB forum. It still gives this message:
Error:
The tag has been closed before being opened or the tag hasn't been opened.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Placing the user's profile information above the post
Same error message, I think it's because were removing a tag or two hold on let me test this.
EDIT: It was us removing a tag, you forgot to put the
tag back into the code.
EDIT: It was us removing a tag, you forgot to put the
- Code:
<!-- END first_post_br -->
tag back into the code.
Re: Placing the user's profile information above the post
I am still getting the error message.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Placing the user's profile information above the post
It did not for me.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Placing the user's profile information above the post
- Code:
<div class="main-content topic">
<!-- END first_post_br -->
<div class="user-info">
{postrow.displayed.ONLINE_IMG}
<!-- BEGIN profile_field -->
{postrow.displayed.profile_field.LABEL}{postrow.displayed.profile_field.CONTENT}{postrow.displayed.profile_field.SEPARATOR}
<!-- END profile_field -->
{postrow.displayed.POSTER_RPG}
</div>
<div class="post post--{postrow.displayed.U_POST_ID}"{postrow.displayed.THANK_BGCOLOR} style="{postrow.displayed.DISPLAYABLE_STATE}">
<a name="{postrow.displayed.U_POST_ID}"></a>
<div class="postmain"{postrow.displayed.THANK_BGCOLOR}>
<div id="p{postrow.displayed.U_POST_ID}" class="posthead"{postrow.displayed.THANK_BGCOLOR}>
<h2>
<strong>{postrow.displayed.COUNT_POSTS}</strong>
{postrow.displayed.ICON} <a href="{postrow.displayed.POST_URL}">{postrow.displayed.POST_SUBJECT}</a> {postrow.displayed.POST_DATE_NEW}
</h2>
</div>
<div class="postbody"{postrow.displayed.THANK_BGCOLOR}>
<div class="user">
<div class="user-ident">
<h4 class="username">
{postrow.displayed.POSTER_NAME}</h4>
<div class="user-basic-info">
{postrow.displayed.POSTER_AVATAR}<br />
{postrow.displayed.POSTER_RANK_NEW}{postrow.displayed.RANK_IMAGE}
</div>
</div>
</div>
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Placing the user's profile information above the post
- Code:
<hr id="first-post-br" />
<!-- END first_post_br -->
<div class="user-info">
{postrow.displayed.ONLINE_IMG}
<!-- BEGIN profile_field -->
{postrow.displayed.profile_field.LABEL}{postrow.displayed.profile_field.CONTENT}{postrow.displayed.profile_field.SEPARATOR}
<!-- END profile_field -->
{postrow.displayed.POSTER_RPG}
</div>
<div class="post post--{postrow.displayed.U_POST_ID}"{postrow.displayed.THANK_BGCOLOR} style="{postrow.displayed.DISPLAYABLE_STATE}">
<a name="{postrow.displayed.U_POST_ID}"></a>
<div class="postmain"{postrow.displayed.THANK_BGCOLOR}>
<div id="p{postrow.displayed.U_POST_ID}" class="posthead"{postrow.displayed.THANK_BGCOLOR}>
<h2>
<strong>{postrow.displayed.COUNT_POSTS}</strong>
{postrow.displayed.ICON} <a href="{postrow.displayed.POST_URL}">{postrow.displayed.POST_SUBJECT}</a> {postrow.displayed.POST_DATE_NEW}
</h2>
</div>
<div class="postbody"{postrow.displayed.THANK_BGCOLOR}>
<div class="user">
<div class="user-ident">
<h4 class="username">{postrow.displayed.POSTER_NAME}</h4>
<div class="user-basic-info">
{postrow.displayed.POSTER_AVATAR}<br />
{postrow.displayed.POSTER_RANK_NEW}{postrow.displayed.RANK_IMAGE}
</div>
</div>
</div>
It placed the profile information at the top of the post however everything else is still on the left side.
http://sao-mcinc.rpg-boards.com/t12-feedback-template?tt=1 (Example, don't know if you guys need to be admins to see it I hadn't saved the changes to the template yet.)
Re: Placing the user's profile information above the post
Ah, so now I can just move it around in the CSS spreadsheet? Also what about the default profile bar because that's still there.
Re: Placing the user's profile information above the post
Ah I think I noticed it. If I moved this part of the code:
Back above the profile information would it move it back down or would it basically put me back to square 1?
- Code:
<div class="user">
<div class="user-ident">
<h4 class="username">{postrow.displayed.POSTER_NAME}</h4>
<div class="user-basic-info">
{postrow.displayed.POSTER_AVATAR}<br />
{postrow.displayed.POSTER_RANK_NEW}{postrow.displayed.RANK_IMAGE}
</div>
</div>
</div>
Back above the profile information would it move it back down or would it basically put me back to square 1?
Re: Placing the user's profile information above the post
I am still getting the error message when I try to replace the code. If it helps, I have not modified any templates until now.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Placing the user's profile information above the post
Use the code I posted SL. Also make sure you don't remove this part of the code:
Just this part:
- Code:
<div class="main-content topic">
<!-- BEGIN postrow -->
<!-- BEGIN hidden -->
<p class="p-hidden">{postrow.hidden.MESSAGE}</p>
<!-- END hidden -->
<!-- BEGIN displayed -->
<!-- BEGIN first_post_br -->
</div>
Just this part:
Rideem3 wrote:Go to Admin Panel -> Display -> General -> Viewtopic_body -> find:
- Code:
<div class="main-content topic">
<!-- END first_post_br -->
<div class="post post--{postrow.displayed.U_POST_ID}"{postrow.displayed.THANK_BGCOLOR} style="{postrow.displayed.DISPLAYABLE_STATE}">
<a name="{postrow.displayed.U_POST_ID}"></a>
<div class="postmain"{postrow.displayed.THANK_BGCOLOR}>
<div id="p{postrow.displayed.U_POST_ID}" class="posthead"{postrow.displayed.THANK_BGCOLOR}>
<h2>
<strong>{postrow.displayed.COUNT_POSTS}</strong>
{postrow.displayed.ICON} <a href="{postrow.displayed.POST_URL}">{postrow.displayed.POST_SUBJECT}</a> {postrow.displayed.POST_DATE_NEW}
</h2>
</div>
<div class="postbody"{postrow.displayed.THANK_BGCOLOR}>
<div class="user">
<div class="user-ident">
<h4 class="username">{postrow.displayed.POSTER_NAME}</h4>
<div class="user-basic-info">
{postrow.displayed.POSTER_AVATAR}<br />
{postrow.displayed.POSTER_RANK_NEW}{postrow.displayed.RANK_IMAGE}
</div>
</div>
<div class="user-info">
{postrow.displayed.ONLINE_IMG}
<!-- BEGIN profile_field -->
{postrow.displayed.profile_field.LABEL}{postrow.displayed.profile_field.CONTENT}{postrow.displayed.profile_field.SEPARATOR}
<!-- END profile_field -->
{postrow.displayed.POSTER_RPG}
</div>
</div>
Re: Placing the user's profile information above the post
Thanks, Eman and Kou.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Placing the user's profile information above the post
Eman and Kou wrote:Ah I think I noticed it. If I moved this part of the code:
- Code:
<div class="user">
<div class="user-ident">
<h4 class="username">{postrow.displayed.POSTER_NAME}</h4>
<div class="user-basic-info">
{postrow.displayed.POSTER_AVATAR}<br />
{postrow.displayed.POSTER_RANK_NEW}{postrow.displayed.RANK_IMAGE}
</div>
</div>
</div>
Back above the profile information would it move it back down or would it basically put me back to square 1?
If you could answer this post Rideem that would be nice.
Re: Placing the user's profile information above the post
Blah, so how would i be able to move both above the post without fubaring it? Like i'm thinking that if I could get rid of the default profile information placement I would be able to do it, but it seems to be hard coded into the forum so I can't change the placement. And tips or tricks or insight into that or should I just be happy with what I got now?
Re: Placing the user's profile information above the post
Alright so if I put the profile picture/rank tags within that div tag set it would be above the post? Or would I have to put it above it?
Re: Placing the user's profile information above the post
Nice, alright so that worked, however the forumotion one is still there.
http://sao-mcinc.rpg-boards.com/t13-vanto-wip
So how would we go about removing the one on the left so instead of having 2 profile bars, it would just be the on the top and then you'd have the post right below it.
http://sao-mcinc.rpg-boards.com/t13-vanto-wip
So how would we go about removing the one on the left so instead of having 2 profile bars, it would just be the on the top and then you'd have the post right below it.
Re: Placing the user's profile information above the post
Alright got everything moved, one last problem then this is solved, the black bar is still there. Like I have everything moved atm but it's still there so i'm guessing one of the placeholder styles in the tags is what's keeping there. So which one of them is it?
Re: Placing the user's profile information above the post
Wait what do you mean I didn't remove them? I got rid of the original stuff awhile back when I edited the code, and wouldn't that thing that you posted only work on phpbb2? They don't seem to have a punbb code.
Re: Placing the user's profile information above the post
Oh right forgot to save the template changes so it shows up to normal users, look now.
Re: Placing the user's profile information above the post
Yes! Thanks man that's perfect, solved!
Topic Solved
Always wanted to do that
Topic Solved
Always wanted to do that
Similar topics
» Help Profile Information Text Color
» Placing an Ad below profile picture?
» Users unable to add information to profiles
» Loading profile information ?
» Moving poster information to the top of the post.
» Placing an Ad below profile picture?
» Users unable to add information to profiles
» Loading profile information ?
» Moving poster information to the top of the post.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum