MyBB Community Forums

Full Version: [get more] smilies to load on the same page.instead of Popup
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How do I get [get more] smilies to load on the same page under the text area like this image?
[Image: smilies.jpg]

I do not want a popup.

I have this javascript below and i'm using <div> id"zone"</div> in my new thread template. The smilies load but are not clickable. Can anyone help. Thanks,

function viewAll()
{
var req=null;
document.getElementById("zone").innerHTML="Started...";
if(window.XMLHttpRequest)
{
req=new XMLHttpRequest();
if(req.overrideMimeType)
{
req.overrideMimeType('text/xml');}}
else 
if(window.ActiveXObject)
{
try{req=new ActiveXObject("Msxml2.XMLHTTP");
}
catch(e)
{
try{req=new ActiveXObject("Microsoft.XMLHTTP");}catch(e){}}}
req.onreadystatechange=function()
{
document.getElementById("zone").innerHTML="<img src='images/loading_animated2.gif' alt='loading' />";
if(req.readyState==4)
{
if(req.status==200)
{document.getElementById("zone").innerHTML="<br />"+ req.responseText;
}
else
{
document.getElementById("zone").innerHTML="Error: returned status code "+ req.status+" "+ req.statusText;}}};req.open("GET","misc.php?action=smilies&popup=true&editor=clickableEditor",true);req.send(null);
}
Increase the number of smilies shown on the reply etc in the admin CP.
When I click on them I get this ReferenceError: insertSmilie is not defined. Anyone know how to fix it.