- Joined
- Threads
- 1,117
- Posts
- 2,494
1.
2.
3. I found this on some forum, and it would be really usefull in my opinion.
Preview:
2.
3. I found this on some forum, and it would be really usefull in my opinion.
Preview:
Code:
<div style="text-align:center"><a class="input_submit reputation negative" id="quickReportButton" href="" onClick="reportThisTossThread(); return false;">Report Account(s) as Dead</a></div><script type="text/javascript">
function reportThisTossThread(){
var result = confirm("Are you sure you want to report this thread as dead? If not, please click Cancel.");
if( ! result ) return;
document.getElementById('quickReportButton').style.visibility="hidden";
new Ajax.Request( ipb.vars['base_url'] + "app=core&module=ajax§ion=reports&do=quickReport",
{
method: 'post',
evalJSON: 'force',
parameters: {
'secure_key': ipb.vars['secure_hash'],
'id': parseInt(197575)
},
onSuccess: function(t)
{
if( Object.isUndefined( t.responseJSON ) )
{
}
else if ( t.responseJSON['error'] )
{
}
else
{
var _someVar = null;
if( !_someVar )
{ni
_someVar = new ipb.Popup( 'quickReportKey', { type: 'pane',
initial: $('quickReportContent').innerHTML,
hideAtStart: false,
w: '600px',
h: 250} );
}
else
{
_someVar.show();
}
}
}
});
}
</script>
<div id='quickReportContent' style='display:none;'>
<h3><strong>Reporting a Thread</strong></h3>
<div class='fixed_inner' style='padding: 5px; font-weight: bold;'>
Thank you for reporting a problem with the account(s). CrackingCore greatly appreciates your help!
</div>
Upvote
1