Post Numbers

Set location to between post image and post author name - Post Numbers

Set location to between post image and post author name

by HaloPolicja » Sat Nov 10, 2018 9:59 pm

How can I set location of post number to between post image and post author name (as it was in version 1.0.4)? Instead of:
Image

I want:
Image

How can I do it? Thank you for help.
HaloPolicja
Registered User
Posts: 41
Joined: Tue Aug 02, 2016 1:02 pm

Re: Set location to between post image and post author name

by kasimi » Sat Nov 10, 2018 10:21 pm

Move this line before this line. Watch out though, other extensions that use the same template event are affected by this change too.
User avatar
kasimi
Former Team Member
Posts: 4900
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany

Re: Set location to between post image and post author name

by Peeagepeebeebee » Mon Feb 04, 2019 4:04 am

kasimi wrote:Move this line before this line.
Kasimi, would you mind to post before and after code snippets?
I'm confused about your this before this, because the line you suggest to move is just a closed comment line <!-- EVENT blabla -->, so shouldn't have any effect when moved.

Edit: OK, figured it out...

Looks like that comment line <!-- EVENT blabla --> isn't just a comment.

Before:

Code: Select all

			<!-- EVENT viewtopic_body_postrow_post_details_before -->
			<p class="author">
				<!-- IF S_IS_BOT -->
					<span><i class="icon fa-file fa-fw <!-- IF postrow.S_UNREAD_POST -->icon-red<!-- ELSE -->icon-lightgray<!-- ENDIF --> icon-md" aria-hidden="true"></i><span class="sr-only">{postrow.MINI_POST}</span></span>
				<!-- ELSE -->
					<a class="unread" href="{postrow.U_MINI_POST}" title="{postrow.MINI_POST}">
						<i class="icon fa-file fa-fw <!-- IF postrow.S_UNREAD_POST -->icon-red<!-- ELSE -->icon-lightgray<!-- ENDIF --> icon-md" aria-hidden="true"></i><span class="sr-only">{postrow.MINI_POST}</span>
					</a>
				<!-- ENDIF -->
				<span class="responsive-hide">{L_POST_BY_AUTHOR} <strong>{postrow.POST_AUTHOR_FULL}</strong> &raquo; </span>{postrow.POST_DATE}
			</p>
After:

Code: Select all

			<p class="author">
				<!-- IF S_IS_BOT -->
					<span><i class="icon fa-file fa-fw <!-- IF postrow.S_UNREAD_POST -->icon-red<!-- ELSE -->icon-lightgray<!-- ENDIF --> icon-md" aria-hidden="true"></i><span class="sr-only">{postrow.MINI_POST}</span></span>
				<!-- ELSE -->
					<a class="unread" href="{postrow.U_MINI_POST}" title="{postrow.MINI_POST}">
						<i class="icon fa-file fa-fw <!-- IF postrow.S_UNREAD_POST -->icon-red<!-- ELSE -->icon-lightgray<!-- ENDIF --> icon-md" aria-hidden="true"></i><span class="sr-only">{postrow.MINI_POST}</span>
					</a>
				<!-- ENDIF -->
			<!-- EVENT viewtopic_body_postrow_post_details_before -->
				<span class="responsive-hide">{L_POST_BY_AUTHOR} <strong>{postrow.POST_AUTHOR_FULL}</strong> &raquo; </span>{postrow.POST_DATE}
			</p>
Peeagepeebeebee
Registered User
Posts: 45
Joined: Fri Jan 18, 2019 4:34 am
Location: Germany