<=FolderImage: OLD TOPIC in viewforum.php?

This forum is now closed as part of retiring phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

This forum is now closed due to phpBB2.0 being retired.
User avatar
-ds-
Registered User
Posts: 554
Joined: Wed Sep 14, 2005 7:12 pm

<=FolderImage: OLD TOPIC in viewforum.php?

Post by -ds- »

I would like to see what threads are older than a certain age in the thread folder image in the viewforum.php. Is there a mod for this? vBulletin has a similar effect already.

Atm, there is no way to see if a thread is 2 years old and "bumped" or newly created.

Here is what I mean:

It would be nice to have 4 extra images and 2 new topic-types (if 2 are really needed) that make it clear its either an (popular) older thread, unread or read:

1. Read Old Thread (no new posts)
2. Unread Old Thread (new posts)
3. Read Old Thread _ Hot (no new posts in a Popular thread)
4. Unread Old Thread _ Hot (new posts)

The time for a thread to become "old" should be changeable via the admin cp board config, but of course that is not essential as long as its clear where it is set in the code.

This would be nice to have solved. :P

/title & text changed for clarity
Last edited by -ds- on Mon Apr 17, 2006 1:28 pm, edited 3 times in total.
User avatar
-ds-
Registered User
Posts: 554
Joined: Wed Sep 14, 2005 7:12 pm

Post by -ds- »

anyone?
Merlin Sythove
Registered User
Posts: 2339
Joined: Tue Mar 16, 2004 7:42 am

Post by Merlin Sythove »

How do you define "old"? As in time since the first post, as in time since the last post?
"Old" topics tend to live after the first couple of pages in viewtopic. But I can see the point if you don't want people to reopen old topics (you may want a message before people posting), or in overviews like favourites, search topic result display, view my posts and so on.
I have no idea if something like this exists, sorry.

http://www.phpbbhacks.com/download/1393
Shows topic start date in moderator control panel.
Not quite what you want, but maybe enough to customise.
Need custom work done? Pimp My Forum!
User avatar
-ds-
Registered User
Posts: 554
Joined: Wed Sep 14, 2005 7:12 pm

Post by -ds- »

Thank you for your reply, Merlin.

Yes, I mean that after a certain time since the thread was created the folder image changes to something different indicating that the thread is "old". So yes, the first post date is essential.

I believe I would have to enter a new topic type (in this case I will call the topic_type= POST_OLD) in viewforum.php something like this:

Code: Select all

if( $topic_rowset[$i]['topic_type'] == POST_OLD )
			{
				$folder = $images['folder_old'];
				$folder_new = $images['folder_old_new'];
			}
or maybe:

Code: Select all

if($board_config['old_threshold']$replies >= )
				{
					$folder = $images['folder_old'];
					$folder_new = $images['folder_old_new'];
				}
But i have no idea where I would implement the code changes throughout.

Is someone interested in writing this mod?
User avatar
-ds-
Registered User
Posts: 554
Joined: Wed Sep 14, 2005 7:12 pm

Post by -ds- »

So I'd also define a new topic type in includes/constants.php where it says:
// Topic types
define('POST_NORMAL', 0);
define('POST_STICKY', 1);
define('POST_ANNOUNCE', 2);
define('POST_GLOBAL_ANNOUNCE', 3);


Can anyone help? :?:
User avatar
-ds-
Registered User
Posts: 554
Joined: Wed Sep 14, 2005 7:12 pm

Post by -ds- »

anyone?
User avatar
-ds-
Registered User
Posts: 554
Joined: Wed Sep 14, 2005 7:12 pm

Post by -ds- »

:?:
User avatar
-ds-
Registered User
Posts: 554
Joined: Wed Sep 14, 2005 7:12 pm

Post by -ds- »

come on, somebody just give me a clue how to do this please. :(
User avatar
-ds-
Registered User
Posts: 554
Joined: Wed Sep 14, 2005 7:12 pm

Post by -ds- »

:?:
User avatar
-ds-
Registered User
Posts: 554
Joined: Wed Sep 14, 2005 7:12 pm

Post by -ds- »

Is this too hard to implement?
User avatar
-ds-
Registered User
Posts: 554
Joined: Wed Sep 14, 2005 7:12 pm

Post by -ds- »

Please, if someone could give me a few pointers which files would need editing I could give this a go myself.
User avatar
-ds-
Registered User
Posts: 554
Joined: Wed Sep 14, 2005 7:12 pm

Post by -ds- »

:cry:
but2002
Registered User
Posts: 110
Joined: Mon Sep 19, 2005 10:05 pm

Post by but2002 »

I would also lik this, but it seems that no replies are coming in!
User avatar
-ds-
Registered User
Posts: 554
Joined: Wed Sep 14, 2005 7:12 pm

Post by -ds- »

Thanks but2002. maybe we can keep this one on the front page until someone can give us some pointers. :wink:

As I say with justa little help I should be able to do this myself, but for now I really don't know how and where the topic types are handled.

Ramon maybe?

The files to edit would most likely be these:

templatename.cfg (to add the images)
viewforum.php (to show the folder images on threads older than a certain age)


Lets forget about being able to customise the old threshold via tha ACP for now, so that we don't need any sql queries apart from checking the thread first post date with the current date
User avatar
-ds-
Registered User
Posts: 554
Joined: Wed Sep 14, 2005 7:12 pm

Post by -ds- »

Is there noone interested in this feature? :cry:
Post Reply

Return to “[2.0.x] MOD Requests”