Solved: 6 Years, 1 Month, 3 Weeks ago Smilies Popup-Window
#1
Solved: 6 Years, 1 Month, 3 Weeks ago
I'm adding more smilies to my forum. I've set the number of smilies to show on the clickable smilie inserter to 20. To get more smilies you need to click the link "get more".

I would like it that the link "get more" only shows additional smilies and not the first 20 once again. How do I go about that? I've seen it done on other forums, I'm hoping it's possible on myBB as well.

I'm using 1.8.4.

Thank you!

ETA I'd also prefer not to have the "text to replace" visible in the popup window. For example : dodgy :

I guess what I want to know is how to edit the smilies popup window!
Reply
#2
Solved: 6 Years, 1 Month, 3 Weeks ago
So my tech admin solved this problem for me. I thought I'd post his solution here in case anyone else is wondering the same thing I was about the smilies popup window.

An edit was needed in both misc.php and in the template misc_smilies_popup_smilie. The smilies from the clickable smilie inserter still show up in the popup window but now that the accompanying text is gone it's a huge improvement IMO. This solution gives you eight columns of smilies in the popup window.

In the template misc_smilies_popup_smilie:

<td class="{$class}" align="center">{$smilie_image}</a></td>
<td class="{$class}">{$smilie['find']}</td>

the second line was deleted with the following result:

<td class="{$class}" align="center">{$smilie_image}</a></td>

In misc.php the following changes were made from lines 727 to 747 to put 8 columns on the additional smilies popup display. Change the number “2” in three places:

	$onclick = " onclick=\"MyBBEditor.insertText(' $smilie_insert ');\"";
	eval('$smilie_image = "'.$templates->get('smilie', 1, 0).'";');
	eval("\$smilies .= \"".$templates->get("misc_smilies_popup_smilie")."\";");
	if($e == 2)
	{
	    $smilies .= "</tr><tr>";
    $e = 1;
	    $class = alt_trow();
	}
	else
	{
	    $e = 2;
	}
    }
}
if($e == 2)
{
    eval("\$smilies .= \"".$templates->get("misc_smilies_popup_empty")."\";");
}
eval("\$smiliespage = \"".$templates->get("misc_smilies_popup", 1, 0)."\";");
output_page($smiliespage);

was changed to:

	$onclick = " onclick=\"MyBBEditor.insertText(' $smilie_insert ');\"";
	eval('$smilie_image = "'.$templates->get('smilie', 1, 0).'";');
	eval("\$smilies .= \"".$templates->get("misc_smilies_popup_smilie")."\";");
	if($e == 8)
	{
	    $smilies .= "</tr><tr>";
    $e = 1;
	    $class = alt_trow();
	}
	else
	{
	    $e = $e + 1;
	}
    }
}
if($e == 8)
{
    eval("\$smilies .= \"".$templates->get("misc_smilies_popup_empty")."\";");
}
eval("\$smiliespage = \"".$templates->get("misc_smilies_popup", 1, 0)."\";");
output_page($smiliespage);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)