Post ID in topics

Mixed forum with code snippets, guides and styles
Forum rules
Everything in this forum is for everybody
But support only for Donators!
Post Reply
User avatar
Stoker
Site Admin
Site Admin
Posts: 3540
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Post ID in topics

Post by Stoker »

Post ID in topics
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.
Board rules! No PM support
Post Reply