Forum Replies Created

Viewing 15 replies - 1 through 15 (of 18 total)
  • Thread Starter dimartensson

    (@dimartensson)

    Hehe, well I don’t believe FF3 should have any problems with the css, I do however know that IE used to have problems displaying fixed div’s for instance. As for flash, I don’t use any at all so that shouldn’t be a problem. ??

    dimartensson

    (@dimartensson)

    Nice logo, looks organized. Only thing I don’t really like is the Google ads, but then, who does? ??

    dimartensson

    (@dimartensson)

    Well done!

    I looked around at it a bit but actually couldn’t come up with anything I didn’t like design-wise.

    Thread Starter dimartensson

    (@dimartensson)

    Thanks for your input. ??

    I made the top bar small in order to make sure everything would fit, but you might be right. I’ll play around with different sizes and paddings etc. for it later. ??

    Well it is XHTML 1.0 transitional and I do try avoid any “hacks” or such (actually only got two CSS tags that won’t validate). Unfortunately older browsers (like the dreaded IE6) have problems with today’s standards and are holding the web back, and when even sites like YouTube, Google and Digg are limiting their support for it I see no reason for me to put in the extra effort and mess up my code to support it.

    dimartensson

    (@dimartensson)

    On the positive side it looks professional, is kind to the eyes and is easy to navigate.

    However, at first glance it looks like a “parked” page, which isn’t good at all. I think it’s mainly the design on the “Blog News” section on the Home page that I react to.

    I’d try varying the fonts a bit and perhaps adding more information to the front page so it doesn’t look just like a collection of links.

    Forum: Your WordPress
    In reply to: Rebaz.info is blog
    dimartensson

    (@dimartensson)

    A simple layout with colors that work rather well together. It’s a tad hard for me to get a proper picture of everything though since I don’t know the language on the site.

    Only real problem I can see with it is the logo. The font of the text there doesn’t seem to fit the site at all.

    Forum: Your WordPress
    In reply to: rate my theme
    dimartensson

    (@dimartensson)

    I’m somewhat a fan of minimalistic designs so I kind of like it. There are some things I’d like to point out though:

    1. All that red doesn’t agree well with my eyes. I’m not sure if it’s just my eyesight though.
    2. I get a slight feeling of disorganization. Certain items feels like they’ve been simply thrown in there.
    3. Ads… *shrugs*

    Thread Starter dimartensson

    (@dimartensson)

    I know my reply is a tad late. Been busy with other things lately. In any case, it seems your solution worked. Thanks!
    I must have messed with the “path” (first line) when attempting this earlier.

    dimartensson

    (@dimartensson)

    It doesn’t work even with a fresh install with a fresh db??

    You might want to check the file permissions and if they seem alright… I’d probably try reinstalling apache and php. That is if it’s your server (or a hosted virtual one with SSH access).

    Thread Starter dimartensson

    (@dimartensson)

    I’m trying to remove the styling that gets inherited from .post-conent p in the blockquote‘s.

    Thread Starter dimartensson

    (@dimartensson)

    The default theme works but the piano-black one I’m using is obsessed with ********* the comment form. Been staring at the two comments.php for hours now trying to figure this thing out. It seems completely unoutfigurable… or something.
    Here’s the code for my comments.php that isn’t working properly (from the piano-black theme, clears the comment on failed captcha):

    <div id="comments">
    
    <?php
    	if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
    		die ('Please do not load this page directly. Thanks!');
    if (function_exists('post_password_required'))
    	{
    	if ( post_password_required() )
    		{
    		echo '<div class="nocomments"><p>';_e('This post is password protected. Enter the password to view comments.','piano-black'); echo '</p></div></div>';
    		return;
    		}
    	} else
    	{
    	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  ?>
    				<div class="nocomments"><p><?php _e('This post is password protected. Enter the password to view comments.','piano-black'); ?></p></div></div>
    				<?php return;
    			}
    		}
    	}
    ?>
    
    <?php  //custom comments function by mg12 - https://www.neoease.com/  ?>
    
    <?php
           if (function_exists('wp_list_comments')) { $trackbacks = $comments_by_type['pings']; }
           else { $trackbacks = $wpdb->get_results($wpdb->prepare("SELECT * FROM $wpdb->comments WHERE comment_post_ID = %d AND comment_approved = '1' AND (comment_type = 'pingback' OR comment_type = 'trackback') ORDER BY comment_date", $post->ID)); }
    ?>
    
    <?php if ($comments || comments_open()) ://if there is comment and comment is open ?>
    
     <div id="comment-header">
      <ul id="comment-header-top" class="clearfix">
       <li id="comment-feed"><a href="<?php bloginfo('comments_rss2_url'); ?>" title="<?php _e('Comments RSS','piano-black'); ?>"></a></li>
       <li id="comment-title"><?php the_title(); ?></li>
      </ul>
      <div id="comment-header-bottom" class="clearfix">
       <ul class="switch">
    <?php if(pings_open()) ://if trackback is open ?>
        <li id="comment-switch" class="active"><a href="javascript:void(0);" onclick="MGJS.switchTab('comment-list', 'trackback-list', 'comment-switch', 'active', 'trackback-switch', 'non-active');"><?php _e('Comments','piano-black'); ?><?php echo (' ( ' . (count($comments)-count($trackbacks)) . ' )'); ?></a></li>
        <li id="trackback-switch" class="non-active"><a href="javascript:void(0);" onclick="MGJS.switchTab('trackback-list', 'comment-list', 'trackback-switch', 'active', 'comment-switch', 'non-active');"><?php _e('Trackbacks','piano-black'); ?><?php echo (' ( ' . count($trackbacks) . ' )'); ?></a></li>
    <?php else ://if comment is closed,show onky number ?>
        <li><?php _e('Comments', 'piano-black'); echo (' (' . (count($comments)-count($trackbacks)) . ')'); ?></li>
        <li id="trackback-closed"><?php _e('Trackbacks are closed.','piano-black'); ?></li>
    <?php endif; ?>
       </ul>
    <?php if(comments_open()) ://if comment is open ?>
       <a href="#respond" id="add-comment"><?php _e('Write comment','piano-black'); ?></a>
    <?php endif; ?>
    
    <?php if(pings_open()) ://if trackback is open ?>
    
    <?php endif; ?>
      </div><!-- comment-header-bottom END -->
     </div><!-- comment-header END -->
    
    <div id="comment-list">
    <!-- start commnet -->
    <ol class="commentlist">
    	<?php
    		if ($comments && count($comments) - count($trackbacks) > 0) {
    			// for WordPress 2.7 or higher
    			if (function_exists('wp_list_comments')) {
    				wp_list_comments('type=comment&callback=custom_comments');
    			// for WordPress 2.6.3 or lower
    			} else {
    				foreach ($comments as $comment) {
    					if($comment->comment_type != 'pingback' && $comment->comment_type != 'trackback') {
    						custom_comments($comment, null, null);
    					}
    				}
    			}
    		} else {
    	?>
    <li class="comment"><p><?php _e('No comments yet.','piano-black'); ?></p></li>
    	<?php
    		}
    	?>
    </ol>
    <!-- comments END -->
    
    <?php //if you select comment pager from comment option
    	if (get_option('page_comments')) {
    		$comment_pages = paginate_comments_links('echo=0');
    		if ($comment_pages) {
    ?>
    
    <div class="page-navi clearfix" id="comment-pager">
     <?php echo $comment_pages; ?>
    </div>
    
    <?php } } ?>
    
    </div><!-- #comment-list END -->
    
    <div id="trackback-list">
    <!-- start trackback -->
    <?php if (pings_open()) ://id trackback is open ?>
    
    <div id="trackback-url">
    <label for="trackback_url"><?php _e('TrackBack URL' , 'piano-black'); ?></label>
    <input type="text" name="trackback_url" id="trackback_url" size="60" value="<?php trackback_url() ?>" readonly="readonly" onfocus="this.select()" />
    </div>
    
    <ol class="commentlist">
    
    <?php if ($trackbacks) : $trackbackcount = 0; ?>
    
    <?php foreach ($trackbacks as $comment) : ?>
    <li class="comment">
     <div class="trackback-time">
      <?php echo get_comment_time(__('F jS, Y', 'piano-black')) ?>
      <?php edit_comment_link(__('[ EDIT ]', 'piano-black'), '', ''); ?>
     </div>
     <div class="trackback-title">
      <?php _e('Trackback from : ' , 'piano-black'); ?><a href="<?php comment_author_url() ?>"><?php comment_author(); ?></a>
     </div>
    </li>
    <?php endforeach; ?>
    
    <?php else : ?>
    <li class="comment"><p><?php _e('No trackbacks yet.','piano-black'); ?></p></li>
    <?php endif; ?>
    </ol>
    <?php endif; ?>
    <!-- trackback end -->
    </div><!-- #trackbacklist END -->
    
    <?php endif;//comment is open ?>
    
    <?php if (!comments_open()) : // if comment are closed ?>
    
    <div class="comment-closed" id="respond">
    <?php _e('Comments are closed.','piano-black'); ?>
    </div>
    
    <a href="#pngfix-right" id="back-top"><?php _e('Return top','piano-black'); ?></a>
    
    <?php elseif ( get_option('comment_registration') && !$user_ID ) : // If registration required and not logged in. ?>
    
    <div class="comment-form-area" id="respond">
     <?php if (function_exists('wp_login_url'))
            { $login_link = wp_login_url();  }
           else
            { $login_link = get_option('siteurl') . '/wp-login.php?redirect_to=' . urlencode(get_permalink()); }
     ?>
    <?php printf(__('You must be <a href="%s">logged in</a> to post a comment.', 'piano-black'), $login_link); ?>
    </div>
    
    <?php else ://if comment is open ?>
    
    <div class="comment-form-area" id="respond">
    
    <?php if (function_exists('comment_reply_link')) { ?>
    <div id="cancel-comment-reply"><?php cancel_comment_reply_link() ?></div>
    <?php } ?>
    
    <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
    
    <?php if ( $user_ID ) : ?>
    <div id="comment-user-login">
    <?php if (function_exists('wp_logout_url')) { ?>
    <p><?php printf(__('Logged in as <a href="%1$s">%2$s</a>.', 'piano-black'), get_option('siteurl') . '/wp-admin/profile.php', $user_identity); ?><span><a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php _e('Log out of this account', 'piano-black'); ?>"><?php _e('Log out', 'piano-black'); ?></a></span></p>
    <?php } else { ?>
    <p><?php printf(__('Logged in as <a href="%1$s">%2$s</a>.', 'piano-black'), get_option('siteurl') . '/wp-admin/profile.php', $user_identity); ?><span><a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account', 'piano-black'); ?>"><?php _e('Log out', 'piano-black'); ?></a></span></p>
    <?php } ?>
    </div><!-- #comment-user-login END -->
    <?php else : ?>
    <div id="guest-info">
     <div id="guest-name"><label for="author"><span><?php _e('NAME','piano-black'); ?></span><?php if ($req) _e('( required )', 'piano-black'); ?></label><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> /></div>
     <div id="guest-email"><label for="email"><span><?php _e('E-MAIL','piano-black'); ?></span><?php if ($req) _e('( required )', 'piano-black'); ?> <?php _e('- will not be published -','piano-black'); ?></label><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> /></div>
     <div id="guest-url"><label for="url"><span><?php _e('URL','piano-black'); ?></span></label><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" /></div>
    </div>
    <div style="margin-left: 10px;">
    <?php do_action('comment_form', $post->ID); ?>
    </div>
    <?php endif; ?>
    
    <div id="comment-textarea">
     <textarea name="comment" id="comment" cols="50" rows="10" tabindex="5"></textarea>
    </div>
    
    <div id="comment-submit-area">
     <input name="submit" type="submit" id="comment-submit" class="button" tabindex="6" value="<?php _e('Submit Comment', 'piano-black'); ?>" title="<?php _e('Submit Comment', 'piano-black'); ?>" alt="<?php _e('Submit Comment', 'piano-black'); ?>" />
    </div>
    
    <div id="input_hidden_field">
    <?php if (function_exists('comment_id_fields')) { ?>
    <?php comment_id_fields(); ?>
    <?php } else { ?>
    <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
    <?php } ?>
    </div>
    </form>
    </div><!-- #comment-form-area END -->
    
    <a href="#pngfix-right" id="back-top"><?php _e('Return top','piano-black'); ?></a>
    
    <?php endif; ?>
    </div><!-- #comment END-->

    dimartensson

    (@dimartensson)

    Well this is wrong:
    <a>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a>
    (the a-tag is closed before it’s receiving its’ parameters.

    I actually went and downloaded the original theme so I could compare, and here’s what it should be:
    <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a>

    However the error you got was from earlier in the file, so I’m not sure whether this was the cause. To be honest I’m half asleep atm so I don’t think I’ll be of much more help. ??

    EDIT:
    Just realized the site broke up just like that when posted without code brackets so your index.php is probably correct.

    Can’t think of why it looks like <?php post_class() ?> is outputting <php> though or if the function actually is outputting that.

    dimartensson

    (@dimartensson)

    It sounds like your themes folder was lacking the necessary privileges. Try setting the wp-content/themes folder to read-write by owner and setting the webserver as owner.

    On a linux server:
    # chmod 774 themes
    # chown apache:apache themes

    If you’re using a hosting provider they might have a way to edit permissions through their web interface.

    (You could set the infamous chmod 777 if you can’t change owner, but then you’d have to revert that immediately since that makes the folder writable to anyone!)

    dimartensson

    (@dimartensson)

    Umm, well you’ve got this in the html output: <div <php> id="post-54"> which should be <div id="post-54"> so something’s going on that shouldn’t…

    Could you post the contents of your theme’s index.php (locates in wp-content/themes/theme-name/)?

    Thread Starter dimartensson

    (@dimartensson)

    just to add, I can’t use the standard $_POST or $_GET either since it’s posting to another page and redirecting back. ??

    EDIT:
    Just realized I forgot to press the ‘edit’ button the last time.

    Anyways,
    A little more hunting tells me that $comment_content should work. It doesn’t.

    Am I to assume I need to rewrite WP code to get this to work and most likely introduce a couple of security flaws?

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