Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • mpahlmann

    (@mpahlmann)

    It’s probably a browser issue. See this topic:

    https://www.ads-software.com/support/topic/321592?replies=3#post-1384622

    mpahlmann

    (@mpahlmann)

    The problem with the [NEXT] button in the wp-o-matic setup is a browser issue.

    The plugin developer says it works in Safari and Chrome on the mac platform.

    On my PC, it worked in Firefox.

    Try different browsers, one will most likely work.

    Thread Starter mpahlmann

    (@mpahlmann)

    esmi, the problem is resolved. Not sure how this happened. Could have been the .htaccess. I’ve reloaded my 404 page and it’s displaying now.

    Thanks for your time, I like your avatar.

    Thread Starter mpahlmann

    (@mpahlmann)

    My email subscription functions through a simple php file. Here are its contents:

    <?php

    if(isset($HTTP_POST_VARS[‘realname’])) {
    foreach($HTTP_POST_VARS as $item => $value) {
    if($value != “”) {
    $value = stripslashes($value);
    $value = ereg_replace(‘”‘, ”, $value);
    switch ($item) {
    case ’email’:
    # if(preg_match(‘/^[^@\s]+@([-a-z0-9]+\.)+[a-z]{2,}$/i’, $value)) {
    $in_email = $value;
    # }
    break;
    case ‘realname’:
    if($value != “”) {
    $in_name = $value;
    }
    break;
    }
    }
    }
    $in_name = trim($in_name);
    $in_email = trim($in_email);
    $in_str = “”;
    if(($in_name != “”) || ($in_email != “”)) {
    if(!file_exists(“log/subscribers.txt”)) {
    $in_str = “\”Name\”,\”Email\”\n”;
    }
    $in_str .= “\”$in_name\”,\”$in_email\”\n”;
    $FH = fopen(“log/subscribers.txt”, “a”);
    fputs($FH, $in_str);
    fclose($FH);
    }
    include “Thank_You.html”;
    exit;
    }
    include “index.html”
    ?>

    Thread Starter mpahlmann

    (@mpahlmann)

    That was leftover from a previous htaccess file I used to create this one from. I’ve removed that line, unfortunately it didn’t resolve the 404 issue.

    Thread Starter mpahlmann

    (@mpahlmann)

    Yes, I moved the .htaccess file to the new subfolder.

    The .htaccess file on my root folder contains this:

    RewriteEngine on

    AddHandler server-parsed .html

    ErrorDocument 404 /index.html

    The server-parsed line is there for my server side includes. I also added the 404 error line to redirect the 404’s to the home page. This is my temporary solution to this problem.

    Thread Starter mpahlmann

    (@mpahlmann)

    I found the problem. A missing /div tag in the single.php file, above the <div class=”navigation”> near the end of the file.

    This has been corrected in the updated version of the Black n White theme.

    https://www.ads-software.com/extend/themes/black-n-white

    Thread Starter mpahlmann

    (@mpahlmann)

    Thanks alchymyth.

    Below is the comments.php code. On single post pages where comments have been posted, the right sidebar gets pushed below the post.

    I see two open div tags in this code and two close div tags. Let’s see if the trouble is here.

    <?php // Do not delete these lines
    if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) die ('Please do not load this page directly. Thanks!');
    if (!empty($post->post_password)) { // if there's a password
    	if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) {  // and it doesn't match the cookie
    ?>
    
    <h2><?php _e('Password Protected'); ?></h2>
    <p><?php _e('Enter the password to view comments.'); ?></p>
    
    <?php return;
    	}
    }
    
    	/* This variable is for alternating comment background */
    
    $oddcomment = 'alt';
    
    ?>
    
    <!-- You can start editing here. -->
    
    <?php if ($comments) : ?>
    	<h3 id="comments"><?php comments_number('No Responses', 'One Response', '% Responses' );?> to “<?php the_title(); ?>”</h3>
    
    <div class="comments-template">
    
    <ol class="commentlist">
    <?php foreach ($comments as $comment) : ?>
    
    	<li class="<?php echo $oddcomment; ?>" id="comment-<?php comment_ID() ?>">
    	<?php echo get_avatar( $comment, 32, identicon); ?>
    
    <div class="commentmetadata">
    <strong><?php comment_author_link() ?></strong>, <?php _e('on'); ?> <a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date('F jS, Y') ?> <?php _e('at');?> <?php comment_time() ?></a> <?php _e('Said:'); ?> <?php edit_comment_link('Edit Comment','',''); ?>
     		<?php if ($comment->comment_approved == '0') : ?>
    		<em><?php _e('Your comment is awaiting moderation.'); ?></em>
     		<?php endif; ?>
    </div>
    
    <?php comment_text() ?>
    	</li>
    
    <?php /* Changes every other comment to a different class */
    	if ('alt' == $oddcomment) $oddcomment = '';
    	else $oddcomment = 'alt';
    ?>
    
    <?php endforeach; /* end for each comment */ ?>
    	</ol>
    
    <?php else : // this is displayed if there are no comments so far ?>
    
    <?php if ('open' == $post->comment_status) : ?>
    	<!-- If comments are open, but there are no comments. -->
    	<?php else : // comments are closed ?>
    
    	<!-- If comments are closed. -->
    <p class="nocomments">Comments are closed.</p>
    
    	<?php endif; ?>
    <?php endif; ?>
    
    <?php if ('open' == $post->comment_status) : ?>
    
    		<h3 id="respond">Leave a Reply</h3>
    
    <?php if ( get_option('comment_registration') && !$user_ID ) : ?>
    <p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">logged in</a> to post a comment.</p>
    
    <?php else : ?>
    
    <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
    <?php if ( $user_ID ) : ?>
    
    <p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="Log out of this account">Logout &raquo;</a></p>
    
    <?php else : ?>
    
    <p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="30" tabindex="1" />
    <label for="author"><small>Name <?php if ($req) echo "(required)"; ?></small></label></p>
    
    <p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="30" tabindex="2" />
    <label for="email"><small>Mail (will not be published) <?php if ($req) echo "(required)"; ?></small></label></p>
    
    <p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="30" tabindex="3" />
    <label for="url"><small>Website</small></label></p>
    
    <?php endif; ?>
    
    <!--<p><small><strong>XHTML:</strong> <?php _e('You can use these tags:'); ?> <?php echo allowed_tags(); ?></small></p>-->
    
    <p><textarea name="comment" id="comment" cols="80" rows="10" tabindex="4"></textarea></p>
    
    <p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" />
    <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
    </p>
    
    <?php do_action('comment_form', $post->ID); ?>
    
    </form>
    
    <?php endif; // If registration required and not logged in ?>
    
    <?php endif; // if you delete this the sky will fall on your head ?>
Viewing 8 replies - 1 through 8 (of 8 total)