phpBBHacks.com - I want it so editing the last post in a thread bumps it
Managing Online Forums, a manual for the community admin
StatsForums Home   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in
FAQFAQ   SearchSearch   MemberlistMemberlist   TutorialsTutorials   ContactContact Us
Username:    Password:
Remember Me?    
   I Lost My Password!
Bookmark and Share
Post new topic   Reply to topic    phpBBHacks.com Support Forums Forum Index -> phpBB 2 Hack Requests and Development
 See a User Guidelines violation? Please contact us.
Author Message

ScottHughes
New User

Joined: 10 Feb 2010
Posts: 1

PostPosted: February 10th 2010, 12:35 pm    Post subject: I want it so editing the last post in a thread bumps it Reply with quote

On my forum, if users want to add to what they have posted in a thread bbut nobody has replied to that post in that thread yet, then they are supposed to edit the post rather than post an extra, consecutive post. In other words, if they were the last person to post in the thread and they want to add something they are supposed to just edit their last thread.

Anyway, when one edits the last post in a thread, it is not shown as a new post. The thread's 'last updated' time is still when the original post was made. The thread is not bumped to the top of the list. And the thread is not marked as unread for people who have read it before the last post was edited.

I found a hack that changes the time of the last post when it is edited to the time it is edited. I thought that would fix the problem but it doesn't bump the threads. In other words, a thread with the last post recently edited will be listed with a last post time that is fairly recent but will be lower in the list of threads than ones whose last post was made before the edit. I guess that hack changes the 'posted time' in the database for the specific post in the posts table but there must be a separate 'last updated' column in the topics table which that hack does not update. So I will probably just remove that hack since it does not do what I want.

Does anyone know of a hack that will do what I want? Or can anyone make one or tell me how to do this modification myself?

To reiterate, I want it so if a user edits their post and their post was the last one in a thread the thread will be bumped to the top of the list and the time displayed will be when the edit was made not when the edited post was originally posted.


Thanks!
Back to top
View user's profile Send private message Visit poster's website

-Ram-
Not So New User

Joined: 17 Jun 2009
Posts: 62
Location: France

PostPosted: February 11th 2010, 1:34 am    Post subject: Reply with quote

I know a Bump Topic MOD.

Quote:
MOD Description: this MOD adds the ability to bump a topic.
Only the topic poster and last poster are allowed to bump. However, an admin can bump a topic even if he didn't post in the topic
Back to top
View user's profile Send private message

Wicher
Experienced User

Joined: 23 Apr 2003
Posts: 443
Location: Netherlands or Holland, your choice..

PostPosted: February 12th 2010, 4:50 pm    Post subject: Reply with quote

I did not test this, but if you want you can
backup below mentioned files and try this:

viewforum.php
Code:

FIND
   ORDER BY t.topic_type DESC, t.topic_last_post_id DESC

REPLACE WITH:
   ORDER BY t.topic_type DESC, t.topic_last_post_id DESC, p.post_edit_time DESC


viewtopic.php
Code:

FIND:
   $post_date = create_date($board_config['default_dateformat'], $postrow[$i]['post_time'], $board_config['board_timezone']);

REPLACE WITH:
   if (!empty($postrow[$i]['post_edit_time']))
   {
      $posttime = $postrow[$i]['post_edit_time'];
   }
   else
   {
      $posttime = $postrow[$i]['post_time'];
   }
   $post_date = create_date($board_config['default_dateformat'], $posttime, $board_config['board_timezone']);

_________________
My little mods | Statistics Mod 4.x.x (revision of 2.1.5) | My hacks at phpbbhacks
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBBHacks.com Support Forums Forum Index -> phpBB 2 Hack Requests and Development All times are GMT - 6 Hours
Page 1 of 1
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Links: Big Message Boards - Free JavaScript - phpBB2 - phpbb styles - Suporte phpBB - phpBB Česky - phpBB Turkiye - phpBBArabia.com - phpBB-fr.com - Romanian phpBB online community - phpBB-TW.net - phpBBservice.nl - phpBB Brasil - phpBB Portugal - phpBBpersian.com

Network: iFroggy Hosting - PhotoshopForums.com - Managing Online Forums - ManagingCommunities.com - CommunityAdmins.com - KarateForums.com - Bad Boy Blog - SodaRatings.com - Patrick O'Keefe

< Advertising - Contact Us - Disclosure Policy - Staff - User Guidelines >

Copyright © 2001-2012. iFroggy Network, phpBBHacks.com. All Rights Reserved. Privacy Policy. We Support phpBBHacks.com (of course!).
Powered by phpBB © phpBB Group. phpBB SEO. We are in no way affiliated with the phpBB Group. phpBB is copyright to the phpBB Group.