Topic: Post ID in topic subject

Hi
Firstly, great work on punbb, I am having a great time using it.

now for my request, I am using PunBB as a support forum and would like to display the postID in the Topic subject (not for every post mind, just the topic subject), this would be a nice way to assign unique reference numbers to the topics/issues.

thanks

Re: Post ID in topic subject

Hi
I found a solution for this, its a bit of a hack, but hey it works.

I simply changed line 257 in viewforum.php from :

 $forum_page['item_title']['link'] = '<a href="'.forum_link($forum_url['topic'], array($cur_topic['id'], sef_friendly($cur_topic['subject']))).'">'.forum_htmlencode($cur_topic['subject']).'</a>';

to

 $forum_page['item_title']['link'] = '<a href="'.forum_link($forum_url['topic'], array($cur_topic['id'],  sef_friendly($cur_topic['subject']))).'">'.forum_htmlencode($cur_topic['subject']).' (Ref.#'.$cur_topic['id'].') '.'</a>';

Re: Post ID in topic subject

Liked this idea and tested it as an extension

Downloadable here

Shows the Topic ID as (Ref #x) in forum overview....

Demo