News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Strange 120 days warning while posting without the quick reply

Started by Ninja ZX-10RR, October 24, 2014, 07:17:45 PM

Previous topic - Next topic

Ninja ZX-10RR

Ok this is strange. If I try to reply in a topic with the quick reply I can do that with no issues in all topics and in topics older than 120 days I get the usual notice "This topic has not been posted in for at least 120 days etc", but if I go to the post page I ALWAYS get that warning, regardless of when the topic was posted.
I am attaching my post.php, no errors in the error log... I am using 2.0.9 and a boatload of mods but the theme is the default one.

Mod list follows:

1. Browser Language Detection and Loading 0.1.0 N/A [ Install Mod ] [ List Files ] [ Delete ]
2. Custom blocks 2.3.2 N/A [ Install Mod ] [ List Files ] [ Delete ]
3. detectBrowser Update 1.0.1 N/A [ Install Mod ] [ List Files ] [ Delete ]
4. Enhanced PM System 2.5 N/A [ Install Mod ] [ List Files ] [ Delete ]
5. Forum Firewall 2.0.0 N/A [ Install Mod ] [ List Files ] [ Delete ]
6. jQLightbox 0.6 N/A [ Install Mod ] [ List Files ] [ Delete ]
7. MCLegendII RC3 3.0 N/A [ Install Mod ] [ List Files ] [ Delete ]
8. nneonneo's AJAX ShoutBox 1.22 N/A [ Install Mod ] [ List Files ] [ Delete ]
9. Reason For Editing Mod 2.3.2 N/A [ Install Mod ] [ List Files ] [ Delete ]
10. ResizeImagesToFitScreen 0.1.6 N/A [ Install Mod ] [ List Files ] [ Delete ]
11. SMF Likes Plus 1.5 N/A [ Install Mod ] [ List Files ] [ Delete ]
12. User Agreement Update 1.0.3 N/A [ Install Mod ] [ List Files ] [ Delete ]
13. Allocate More RAM mod 1.0  April 19, 2014, 06:23:02 PM [ Uninstall ] [ List Files ] [ Delete ]
14. Delete Spam Posts 1.6  April 21, 2014, 06:33:04 PM [ Uninstall ] [ List Files ] [ Delete ]
15. ShowBannedMessage 1.3  April 21, 2014, 06:35:20 PM [ Uninstall ] [ List Files ] [ Delete ]
16. Move Topic Notification 1.2  April 21, 2014, 06:36:28 PM [ Uninstall ] [ List Files ] [ Delete ]
17. open mod reports 1.0  April 21, 2014, 06:43:56 PM [ Uninstall ] [ List Files ] [ Delete ]
18. Admin Notes 2.0  April 21, 2014, 06:45:28 PM [ Uninstall ] [ List Files ] [ Delete ]
19. Karma/Rep Limit 1.0.1  April 21, 2014, 06:48:26 PM [ Uninstall ] [ List Files ] [ Delete ]
20. Anti Bot: Are You Human/Bot? 3.0  April 21, 2014, 06:49:20 PM [ Uninstall ] [ List Files ] [ Delete ]
21. Quick Ban on Account Delete 1.0.1  April 22, 2014, 02:07:56 AM [ Uninstall ] [ List Files ] [ Delete ]
22. SMFPacks Shoutbox 1.0.5  April 22, 2014, 02:08:43 AM [ Uninstall ] [ List Files ] [ Delete ]
23. Order Custom Profile Fields 1.1.1  April 22, 2014, 02:26:56 AM [ Uninstall ] [ List Files ] [ Delete ]
24. Disable to send EMail with Forum-System for Users lower than Admin 1.0  April 22, 2014, 02:59:53 AM [ Uninstall ] [ List Files ] [ Delete ]
25. TalkBox3 2.0  April 22, 2014, 06:11:20 AM [ Uninstall ] [ List Files ] [ Delete ]
26. last login 2.9  April 23, 2014, 04:44:41 AM [ Uninstall ] [ List Files ] [ Delete ]
27. Next Post Level 1.3.3  April 24, 2014, 11:27:35 PM [ Uninstall ] [ List Files ] [ Delete ]
28. Post History 1.03  April 25, 2014, 02:31:33 AM [ Uninstall ] [ List Files ] [ Delete ]
29. Topic Solved 1.1.1  April 26, 2014, 06:35:12 AM [ Uninstall ] [ List Files ] [ Delete ]
30. Bad Behavior mod 1.5.18  April 26, 2014, 04:05:42 PM [ Uninstall ] [ List Files ] [ Delete ]
31. CloudFlare 1.1  April 26, 2014, 04:58:14 PM [ Uninstall ] [ List Files ] [ Delete ]
32. Users Online Today 2.1  April 26, 2014, 09:11:12 PM [ Uninstall ] [ List Files ] [ Delete ]
33. Ban List 2.0  April 27, 2014, 01:48:40 AM [ Uninstall ] [ List Files ] [ Delete ]
34. 'Read the Rules' Link Above Post Button 2.0  April 27, 2014, 02:28:50 AM [ Uninstall ] [ List Files ] [ Delete ]
35. Enhanced PM Popup 1.0.1  April 27, 2014, 02:54:16 AM [ Uninstall ] [ List Files ] [ Delete ]
36. Advanced Signature 0.3.0 beta 1  April 29, 2014, 04:21:19 AM [ Uninstall ] [ List Files ] [ Delete ]
37. Sortable Packages (and Installed Time) 1.3.5  April 30, 2014, 01:45:39 AM [ Uninstall ] [ List Files ] [ Delete ]
38. Anti-Spam Links 1.0.1  April 30, 2014, 02:36:24 PM [ Uninstall ] [ List Files ] [ Delete ]
39. Add Facebook Like to Posts 1.1  May 01, 2014, 12:40:38 AM [ Uninstall ] [ List Files ] [ Delete ]
40. PM to New Members 1.2  May 02, 2014, 06:25:55 PM [ Uninstall ] [ List Files ] [ Delete ]
41. Allow Access while in Maintenance Mode 1.2  May 03, 2014, 09:19:17 PM [ Uninstall ] [ List Files ] [ Delete ]
42. Activity in Profile 1.1  May 03, 2014, 09:27:56 PM [ Uninstall ] [ List Files ] [ Delete ]
43. Ad Managment 3.2  May 03, 2014, 09:54:28 PM [ Uninstall ] [ List Files ] [ Delete ]
44. Custom Copyright 1.0.4  May 04, 2014, 02:57:46 AM [ Uninstall ] [ List Files ] [ Delete ]
45. Fake Topic Views 0.1  May 06, 2014, 12:01:47 AM [ Uninstall ] [ List Files ] [ Delete ]
46. Ban Filter 1.0  May 06, 2014, 12:05:46 AM [ Uninstall ] [ List Files ] [ Delete ]
47. Ohara YouTube Embed 1.2  May 09, 2014, 09:12:30 AM [ Uninstall ] [ List Files ] [ Delete ]
48. Bookmarks 2.5  May 17, 2014, 12:36:49 AM [ Uninstall ] [ List Files ] [ Delete ]
49. Global Topics 2.2  May 20, 2014, 12:30:45 AM [ Uninstall ] [ List Files ] [ Delete ]
50. Register Redirect 1.0  May 28, 2014, 10:20:43 AM [ Uninstall ] [ List Files ] [ Delete ]
51. Tinypic Plugin 1.0.0  May 31, 2014, 09:51:08 PM [ Uninstall ] [ List Files ] [ Delete ]
52. SimpleDesk - Integrated Helpdesk for Simple Machines Forum 2.0  May 31, 2014, 10:37:17 PM [ Uninstall ] [ List Files ] [ Delete ]
53. To Buddies 1.01  June 01, 2014, 11:06:29 PM [ Uninstall ] [ List Files ] [ Delete ]
54. Time Online on Memberlist 1.00  June 04, 2014, 06:30:40 AM [ Uninstall ] [ List Files ] [ Delete ]
55. Profile Song Player 1.0 Beta  June 06, 2014, 05:42:26 PM [ Uninstall ] [ List Files ] [ Delete ]
56. Permissions Info 1.6  June 06, 2014, 05:48:00 PM [ Uninstall ] [ List Files ] [ Delete ]
57. Ignore Topics 2.3  June 14, 2014, 12:33:12 AM [ Uninstall ] [ List Files ] [ Delete ]
58. Caps_Lock_Detection_on_Login 1.1.0.2  June 21, 2014, 09:45:33 AM [ Uninstall ] [ List Files ] [ Delete ]
59. SimpleColorizer 1.1  June 23, 2014, 08:46:32 PM [ Uninstall ] [ List Files ] [ Delete ]
60. Board Index Unread Icon Fix 1.0  June 27, 2014, 02:28:34 PM [ Uninstall ] [ List Files ] [ Delete ]
61. Country Flags 2.1  June 28, 2014, 05:27:51 PM [ Uninstall ] [ List Files ] [ Delete ]
62. PM Settings 1.0.1  June 29, 2014, 09:13:36 PM [ Uninstall ] [ List Files ] [ Delete ]
63. Undeletables topics PMs and users 0.1.5  June 30, 2014, 05:09:57 AM [ Uninstall ] [ List Files ] [ Delete ]
64. Working top level links for drop menus 1.0  July 04, 2014, 04:21:40 AM [ Uninstall ] [ List Files ] [ Delete ]
65. Email Inactive Users 1.1  July 15, 2014, 02:10:39 PM [ Uninstall ] [ List Files ] [ Delete ]
66. Similar Topics 0.6  July 15, 2014, 03:08:26 PM [ Uninstall ] [ List Files ] [ Delete ]
67. Custom Pages and Tabs (2) SMF 2 - RC3 1.1  July 15, 2014, 06:06:40 PM [ Uninstall ] [ List Files ] [ Delete ]
68. Add [li] Button 1.0  July 24, 2014, 05:49:39 PM [ Uninstall ] [ List Files ] [ Delete ]
69. Multiple QA support 1.0.1  July 24, 2014, 05:53:51 PM [ Uninstall ] [ List Files ] [ Delete ]
70. Add Honey Pot to Track IP 1.1  August 04, 2014, 03:56:46 PM [ Uninstall ] [ List Files ] [ Delete ]
71. Misc Anti Spam 1.0  August 04, 2014, 04:00:43 PM [ Uninstall ] [ List Files ] [ Delete ]
72. Stop Forum Spam 1.0  August 04, 2014, 04:06:56 PM [ Uninstall ] [ List Files ] [ Delete ]
73. Word Censor List 1.1  August 04, 2014, 06:29:11 PM [ Uninstall ] [ List Files ] [ Delete ]
74. Prevent Topic View Increase by Author 1.0  August 06, 2014, 06:51:58 AM [ Uninstall ] [ List Files ] [ Delete ]
75. Confirmation message to Mark as Read 1.00  August 06, 2014, 06:53:27 AM [ Uninstall ] [ List Files ] [ Delete ]
76. Add [nobbc] button 1.1  August 06, 2014, 06:58:31 AM [ Uninstall ] [ List Files ] [ Delete ]
77. Admin Ban Button in Post 3.0  August 06, 2014, 07:38:48 AM [ Uninstall ] [ List Files ] [ Delete ]
78. Change All Subjects 1.3  August 06, 2014, 07:46:52 AM [ Uninstall ] [ List Files ] [ Delete ]
79. Drafts 2.0.5  August 06, 2014, 08:23:17 PM [ Uninstall ] [ List Files ] [ Delete ]
80. Minimum Characters for Search 1.2.1  August 06, 2014, 08:43:28 PM [ Uninstall ] [ List Files ] [ Delete ]
81. Order Stickied Topics 1.01  August 06, 2014, 09:38:34 PM [ Uninstall ] [ List Files ] [ Delete ]
82. Referrals System 3.1  August 06, 2014, 09:45:02 PM [ Uninstall ] [ List Files ] [ Delete ]
83. Annoy User 1.2.4  August 06, 2014, 11:24:46 PM [ Uninstall ] [ List Files ] [ Delete ]
84. Restrict Email Providers on Registration 1.2  August 06, 2014, 11:40:08 PM [ Uninstall ] [ List Files ] [ Delete ]
85. Groups See Hidden Users 1.0  August 06, 2014, 11:51:30 PM [ Uninstall ] [ List Files ] [ Delete ]
86. BBC In Custom Title 2.0r2 - SMF 2.0.x  August 07, 2014, 12:08:24 AM [ Uninstall ] [ List Files ] [ Delete ]
87. Integration Hooks Report 1.5.3  August 07, 2014, 10:03:01 PM [ Uninstall ] [ List Files ] [ Delete ]
88. Lazy Admin Menu 1.6  August 22, 2014, 12:11:19 AM [ Uninstall ] [ List Files ] [ Delete ]
89. Member Color Link 3.1  August 22, 2014, 05:45:11 PM [ List Files ] [ Delete ]
90. Invitation Message In Your Face (IMIYF) 0.3.2  August 22, 2014, 05:47:50 PM [ Uninstall ] [ List Files ] [ Delete ]
91. Google Wallet Subscriptions 1.0.3.2  August 27, 2014, 02:18:14 AM [ Uninstall ] [ List Files ] [ Delete ]
92. Additional Topic Authors 0.1.1  August 28, 2014, 05:28:21 PM [ Uninstall ] [ List Files ] [ Delete ]
93. Rank Image Drop Down 1.0  August 29, 2014, 04:56:55 PM [ Uninstall ] [ List Files ] [ Delete ]
94. Buddies List 1.0.1  August 29, 2014, 06:05:11 PM [ Uninstall ] [ List Files ] [ Delete ]
95. Moderator and Administrator Comment Tags 1.8.1  September 03, 2014, 05:11:24 PM [ Uninstall ] [ List Files ] [ Delete ]
96. Sisyphus 1.0  September 04, 2014, 07:55:40 AM [ Uninstall ] [ List Files ] [ Delete ]
97. Login Detector 1.0  September 05, 2014, 06:06:20 AM [ Uninstall ] [ List Files ] [ Delete ]
98. LUP: Logout Under Profile 1.0.0  September 05, 2014, 06:22:32 PM [ Uninstall ] [ List Files ] [ Delete ]
99. Spoiler BBCode 1.1.3  September 11, 2014, 08:21:22 PM [ Uninstall ] [ List Files ] [ Delete ]
100. Hide PM Text in Email Notifications 1.0  September 13, 2014, 06:03:20 PM [ Uninstall ] [ List Files ] [ Delete ]
101. Users mass actions 0.1.1  September 16, 2014, 12:17:50 AM [ Uninstall ] [ List Files ] [ Delete ]
102. Yellow: Highlight Package On Hover 1.1.0  September 16, 2014, 03:09:55 AM [ Uninstall ] [ List Files ] [ Delete ]
103. Group Key Order and Style 1.1  September 16, 2014, 06:14:02 PM [ Uninstall ] [ List Files ] [ Delete ]
104. Stars to Profile 2.1  September 17, 2014, 03:11:51 PM [ Uninstall ] [ List Files ] [ Delete ]
105. Back to Top 1.1  September 17, 2014, 03:39:14 PM [ Uninstall ] [ List Files ] [ Delete ]
106. Permission to Edit Display Name 1.2  September 17, 2014, 03:58:27 PM [ Uninstall ] [ List Files ] [ Delete ]
107. Permission for Website Url Of Users 1.4  September 17, 2014, 04:08:57 PM [ Uninstall ] [ List Files ] [ Delete ]
108. Topic_Locked_Message 2.2  September 17, 2014, 04:33:08 PM [ Uninstall ] [ List Files ] [ Delete ]
109. Say Thanks 1.0.2  September 17, 2014, 10:43:33 PM [ Uninstall ] [ List Files ] [ Delete ]
110. Track User Logins 1.1  September 19, 2014, 02:29:56 AM [ Uninstall ] [ List Files ] [ Delete ]
111. Off-Topic BBC 1.0  September 23, 2014, 07:22:44 PM [ Uninstall ] [ List Files ] [ Delete ]
112. EmailValidator 1.0  September 25, 2014, 09:00:21 PM [ Uninstall ] [ List Files ] [ Delete ]
113. SMF 1.1.20 / 2.0.9 Update 1.0  October 03, 2014, 09:52:39 PM [ Uninstall ] [ List Files ] [ Delete ]
114. Logout Prompt 1.0  October 13, 2014, 05:09:14 PM [ Uninstall ] [ List Files ] [ Delete ]
115. Install & Uninstall Mods Quickly 1.4  October 13, 2014, 05:20:15 PM [ Uninstall ] [ List Files ] [ Delete ]
116. Reply Button In Every Post 1.0  October 15, 2014, 02:04:50 AM [ Uninstall ] [ List Files ] [ Delete ]
117. Admin Toolbox 1.0  October 15, 2014, 08:33:46 PM [ Uninstall ] [ List Files ] [ Delete ]
118. Styled Maintenance Mode Message 1.0  October 16, 2014, 05:23:47 PM [ Uninstall ] [ List Files ] [ Delete ]
119. 6 Custom buttons / tabs with Sub Menus (4) 0.5  October 16, 2014, 06:00:28 PM [ Uninstall ] [ List Files ] [ Delete ]
120. SA Chat 0.1.5 Rev110  October 16, 2014, 09:50:29 PM [ Uninstall ] [ List Files ] [ Delete ]
121. Mark as Read Redirect 1.0  October 17, 2014, 08:15:21 AM [ Uninstall ] [ List Files ] [ Delete ]
122. Mark PM Unread 0.1.0  October 17, 2014, 09:04:00 AM [ Uninstall ] [ List Files ] [ Delete ]
123. Advance Fake Guests n Users Online (fguo) 1.0  October 17, 2014, 09:05:49 AM [ Uninstall ] [ List Files ] [ Delete ]
124. LMGTFY BBcode 3.7.4  October 17, 2014, 09:54:45 AM [ Uninstall ] [ List Files ] [ Delete ]
125. Better Profile Menu 1.5  October 17, 2014, 11:57:24 PM [ Uninstall ] [ List Files ] [ Delete ]
126. ICAP: Info Center Access Permission 1.0.0  October 18, 2014, 10:02:35 AM [ Uninstall ] [ List Files ] [ Delete ]
127. Slash through Banned Usernames 3.0  October 23, 2014, 08:50:34 PM [ Uninstall ] [ List Files ] [ Delete ]
128. Language on Register 1.0  October 23, 2014, 10:21:14 PM [ Uninstall ] [ List Files ] [ Delete ]
129. Enhancements to reattribute posts 1.5.7  October 23, 2014, 11:46:39 PM [ Uninstall ] [ List Files ] [ Delete ]
130. Switch Permissions 1.0  October 24, 2014, 02:00:40 AM [ Uninstall ] [ List Files ] [ Delete ]
131. Personalized BBC 1.8  October 24, 2014, 06:44:39 AM [ Uninstall ] [ List Files ] [ Delete ]
Quote from: BeastMode topic=525177.msg3720020#msg3720020
It's so powerful that on this post and even in the two PMs you sent me,you still answered my question very quickly and you're apologizing for the delay. You're the #1 support I've probably ever encountered man, so much respect for that. Thank you, and get better soon.

I'll keep this in my siggy for a while just to remind me that someone appreciated what I did while others didn't.

♥ Jess ♥

STOP EDITING MY PROFILE

radu81

Ninja try installing some more mods, I'm sure you'll solve :)

Sorry I couldn't resist :)
sorry for my bad english

Ninja ZX-10RR

I don't think it would actually fix it XD no it's surely due to a mod, I am trying to understand which one with this. Perhaps Arantor or some other very expert folk can suggest me which one *might* be :)
Quote from: BeastMode topic=525177.msg3720020#msg3720020
It's so powerful that on this post and even in the two PMs you sent me,you still answered my question very quickly and you're apologizing for the delay. You're the #1 support I've probably ever encountered man, so much respect for that. Thank you, and get better soon.

I'll keep this in my siggy for a while just to remind me that someone appreciated what I did while others didn't.

♥ Jess ♥

STOP EDITING MY PROFILE

JBlaze

It would likely be in /Themes/default/Post.template.php. Something is messing with a conditional statement somewhere that is forcing the text to show. Most messages like that are done in the template with simple if statements.
Jason Clemons
Former Team Member 2009 - 2012

Ninja ZX-10RR

Sorry then, there it is. :) Thanks zilla, or JB (I liked that more, tbh :P) ;)
Quote from: BeastMode topic=525177.msg3720020#msg3720020
It's so powerful that on this post and even in the two PMs you sent me,you still answered my question very quickly and you're apologizing for the delay. You're the #1 support I've probably ever encountered man, so much respect for that. Thank you, and get better soon.

