Forum Replies Created

Viewing 15 replies - 1 through 15 (of 164 total)
  • Thread Starter khaled

    (@khaled)

    No one got any ideas? I’ve posted this on the UTW forum and there doesn’t seem to be any love there either…

    I’m looking for the same thing as well actually. I’m using this plugin here to make the distinction between the home page and the blog page.

    http://www.ilfilosofo.com/blog/home-page-control

    There is of course this page:
    http://codex.wordpress.org/Creating_a_Static_Front_Page

    I’m looking to get the excerpt on the home page and the title of the most recent post as well, which that page doesn’t tell how to go about doing that.

    Thread Starter khaled

    (@khaled)

    scratch that khaled really needs to learn how to read the documentation and wordpress itself. Feel sooo dumb :), it’s all in the codex.

    Thread Starter khaled

    (@khaled)

    sh!t :), that’s no good :).

    Thread Starter khaled

    (@khaled)

    Yes. That’s what seems to be the cause of the problem.

    Thread Starter khaled

    (@khaled)

    I should really give a bit more explanation.

    Basically I’m trying to sort out a specific folder that has nothing to do with the main install. So I’m not really touching the main htaccess file in the root folder.

    So if I’ve got folder home/mysite/dev, I’m putting another .htaccess and .htpword (or whatever it’s called) into the dev folder. Should I be editing the main root htaccess files?

    Unfortunately the second I do that WP doesn’t seem to like that. How do I password protect this particular folder?

    Thread Starter khaled

    (@khaled)

    Thanks for the feedback Joshua, I’ve kind of solved the issue, although not in the standard way. I’ve just run an if statement in looking for a particular category, if it sees it then it wraps it in a div, if it doesn’t exist then it’s the standard loop.

    Nothing really fancy…haven’t tested it but I shouldn’t think it’s a problem….if it becomes one, I’ll be back :).

    Thread Starter khaled

    (@khaled)

    Sorry to keep bringing this up, but could someone on Dreamhost try this out and see if they’re having the same problem. Will the following plugin install, and if it does does it return any values?

    http://dev.wp-plugins.org/wiki/wp-shortstat

    Here’s a picture of what I get:
    http://www.brokenkode.com/pictures/blog/shortstats.jpg

    Thread Starter khaled

    (@khaled)

    I was actually hoping for a much simpler implementation, like -2 or something :). Oh well Thanks Ian.

    Thread Starter khaled

    (@khaled)

    Phu you’re the man. Yeah just getting things sorted out for it. I’ll probably be posting a lot on the forums in the coming days, thanks for the heads up 🙂

    Thread Starter khaled

    (@khaled)

    okay I’m nearly there, just need an extra nudge in the right direction. Basically what’s happening is that in the second loop the title is showing up right, but the content is actually the first entry in all the rest of the categories etc. So say I had 5 posts in total one in the featured category. The title of the featured category shows up in the place it’s meant to but also the very first post as well.

    here’s the code I’m using in the second loop, I’m sure I’m missing something fundamental here…


    <div id="primaryContent">

    <?php
    $my_query = new WP_Query('category_name=gallery&showposts=1');
    while ($my_query->have_posts()) : $my_query->the_post();
    $gallery_post = $post; // save the feature post for later...
    endwhile;
    ?>

    <?php
    if (have_posts()) :
    while (have_posts()) :
    the_post();
    if( $post->ID == $gallery_post->ID ) continue;
    update_post_caches($posts);
    ?>

    <div class="post" id="post-<?php the_ID(); ?>">
    <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    <small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>

    <div class="entry">
    <?php the_content('Read the rest of this entry &raquo;'); ?>
    </div> <!-- entry -->

    <p class="postmetadata">Posted in <?php the_category(', ') ?> <strong>|</strong> <?php edit_post_link('Edit','','<strong>|</strong>'); ?>
    <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
    </div><!-- post -->

    <?php comments_template(); ?>
    <?php endwhile; ?>

    </div><!-- primaryContent -->
    <hr />

    <div id="gallery">

    <?php
    if( $gallery_post ):
    $post = $gallery_post;
    ?>

    <div class="post" id="post-<?php the_ID(); ?>">
    <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    <small><?php the_time('F jS, Y') ?></small>

    <div class="entry">
    <?php the_content(''); ?>
    </div> <!-- entry -->

    </div><!-- post -->

    <?php endif; ?>
    </div><!-- gallery -->

    Thread Starter khaled

    (@khaled)

    Thanks Isaac, that looks good. I’ll test it out later today.

    Forum: Themes and Templates
    In reply to: CSS Opacity
    Thread Starter khaled

    (@khaled)

    Actually found this reply which basically tells me to go back to the drawing board :), simply put it can’t be done properly.

    Go to this forum page

    Opacities (-moz-opacity in earlier moz versions, -khtml-opacity in saf1.1, opacity in current saf and moz versions, filter:alpha(opacity:#) in iew) are set on a whole element, not just the background. Opacities are nesting but not inheriting, meaning that an element with 50% opacity nested within another element with 50% opacity will end up being 25% opacity. According to the relevant CSS specs, opacities are normalised to be within the 0%-100% range, thus you can never get any part of an element to have a higher opacity than the base opacity of it’s ancestors. If you want to use partial opacities for only backgrounds, there are today three choices: use CSS3 RGBA colours for the background (saf1.2 only), use alpha channel PNG for background (moz, op, saf, iem but not iew), or use a gif where you mix transparent and non-transparent pixels so that it looks like a partial transparency. There is a trick that might work for getting alpha channel PNG to work in ie5.5w and ie6.0w, that relies on using the AlphaImageLoader filter to generate the proper background opacity, though.

    Forum: Themes and Templates
    In reply to: CSS Opacity
    Thread Starter khaled

    (@khaled)

    Hey Phu, already checked those, I’m obviously missing something fundamental, so here’s some code maybe someone can see my flaw:

    Now behind this div is the background image that I would like it to see through to essentially.

    CSS:
    #sidebar{
    margin: 220px 2px 0 2px;
    width: 265px;
    float: right;
    background: #F2F2F2 url(images/sidebar.gif) repeat-y;
    filter:alpha(opacity=70);
    -moz-opacity:0.7;
    opacity: 0.7;
    font-size: 10px;
    color: #424242;
    }

    .sidebaritems{
    margin: 10px 10px 0 10px;
    padding: 0 0 20px 0;
    background: url(images/seperator.jpg) repeat-x bottom;
    }

    .emmortel{
    margin: 10px 0 0 0;
    height: 49px;
    background-color: transparent;
    }

    .emmortel a {
    display: block;
    background: #fff url(images/emmortelb&w.jpg) no-repeat ;
    height: 49px;
    width: 244px;
    margin: 0 auto;
    }

    .emmortel a:hover {
    background: url(images/emmortelcolour.jpg) no-repeat ;
    }

    HTML:
    <div id=”sidebar”>
    <div class=”sidebaritems”>
    <div class=”emmortel”> </div>
    </div>
    </div>
    </div>

    What happens is that due to the original declaration, ALL the subsequent divs have that transparency slapped onto them as well. Including all hover images etc (and normal images involved).

    Forum: Themes and Templates
    In reply to: CSS Opacity
    Thread Starter khaled

    (@khaled)

    Yeah but I’ve seen examples of working for safari, mozilla and ie. You just need to declare it 3 times. Also just tried having opacity 1 in the centre div, doesn’t seem to work…

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