Forum Replies Created

Viewing 15 replies - 1 through 15 (of 16 total)
  • Thread Starter shinchook

    (@shinchook)

    bump from late last night

    Thread Starter shinchook

    (@shinchook)

    Ok more information…

    I found out that if my title goes over 2 lines in the box it pushes the one below it down to the following row.

    Plz help. can I get the title to truncate?

    Thread Starter shinchook

    (@shinchook)

    bump plz

    Thread Starter shinchook

    (@shinchook)

    ok got somewhere with the posts and got them to truncate. I still need help with these “popular posts” section. Here is the code for popular-posts.php

    <!– Most Popular Posts –>
    <div style=”padding-top:5px;height:285px”>
    <div class=”Block”><div class=”Block-tl”></div><div class=”Block-tr”><div></div></div><div class=”Block-bl”><div></div></div><div class=”Block-br”><div></div></div><div class=”Block-tc”><div></div></div><div class=”Block-bc”><div></div></div><div class=”Block-cl”><div></div></div><div class=”Block-cr”><div></div></div><div class=”Block-cc”></div><div class=”Block-body”><div class=”BlockHeader”><div class=”header-tag-icon”><div class=”BlockHeader-text”>
    Popular Posts
    </div></div><div class=”l”></div><div class=”r”><div></div></div></div>
    <div class=”BlockContent” style=”margin-left:-10px;margin-top:-10px;margin-bottom:10px;”><div class=”BlockContent-body”>

    <?php sb_get_popular_posts(6, ‘<div class=”Post” style=”width:360px;height:60px;overflow:hidden;margin-bottom:0px;float:left;”><div class=”Post-tl”></div><div class=”Post-tr”><div></div></div><div class=”Post-bl”><div></div></div><div class=”Post-br”><div></div></div><div class=”Post-tc”><div></div></div><div class=”Post-bc”><div></div></div><div class=”Post-cl”><div></div></div><div class=”Post-cr”><div></div></div><div class=”Post-cc”></div><div class=”Post-body”><div class=”Post-inner”><div class=”PostContent” style=”margin-left:-5px;margin-top:-5px;”>’,'</div></div></div></div>’,true); ?>

    </div></div></div></div>
    </div>

    is there anyway to replace or modify the output part to just show the title of the post? I tried taking things out and the whole site’s template and sizes get thrown off.

    thx

    Thread Starter shinchook

    (@shinchook)

    Thanks a lot! I think this may help me with most of my issues. we will see when I get home from work. If not Ill post again.

    Thread Starter shinchook

    (@shinchook)

    ok one more time then I give up

    Thread Starter shinchook

    (@shinchook)

    bump it

    Thread Starter shinchook

    (@shinchook)

    <?php get_header(); ?>
    <div class=”contentLayout”>

    <!– Featured Posts –>
    <?php include (TEMPLATEPATH . “/featured-posts.php”); ?>

    <!– 4 Popular Posts –>
    <?php include (TEMPLATEPATH . “/popular-posts.php”); ?>

    <div class=”content”>

    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>

    <div class=”Post” style=”width:47.55%;float:left;”><div class=”Post-tl”></div><div class=”Post-tr”><div></div></div><div class=”Post-bl”><div></div></div><div class=”Post-br”><div></div></div><div class=”Post-tc”><div></div></div><div class=”Post-bc”><div></div></div><div class=”Post-cl”><div></div></div><div class=”Post-cr”><div></div></div><div class=”Post-cc”></div><div class=”Post-body”><div class=”Post-inner”>
    <h2 class=”PostHeaderIcon-wrapper”><img src=”<?php bloginfo(‘template_url’); ?>/images/PostHeaderIcon.png” width=”24″ height=”24″ alt=”PostHeaderIcon”/> ” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title(); ?></h2>

    <?php if (!is_page()): ?>
    <?php endif; ?>
    <div class=”PostContent”>
    <div style=”height:120px;overflow:hidden;”>
    <?php $image = get_post_meta($post->ID, ‘img’, true);
    if ($image == ”) : ?>
    <?php else : ?>
    ” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”>
    <img class=”alignleft” style=”margin-right:2px;” width=”80px” height=”80px” src=”<?php echo $image; ?>” alt=”<?php the_title_attribute(); ?>” />

    <?php endif; ?>
    <!– <?php the_content(‘Read the rest of this entry »’); ?> –>

    <div>
    <?php the_excerpt(); ?>
    <!–<h2>Please click title to read more….</h2>–>
    </div>

    </div>
    “><span class=”PostMetadataFooter” style=”float: right;border: 1px solid #1E1B14;”>Read More</span>

    </div>
    <?php if (!is_page()): ?>
    <div class=”PostMetadataFooter”>
    <img class=”metadata-icon” src=”<?php bloginfo(‘template_url’); ?>/images/PostDateIcon.png” width=”17″ height=”18″ alt=”PostDateIcon”/> <?php the_time(‘F jS, Y’) ?><?php edit_post_link(‘Edit’, ‘ | ‘); ?>
    <img class=”metadata-icon” src=”<?php bloginfo(‘template_url’); ?>/images/PostCategoryIcon.png” width=”18″ height=”18″ alt=”PostCategoryIcon”/> <?php the_category(‘, ‘) ?> | <img class=”metadata-icon” src=”<?php bloginfo(‘template_url’); ?>/images/PostCommentsIcon.png” width=”18″ height=”18″ alt=”PostCommentsIcon”/> <?php comments_popup_link(‘0 »’, ‘1 »’, ‘% »’); ?>
    </div>
    <?php endif; ?>

    <?php if (is_single() && !is_page()): ?>
    <div class=”navigation”>
    <div class=”alignleft”><?php previous_post_link(‘« %link’) ?></div>
    <div class=”alignright”><?php next_post_link(‘%link »’) ?></div>
    </div>
    <?php comments_template(); ?>
    <?php endif; ?>
    <?php if (is_page()) edit_post_link(‘Edit this entry.’, ‘<p>’, ‘</p>’); ?>
    </div>
    </div>
    </div>

    <?php endwhile; ?>
    <!– Page Navigation –>
    <?php include (TEMPLATEPATH . “/navigation.php”); ?>
    <?php else : ?>
    <h2 class=”center”>Not Found</h2>
    <p class=”center”>Sorry, but you are looking for something that isn’t here.</p>
    <?php endif; ?>
    </div>

    <!– Right Sidebars –>
    <?php include (TEMPLATEPATH . ‘/sidebar.php’); ?>

    </div>

    <div class=”clear-float” ></div>

    <div>
    <!– Footer bar –>
    <?php include (TEMPLATEPATH . “/footer-bar.php”); ?>
    </div>

    <?php get_footer(); ?>

    Thread Starter shinchook

    (@shinchook)

    Its a plugin I installed outside of the theme called cricket-moods. There is a lot of code so I won’t post it here.

    As far as the “…” if you look at the code above all its doing is hiding anything that doesn’t fit in the box height. I actually sized it down a bit from the original and noticed that if i put in 125px half of the bottom row of text peaks out from the bottom. So I guess the text is still there it is just being hidden. Do you know how I can truncate the text so that all text over so many lines gets truncated and a “…” gets put on the end?

    Also, in your extra, I’m still semi-noobish when it comes to coding. I’ve been reading lots of books and tutorial but am no way a pro. That last section is getting a bit out of my knowledge can you explain in easy mode?

    Thx again your a big help.

    oh yeah and while I have someone listening who has seen the site… if you look at the upper right you will see the popular posts section. it seems to be giving me a similar issue as I was having with my posts at the start of this conversation. ill post the code in the next message for my “popular-posts.php”

    Thread Starter shinchook

    (@shinchook)

    Also… is there anyway to get the text that get “hidden” to have a “…” at the end?

    my code is:

    <div style=”height:120px;overflow:hidden;”>

    this is what determines the height of the boxes and also how much is cut off at the bottom of the post preview. Can I add anything to it to put a “…” at the end somewhere?

    Thx again

    Thread Starter shinchook

    (@shinchook)

    Current Mood: MischievousSo I downloaded some cool plugin for user pictures and thought everything was super. That was until I realized that everyone can have an avatar except me… the admin… the owner of the page. ARG!

    If you read the actual post a emoticon will come up with the mood selected by the poster. When it shows up on the preview there is no space between the written out version of the mood icon and the actual post text.

    Thanks again

    Thread Starter shinchook

    (@shinchook)

    Nevermind, it works exactly like I wanted except now with the mood post plug in. it show the mood in text with no space before the post text. Hmmmm solve one get another ??

    Thread Starter shinchook

    (@shinchook)

    Thanks a bunch! this work kinda like I want it to. Ultimately the problem I’m having is that if I have an image in the post the parameters for the image are showing up at the beginning of the text. I figured if I just had it show the excerpt I could solve the issue. Then I noticed that if I don’t have an excerpt it still shows the image parameters when it defaults to the original post text. So I figured I could try to find a way to print the “Click to read more” if there isn’t an excerpt to totally prevent the whole image parameters from printing before the post text.

    Check out the site ill put an image in the post of one without an excerpt

    https://designsbyjot.com

    Thread Starter shinchook

    (@shinchook)

    Thx ill try that asap.

    has anyone used Themedreamer? is it worth buying? I’m very visual and being able to see what I’m coding and how it would look might make it easier to me.

    Thread Starter shinchook

    (@shinchook)

    bump edit

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