[FIX] Evo Shout Counter Bug

by coRpSE

Sun Jun 08, 2025 5:08 pm
Administrator
2396 Posts
While looking at my site and here, I notticed if you typed something in the shoutbox, the counter would count down, (as it should), but when you hit Enter or clicked the submit, the counter didn't reset. So I went back to my local and realized, I forgot to put something that was on my local, into the release.

So, if you don't want to do the extremely simple edit, just redownload the module from either this site or my site, and just update the public_html/modules/Shout/includes/shout-block-script.js file with a fresh one from a fresh download, over writing the one that you have on your site.

If you want to do the edit, all you need to do is this:

OPEN: public_html/modules/Shout/includes/shout-block-script.js

On line 50 -51, FIND:

Code: [ Select all ]

document.getElementById("message").value = '';
            fetchMessages();


In between those lines, put:

Code: [ Select all ]

updateCharacterCounter();


So it should look like this:

Code: [ Select all ]

document.getElementById("message").value = '';
            updateCharacterCounter();
            fetchMessages();


Save and close.

Now, clear your browsers cache and your sites cache, and you are good to go.
I built the function, and I did put it in my local server, but, never put the trigger in the release version. Whoops.

Thankful People 2 user(s) is/are thankful for this post.
Sun Jun 08, 2025 10:02 pm
Member
211 Posts
is the download on this site for it updated with this fix?
thankyou
Mon Jun 09, 2025 1:20 am
Administrator
2396 Posts
Yes, I did say you can download from either this site or my site and just use that one file. 😉
Of course, that is only if you already have the module installed.

Mon Jun 09, 2025 2:52 am
Member
211 Posts
Thankyou i did not see that, sorry.
Mon Jun 09, 2025 5:11 am
Administrator
2396 Posts
— ryancarlson464 wrote
Thankyou i did not see that, sorry.


Tis all good. ;)

and n/p. Very Happy