● [FIX] Evo Shout Counter Bug

Sun Jun 08, 2025 11:11 am
Clan Leader
Top Dog
Nuke Dev / Coder
3065 Posts
coRpSE
Currently Offline
Offline

Most Played:
This week: 89.4hrs.
Total Played: 1,451hrs.


  
There is life outside of the game.
Reputation: 7434.1
votes: 7
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.


Expand
Forums ©