[In Progress] Enhance Last Post Subject v1.1
I was wondering if anyone would consider modifying the Last Post Subject v1.1 hack to incorporate the very short bit of code I found that will Bump
Threads to the top of the list in Today's Post or Topic Activity and the particular forum the thread is located in ?
Below is the code I found that will bump an edited post to the top of the list in Topic Activity (Probably Todays Post too) and particular Forum
display. I don't know where I got it from but I know it was in August 2002 (date of my text file). Creator was "Kathyrl", however I cannot find
this name as a member on XMB Forums, XMBGagage, XMBMods or XMBServices. So, I don't know who to give any credit to.
The reason I would like to see this hack developed is when a member or admin/mod edits a post, there is no way for the viewer to know that the post
has been edited/modified, unless "Edited by.." is turned on in settings. However, there is no other indication by the forum that a particular
thread has been edited unless the member adds a new reply (bump) to the thread. This hack bumps the thread to the top of the list in Forum Displays
and Topic Activity.
Here's the code:
| Quote: |
Originally Created By: Kathyrl
post.php
=========
Find Text
=========
$db->query("UPDATE $table_posts SET message='$message', usesig='$usesig', bbcodeoff='$bbcodeoff', smileyoff='$smileyoff',
icon='$posticon', subject='$subject' WHERE pid='$pid'");
==========
Add below:
==========
//Beging Bump Thread Hack
$thatime = time();
$db->query("UPDATE $table_forums SET lastpost='$thatime|$username' WHERE fid='$fid'");
$db->query("UPDATE $table_threads SET lastpost='$thatime|$username' WHERE tid='$tid'");
//End Bump Thread Hack |
What it does not do:
When a post is edited, the Index Page does not indicate that the post was edited. The "Subject" line of Last Post on the index page indicates
"N/A" as the post subject/title. However, it does place the new time of the edited post in Last Post. If you click on the arrow to go to the last
post, it displays the previous post in that particular forum, not the post that was edited.
If you click on "Fix Last Posts" in the Administration Panel, it will repost the information of the previous post that was edited and remove the
edited post from the top of the list in Topic Activity and Forums display.
If you are able (within the next 24 hours before the post is dropped form Topic Activity), check my forum at http://empirez.com/forum/ in the
General Announcements forum under Miscellaneous. I created a thread titled, "Test Bump Thread #1" and posted it. Then I created a second thread
titled, "Test Bump Thread #2" and posted it. Both these threads displayed in the Topic Activity and General Announcements forum in proper order -
Test Bump Thread # 2 was listed before Test Bump Thread # 1. Then, I went in and edited Test Bump Thread # 1 and added the edit time to the thread
and posted the thread. Now, the thread is at the top of the Topic Activity list and in the General Announcement forum. However, on the Index Page,
the subject line in Last Post indicates "N/A" as the subject but it does indicate the proper edit time of Test Bump Thread # 1. If you click on the
arrow to view the last thread, it takes you to Test Bump Thread #2 (the previous thread).
This is where I am requesting that a hack be developed. Fix the "Last Post" column in the Index Page to indicate the title of the post that was
edited and fix the link to go to the correct (edited) post.
I hope I was able to make myself clear. If not, please contact me and I will try to clarify any questions that you may have.
This hack would be very much appreciated. I think the Last Post Subject hack is one of the best hacks that was ever made. This modification would
make it perfect. 
Thanks
Jerry Mallard
If you care about such things. . . My....
| Computer | Forum-1 | Forum-2 | Web-1 | Web-2 | Web-3 |
| 90-300ZXTT | 90-300ZX2+2 |
|