Notifications

No notifications to display.

EVOLUTIONXTREME

Design   /   Development   /   Community

[FIX] Evo Shout Counter Bug

Create Discussion Reply
#4717

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:

CodeSelect all

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

In between those lines, put:

CodeSelect all

updateCharacterCounter();

So it should look like this:

CodeSelect 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.

#4718

is the download on this site for it updated with this fix?
thankyou

#4719

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.

#4720

Thankyou i did not see that, sorry.

#4721
— ryancarlson464 wrote

Thankyou i did not see that, sorry.

Tis all good. ;)

and n/p.
Very Happy

Reply