1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Contact Us 0.3

Discussion in 'Plugins' started by Nick, Mar 18, 2010.

  1. Nick

    Nick Well-Known Member

    Contact Us
    Version: 0.3
    Author: Nick Ramsay
    Created on: 2010/03/18
    Last Updated:
    2010/07/22
    Tested on: Hotaru 1.1.3 ~ 1.3.0
    Plugins Required: None
    Plug & Play: Yes
    Supported: Yes

    Description
    A contact form that people can use to send email to the site admin. Includes an option to send a copy to yourself, and if the reCaptcha plugin is installed, you can enable reCaptcha, too.

    Instructions
    1. Upload the "contact_us" folder to your plugins folder.
    2. Install it from Plugin Management in Admin.
    3. Edit settings in Admin -> Contact Us

    Notes
    The link to your contact page can be found at the bottom of the Contact Us Settings page. You should add that link to your theme somewhere. Examples:

    http://www.example.com/index.php?page=contact [Friendly URLs off]
    http://www.example.com/contact/ [Friendly URLs on]

    To make your link work with friendly URLs on or off, use this:
    PHP:
    <?php echo $h->url(array('page'=>'contact')); ?>
    Revision History
    v.0.3 2010/07/22 - Nick - Fixed form width issues
    v.0.2 2010/03/21 - Nick - Updated for Hotaru 1.1.3
    v.0.1 2010/03/18 - Nick - Released first version

    Please click "Rate Thread" and give this plugin a rating. Thank you.


     

    Attached Files:

  2. nothingman

    nothingman Active Member

    Hi Nick. which email address is the message sent to? Is it sent to the SITE EMAIL: specified on Admin Settings page?
     
  3. Nick

    Nick Well-Known Member

    Yes, it should be! :eek:
     
  4. baadier

    baadier New Member

    cheers Nick, il implement and test this a bit later this afternoon
     
  5. nothingman

    nothingman Active Member

    Tested. I receive the mails specified on the SITE EMAIL: on Admin Settings. The Send a copy to yourself feature works fine too. However, I get the following undefined constant error on the header after clicking the Send button.

    Code:
    Notice: Use of undefined constant SMTP_ON - assumed 'SMTP_ON' in <ServerPath>/html/content/plugins/contact_us/contact_us.php  on line 108]
     
    Last edited: Mar 18, 2010
    Nick likes this.
  6. Nick

    Nick Well-Known Member

    The SMTP_ON constant was introduced in Hotaru 1.1.2. Looks like you're still on 1.1.1. Otherwise, glad to hear it works!

    I'll try myself with SMTP authentication later.
     
  7. nothingman

    nothingman Active Member

    Yes, still on 1.1.1. :(
     
  8. penido

    penido New Member

    Nick

    1. Upload the "contact_us" folder to your plugins folder.....ok via filezilla
    2. Install it from Plugin Management in Admin.....not appear

    because hand appears

    Thanks
     
  9. Nick

    Nick Well-Known Member

    Check you've got /contents/plugins/contact_us/contact_us.php and not /contents/plugins/contact-us-0-1/contact_us.php.
     
  10. penido

    penido New Member

    /contents/plugins/contact_us/contact_us.php


    Where I use this code:

     
    Last edited: Mar 19, 2010
  11. Nick

    Nick Well-Known Member

    In your theme, wherever you want to show your "Contact Us" link. Maybe navigation.php? Maybe footer.php? You choose.

    Make sure you put it in A tags, e.g.
    HTML:
    <a href="<?php echo $h->url(array('page'=>'contact')); ?>">Contact Us!</a>
     
  12. penido

    penido New Member

    Nick

    HTML Code solved

    2. Install it from Plugin Management in Admin ..... not appear contact_us

    because hand appears

    Thanks
     
  13. Nick

    Nick Well-Known Member

    Sorry, I don't understand.
     
  14. daveryder

    daveryder New Member

    Contact form with recaptcha

    Hi Nick,
    I tried it out with recaptcha, it works perfectly :)
    nice job
     
  15. penido

    penido New Member

    Sorry

    Nick

    1. Upload the "contact_us" folder to my plugins folder.....ok via filezilla contact_us
    2. Install it from Plugin Management in Admin.....not appear contact_us for instalation

    because not appears

    Thanks
     
  16. penido

    penido New Member

    Complicated for me

    I installed the plugin contact_us and my sidebar disappeared
     
  17. Nick

    Nick Well-Known Member

    The reason your sidebar has disappeared is because there has been an error which has stopped the rest of the page loading. Please go to Admin -> Settings and turn DEBUG on. Now try the Contact Us plugin again and you should see an error message.
     
  18. penido

    penido New Member

    Sorry Nick

    I abandoned the hotaru
    and not know anything about programming
    and I am very stupid
    too complicated for me
    I have pligg working, hotaru have more resources to pligg, I feel very
    may be that future version I may better understand

    Thanks
     
  19. Nick

    Nick Well-Known Member

    Updated: v.0.2 2010/03/31 - Nick - Updated for Hotaru 1.1.3 (no template/css changes necessary)
     
  20. daveryder

    daveryder New Member

    aha - this explains how nick gets so much work done. he is 10 days in the future! lol

    Revision History
    v.0.2 2010/03/31 - Nick - Updated for Hotaru 1.1.3
     
    Nick likes this.

Share This Page