I'll keep this in my siggy for a while just to remind me that someone appreciated what I did while others didn't.

♥ Jess ♥

STOP EDITING MY PROFILE

Sir Osis of Liver

It's in Post.php.

Look for this -



// Check whether this is a really old post being bumped...
if (!empty($modSettings['oldTopicDays']) && $lastPostTime + $modSettings['oldTopicDays'] * 86400 < time() && empty($sticky) && !isset($_REQUEST['subject']))
$oldTopicError = true;
}



and this -



if (isset($oldTopicError))
{
$context['post_error']['messages'][] = sprintf($txt['error_old_topic'], $modSettings['oldTopicDays']);
$context['error_type'] = 'minor';
}


Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Ninja ZX-10RR

Thank you too :) they are both there with no edits nor typos, what then?
(Line 417 and 1127 if you don't bother looking ;))

EDIT: can't find more than 2 matches with "old" in the template, one saying "bold" and the other one is not being the problem.
Quote from: BeastMode topic=525177.msg3720020#msg3720020
It's so powerful that on this post and even in the two PMs you sent me,you still answered my question very quickly and you're apologizing for the delay. You're the #1 support I've probably ever encountered man, so much respect for that. Thank you, and get better soon.

I'll keep this in my siggy for a while just to remind me that someone appreciated what I did while others didn't.

♥ Jess ♥

STOP EDITING MY PROFILE

Sir Osis of Liver

The warning in the post editor is printed by the source file, not the template.  $lastPostTime and/or $oldTopicError are probably incorrect.  Echo the variables and see what you've got.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Sir Osis of Liver

Here's where it is in Post.template.php, but it's more likely the problem is in the source -



// If an error occurred, explain what happened.
echo '
<div class="errorbox"', empty($context['post_error']['messages']) ? ' style="display: none"' : '', ' id="errors">
<dl>
<dt>
<strong style="', empty($context['error_type']) || $context['error_type'] != 'serious' ? 'display: none;' : '', '" id="error_serious">', $txt['error_while_submitting'], '</strong>
</dt>
<dt class="error" id="error_list">
', empty($context['post_error']['messages']) ? '' : implode('<br />', $context['post_error']['messages']), '
</dt>
</dl>
</div>';


Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Ninja ZX-10RR

Ok there are many, I will report them:
$lastPostTime
if(isset($_REQUEST['msg'])){
list ($locked, $context['notify'], $sticky, $pollID, $context['topic_last_message'], $id_member_poster, $id_first_msg, $first_subject, $addAuthors, $poster_ID, $signature_id, $lastPostTime) = $smcFunc['db_fetch_row']($request);
advsig_prepare_signatures(true, $poster_ID, $signature_id);
} else {
list ($locked, $context['notify'], $sticky, $pollID, $context['topic_last_message'], $id_member_poster, $id_first_msg, $first_subject, $lastPostTime) = $smcFunc['db_fetch_row']($request);
advsig_prepare_signatures(true);
}

then
// Check whether this is a really old post being bumped...
if (!empty($modSettings['oldTopicDays']) && $lastPostTime + $modSettings['oldTopicDays'] * 86400 < time() && empty($sticky) && !isset($_REQUEST['subject']))
$oldTopicError = true;


As regards $oldTopicError
The last snippet I posted applies to it and then another one: // If we are coming here to make a reply, and someone has already replied... make a special warning message.
if (isset($newRepliesError))
{
$context['post_error']['messages'][] = $newRepliesError == 1 ? $txt['error_new_reply'] : $txt['error_new_replies'];
$context['error_type'] = 'minor';
}

if (isset($oldTopicError))
{
$context['post_error']['messages'][] = sprintf($txt['error_old_topic'], $modSettings['oldTopicDays']);
$context['error_type'] = 'minor';
}


Still I don't personally see any errors, I really hope I am being wrong though. Any clues?
Of course thank you :)
Quote from: BeastMode topic=525177.msg3720020#msg3720020
It's so powerful that on this post and even in the two PMs you sent me,you still answered my question very quickly and you're apologizing for the delay. You're the #1 support I've probably ever encountered man, so much respect for that. Thank you, and get better soon.

I'll keep this in my siggy for a while just to remind me that someone appreciated what I did while others didn't.

♥ Jess ♥

STOP EDITING MY PROFILE

Sir Osis of Liver

Would help if you can echo the variable values and see what they are.

Like this -



     echo '$lastPostTime = ' . $lastPostTime;
     exit();



If the source and template code are correct, it's possible one of the mods is messing with the database values and causing Posts.php to see all topics as old.  I believe it would need id_last_message from smf_topics, and poster_time from smf_messages

It's odd because the old topic warning for quick reply is handled elsewhere in the code, but uses the same db values and it's working correctly.  You might try uploading a clean copy of Posts.php (save the current one) and see if the problem persists.

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Ninja ZX-10RR

Sorry Krash I can't really understand what you mean by doing that. Should I add that snippet somewhere into the code or...? I don't quite get it.
Uploading a clean copy of that file will definitely create problems because it is like 16kb less than mine XD should I go on anyway?
Besides after posting I will be checking the differences between the files, maybe I find out something.
Quote from: BeastMode topic=525177.msg3720020#msg3720020
It's so powerful that on this post and even in the two PMs you sent me,you still answered my question very quickly and you're apologizing for the delay. You're the #1 support I've probably ever encountered man, so much respect for that. Thank you, and get better soon.

I'll keep this in my siggy for a while just to remind me that someone appreciated what I did while others didn't.

♥ Jess ♥

STOP EDITING MY PROFILE

Ninja ZX-10RR

I *THINK* that perhaps the problem might be here:
if(isset($_REQUEST['msg'])){
list ($locked, $context['notify'], $sticky, $pollID, $context['topic_last_message'], $id_member_poster, $id_first_msg, $first_subject, $addAuthors, $poster_ID, $signature_id, $lastPostTime) = $smcFunc['db_fetch_row']($request);
advsig_prepare_signatures(true, $poster_ID, $signature_id);
} else {
list ($locked, $context['notify'], $sticky, $pollID, $context['topic_last_message'], $id_member_poster, $id_first_msg, $first_subject, $lastPostTime) = $smcFunc['db_fetch_row']($request);
advsig_prepare_signatures(true);
}

Instead of the default
list ($locked, $context['notify'], $sticky, $pollID, $context['topic_last_message'], $id_member_poster, $id_first_msg, $first_subject, $lastPostTime) = $smcFunc['db_fetch_row']($request);

Can you see something wrong here? You are way more expert than me in php but I see that there are some variables that might be related to that query...

If that is the case then it's another bug with the adv signature mod... I will uninstall it if that is the case, too many bugs and can't find solutions for them.
Quote from: BeastMode topic=525177.msg3720020#msg3720020
It's so powerful that on this post and even in the two PMs you sent me,you still answered my question very quickly and you're apologizing for the delay. You're the #1 support I've probably ever encountered man, so much respect for that. Thank you, and get better soon.

