Forum Replies Created

Viewing 15 replies - 1 through 15 (of 25 total)
  • Forum: Fixing WordPress
    In reply to: Installation Stuck

    What do your web server logs say?

    Forum: Themes and Templates
    In reply to: Post coloring
    lyklev

    (@lyklev)

    A couple of }‘s are missing.

    an alternative, less error-prone way is the fortran-style:


    <?php if ( in_category('3') ) : ?>
    <div class="post-cat-three">
    <?php elseif ( in_category('4') ) : ?>
    <div class="post-cat-four">
    <?php elseif ( in_category('n') ) : ?>
    <div class="post-cat-n">
    <?php else : ?>
    <div class="post">
    <?php endif; ?>

    lyklev

    (@lyklev)

    Pings and trackbacks fall in the same category and basically do the following: say you write a very interesting article on your website. I could comment on it, but suppose it is rather lengthy, and I want to post it on my own site instead.

    In that case I write an article on my own blog, and “trackback”, so I take the trackback link from your post, put it in the “trackback” field of my own post (in my own “write” page) and:

    – my post will appear on my own site as my own post
    – my post will appear on your site as a comment to the post

    pings are more sophisticated because they use a xml-rpc protocol, but basically do the same.

    The beauty of this system has one downside: you can disable comments to avoid spam, but when trackbacking is allowed, comments (and comment spam) can still come through from unregistered users.

    lyklev

    (@lyklev)

    Ok. Ok. I confess.

    lyklev

    (@lyklev)

    You can also do it without hacking wp-mail.php:


    wget -O /dev/null https://yoursiteetc/wp-mail.php

    (normally, wget outputs to a file, now it outputs to the unix drain)

    lyklev

    (@lyklev)

    It’s in index.php and single.php. (and page.php?)

    lyklev

    (@lyklev)

    You simply can’t put the header code into the css-file. The header is php-code, and is actually a small program, while the css is just css and will never get executed.

    The problem is that in your css you need the complete url of the image, wordpress directory and probably hostname too. The code in the header.php does this for you.

    If you want to do a css-only image, that is ok as long as you put the complete path (including the path to the theme directory) in your css. This makes it impossible to package your theme as a bundle and put it on another site, which is the reason it was not put in the css.

    lyklev

    (@lyklev)

    It seems like you have a couple of theme files, you just can’t get them installed. That seems like something simple that you missed. Can you describe your problem more precisely? When you stare at something too long, you miss the small things, as we all know too well ??

    In case you really need someone to look at it, do you have ssh access? ftp access?

    lyklev

    (@lyklev)

    As far as I could see, if a file in a theme is missing it is automatically taken from the default. So yes, you should be able to copy it from the default and put it in your theme.

    If you did a lot of work on your own theme, you probably need to hack the new file to fit in your theme.

    lyklev

    (@lyklev)

    WordPress allows you to use a prefix, which you can change. All your tables in one database get the prefix you set in wp-config.php. This way you can put more than one wordpress blog in the same database, by setting different prefixes for different blogs.

    lyklev

    (@lyklev)

    the_ID() echoes instead of returning a value, right? That is what gives an error.

    I haven’t tried it, but try
    $id = $post->ID;
    and let us know.

    lyklev

    (@lyklev)

    The source is yours to play with. Just add them.

    lyklev

    (@lyklev)

    I noticed it too. In page.php, add the following line, right under “edit_post_link…” on line 16:


    <?php comments_template(); ?>

    before the next div.

    lyklev

    (@lyklev)

    Oh, your #menu is at 950 pixels from the left, while your menu is 160-something pixels wide, making your page 1100 pixels wide, which is too much for my 1024 pixels wide (and still most-used) screen. Did you mean 850 pixels from the left?

    lyklev

    (@lyklev)

    Your source code reveals:

    <li><li><a href="https://windowssecrets.com/041202/#top1">Mozilla FireFox 1.0 Secrets</a></li>

    Somehow, you generate an extra li, causing the bullet.

    How do you generate the list? It has no closing div either.

    So it is not a CSS problem, but either a html problem or a php-problem.

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