News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Missing bbc buttons and smileys

Started by Sir Osis of Liver, July 11, 2022, 01:27:41 PM

Previous topic - Next topic

Sir Osis of Liver

Running an old theme, reply editor is missing bbc buttons and smileys.  They've been removed cleanly.  Checked database, enableBBC = 1 (this wouldn't remove smileys), theme is using default Post.template.php, replacing css for #bbcBox_message and #smileyBox_message with default has no effect.  WYSIWYG is disabled.  There's no element to inspect, view source shows this -


<div id="bbcBox_message"></div>
<div id="smileyBox_message"></div>


Running same theme on couple of my forums, bbc and smileys display normally.  Worst thing is, believe I fixed this once before, couple years ago, but don't remember how.  >:(
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Arantor


Sir Osis of Liver

#2

GEThttps://ebook-mecca.com/forum/Themes/mobile-desktop/scripts/script.js?fin20
[HTTP/2 404 Not Found 63ms]

Uncaught TypeError: this.opt.oSmileyLocations[sLocation][iSmileyRowIndex][iSmileyIndex].sSrc.php_htmlspecialchars is not a function
    getSmileyRowsContent https://ebook-mecca.com/forum/Themes/default/scripts/editor.js?fin20:1431
    init https://ebook-mecca.com/forum/Themes/default/scripts/editor.js?fin20:1392
    smc_SmileyBox https://ebook-mecca.com/forum/Themes/default/scripts/editor.js?fin20:1386
    <anonymous> https://ebook-mecca.com/forum/index.php?action=post;topic=2.0;last_msg=2:167


There are no scripts in theme /scripts, they should be loading from /default/scripts.  Curve works fine.


Ok, fixed it.  Only file in theme /scripts was script.js~, renamed it to scripts.js and bbc and smileys are working.  Guess it doesn't load that file from /default.  Are there any other script files theme must have?


Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Oldiesmann

Michael Eshom
Christian Metal Fans

Sir Osis of Liver

script.js in this theme is quite a bit smaller than same file in default, 36476 vs. 48069.  Haven't found anything that's not working.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Advertisement: