PDA

View Full Version : Threadid number in title.


Revpolar
10-27-2007, 12:49 PM
I have a kind of support forum and would like to insert the thread number as if it was the support ticket number into the thread title. So that the thread title looks like:
Threadid number in title. WR#112 or something like that.
So it would add the WR# and the thread number as the actual number. WR =work request fyi.

Or if anyone has a better idea let me know. I'm pretty sure I can figure it out but some of you wizzards here can probably do it in seconds when it takes me hours.

BTW it should only show on the first post and have if forum conditionals.

The reason for this is simple sometimes the work request are the same or very similar. So when you go back to complete it "reply" Its hard to find. If the title had a number it would be easier to locate.

--------------- Added 1193502423 at 1193502423 ---------------

Will this code do it? Im not able to test right away.
In postbit or postbit legacy
Find:
<if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
Add Below:
<if condition="$thread['forumid'] == X">
<if condition=$post['title']"><strong>$post[title] WR: ['threadid']</strong></if>
</if>
<else />
Replace X with number of forum you wish to display the thread number in the title.
Save.

Analogpoint
10-27-2007, 09:00 PM
I would change the 'add below' code to this:

<if condition=$post['title']"><strong>$post[title]<if condition="$thread['forumid'] == X"> WR: ['threadid']</if></strong></if>

Revpolar
10-27-2007, 09:13 PM
Yes thanks.

Revpolar
10-27-2007, 11:59 PM
It took me a while to get it right.

Heres what I came up with

<if condition="$post['title']"><strong>$post[title]</strong></if>
<if condition="$forum['forumid'] == X ">
Work Order #<if condition="$thread['threadid']"><strong> $thread[threadid]</strong></if></if>