Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)
  • Thread Starter LCD-NYC

    (@lcd-nyc)

    This is the contents of my comments.php file:

    ?>
    
    <?php if(!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) : ?>
        <?php die('You can not access this page directly!'); ?>
    <?php endif; ?>
    
    <?php if(!empty($post->post_password)) : ?>
          <?php if($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) : ?>
            <p>This post is password protected. Enter the password to view comments.</p>
          <?php endif; ?>
    <?php endif; ?> 
    
     <?php
    
    function mytheme_comment($comment, $args, $depth)
    {
       global $post;
       $GLOBALS['comment'] = $comment; ?>
       <li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">
             <div id="comment-<?php comment_ID(); ?>">
    
         <div class="comment">
    
                <?php
                    $out = '';
    
                    $show_avatars = get_option('show_avatars') == 1 ? true : false;
                    if($show_avatars)
                    {
                        $out .= '<div class="gravatar">'; 
    
                       // $default_avatar = get_bloginfo('template_url').'/img/common_files/avatar1.jpg';
                        $website = get_comment_author_url($comment->comment_ID);
    
                        $out .= get_avatar($comment, '60');
                        if($website != '')
                        {
                            $out .= '<a href="'.$website.'">'.__('Visit site', 'dc_theme').'</a>';
                        } else
                        {
                            $out .= '<span class="author-url">'.__('Visit site', 'dc_theme').'</span>';
                        }
                        $out .= '</div>';
                        echo $out;
                    }
    
                    echo '<div class="content '.(!$show_avatars ? 'content-no-margin' : '').'">';
    
                    $format = 'F j, Y g:i a';
                    $out = '';
                    $out .= '<div class="date"><span>';
                    $out .= get_comment_time($format);
                    $out .= '</span><span class="when">'.dcf_calculatePastTime(__('Posted', 'dc_theme'), get_comment_time('H'), get_comment_time('i'),
                        get_comment_time('s'), get_comment_date('n'), get_comment_date('j'), get_comment_date('Y')).'</span></div>';
                    echo $out;
    
                    $out = '';
                    $out .= '<div class="author">'.get_comment_author($comment->comment_ID);
    
                    if($post->post_author == $comment->user_id)
                    {
                        if($post->post_author == $comment->user_id)
                        {
                            $out .= ' <span class="marked">('.__('Author', 'dc_theme').')</span>';
                        }
                    }
                    $out .= '</div>';
                    echo $out; 
    
                ?> 
    
                <div class="text">
                     <?php comment_text() ?>
                </div>
                <div class="clear-both"></div>
              <?php if ($comment->comment_approved == '0')
              {
                 echo '<div class="to-approve" ><em>Your comment is awaiting moderation</em></div>';
              } ?>
                <div class="clear-both"></div>
                <span class="reply"><?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))); ?></span>                                             
    
                </div> <!-- content -->
                <div class="clear-both"></div>
         </div> <!-- comment -->           
    
             </div> <!-- comment-ID -->
    <?php
    }
    ?>
    
    <div id="comments-section">
    
        <?php if($post->comment_count > 0) { ?>
        <h2><?php
            $pi_general = GetDCCPInterface()->getIGeneral();
            comments_number(__('No comments', 'dc_theme'), __('One comment', 'dc_theme'), __('% comments', 'dc_theme')); 
    
            ?></h2><?php } 
    
            ?>
    <ul class="comment-list">
    <?php wp_list_comments('type=comment&callback=mytheme_comment'); ?>
    
       </div> <!-- comments-section -->
        <div class="clear-both"></div>
       <?php 
    
          if(is_singular() and get_option('page_comments'))
          {
    
              global $wp_rewrite;
              $comment_page = get_query_var('cpage');
              if(!$comment_page)
              {
                  $comment_page = 1;
              }
    
              $comment_max_page = get_comment_pages_count();
    
              if($comment_max_page > 1)
              {
                  $comment_defaults = array(
                      'base' => add_query_arg('cpage', '%#%'),
                      'format' => '',
                      'total' => $comment_max_page,
                      'current' => $comment_page,
                      'echo' => true,
                      'prev_next' => true,
                      'prev_text' => '« Prev',
                      'next_text' => 'Next »',
                      'add_fragment' => '#comments',
                      'end_size' => 3,
                      'mid_size' => 2
                  );
                  if ( $wp_rewrite->using_permalinks() )
                      $comment_defaults['base'] = user_trailingslashit(trailingslashit(get_permalink()) . 'comment-page-%#%', 'commentpaged');
    
                  $comment_args = wp_parse_args($comment_args, $comment_defaults);
                  $comment_page_links = paginate_links($comment_args);   
    
                  $out = '';
                  $out .= '<div class="comments-page-links">';
                    $out .= '<span class="before">Pages: </span>';
                    $out .= $comment_page_links;
                    $out .= '<div class="clear-both"></div>';
                  $out .= '</div>';
                  echo $out;
              }
          }
       ?>
    
    <?php
        global $post;
        $pi_general = GetDCCPInterface()->getIGeneral(); 
    
        if('open' == $post->comment_status)
        {
            if(get_option('comment_registration') && !$user_ID)
            {
                $out = '';
                $out .= '<span style="font-size:11px;color:#888888;">'.__('You must be', 'dc_theme').'<span> ';
                $out .= '<a href="'.get_bloginfo('url').'/wp-login.php?redirect_to='.urlencode(get_permalink()).'">'.__('logged in', 'dc_theme').'</a> ';
                $out .= '<span style="font-size:11px;color:#888888;">'.__('to post comment.', 'dc_theme').'</span>';
                echo $out;
            } else
            {
                $out  = '<div id="respond">';
                $out .= '<div class="common-form">';
                $out .= '<h3>'.__('Leave your comment', 'dc_theme').'</h3>';
                $out .= '<form action="'.get_option('siteurl').'/wp-comments-post.php" method="post" id="commentform" name="commentform">';
    
                if(!$user_ID) // ma byc !$user_ID
                {
                    $rne = (bool)get_option('require_name_email'); 
    
                    $out .= '<p>Your Name: <span class="required">('.($rne ? 'required' : 'not required').')</span></p>';
                    $out .= '<input class="text-ctrl" type="text" value="'.$comment_author.'" name="author" id="author" />';
    
                    $out .= '<p>E-Mail: <span class="required">('.($rne ? 'required' : 'not required').')</span></p>';
                    $out .= '<input class="text-ctrl" type="text" value="'.$comment_author_email.'" name="email" id="email" />';
    
                    $out .= '<p>Website: <span class="required">(not required)</span></p>';
                    $out .= '<input class="text-ctrl" type="text" value="'.$comment_author_url.'" name="url" id="url" />';
                } else
                {
                    $out .= '<span style="font-size:11px;color:#888888;">'.__('Loged in as', 'dc_theme').'</span> ';
                    $out .= '<a href="'.get_bloginfo('url').'/wp-admin/profile.php">'.$user_identity.'</a><span style="font-size:11px;color:#888888;">.</span> ';
                    $out .= '<span style="font-size:11px;color:#888888;">'.__('Here you can', 'dc_theme').'</span> ';
                    $out .= '<a href="'.get_bloginfo('url').'/wp-login.php?action=logout">'.__('log out', 'dc_theme').'</a> ';
                    $out .= '<span style="font-size:11px;color:#888888;">'.__('of this account.', 'dc_theme').'</span>';
                }
    
                $out .= '<p>Message: <span class="required">(required)</span></p>';
                $out .= '<textarea class="textarea-ctrl" rows="5" cols="10" name="comment" id="comment" ></textarea>';
                $out .= '<div class="clear-both"></div>';
                $out .= '<a href="#">'.__('Send comment', 'dc_theme').'</a>';
                $out .= '<div class="clear-both"></div>';
                echo $out;
    
                comment_id_fields();
                do_action('comment_form', $post->ID); 
    
                $out = '</form>';
                $out .= '<div class="cancel-respond" id="cancel-comment-reply">';
                echo $out;
    
                cancel_comment_reply_link(__('Cancel reply', 'dc_theme'));
    
                $out  = '</div>';
                $out .= '</div>'; // common-form
                $out .= '</div> <!-- respond -->';
                echo $out;
            }
    
        } else
        {
           echo 'The comments are closed.';
        }
    
    ?>

    ?Did anyone find a solution to this problem?

    Thread Starter LCD-NYC

    (@lcd-nyc)

    I solved this myself.

    This is what i did:
    1) I copied the nextgen gallery plugin folder from the 1st server (it’s an older version), and copied it to the 2nd server.
    2) I exported the ngg tables from the 1st server and imported them to the 2nd server.
    3) I then updated the nextgen plugin on the 2nd server. When i did that, it notified me to click a link to update the database tables, so i clicked it and it updated the tables.
    4) * It’s now working fine.

    Thread Starter LCD-NYC

    (@lcd-nyc)

    Hi ChristiNi,

    You are a Life-Saver lol. I uploaded a fresh post.php to wp-admin/includes folder and it’s now working. Apparently the post.php file got corrupted somehow from the move. I guess i was so busy thinking of other possible reasons that I didn’t try that 1st. I’ve been a programmer for over 20 years and totally over-thunked it lol. Thanks again.

    what did you do to fix it?

    Thread Starter LCD-NYC

    (@lcd-nyc)

    Yes, I did update the WordPress address and Site address as outlined in:
    http://codex.wordpress.org/Moving_WordPress

    I also disabled the permalink before moving the files, by changing it to default.

    I just re-copied the index.php file to the wp-admin folder as you suggested, no luck. I even uploaded a fresh copy, still no luck.

    I’m using a Theme name “Stereoline” from ThemeForest. It allows me to create Video Categories. When i try to add any of the Video Categories to a menu i get the error message: Catchable fatal error: Object of class WP_Error could not be converted to string in /home/content/b/x/w/bxweb/html/site/wp-admin/includes/nav-menu.php on line 73

    Same error message you get. I’m still seeking the solution.

    AND

    When I click on Video Categories, I get the error message: Cheatin’ uh?

    Thanks for your answer.
    In what file did you change that in??
    Is that a wordpress bug?

    I’m having this same problem. Can you please Outline what you did to fix this problem.

    Also when i activate the plugin, I get this error message on my site:

    Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /MY FULL PATH HERE/wp-content/plugins/ip-logger/class.ipdetails.php on line 16

    Is anyone els experiencing this?

    It’s true. I copied the 2 updated files and it works like a Charm. Thanks a lot iamskwerl. You’ve stopped some of us from pulling out our hair lol.

    To explain in further detail:
    I went to:
    http://code.google.com/p/wordtube/source/checkout

    Which lead me to the updated files at:
    http://wordtube.googlecode.com/svn/trunk/

    I uploaded the 2 updated files in their appropriate sub-folders in the wordtube folder.

    I’d like to Remove the “Turbo“, “Help” and “Forumlinks at the top of the Profile page for “Subcribers”. I don’t want them to be able to see those links, much less use Turbo to download the files of the site.. That’s not good at all.

    Does anyone have the answer to this?
    Thanks in advance for any help.

    You are correct Liz0nt0p

    Liz0nt0p
    Member
    Posted 1 week ago #
    aha. just dumb luck. I went in to view my blog, and although I couldn’t logon, I clicked “log out”, then I logged in using my new password. Stupid, easy. Now I am in to my admin again.

    I did that and it worked fine. You don’t have to reset your cookies or nothing. Just logout and log back in and it works.

    Thread Starter LCD-NYC

    (@lcd-nyc)

    Even after i delete the post i still see the error message when i create new posts.

    Forum: Plugins
    In reply to: podPress Dead?

    Does anyone know the solution to the podpress podPressPostSpecific error message I’m experiencing?

    I’m using wp 2.5.1 and podpress 8.8

    This is the post: http://wordpress.org/support/topic/176504?replies=1

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