View Full Version : I want special topic icon for new threads ( like posted in last 1 week)
maxicep
10-01-2007, 07:08 PM
I want special topic icon for new threads ( like posted in last 1 week)
I see on a few forums that, if thread posted in last 1 week, topic icon is : new.gif
What is that modification?
Thanks
maxicep
10-03-2007, 01:35 AM
anyone know ?
armatik
10-03-2007, 01:44 AM
It's possible, but you'd have to write a plugin of some sort to define a condition to see if the date of the thread is one week old or not. Then you would argue that conditional inside the threadbit template, in the part where the icon is being shown.
If anyone wants to take a shot at that, or if the original poster wants to research a bit more, go ahead. It's pretty easy, just don't have time to write out steps.
maxicep
10-08-2007, 02:03 AM
I understand u but i dont know which i need use hook or what will be php-code for this plugin.
maxicep
10-10-2007, 02:08 PM
still need help about this
maxicep
10-12-2007, 03:16 PM
still need help about this
:(:(
maxicep
10-15-2007, 05:37 PM
up.
maxicep
10-21-2007, 12:50 PM
idea idea idea :(
Opserty
10-21-2007, 01:53 PM
Maybe something like this:
if($thread['dateline'] > (TIMENOW - 604800) )
{
// $thread['iconid'] = X;
}
With a hook location of maybe threadbit_display or threadbit_process.
maxicep
10-21-2007, 02:39 PM
where i set the new.gif icon's path ?
maxicep
10-23-2007, 12:38 AM
up plx :)
maxicep
10-24-2007, 05:07 PM
Up Up :rolleyes:
--------------- Added 1193316684 at 1193316684 ---------------
where is the helpers :)
maxicep
10-26-2007, 11:37 PM
need help about make a plugin for that.
maxicep
11-02-2007, 12:07 AM
where is the coder's :p
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.