Topic: Update Mycontact form

Added   Parsley   ( Javascript forms validation )
more info here


Preview in Monstra demo


Download here


Note: if you like errors with custom language change in mycontact.plugin.php line 33.

 Javascript::add('../../../post/1722/plugins/mycontact/lib/i18n/forum_subdomain/messages.en.js','frontend',11);

Change name file messages.en.js with messages.es.js or this




Php code :

     // Contact
     <?php echo Mycontact::form(); ?> 
    // Subscribe
    <?php echo Mycontact::subsCribe(); ?> 

Shortcode :

 
  // Contact 
  {mycontact}
  // Subscribe
 {mycontact type="subscribe" }


Preview photos:



::::::  Normal ::::::

:::::: Errors ::::::




Subscribe

::::::  Normal ::::::


::::::  Errors ::::::


::::::  You are a robot? ::::::

..::: Moncho Varela ::::..   ..::: @Nakome ::::..   ..::: Github ::::..

nakome's Website

2 2013-06-12 17:20:05

Re: Update Mycontact form

Great! Thanks!
All your plugins are great!!

Re: Update Mycontact form

Ru language.
=> Add in the plugin folder

Download

P.S.:
If you add the language in the folder after installing the plugin, then re-install the plugin from the admin panel.
(Plugins / MyContact-Delete. New plugins / MyContact (Контактная форма) / Install.)
Sorry for my bad English sad

Re: Update Mycontact form

dear i installed last version of monstra and ur plugin.... does not really work well....


even i put wrong mail without "@" it say message send...
no validation nothing works sad

default monstra, default theme, and ur plugin..

and also that weird space in "message form" ... how to remove it?

(с) Roman Art
So far So good wink

RomanArt's Website

Re: Update Mycontact form

even i put wrong mail without "@" it say message send no validation nothing works sad

I make clean installation for Monstra and install the plugin and work well. Try to clean cache.


and also that weird space in "message form" ... how to remove it?

where is this?

..::: Moncho Varela ::::..   ..::: @Nakome ::::..   ..::: Github ::::..

nakome's Website

Re: Update Mycontact form

where is this?



(с) Roman Art
So far So good wink

RomanArt's Website

Re: Update Mycontact form

is a ghost smile

remove this in myfrom.view.php is a blank code

<?php echo $menssage; ?>
..::: Moncho Varela ::::..   ..::: @Nakome ::::..   ..::: Github ::::..

nakome's Website

8 2013-07-30 03:27:31

Re: Update Mycontact form

still there xD

*useing Mozilla firefox 22.0*

(с) Roman Art
So far So good wink

RomanArt's Website

Re: Update Mycontact form

still there xD

You've cleared the cache? or if you have autocomplete active, you need cleaning.

<textarea id="menssage" rows="5"  name="mycontact_body" class="menssage input-block-level"  data-trigger="keyup" data-rangelength="[20,200]"></textarea>
..::: Moncho Varela ::::..   ..::: @Nakome ::::..   ..::: Github ::::..

nakome's Website

Re: Update Mycontact form

yes i clean cash and yes i try again and clean again... still there Q_Q

p\s fixed now no space i messup with code a bit sory smile
no more problem smile)

(с) Roman Art
So far So good wink

RomanArt's Website

Re: Update Mycontact form

There is not a form validation on my blog, check it up: http://remaja-muslim.com/contact

Jefry_D's Website

Re: Update Mycontact form

I have 2 questions...

1)Why i cant see message sent by User via ur form in admin panel when i click Reply i see only this "Your menssage" instead of user message o_O ( i can see user message only before clicking "reply", i dont understand it )

2) Why do i get a mail in gmail from my own mail adress not from email of user who set a message via contact form?
(example user with mail: "monstra@gmail.com" sent me a message, but i got on my mail romanart@gmail.com the message from romanart@gmail.com instead of monstra@gmail.com, i cant even answer that message from my mail, i can only reply from admin panel on monstracms)

(с) Roman Art
So far So good wink

RomanArt's Website

Re: Update Mycontact form

RomanArt wrote:

I have 2 questions...

1)Why i cant see message sent by User via ur form in admin panel when i click Reply i see only this "Your menssage" instead of user message o_O ( i can see user message only before clicking "reply", i dont understand it )

2) Why do i get a mail in gmail from my own mail adress not from email of user who set a message via contact form?
(example user with mail: "monstra@gmail.com" sent me a message, but i got on my mail romanart@gmail.com the message from romanart@gmail.com instead of monstra@gmail.com, i cant even answer that message from my mail, i can only reply from admin panel on monstracms)

1 - Go to myContact.admin.php    line 89 and add this 

     ->assign('user_menssage', $user_menssage)

Now go to views/backend/reply.view.php and write for example in line 25,

     '<p><small>User Question: </small><p>'.
     '<div class="well">'.$user_menssage.'</div>'.

2 -  If you need  see user mail you need change the template.

You can use this vars:   ( you can see in help button )

Name user  <?php echo $user_name; ?> 
Email user  <?php echo $user_email; ?> 
Subject user  <?php echo $user_subject; ?> 
Menssage user  <?php echo $user_menssage; ?> 
Your codes
Your name  <?php echo $my_name; ?> 
Your menssage  <?php echo $my_menssage; ?> 
Your email  <?php echo $my_email; ?> 
Other codes
Site name  <?php echo $site_name; ?> 
Site url  <?php echo $site_url; ?> 
..::: Moncho Varela ::::..   ..::: @Nakome ::::..   ..::: Github ::::..

nakome's Website

14 (edited by RomanArt 2014-02-11 04:15:01)

Re: Update Mycontact form

Thanks.
First question is done, working well...
about 2nd question i dont really get where i should change my_mail to user_mail.
Cause if u go to page romanart.ru/contact and sent me a message it will come on my mail from my mail Q_Q even gmail saying like there is a hacker or so ahhah cause mail suppose to come from ur mail to my cause u sent it from website via contact form.



everytime someone sent message via contact form i got a mail on my theromanart[=]gmail.com mail.

Example: u sent me message from romanart.ru/contact
ur mail: nakome[=]gmail.com

i got an email on my mail from my MAIL(theromanart[=]gmail.com) instad of nakome[=]gmail.com looks like i sent mail to myself but it was u who sent message via contact form.

i gave up dont know how to explane anyone smile

(с) Roman Art
So far So good wink

RomanArt's Website

Re: Update Mycontact form

Try this:

Go to myContact plugin section click in Edit Template and in line 88 paste this code,

                          <h4>There is ouput of shortcodes</h4>
                         <strong> Name user  </strong><?php echo $user_name; ?> <br/>
                         <strong>  Email user  </strong>  <?php echo $user_email; ?> <br/>
                          <strong> Subject user  </strong>  <?php echo $user_subject; ?> <br/>
                          <strong> Menssage user  </strong>  <?php echo $user_menssage; ?> <br/>
                          <strong> Your codes  </strong> <br/>
                          <strong> Your name  </strong>  <?php echo $my_name; ?>  <br/>
                          <strong> Your menssage   </strong> <?php echo $my_menssage; ?>  <br/>
                          <strong> Your email  </strong>  <?php echo $my_email; ?> <br/>
                          <strong> Other codes  </strong> <br/>
                         <strong>  Site name  </strong>  <?php echo $site_name; ?>  <br/>
                         <strong>  Site url  </strong>  <?php echo $site_url; ?>  <br/>
..::: Moncho Varela ::::..   ..::: @Nakome ::::..   ..::: Github ::::..

nakome's Website