|
|
Forum moderator: bigblog |
uCoz Community For Webmasters Custom Solutions Report in Ajax (Here is the script to show "Report form" in Ajax window) |
Report in Ajax |
Paste this code anywhere on your webpage
Code <!--Report Script by AlexWains--> <script type="text/javascript"> function openreport(){new _uWnd('report','Report this entry',300,100,{align:0,shadow:0,close:1,autosize:1,maxh:500,minh:100,resize:1,closeonesc:1}, $("#chat").html() )} </script> <div style="display:none;" id="chat">$MFORM_2$</div> Now Paste this, where you want the button Code [<a title="Report this entry" href="javascript:;" onclick="openreport();">Report</a>] -Note Replace $MFORM_2$ With your Mail Form Post edited by AlexMalik - Wednesday, 2013-04-10, 7:28 PM
|
Nice,but if you dont want to receive reports to your e mail but in private messages you could use this script
Code <script type="text/javascript" src="http://supercafe.ucoz.com/raznokoD/zalba.js"></script> <a href="javascript://" class="m-btn red-stripe" onclick="complaint('Admin')" title="report this!"><input class="poick_knopka1" type="submit" value="report button"></a> !
|
admin8220, make sure that change this , if your username is not admin, put your nickname there. For me its working fine. What error you geting when try to use this code?
Added (2015-05-09, 6:52 PM) <script type="text/javascript" src="http://onlinebioskop.ucoz.net/js/zalba.js"></script> <a href="javascript://" class="m-btn red-stripe" onclick="complaint('Here complaint receiver username')" title="report this!"><input class="button" type="submit" value="report button"></a> I have changed js source so this option now works great. !
Post edited by Ed05 - Thursday, 2014-04-10, 11:28 PM
|
| |||
| |||