Post ID in topics

Guides & Snippets for phpBB3. Try the Snippets here and share Your own Snippets
There is no support here! Only Read Access!
Locked
User avatar
Stoker
Site Admin
Site Admin
Posts: 3521
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

Moved: viewtopic.php?f=45&t=1274
Board rules! No PM support
Ather
BBCoder II
BBCoder II
Posts: 14
Joined: 09 Apr 2010, 18:27

Re: Post ID in topics

Post by Ather »

and here is a slight modification to the above code :)

Prosilver :
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 onclick="prompt('Link to Post:',this.href); return false;" href="{postrow.U_MINI_POST}">#{postrow.POST_ID}</a>
User avatar
Oliver
BBCoder III
BBCoder III
Posts: 120
Joined: 07 Mar 2010, 11:55

Re: Post ID in topics

Post by Oliver »

Ather » 06 May 2010, 15:12 wrote:and here is a slight modification to the above code :)

Prosilver :
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 onclick="prompt('Link to Post:',this.href); return false;" href="{postrow.U_MINI_POST}">#{postrow.POST_ID}</a>
Thats makes parse error :evil:
Ather
BBCoder II
BBCoder II
Posts: 14
Joined: 09 Apr 2010, 18:27

Re: Post ID in topics

Post by Ather »

hmm thats weird, i have tested on 2 places and its working

Note, this is for proSilver and here is my code block from se_square_left style :

viewtopicbody.html :

Code: Select all

<h3 <!-- IF postrow.S_FIRST_ROW -->class="first"<!-- ENDIF -->><!-- IF postrow.POST_ICON_IMG --><img src="{T_ICONS_PATH}{postrow.POST_ICON_IMG}" width="{postrow.POST_ICON_IMG_WIDTH}" height="{postrow.POST_ICON_IMG_HEIGHT}" alt="" /> <!-- ENDIF --><a href="#p{postrow.POST_ID}">{postrow.POST_SUBJECT}</a></h3>
			<p class="author"><!-- IF S_IS_BOT -->{postrow.MINI_POST_IMG}<!-- ELSE --><a onclick="prompt('Link to Post:',this.href); return false;" href="{postrow.U_MINI_POST}">#{postrow.POST_ID}</a> <!-- ENDIF -->{L_POST_BY_AUTHOR} <strong>{postrow.POST_AUTHOR_FULL}</strong> &raquo; {postrow.POST_DATE}</p>
User avatar
Stoker
Site Admin
Site Admin
Posts: 3521
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Re: Post ID in topics

Post by Stoker »

Ather, Oliver is right.
There is this code extra in what you say find: <!-- ENDIF -->{L_POST_BY_AUTHOR}
When that is removed it will give you an error.
Board rules! No PM support
testas123
BBCoder II
BBCoder II
Posts: 13
Joined: 11 Jun 2010, 18:09

Re: Post ID in topics

Post by testas123 »

can we make, for example numbers for each topic :1, 2, 3 ,4 because for big boards it shows #4154454847
User avatar
Stoker
Site Admin
Site Admin
Posts: 3521
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Re: Post ID in topics

Post by Stoker »

I think there is another mod for that on phpbb.com
Board rules! No PM support
dragoth
BBCoder III
BBCoder III
Posts: 81
Joined: 05 Mar 2010, 02:57

Re: Post ID in topics

Post by dragoth »

i know its kinda old this post

but the mod is called Post number in viewtopic
Locked