MyBB Community Forums

Full Version: Editing SpiceFuse Shoutbox..
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
anyone knows how to add smileys link on spicefuse shoutbox? 1.6 .. working fine, i ignore comp version.. ^_^ help
Spicefuse is way out of date - use MyShoutbox by Pirata Nervo instead. It's based on Spicefuse, but it way more up-to-date.
myshoutbox is bestSmile
I like the SpiceFuse shoutbox best myself.

To add a smilie popup window like in the attached image, replace the content of the sf_shoutbox template in adminCP - Templates & Style - Global Templates with the code below.

You can change the size of the popup window by editing the height and width sizes in the <a href tag. I couldn't figure out how to make them clickable though, so the code has to be copied and pasted into the shoutbox window.

<table border="0" cellspacing="1" cellpadding="4" class="tborder">
<thead>
<tr>
<td class="thead" colspan="5">
<div class="expcolimage">

<a href="misc.php?action=smilies&popup=true&editor=clickableEditor" onclick="window.open('misc.php?action=smilies&popup=true&editor=clickableEditor','smilies',
'width=455,height=400,scrollbars=yes,toolbar=no,location=no'); return false">
<strong> Smilies</strong> </a>
 
<img src="{$theme['imgdir']}/collapse.gif" id="shoutbox_img" class="expander" alt="[-]" /></div>
<div><strong>{$lang->sf_sb_shoutbox}</strong> (<a href="index.php?action=full_shoutbox">{$lang->sf_sb_fullsbox}</a>)<br /></div>
</td>
</tr>
</thead>
<tbody id="shoutbox_e">
<tr>
 <td class="trow2" align="center"><form onSubmit="ShoutBox.postShout(); $('shout_data').value = ''; return false;">{$lang->sf_sb_shout} <input type="text" id="shout_data" size="50" /> - <input type="submit" value="{$lang->sf_sb_shoutnow}" id="shouting-status" /></form></td>
</tr>
<tr>
 <td class="trow1"><div id="shoutbox_data" style="height: {$mybb->settings[sf_sb_height]}px; overflow: auto;">{$lang->sf_sb_loading}
</div></td>
</tr>
</tbody>
</table>
<br />
<script>
ShoutBox.refreshInterval = {$mybb->settings[sf_sb_refresh_interval]};
ShoutBox.MaxEntries = {$mybb->settings[sf_sb_shouts_main]};
ShoutBox.lang = ['{$lang->sf_sb_posting}', '{$lang->sf_sb_shoutnow}', '{$lang->sf_sb_loading}', '{$lang->sf_sb_flood_check}', "{$lang->sf_sb_no_perform}"];
{$extra_js}
Event.observe(window, 'load', ShoutBox.showShouts); 
</script>

[attachment=22787]
(2011-05-18, 04:44 PM)mark-in-dallas Wrote: [ -> ]I like the SpiceFuse shoutbox best myself.

To add a smilie popup window like in the attached image, replace the content of the sf_shoutbox template in adminCP - Templates & Style - Global Templates with the code below.

You can change the size of the popup window by editing the height and width sizes in the <a href tag. I couldn't figure out how to make them clickable though, so the code has to be copied and pasted into the shoutbox window.

<table border="0" cellspacing="1" cellpadding="4" class="tborder">
<thead>
<tr>
<td class="thead" colspan="5">
<div class="expcolimage">

<a href="misc.php?action=smilies&popup=true&editor=clickableEditor" onclick="window.open('misc.php?action=smilies&popup=true&editor=clickableEditor','smilies',
'width=455,height=400,scrollbars=yes,toolbar=no,location=no'); return false">
<strong> Smilies</strong> </a>
 
<img src="{$theme['imgdir']}/collapse.gif" id="shoutbox_img" class="expander" alt="[-]" /></div>
<div><strong>{$lang->sf_sb_shoutbox}</strong> (<a href="index.php?action=full_shoutbox">{$lang->sf_sb_fullsbox}</a>)<br /></div>
</td>
</tr>
</thead>
<tbody id="shoutbox_e">
<tr>
 <td class="trow2" align="center"><form onSubmit="ShoutBox.postShout(); $('shout_data').value = ''; return false;">{$lang->sf_sb_shout} <input type="text" id="shout_data" size="50" /> - <input type="submit" value="{$lang->sf_sb_shoutnow}" id="shouting-status" /></form></td>
</tr>
<tr>
 <td class="trow1"><div id="shoutbox_data" style="height: {$mybb->settings[sf_sb_height]}px; overflow: auto;">{$lang->sf_sb_loading}
</div></td>
</tr>
</tbody>
</table>
<br />
<script>
ShoutBox.refreshInterval = {$mybb->settings[sf_sb_refresh_interval]};
ShoutBox.MaxEntries = {$mybb->settings[sf_sb_shouts_main]};
ShoutBox.lang = ['{$lang->sf_sb_posting}', '{$lang->sf_sb_shoutnow}', '{$lang->sf_sb_loading}', '{$lang->sf_sb_flood_check}', "{$lang->sf_sb_no_perform}"];
{$extra_js}
Event.observe(window, 'load', ShoutBox.showShouts); 
</script>

Thanks for this! You rock! +1 Rep for you!
No problem!