Page 1 of 11
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: 336
Reputation: 6
Message # 1 | 5: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: 3367
Reputation: 170
Message # 2 | 6:48 AM
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: 336
Reputation: 6
Message # 3 | 8:25 PM
Is it possible to put the email form code in the ajax window?
Animorph
- Mr.Awesome is Back! -
Posts: 2799
Reputation: 188
Message # 4 | 11:34 AM
khen
Posts: 336
Reputation: 6
Message # 5 | 11:42 PM
Animorph, your script is not working in my website. What's wrong?
Susmoy
Posts: 185
Reputation: 6
Message # 6 | 0:43 AM
khen, That script worked for me . !! smile smile
If I Help you then Please +Rep and Awards
Natashko
Posts: 3367
Reputation: 170
Message # 7 | 7:32 AM
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 11
Search: