Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter coding4fun

    (@coding4fun)

    Cool, any particular steps I should take?

    Thread Starter coding4fun

    (@coding4fun)

    Hey,
    So I figured this out. I gave the submit button an id and class like so.
    [submit class:firstclass id:form-submit ” “]

    I went into my css and did this:

    .firstclass {
    background-image: url(“/images/1.jpg”);
    background-repeat:no-repeat;
    background-color:transparent;
    height:50px;
    width:100px;
    border:0px;
    }

    .secondclass {
    background-image: url(“/images/2.jpg”);
    background-repeat:no-repeat;
    background-color:transparent;
    height:50px;
    width:100px;
    border:0px;
    }

    The jquery I used was the library
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
    and then:

    <script type="text/javascript" charset="utf-8">
        $(document).ready(function(){
            $('#form-submit').click(function() {
                    $(this).removeClass("firstclass");
                    $(this).addClass("secondclass");
    	})
        });
    </script>

    Thread Starter coding4fun

    (@coding4fun)

    Under Firefox > Preferences > Security, i have the box checked to remember passwords for sites. You probably have this too. Just uncheck that and clear your browser’s cache. The pre-fill you see in the password input should be gone.

    Thread Starter coding4fun

    (@coding4fun)

    It looks like a styling issue to me. on style.css I took off
    float: left;
    under input[type=”submit”], input[type=”reset”]
    and it looked fine.

    You may have to give this one button on the private page a class of its own to make it look right.

    Thread Starter coding4fun

    (@coding4fun)

    That helped! Thanks! Here’s what I did. First I had to create a page called contact-password.php in my theme. If you don’t have ftp access to a site to just make that file in your theme, you can plug this code into line one of the header.

    <?php touch('wp-content/themes/your-themes-name/contact-password.php');?>

    save the file, load the main page once, and then remove this code. The file is automatically added to your editor.

    Here’s the functions.php code:

    
    <?php
    add_filter( 'the_password_form', 'custom_password_form' );
    function custom_password_form() {
    	global $post;
    	$label = 'pwbox-'.( empty( $post->ID ) ? rand() : $post->ID );
    	$o = '<form class="protected-post-form" action="' . get_option('siteurl') . '/wp-pass.php" method="post">
    	' . get_template_part( 'contact', 'password' ) . '
    	<label for="' . $label . '">' . __( "Password:" ) . ' </label><input name="post_password" id="' . $label . '" type="password" size="20" /><input type="submit" name="Submit" value="' . esc_attr__( "Submit" ) . '" />
    	</form>
    	';
    	return $o;
    }
    ?>
    

    It pulls in whatever you place on contact-password.php to the password protected pages.

    Thread Starter coding4fun

    (@coding4fun)

    Wonderful, works perfectly! That is what I needed it to do.
    Thank you

    Thread Starter coding4fun

    (@coding4fun)

    So, I converted all my permalinks to custom structure with
    /index.php/%postname%/

    So every page is hard coded to
    https://123.ipaddress.345.0/wordpress/index.php/hello-world/

    But that is the only way to get a permalink with words in it. Of course, I am concerned about the site going live like this.

    I am aware from these boards that wordpress custom permalinks and IIS7 Windows server do not get along well. But this situation is not up to me, but the client. I would sure appreciate some help!

    Thank you

    Thread Starter coding4fun

    (@coding4fun)

    It turns out that some of the products I entered first did not have “allow comments” checked under discussion on the product edit page. So, when I clicked on one of my products, I was seeing comments are closed. I overlooked this on a few of my pages.

    Thank you foxyshop for providing excellent and fast support!

    Thread Starter coding4fun

    (@coding4fun)

    Hello!
    Yes, I have. The gray box drops down and the option “comments” is checked. It’s a two column layout, and the only boxes not checked are featured image and slug. Also, on the product edit page below discussion, “Allow comments” and “Allow pingbacks” are checked.

    Some other notes:
    It does not matter if the call to comments is within the form on single-product.php or outside – the issue remains.
    I turned off all other plugins, and even the image gallery on the page (prettyphoto) and there was no change.
    I am using pages for my site and not posts.
    I do not have an issue with including comments template on my other pages, so it is not the theme.
    Also, it’s in test mode right now, not live.

Viewing 9 replies - 1 through 9 (of 9 total)