Author Topic: SMF 2.0.9 Smileys hider  (Read 2497 times)

Offline Bannta

  • (SOL) Navy Flowers
  • pro user
  • ***
  • Posts: 1697
  • Kudos: +84/-77
  • Got Sheep?
    • View Profile
    • Sheephole
SMF 2.0.9 Smileys hider
« on: June 07, 2015, 05:07:12 pm »
To modify the board behavor on how smilies are display while posting a message the following code can be added

\Themes\default\PersonalMessage.template.php
@line 1023
replace code
Code: [Select]
echo '
<div id="smileyBox_message"></div>';

with
Code: [Select]
echo '
<div class="catbg" id="smileyBox_html" onclick="javascript:var x = document.getElementById(\'smileyBox_message\');if (x.style.display == \'none\') { x.style.display = \'\'} else {x.style.display = \'none\'};">
                <span>Show Smileys</span><div id="smileyBox_message"></div>
                </div>';
Repeat for
\Themes\core\PersonalMessage.template.php
@line 1048


\Themes\default\Post.template.php
@line 400
replace code
Code: [Select]
echo '
<div id="smileyBox_message"></div>';

with
Code: [Select]
echo '
<div class="catbg" id="smileyBox_html" onclick="javascript:var x = document.getElementById(\'smileyBox_message\');if (x.style.display == \'none\') { x.style.display = \'\'} else {x.style.display = \'none\'};">
                <span>Show Smileys</span><div id="smileyBox_message"></div>
                </div>';



"Strike me down with it! Give into your anger! With each passing moment, you make yourself more my servant....wait?! I was just kidd...." ~ Quote Darth Plagueis

Offline Pyldrvr

  • Superman
  • Administrator
  • pro user
  • *****
  • Posts: 2707
  • Kudos: +118/-112
  • Superman
    • View Profile
    • The Gameslapper
Re: SMF 2.0.9 Smileys hider
« Reply #1 on: July 14, 2015, 11:24:10 am »
ok, I added this code change.

Offline Rumblood

  • (SOL) Navy Members
  • not so noob
  • ***
  • Posts: 435
  • Kudos: +33/-53
    • View Profile
Re: SMF 2.0.9 Smileys hider
« Reply #2 on: July 16, 2015, 08:30:41 pm »
 :dance: