PDA

View Full Version : Adding 'New' next to threadtitle


Powlo
04-09-2009, 03:55 AM
Anyone know a way of having 'New' next to a new thread title?

I'm doing away with the statusicons but i still wish to have an image if the thread is new so it would look like this

New Thread Title New

'New' would be an image.

Lynne
04-09-2009, 02:43 PM
You'll probably need to a plugin to define whether the thread is 'new' or not (look at the users last time online versus the postdate of the thread?). Then you can use the output from that to put the image in your threadbit.

Powlo
04-09-2009, 09:34 PM
Good thinking, thanks ;)

TimberFloorAu
04-09-2009, 09:42 PM
Why not just use the status icons.

But customize them.

in edit forum, look for image prefix.

change to lets say new_

then create a graphic called new_forum_new.gif
and one called new_forum_old.gif

Then upload those two images to forum/styles/yourstyle/statusicon/ folder

Then just repeat for each forum, with either same prefix or a new prefix.

We use it on our forums, but with different images.

Ste

Powlo
04-09-2009, 10:07 PM
i thought about that but wont it show up if there is a new post within the thread when i just want it to show when there is a new thread?

TimberFloorAu
04-09-2009, 10:21 PM
Yep sorry.

Misinterpreted your initial request.

Perhaps you could invoke a new column in thread view, and add a specific graphic to that.

Ste

Powlo
04-09-2009, 10:25 PM
its calling the graphic thats the problem.

TimberFloorAu
04-09-2009, 10:37 PM
Yes I can Imagine.

Wouldnt it be called via showthread_list

then phrase it.

Powlo
04-09-2009, 10:44 PM
umm i not sure i understand what you mean,

TimberFloorAu
04-09-2009, 10:53 PM
AFAIK Showthread_list displays all the threads within a particular forum.

So if you were to add a new column, with a trigger graphic in each thread row, that was either NEW or OLD that would solve your issue wouldnt it.

Its beyond my skills, Im just thinking out loud lol.

Lynne
04-09-2009, 11:04 PM
It is the threadbit template that he would need to modify. Like I said, you'll need a plugin to define what is 'new'. Something like:

$new = false;
if ($bbuserinfo['lastactivity'] < $thread['dateline'] ) $new=true;Then in the threadbit, if $new is true, then post the New image. Or set the image path in the plugin also.

(Not tested at all.)

Powlo
04-11-2009, 05:04 PM
Thankyou for your help but sadly that has gone straight over my head.


i think i need to get myself a tutor.

:confused: