MyBB Community Forums

Full Version: Solved: Adding a link to smiles on the shoutbox
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
I am using spicefuse shoutbox v11_b1
I want to add a link again on the shoutbox that pulls up the [get more] smiles list found in the post bit.

See here where i would like the link. The "(View List)" would be clickable.
[Image: ev3o2c.jpg]

This is perfect for a sb that has no smile inserter.
This allows members to pull up the list and copy the smile code and use it in the sb.

I did this on the last board and my members loved it, but for the life of me.. i forget what i did Sad

Hope you can help, Thanks Angel
Being playing around with this.. but no luck.

Global Templates / sf_shoutbox
<table border="0" cellspacing="1" cellpadding="4" class="tborder">
<thead>
<tr>
<td class="thead" colspan="5">
<div class="expcolimage"><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>

And here we see the Default Templates / smilieinsert_getmore
<tr>
<td class="trow2" align="center"><span class="smalltext"><strong>[<a href="javascript:clickableEditor.openGetMoreSmilies('clickableEditor');">{$lang->smilieinsert_getmore}</a>]</strong></span></td>
</tr>

I know i need to add that/some in the sf_shoutbox template.. just need some help Smile
I think is has something to do with this line
<div><strong>{$lang->sf_sb_shoutbox}</strong> (<a href="index.php?action=full_shoutbox">{$lang->sf_sb_fullsbox}</a>)<br

And this one
<a href="javascript:clickableEditor.openGetMoreSmilies('clickableEditor');">{$lang->smilieinsert_getmore}</a>]</strong></span></td>

Been playing with it for days now.. i give up. I was lucky before when i did it i guess.

I will wait for help from you pros Wink
I will look at it, it would probably be in one of the javascript files. If you would like a simpler way to have smilies, I would suggest using myshoutbox.

http://mods.mybboard.net/view/myshoutbox

But I'll see if I can find a way, btw which shoutbox do you use?

Edit:

At the top of you shoutbox template add:

<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/editor.js"></script>

Then add the code that you said:

<a href="javascript:clickableEditor.openGetMoreSmilies('clickableEditor');">{$lang->smilieinsert_getmore}</a>]</strong></span></td>

Wherever you would like it to be shown. This should work.
I think that is Pirata's MyShoutbox.
(2009-12-14, 11:57 PM)Mark.M Wrote: [ -> ]I think that is Pirata's MyShoutbox.

Either way, I am pretty sure the script code that I just gave him was the part that was missing.
Thanks Jammerx2, the placement and link is not working for me.
[Image: 2zi0d1y.jpg]

I did as you said,
but would be easier for both of us if you could just give me the full change to make.
Then i can just cope it in the template. I would like the placement as shown in my first pic.

Thanks for your interest in helping me Smile
oh, i forgot.. i have tried that myshoutbox in the past.
Its a resource hog on the boards index. It slowed down the index loading times a LOT.
The sb i use is much more faster and uses just about 0 resources. Another board owner i know also had this issue with myshoutbox.

Thats why i won't use it.
The sb i use spicefuse shoutbox is also compatible with all browsers..old and new.
Spicefuse shoutbox uses the AJAX technology with fair usage of javascript and a mechanism that utilizes minimal resources while distributing the load between client side and server side.
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/editor.js"></script>
<table border="0" cellspacing="1" cellpadding="4" class="tborder">
<thead>
<tr>
<td class="thead" colspan="5">
<div class="expcolimage"><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>)<a href="javascript:clickableEditor.openGetMoreSmilies('clickableEditor');">{$lang->smilieinsert_getmore}</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>

I can't really tell on the spot, but this should work. Try it and tell me what happens.
Hey thanks, Still not working. Same as what i had. *You can see the "get more"
[Image: 23wo6lu.png]

Link is not clickable and its needs to say "Smiles (View List)" as in my pic. The "view list" would be the clickable link.

This also has me stumped. As i said, i did it before.. but i don't remember what i did.. lol
<table border="0" cellspacing="1" cellpadding="4" class="tborder">
<thead>
<tr>
<td class="thead" colspan="5">
<div class="expcolimage"><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>) <script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/editor.js">Smilies(<a href="javascript:clickableEditor.openGetMoreSmilies('clickableEditor');">View List</a>)</script><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>

See what it shows now, and what is the link to your site so I can see myself?
That did nothing this time.

Link to my site is, allnude.biz. But its a private invite community, so there will be no way for you to see the sb or register.

I can create you an account if needed,
but i don't see how that will help as i can just show you pics same as seeing the sb.
Can someone else help me please? I have already put a lot of effort into this as you can see, but still no results.
Still need help.. i know its an easy change.

Can someone help?
Pages: 1 2 3