I'll keep this in my siggy for a while just to remind me that someone appreciated what I did while others didn't.

♥ Jess ♥

STOP EDITING MY PROFILE

Sir Osis of Liver

Comment out the edit and restore the original code, like this -



/*
if(isset($_REQUEST['msg'])){
list ($locked, $context['notify'], $sticky, $pollID, $context['topic_last_message'], $id_member_poster, $id_first_msg, $first_subject, $addAuthors, $poster_ID, $signature_id, $lastPostTime) = $smcFunc['db_fetch_row']($request);
advsig_prepare_signatures(true, $poster_ID, $signature_id);
}
else {
list ($locked, $context['notify'], $sticky, $pollID, $context['topic_last_message'], $id_member_poster, $id_first_msg, $first_subject, $lastPostTime) = $smcFunc['db_fetch_row']($request);
advsig_prepare_signatures(true);
}
*/

list ($locked, $context['notify'], $sticky, $pollID, $context['topic_last_message'], $id_member_poster, $id_first_msg, $first_subject, $lastPostTime) = $smcFunc['db_fetch_row']($request);



It will break the mod, but see if it corrects the problem.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Sir Osis of Liver

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Ninja ZX-10RR

My post.php is in the OP :) wait I will try to do that edit.
EDIT: it doesn't fix it, commenting those strings out and restoring the original ones didn't help.
Quote from: BeastMode topic=525177.msg3720020#msg3720020
It's so powerful that on this post and even in the two PMs you sent me,you still answered my question very quickly and you're apologizing for the delay. You're the #1 support I've probably ever encountered man, so much respect for that. Thank you, and get better soon.

