
02-09-2010, 01:47 PM
|
|
|
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by djbaxter
My apologies if this has already been addressed.
vBulletin 4.01
This version of the Thank you hack.
Groans not installed.
The buttons show up correctly.
Clicking on the button updates the thanks count for a mmmber in the User CP and the thanks count in the postbit, but doers NOT display the "Thanked by" informatiion under the post.
Added: Happens in both IE8 and Firefox 3.6.
|
Quote:
Originally Posted by djbaxter
More information: When I click on "Thanks", in IE8 I get this error:
Code:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.4; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Sat, 6 Feb 2010 18:27:47 UTC
Message: Object required
Line: 48
Char: 2
Code: 0
URI: http://myforum.com/clientscript/post_thanks.js
Message: 'null' is null or not an object
Line: 12
Char: 4
Code: 0
URI: http://myforum.com/clientscript/post_thanks.js
And here's the portions of that file referenced.
Around line 12:
Code:
var post_thanks_handleSuccess = function(o)
{
if(o.responseText !== undefined)
{
if (post_thanks_callback.object_name[o.tId] !== undefined)
{
fetch_object(post_thanks_callback.object_name[o.tId]).innerHTML = o.responseText;
}
}
}
Around line 48:
Code:
function post_thanks_give(postid, integrate)
{
fetch_object('post_thanks_button_' + postid).style.display = 'none';
fetch_object('post_thanks_separator_' + postid).style.display = 'none';
if (integrate == true)
{
fetch_object('post_groan_button_' + postid).style.display = 'none';
}
var sUrl = 'post_thanks.php';
var postData = 'do=post_thanks_add&using_ajax=1&p=' + postid + '&securitytoken=' + SECURITYTOKEN;
var request = YAHOO.util.Connect.asyncRequest('POST', sUrl, post_thanks_callback, postData);
post_thanks_callback.object_name[request.tId] = 'post_thanks_box_' + postid;
fetch_object('post_thanks_box_' + postid).style.display = '';
return false;
}
|
More information: I just clicked on the Thanks button for a member (I am the owner and admin) and received this:
|