WordPress.org

Forums

WP-ContactForm Problem (30 posts)

  1. robot
    Member
    Posted 9 years ago #

    I have WP-ContactForm (http://ryanduff.net/projects/wp-contactform/) installed and when I put in the tag, it adds the CSS to my code but not the form... Please help!

  2. Firas
    Member
    Posted 9 years ago #

    Does it say <!-- Contact Form --> in the source still? It's probably another plugin interfering.

  3. robot
    Member
    Posted 9 years ago #

    The page is http://robot.f2o.org/about/
    You can look at the source there
    I tried disabling all other plugins and it still didnt work...
    I also tried reinstalling.

  4. Firas
    Member
    Posted 9 years ago #

    In wp-contactform.php, there is a line saying:

    add_filter('the_content', 'wpcf_callback', 7);

    Try increasing 7 to 10, or try making it 1, I'm not exactly sure what the problem is.

  5. robot
    Member
    Posted 9 years ago #

    I tried 10 and 1...still nothing.

  6. Jinsan
    Member
    Posted 9 years ago #

    download the plugin again, delete the existing one after disabling it. Upload the plugin, enable in your admin panel, then Write Page. In this write box you should see a button called Contact or Contact Form amongst Blockquote and others. Press it once and it adds the tag.

    Ensure your htaccess can be written to.

    View the page, does it display? If yes, then go to the plugin file for the contact form, and cut and paste the CSS only, paste this into your style.css for your theme and edit it. Or you can modify the css within the plugin file.

  7. robot
    Member
    Posted 9 years ago #

    That worked.
    http://robot.f2o.org/contact/
    Now how do I get it to work without the comment stuff?

  8. Ryan Duff
    Member
    Posted 9 years ago #

    Can you list what active plugins you have. Something is interfearing with it.

  9. Ryan Duff
    Member
    Posted 9 years ago #

    robot:

    Go to Manage > Pages and click on contact, at the top of the edit page, un-check allow comments and allow pings

  10. robot
    Member
    Posted 9 years ago #

    Thanks! I got it working.

  11. Jinsan
    Member
    Posted 9 years ago #

    heh, well done - you can delete the redundant contact page now :)

  12. Firas
    Member
    Posted 9 years ago #

    Jinsan, I'm lost---for future reference, what part of this got the contact form working? :)

  13. for future reference, what part of this got the contact form working?

    This part: http://wordpress.org/support/topic/34475#post-195002

  14. audienceone
    Member
    Posted 9 years ago #

    Firas, if it did not solve the problem for you, try to check if you have a page.php inside the template folder. If a page.php does not exist, you'd have to create one. One that is compatible with the template you are using.

  15. Ryan Duff
    Member
    Posted 9 years ago #

    audienceone:

    so you're saying this goes back to the topic of theme authors not creating all necessary pages? no further comment.

  16. audienceone
    Member
    Posted 9 years ago #

    Creating the page helped me with the same problem.

    ryanduff, please point me to the topic you are referring to about theme authors not creating all necessary pages.

    --- edited 8:16pm ---

    Yes, it points back to themes with incomplete pages. Unless the template creator heavily studied the original template format and catched all possible outputs then it is even possible to have only page as a template. But, templates are meant to be composed of several pages to accomodate different outputs. You can blame it on them if you have done your part in following the "WordPress Code/Coding Standard".

  17. Captain Bogwash
    Member
    Posted 9 years ago #

    WP 1.5 /Gila Theme
    The contact quicktag is visible, but activating it (or manually pasting in the quicktag) fails to produce a visible form
    OK, the following suggestions have been tried, each with no joy:
    Jinsan's suggestion concerning CSS
    checking for page.php in the theme - it's there in the theme root, not in a template folder....but it's there nonetheless.
    -----------------------------
    Now, active Plugins:

    • Fancy Tooltips 1.2.1
    • Include Page 1.1
    • RunPHP 1.2b4 (yes I know I have 2 php packages in, and may slim that down soon to only one)
    • WP-Contact Form 1.1

    -------------------------------
    My uneducated guess is that the theme is the problem....but I emphasize that that is only a guess. I hope to hell I'm wrong because I truly like the three column plain vanilla layout that I hacked this theme to be (I mauled the css mainly, nothing much beyond that)

    Ideas anyone?

  18. hooopla
    Member
    Posted 9 years ago #

    Firas, if it did not solve the problem for you, try to check if you have a page.php inside the template folder. If a page.php does not exist, you'd have to create one. One that is compatible with the template you are using.

    I think this may apply to me. I'm using a theme that doesn't include a page.php, but does include a few templates (that are working normally). But I am having an issue with WP-ContactForm.

    I've installed it according to the directions, entered my Options, I do see the "contact form" button in the Write form, and the CSS and <!--contact form--> show up in view source.

    I've created a template called "Contact" that looks like this:

    <?php
    /*
    Template Name: Contact
    */
    ?>
    <?php get_header(); ?>
    <div id="content">
    <h2>Send email to Cuppa News</h2>
    <p class="para">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Quisque venenatis neque sed tortor. Nulla sit amet dui a neque eleifend facilisis.</p>
    <!--contact form-->
    </div>
    </div>
    <?php get_sidebar(); ?>
    <?php get_footer();

    I'm calling this page from a "Contact" link on my menu. Everything is displayed correctly, except the Contact form.

    Any thoughts or suggestions?

    Thanks.

  19. Jinsan
    Member
    Posted 9 years ago #

    You don't need to create a contact template. You just need to press the quicktag to enter the tag within a page, save that page and that will be your contact page. I've set mine to the default template for my site. I don't have a page.php either by the way.

    Once you create the page, click manage pages, hit view> does the page display? If yes, copy the link to that page and place it where you need to.

    If not...buggered if I know, trial and error. Update to the latest version. Is the plugin activated and so on?

    Hoopla I didnt' see the plugin activated on your page. can you confirm it's active?

  20. Firas
    Member
    Posted 9 years ago #

    You cannot call wp-contactform in php, it has to go through a the_content() filter in WP.

  21. hooopla
    Member
    Posted 9 years ago #

    OK, it's becoming a bit clearer now. (Jinsan, I'm doing this on a test site, which is why you don't see the plugin.)

    Firas, I think you're saying that the contact form has to be part of the same loop as posts -- is that right? When I look at page.php in the default theme, that's how it appears to me.

    If you look here, you'll see what I'm seeing now.

    I'd like "Contact" to be where Date is now, I don't want to see meta stuff, I don't want a page number at the bottom, and I'd like to add a paragraph of introductory text above the form.

    But it looks to me as though the content of this page lives in the database (like a post). How do I modify its appearance without a template?

  22. hooopla
    Member
    Posted 9 years ago #

    You cannot call wp-contactform in php, it has to go through a the_content() filter in WP.

    Firas, now that I think some more, are you saying that this plugin can only be used in posts and not in a static page -- as I'm trying to do?

  23. Jinsan
    Member
    Posted 9 years ago #

    Hooopla - sorry if this is stating the obvious but is this what youare doing:

    > Activate Plugin
    > Click Write Page
    > Click Quicktag for Comment Form
    > Set template to Default in drop down menu
    > Save Page
    > View Page

    ?

  24. hooopla
    Member
    Posted 9 years ago #

    Yes, that's what I'm doing, Jinsan.

  25. hooopla
    Member
    Posted 9 years ago #

    After much reading of the codex, I think the plugin really is intended to be used in posts and not in static pages. I seem to specialize in trying to pound square pegs into round holes... ;-)

    I'm off to one of the php script sites to look for a contact form that can live in a static page.

  26. Firas
    Member
    Posted 9 years ago #

    No, it was developed for static pages (but can be used on posts too)--it just has to go through WP. Somehow you need to put the quicktag inside a write post or write page form.

    When you make a custom php template and enter this:

    <p class="para">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Quisque venenatis neque sed tortor. Nulla sit amet dui a neque eleifend facilisis.
    <!--contact form-->
    </div>

    Then the <!--contact form--> part is just being spit out to the browser directly, no conversions from quicktag → html form are happening.

    Anyway, I'm curious as to why just making a new page and hitting the quicktag without futzing around with templates doesn't work for you. Making it work like that is the whole point :)

  27. nickel
    Member
    Posted 9 years ago #

    Like cjraven, I am having trouble with this plugin using the Gila theme. The form doesn't render properly. Using Mac/FF the form shows up pushed way down to the bottom of the page, so I have to scroll down to it. Same deal with Safari. Using Mac/IE the rendering is even worse... The top field shows up in place, but the the rest of the form is pushed way down, and the field labels are pushed even further down the page. Can anyone offer some advice?

    See here:

    http://www.fivecentnickel.com/contact/

    Thanks,

    nickel

  28. Ryan Duff
    Member
    Posted 9 years ago #

    Nickel: I responded to your email and will look at the css issue this evening.

  29. Ryan Duff
    Member
    Posted 9 years ago #

    Anybody experiencing the contact form being placed at the bottom of the page, please try this code...

    .contactform {
    position: static;
    overflow: hidden;
    }

    The CSS is defined near the end of wp-contactform.php

    If I get enough replies of fixes and nothing breaking, I'll update and put out a fix release.

  30. nickel
    Member
    Posted 9 years ago #

    That fixed it.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.