• Page 1 of 1
  • 1
uCoz Community » uCoz Modules » E-mail Forms » How to Create Report Form in the Ad Board Entry
How to Create Report Form in the Ad Board Entry
khen
Posts: 475
Reputation: 13

Message # 1 | 11:45 AM
Please help me. Does anybody knows how to create a report form in the ad board entry? A report form which sends information (that includes link of the entry and choices of violations of the ads) to the site admin.
Natashko
Posts: 3366
Reputation: 171

Message # 2 | 12:48 PM
khen, as far as I understood you need to create a new e-mail form and then embed its code (like $MFORM_X$) into the necessary template in CP->Design->Design management (templates)->Ad Board->Page with entry full text and its comments
-Moved to E-mail Forms-
khen
Posts: 475
Reputation: 13

Message # 3 | 2:25 AM
Is it possible to put the email form code in the ajax window?
Animorph
Posts: 2856
Reputation: 189

Message # 4 | 5:34 PM
khen, This might help you smile

http://ucause.ucoz.com/forum/61-634-1

To busy building a passive income online ;)
khen
Posts: 475
Reputation: 13

Message # 5 | 5:42 AM
Animorph, your script is not working in my website. What's wrong?
Susmoy
Posts: 185
Reputation: 6

Message # 6 | 6:43 AM
khen, That script worked for me . !! smile smile
If I Help you then Please +Rep and Awards
Natashko
Posts: 3366
Reputation: 171

Message # 7 | 1:32 PM
khen,
Quote (khen)
your script is not working in my website. What's wrong?

You need to add this code to the template of the page, where you want the ajax window with the form to be displayed:
Code
<script type="text/javascript">
     function openForm(){
         new _uWnd('contact','Contact Us',400,150,{fadespeed: 666, fadeclosespeed: 666, fadetype: 2, fadeclosetype: 2,align:'left',footerc:' ',min:0,max:0,resize:0,closeonesc:1,autosize:1,shadow:0,topclass:'x-lightwnd',gridclass:'myWinGridBlack',modal:1}, $(".myform").html() );
     }
</script>
<div class="myform" style="display:none;">$MFORM_X$</div>

Use the dollar code of your form instead of $MFORM_X$
Insert the link to the ajax window where necessary, like this:
Code
<a href="#" onclick="openForm();return false;">Open Form</a>
uCoz Community » uCoz Modules » E-mail Forms » How to Create Report Form in the Ad Board Entry
  • Page 1 of 1
  • 1
Search: