SMF Support > SMF 2.0.x Support
BBCodes and Smilies not showing for some users
BGH:
Hello,
As the topic title states, for some users it seems that BBCodes and Smilies are not showing when creating a new post. They tried it with every browser and even some diferente OS (e.g: Ubuntu), and it remains the same. I asked them to show me the errors from the browser JavaScript console. This is what shows, for one of them:
--- Code: ---Uncaught SyntaxError: Unexpected end of input script.js:362
Uncaught ReferenceError: smf_avatarResize is not defined index.php:44
Uncaught ReferenceError: is_ie is not defined theme.js:7
Uncaught TypeError: Object http://***/Smileys/Mysmileys/smile.gif has no method 'php_htmlspecialchars' editor.js:1436
Uncaught ReferenceError: smc_Toggle is not defined index.php:1243
--- End code ---
I looked at all the files listed in the mentioned code but I don't seem to find any problems at all, and also didn't modify any of those files.
Does anyone have an idea of what could cause these errors?
Thanks in advance!
Arantor:
script.js (Themes/yourtheme/scripts.js) is missing some or all of its content.
Without seeing a link to the site it's hard to examine what's going on.
BGH:
I see what happens now, I'm having a modified version of script.js from the default theme (Curve), a compressed version made by the gtmetrix.com examiner. Seems that I forget about it, I'll try to replace it for a clean script.js file, but I'm attaching my actual script.js file that I have, in case you want to see it, though.
Arantor:
I generally wouldn't use such things without a lot more care, such things usually require ; termination on functions and closures, where SMF does not implement such things.
Oh, and any mods that modify that file will also break...
* Arantor has been through this particular round of hell once, and has to continue to be mindful of it knowing that his particular forum checks for changes and auto-minifies things, using a packer that expressly requires much more strictness in coding.
BGH:
Yeah, it seems so :-\. Fortunately, I have backup of all files, but dunno if that fix this problem, 'cos it seems that the errors are located also at theme.js and editor.js, as well (not very sure about "index.php", though).
Navigation
[0] Message Index
[#] Next page
Go to full version