I'll keep this in my siggy for a while just to remind me that someone appreciated what I did while others didn't.

♥ Jess ♥

STOP EDITING MY PROFILE

Sir Osis of Liver

Going off now, but if the edit doesn't clear the problem, it's probably because the query's been modified and poster_time is not correct -



$request = $smcFunc['db_query']('', '
SELECT
t.locked, IFNULL(ln.id_topic, 0) AS notify, t.is_sticky, t.id_poll, t.id_last_msg, mf.id_member,
t.id_first_msg, mf.subject, t.add_authors, t.add_authors'. (isset($_REQUEST['msg']) ? ', cm.id_member, cm.signature_id' : '') . ',
CASE WHEN ml.poster_time > ml.modified_time THEN ml.poster_time ELSE ml.modified_time END AS last_post_time
FROM {db_prefix}topics AS t
LEFT JOIN {db_prefix}log_notify AS ln ON (ln.id_topic = t.id_topic AND ln.id_member = {int:current_member})
LEFT JOIN {db_prefix}messages AS mf ON (mf.id_msg = t.id_first_msg)
' . (isset($_REQUEST['msg']) ? "
LEFT JOIN {db_prefix}messages AS cm ON (cm.id_msg = $_REQUEST[msg])" : '') . '
LEFT JOIN {db_prefix}messages AS ml ON (ml.id_msg = t.id_last_msg)
WHERE t.id_topic = {int:current_topic}
LIMIT 1',
array(
'current_member' => $user_info['id'],
'current_topic' => $topic,
)



If you know which mod has done this, uninstall it.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Herman's Mixen

Its core feature, but can edit it....

sure it has to to with your quick reply... so check current theme settings reset every one to bla bla ;)
Met vriendelijke groet, The Burglar!

 House Mixes | Mixcloud | Any Intelligent fool can make things bigger, more complex, and more violent.
