Advertisement:
GCWebhosting

Author Topic: Better Messages Menu (SMF 2.0.x Only)  (Read 6095 times)

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,859
  • Mod King
    • XPtsp.com Community
Re: Better Messages Menu
« Reply #40 on: February 26, 2018, 10:04:22 AM »
Uploaded v1.5 - February 26th, 2018
o Fixed issue causing long pause each page load.
o Added Spanish Latin translation, courtsey of Rock Lee.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,859
  • Mod King
    • XPtsp.com Community
Re: Better Messages Menu
« Reply #41 on: April 07, 2018, 12:53:53 PM »
Uploaded v1.6 - April 7th, 2018
o Fixed Spanish Latin translation XML file to properly skip operations.



@chyyyone: Thanks for reporting this bug (source).  It's been fixed for this version!

Offline Steve

  • Freak
  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,499
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: Better Messages Menu
« Reply #42 on: April 07, 2018, 03:05:19 PM »
Sweet! Not sure why I hadn't installed this before now!
Online Manual

Please do not PM me for support.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,859
  • Mod King
    • XPtsp.com Community
Re: Better Messages Menu
« Reply #43 on: October 10, 2018, 12:48:30 PM »
Uploaded v1.7 - October 10th, 2018
o No functionality change.
o Updated documentation to point to new website.

Offline GigaWatt

  • The Smiley Guy
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 2,051
  • Gender: Male
    • Macedonian electronics forum
Re: Better Messages Menu
« Reply #44 on: March 23, 2019, 12:16:49 AM »
Has anybody had issues with this mod? Like everyone registered reading their messages when the mod is installed? And then, they seem to go off about their business when the mod is uninstalled :P :D. I guess it's just the power this mod has :D.
"This is really a generic concept about human thinking - when faced with large tasks we're naturally inclined to try to break them down into a bunch of smaller tasks that together make up the whole."

"A 500 error loosely translates to the webserver saying, "WTF?"..."

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,859
  • Mod King
    • XPtsp.com Community
Re: Better Messages Menu (SMF 2.0.x Only)
« Reply #45 on: June 19, 2019, 09:05:44 AM »
@GigaWatt:  I don't understand what you are reporting.  Can you please explain what you mean?  Thanks.....

Offline GigaWatt

  • The Smiley Guy
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 2,051
  • Gender: Male
    • Macedonian electronics forum
Re: Better Messages Menu (SMF 2.0.x Only)
« Reply #46 on: June 19, 2019, 08:17:52 PM »
Well, when the mod is installed, when I (I haven't tested this with a regular/test user) click on the online users link (the one that tells you what everyone currently browsing the forum is doing :)), every single registered user is reading their messages :P :D... which, of course, can't be true :D... not that I've got like 100, 200 users online at that time, but even if that number is 5, it seems very unlikely that they'll all be reading their messages at the same time... and then suddenly stop doing that when the mod is uninstalled :D.

This happens every time I click the online users link... they can't all be reading their messages at the same time, every single one of them, right, LOL :D.
"This is really a generic concept about human thinking - when faced with large tasks we're naturally inclined to try to break them down into a bunch of smaller tasks that together make up the whole."

"A 500 error loosely translates to the webserver saying, "WTF?"..."

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,859
  • Mod King
    • XPtsp.com Community
Re: Better Messages Menu (SMF 2.0.x Only)
« Reply #47 on: June 20, 2019, 10:10:40 AM »
Yeah.....  They can't all be reading them at the same time.  You're right.  It has everything to do with how the mod functions.  Let me see if I can fix the issue....

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,859
  • Mod King
    • XPtsp.com Community
Re: Better Messages Menu (SMF 2.0.x Only)
« Reply #48 on: June 24, 2019, 07:58:15 PM »
@GigaWatt:  Can you insert the following code in the writeLog function in Sources/Subs.php, just after global variable declarations?  It should be around line 2591 (in the unmodified version of the file)....
Code: [Select]
// Are we doing something for Better Message Menu mod?
if (!empty($_SESSION['old_url']) && strpos($_SESSION['old_url'], 'action=pm;sa=bettermessages_ucp') !== false)
return;

Let me know if this solves this particular problem.  Thanks!

Offline GigaWatt

  • The Smiley Guy
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 2,051
  • Gender: Male
    • Macedonian electronics forum
Re: Better Messages Menu (SMF 2.0.x Only)
« Reply #49 on: July 06, 2019, 06:07:31 AM »
Sorry for replying a bit late :).

So let me get this straight, you're suggesting to add this code to Subs.php before I install the mod, then install it, and see if the same thing happens again, right?
"This is really a generic concept about human thinking - when faced with large tasks we're naturally inclined to try to break them down into a bunch of smaller tasks that together make up the whole."

"A 500 error loosely translates to the webserver saying, "WTF?"..."

Offline GigaWatt

  • The Smiley Guy
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 2,051
  • Gender: Male
    • Macedonian electronics forum
Re: Better Messages Menu (SMF 2.0.x Only)
« Reply #50 on: July 06, 2019, 06:20:25 AM »
Nope... I did what I described in my previous post and it still shows me as viewing my messages :-\, when I'm in fact viewing who's online :-\.

"This is really a generic concept about human thinking - when faced with large tasks we're naturally inclined to try to break them down into a bunch of smaller tasks that together make up the whole."

"A 500 error loosely translates to the webserver saying, "WTF?"..."

Offline Justyne

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,414
Re: Better Messages Menu (SMF 2.0.x Only)
« Reply #51 on: July 06, 2019, 09:09:37 AM »
I am confused. Not sure the screenshot you added to this matches up with what you're saying.
Ever tried. Ever failed. No matter. Try Again. Fail again. Fail better.

Offline GigaWatt

  • The Smiley Guy
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 2,051
  • Gender: Male
    • Macedonian electronics forum
Re: Better Messages Menu (SMF 2.0.x Only)
« Reply #52 on: July 06, 2019, 09:56:54 PM »
Yeah, my bad... it takes a few seconds for the changes to reflect and I did the screenshot right away. Here's a new one ;).



Hmm... now that's interesting... it shifts between what I'm really doing and viewing my messages just by hitting F5 a few times :D. If "Viewing their messages" shows up, I have to hit F5 two times for "Viewing Who's Online" to show up, but I only have to hit F5 once after "Viewing Who's Online" shows up for it to change back to "Viewing their messages"... weird LOL :D.





I think I added the code in the right place in Subs.php ???.

Code: [Select]
// Put this user in the online log.
function writeLog($force = false)
{
global $user_info, $user_settings, $context, $modSettings, $settings, $topic, $board, $smcFunc, $sourcedir;

// Are we doing something for Better Message Menu mod?
if (!empty($_SESSION['old_url']) && strpos($_SESSION['old_url'], 'action=pm;sa=bettermessages_ucp') !== false)
return;

// If we are showing who is viewing a topic, let's see if we are, and force an update if so - to make it accurate.
if (!empty($settings['display_who_viewing']) && ($topic || $board))
{
// Take the opposite approach!
$force = true;
// Don't update for every page - this isn't wholly accurate but who cares.
if ($topic)
{
if (isset($_SESSION['last_topic_id']) && $_SESSION['last_topic_id'] == $topic)
$force = false;
$_SESSION['last_topic_id'] = $topic;
}
}
"This is really a generic concept about human thinking - when faced with large tasks we're naturally inclined to try to break them down into a bunch of smaller tasks that together make up the whole."

"A 500 error loosely translates to the webserver saying, "WTF?"..."