2014-09-01, 05:25 PM
2014-09-01, 05:41 PM
No plugins are updated to MyBB 1.8 yet.
2014-09-02, 02:37 PM
Just wait a few weeks and you'll see some plugins updated.
2014-09-02, 04:37 PM
This should work: http://community.mybb.com/mods.php?action=view&pid=24
2014-09-04, 12:30 AM
This one cannot work... it require mybbstuff core system...
2014-09-04, 11:08 AM
See the reply here: http://community.mybb.com/thread-158580.html
2014-09-05, 01:04 AM
Hello again.
I resolved problem with compatibility this plugin. http://mods.mybb.com/view/thanks
Now this plugin can also work with new mybb 1.8.
Bellow i put fixed java script code for plugin thanks.
All work good with ajax
I resolved problem with compatibility this plugin. http://mods.mybb.com/view/thanks
Now this plugin can also work with new mybb 1.8.
Bellow i put fixed java script code for plugin thanks.
All work good with ajax
/**
*
* Thanks Plugin fixed for MyBB 1.8 by Glover(http://cqpolska.pl)
* Developed by SaeedGH ([email protected])
* www.mybbhelp.ir
*
*/
var pid=-1;
var spinner=null;
var my_spinner = {
content: '<div id="my_spinner" style="position: fixed;display: inline;top: 50%;left: 50%;"><img src="images/spinner_big.gif"></div>',
show: function (){
$("body").append(my_spinner.content);
return true;
},
destroy: function (){
$("#my_spinner").remove();
return false;}
};
function thx_common(xml)
{
try
{
remove=xml.getElementsByTagName('del').item(0).firstChild.data=="1";
lin=document.getElementById('a'+pid);
if (remove) {
table = document.getElementById('thx' + pid);
table.style.display = xml.getElementsByTagName('display').item(0).firstChild.data != 0 ?
'' : 'none';
list = document.getElementById('thx_list' + pid);
list.innerHTML = xml.getElementsByTagName('list').item(0).firstChild.data;
img = document.getElementById('i' + pid);
img.src = xml.getElementsByTagName('image').item(0).firstChild.data;
}
else
{
lin.innerHTML="";
lin.onclick=null;
lin.href="";
lin = null;
}
}
catch(err)
{
alert("an Error had occured please contact administrator")
alert(err);
}
finally
{
spinner=my_spinner.destroy();
return lin;
}
}
function thx_action(response)
{
lin=thx_common(response)
if(lin!=null)
{
lin.onclick= new Function("","return rthx("+pid+");");
lin.href='showthread.php?action=remove_thank&pid='+pid;
}
}
function rthx_action(response)
{
lin=thx_common(response)
if (lin!=null)
{
lin.onclick = new Function("", "return thx(" + pid + ");");
lin.href = 'showthread.php?action=thank&pid=' + pid;
}
}
function thx(id)
{
if(spinner)
return false;
my_spinner.show();
pid=id;
pb="pid="+pid;
$.ajax('xmlhttp.php?action=thankyou',{type: 'post',data:pb, success: thx_action});
return false;
}
function rthx(id)
{
if(spinner)
return false;
my_spinner.show();
pid=id;
b="pid="+pid;
$.ajax('xmlhttp.php?action=remove_thankyou',{type: 'post',data:b, success: rthx_action});
return false;
}
2014-09-05, 03:42 AM
I released a thanks plugin working on 1.8 i made all ajax script and entire almost code, works and its compatible with that thanks plugin and have many more opts and css styled buttons.
I tested since beta appears and after upgrade my forum and make some tests i release it here on mods zone.
I tested since beta appears and after upgrade my forum and make some tests i release it here on mods zone.
2014-09-05, 04:20 AM
I understand Dark Neo but i wanted only this simple fast thanks(without any add code like myallerts), same is with CSS styles buttons (on my modifications) because most users on my site wanted only this one...
[attachment=32354]
[attachment=32354]