It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Albert Einstein

Former Godfather of our dutch community ;)

Illori

Quote from: The Burglar! on October 25, 2014, 05:07:29 PM
Its core feature, but can edit it....

sure it has to to with your quick reply... so check current theme settings reset every one to bla bla ;)

i really doubt the settings have anything to do with this. changing or forcing the users back to default will not fix this but may annoy all the users on the forum. also there is no default to put them back to really.

Ninja ZX-10RR

I think it's the advanced signature once again... It fails in NINE places when trying to uninstall... *swearing goes here*
EDIT: Uninstalled it (it was a pita... And it also bugged the whole forum, I will ask emanuele to remove it from the mod site, it is completely bugged) and the problem IS STILL DAMN THERE.

Quote from: The Burglar! on October 25, 2014, 05:07:29 PM
Its core feature, but can edit it....

sure it has to to with your quick reply... so check current theme settings reset every one to bla bla ;)
Nope you completely misunderstood the problem... The problem is NOT in the quick reply but in the actual post page. ;)
Quote from: Illori on October 25, 2014, 05:17:03 PM
i really doubt the settings have anything to do with this. changing or forcing the users back to default will not fix this but may annoy all the users on the forum. also there is no default to put them back to really.
+1
Quote from: BeastMode topic=525177.msg3720020#msg3720020
It's so powerful that on this post and even in the two PMs you sent me,you still answered my question very quickly and you're apologizing for the delay. You're the #1 support I've probably ever encountered man, so much respect for that. Thank you, and get better soon.

I'll keep this in my siggy for a while just to remind me that someone appreciated what I did while others didn't.

♥ Jess ♥

STOP EDITING MY PROFILE

Advertisement: