Forum Replies Created

Viewing 15 replies - 136 through 150 (of 154 total)
  • Thread Starter dfwgreg

    (@dfwgreg)

    Change of plans, I’m using the wp_the_content and how do I configure it to display posts starting from post 6 to 25. Thanks, Gregory.

    Thread Starter dfwgreg

    (@dfwgreg)

    Plus, if there one for FriendFeed as well?

    Thread Starter dfwgreg

    (@dfwgreg)

    Again, does anyone know how to make the first post on the front page different than the rest of the posts? I have to setup using someone’s theme but when the next page is clicked, it’s the same as the first page. Anyone know how to change this?

    Thanks,
    Greg

    Thread Starter dfwgreg

    (@dfwgreg)

    I’ll try again. You know the ‘next page’ at the bottom of the page? Is there a way I can edit those pages so that it doesn’t use the index.html template?

    Thanks,
    Greg

    Thread Starter dfwgreg

    (@dfwgreg)

    Maybe I’m asking the wrong question. So, I’ll try again. Example url: https://controlalttv.net/video-using-singbox-to-change-the-channel/

    The default permalink is %postname

    Since the above URL is in the video category, I would like that URL to be https://controlalttv.net/video/video-using-singbox-to-change-the-channel/ and only this category.

    Can this be done or do I need to install another version of wordpress in the /video folder on my server?

    Thanks,
    Greg

    Thread Starter dfwgreg

    (@dfwgreg)

    What I did on my site was using the template file and have it point to a different page. Make sure to save the page is in your template folder.

    <?php include(TEMPLATEPATH."file name.php"); ?>

    Thread Starter dfwgreg

    (@dfwgreg)

    OK, I’ve found a code that does change li class

    <li class="<?php if ($comment->comment_author_email == "[email protected]") echo 'author'; else echo $oddcomment; ?> item" id="comment-<?php comment_ID() ?>">

    But it’s a little short. Is there a way I can add more coding under the above code when the author comment is tagged?

    I hope I’m making sense and not confusing people.

    Thanks,
    Greg

    Thread Starter dfwgreg

    (@dfwgreg)

    Here’s what the code looks like:

    <li id="li-comment-50" class="comment byuser comment-author-gschultz bypostauthor even depth-2">
    <div id="comment-50" class="c-id">
    <div class="comments-grav">
    </div>
    <div class="comment-metadata">
    </div>
    <div class="comment-bottom"> June 24, 2009, 2:00 am CT </div>
    <div class="comment-body">
    </div>
    <div class="reply">
    </div>
    </div>
    Thread Starter dfwgreg

    (@dfwgreg)

    Thread Starter dfwgreg

    (@dfwgreg)

    I’m confused. I’ve added the javascript code in the header:

    if ( is_singular() ) wp_enqueue_script( 'comment-reply' );

    And I’m confused at the <?php comment_id_fields(); ?>. Where does this go? Here’s the code from my coments.php:

    <?php
    /**
     * @package WordPress
     * @subpackage Default_Theme
     */
    
    // Do not delete these lines
    	if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
    		die ('Please do not load this page directly. Thanks!');
    
    	if ( post_password_required() ) { ?>
    		<p class="nocomments">This post is password protected. Enter the password to view comments.</p>
    	<?php
    		return;
    	}
    ?>
    
    <!-- You can start editing here. -->
    
    	<?php if ( have_comments() ) : ?>
    
    	 	<ul class="commentlist">
    		<?php wp_list_comments('callback=mytheme_comment'); ?>
    	 	</ul>
    
    	<div class="navigation">
    		<div class="alignleft"><?php previous_comments_link() ?></div>
    		<div class="alignright"><?php next_comments_link() ?></div>
    	</div>
    
    	<?php if ( !empty($comments_by_type['pings']) ) :  ?>
    	<h3>Trackbacks</h3>
    	<b>Check out what others are saying about this post...</b>
    	<ol class="commentlist">
    	<?php wp_list_comments('type=pings'); ?>
    	</ol><br /><br />
    	<?php endif; ?>
    
     <?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) : ?>
    
    <div id="respond">
    
    <h3>Leave Comment</h3>
    
    <div class="cancel-comment-reply">
    	<?php cancel_comment_reply_link(); ?>
    </div>
    
    <?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 echo urlencode(get_permalink()); ?>">logged in</a> to post a comment.</p></div>
    <?php else : ?>
    
    <form action="<?php echo get_settings('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" class="textarea" value="<?php echo $comment_author; ?>" size="28" tabindex="1" />
        <label for="author">
        <?php _e('Name'); ?>
        </label>
        <?php if ($req) _e('(required)'); ?>
      </p>
      <p>
        <input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="28" tabindex="2" class="textarea" />
        <label for="email">
        <?php _e('E-mail'); ?>
        </label>
        <?php if ($req) _e('(required)'); ?>
      </p>
      <p>
        <input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="28" tabindex="3" class="textarea" />
        <label for="url">
        <?php _e('<acronym title="Uniform Resource Identifier">URI</acronym>'); ?>
        </label>
      </p>
      <?php endif; ?>
      <p>
        <label for="comment"><strong>Your Comment</strong></label>
        <br />
        <textarea name="comment" id="comment" cols="60" rows="10" tabindex="4" class="textarea"></textarea>
      </p>
      <p>
        <input name="submit" id="submit" type="submit" tabindex="5" value="<?php _e('submit'); ?>" class="Cbutton" />
        <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
        <input type="hidden" name="redirect_to" value="<?php echo wp_specialchars($_SERVER['REQUEST_URI']); ?>" />
      </p>
      <?php do_action('comment_form', $post->ID); ?>
    </form>
    </div>
    
    <?php endif; // If registration required and not logged in ?>
    
    <?php endif; // if you delete this the sky will fall on your head ?>

    I use a function code to edit the comments. Here’s that code:

    <?php
    function mytheme_comment($comment, $args, $depth) {
       $GLOBALS['comment'] = $comment; ?>
       <li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">
    	 <div id="comments-id">
    	  <div class="comments-grav">
    		 <?php echo get_avatar( $comment, 42 ); ?></div>
    	  <div class="comment-metadata">
    	     <?php comment_author_link() ?></div>
    	  <div class="comment-bottom">
    	     <?php comment_date() ?>, <?php comment_time() ?> CT <?php edit_comment_link(__('(Edit)'),'  ','') ?></div>
    	  </div>
    
    	  <?php if ($comment->comment_approved == '0') : ?>
    		 <em><?php _e('Your comment is awaiting moderation.') ?></em>
    		 <br />
    	  <?php endif; ?>
    
    	  <div class="comment-body"><?php comment_text() ?></div>
    	  <div class="reply">
    		 <?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>
    	  </div>
    
    <?php
    		}
    ?>

    All help if greatly appreciated ??

    Thanks again,
    Greg

    Thread Starter dfwgreg

    (@dfwgreg)

    Thread Starter dfwgreg

    (@dfwgreg)

    Thanks for the info. I left one part out of this post (my bad). How do I display posts from a different category, only displaying x number of posts, and showing x number of words. I know this can be done because I’ve done this in the past and can’t remember where I found this.

    Greg

    Thread Starter dfwgreg

    (@dfwgreg)

    Awesome, thanks!

    Now, part II. How do I make it so that link highlights to indicate that I’m on that page?

    https://gregschultz.net/screencap2.jpg

    Thanks again,
    Greg

    Thread Starter dfwgreg

    (@dfwgreg)

    Never mind, found it.

Viewing 15 replies - 136 through 150 (of 154 total)