Page 1 of 1

Post ID in posts

Posted: 26 Jul 2011, 20:55
by Stoker
Post ID in posts
Written by Stoker

We just need to make on single file edit to add post ID to the posts.
It will replace the tiny mini_post image with the post ID.

Open styles/prosilver/templates/viewtopic_body.html
Find:

Code: Select all

<a href="{postrow.U_MINI_POST}">{postrow.MINI_POST_IMG}</a><!-- ENDIF -->{L_POST_BY_AUTHOR}
Replace with:

Code: Select all

<a href="{postrow.U_MINI_POST}">#{postrow.POST_ID}</a> <!-- ENDIF -->{L_POST_BY_AUTHOR}
Open styles/subsilver2/templates/viewtopic_body.html
Find:

Code: Select all

<a href="{postrow.U_MINI_POST}">{postrow.MINI_POST_IMG}</a><!-- ENDIF --><b>{L_POSTED}:</b>
Replace with:

Code: Select all

<a href="{postrow.U_MINI_POST}">#{postrow.POST_ID}</a> <!-- ENDIF --><b>{L_POSTED}:</b>
Remember to refresh templates in ACP after the files are uploaded.