Forum Replies Created

Viewing 15 replies - 1 through 15 (of 40 total)
  • Thread Starter jorgemarsa

    (@jorgemarsa)

    Thanks a lot, Jeremy. It works… with a little change: I had to change is_archive() for is_month(), and everything is perfect with this code:

    ‘<?php if (is_home()) {
    $logoimg=”[…]/images/img1.jpg”;
    }
    elseif (is_page()) {
    $logoimg=”[…]/images/img1.jpg”;
    }
    elseif (is_month()) {
    $logoimg=”[…]/images/img1.jpg”;
    }
    elseif (is_search()) {
    $logoimg=”[…]/images/img1.jpg”;
    }
    elseif (in_category(‘1’)) {
    $logoimg=”[…]/images/img2.jpg”;
    }
    elseif (in_category(‘8’)) {
    $logoimg=”[…]/images/img3.jpg”;
    }
    else {
    $logoimg=”[…]/images/img1.jpg”;
    }?>’

    Topic resolved. Thanks again, Jeremy.

    Thread Starter jorgemarsa

    (@jorgemarsa)

    Does anybody knows how to fix this problem, how to show the image I want in monthly archives and search results?

    Thread Starter jorgemarsa

    (@jorgemarsa)

    Yes, I tried. With is_archive(), is_month() and is_search() I don’t get the image I want, I get the image of the first post category (1 or 8) that shows in the page. Thanks anyway for your try, Simon. I will wait for any other help.

    Thread Starter jorgemarsa

    (@jorgemarsa)

    I really appreciate your help, Kafkaesqui, because this problem was a really pain in the ass to me. Thanks a lot.

    I drop here the fixed code to show to columns in the index and with the navigation (older posts) working:

    `<div id=”col1″>
    <?php if (have_posts()) : ?>

    <?php $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1;
    $my_query = new WP_Query(“category_name=Sociedad&showposts=12&paged=$paged'”);
    while ($my_query->have_posts()) : $my_query->the_post();
    $do_not_duplicate = $post->ID;?>

    […]

    <?php endwhile; ?>
    </div>

    <div id=”col2″>

    <?php $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1; query_posts(“cat=-2&showposts=9&paged=$paged”); ?>
    <?php while (have_posts()) : the_post(); ?>

    […]

    </div>
    <?php endwhile; ?>

    Thread Starter jorgemarsa

    (@jorgemarsa)

    Kafkaesqui, I realize that you are right. So I closed this thread, and drop the code of the solution y the other one:

    http://wordpress.org/support/topic/149427?replies=1#post-668228

    Thanks for your help.

    Thread Starter jorgemarsa

    (@jorgemarsa)

    Instead the tag php next_posts_link, I have tried also with posts_nav_link and previous_post, but I continue without navigation, always in the firs page of my index.php

    I have no experience with this theme. But I download de theme and I see than there is no navigation (previous posts) in the index archive in Ocean Mist. If you wanted the navigation, you would have to modify the theme. May be work this:

    Open your index.php archive and look for this lines in the code:

    <?php endwhile; ?>
    
    	<?php else : ?>
    
    		<div class="title">
    		  <h2>Not Found</h2>

    Well, you have to introduce the navigation in between in this way:

    <?php endwhile; ?>
    		<div class="navigation">
    		<div class="nav-left"><?php next_posts_link('&laquo; Older posts') ?></div>
    		<div class="nav-right"><?php previous_posts_link('Newer posts &raquo;') ?></div>
    		</div>
    	<?php else : ?>
    
    		<div class="title">
    		  <h2>Not Found</h2>

    I am not sure, but I hope it works for you (may be you will have to go to the css and write the code for navigation, nav-left and nav-right classes). But if you don’t want to work with the code and you want a navigation in your blog, then you will have to change the theme.

    Thank you, Otto42. I will use your explanation to talk to my hosting and we will see what they say.

    Forum: Themes and Templates
    In reply to: IE 7 headache

    Masto65, you get 24 errors at validator. But it could be something more simple: maybe your central posts css box is a litle big to IE. It is very usual how IE misunderstanding the measures of margin and padding, sometimes it is enough to substract a few pixels from the width of this box.

    I install the plugin cron-demo, but it seems the cron does not work. It does not send the e-mail, and when I clik to refresh this is the message: Cannot load cron-demo.php. Thank you, wpdprx, but I do not know how to do it after that.

    Thanks to you too, Otto42, but could you be more specific, because I do not know what “fixing the server” means, or what to do it to figure out. I talked to my hosting, but they said to me they do not see nothing extrange in my server (I have host other two domains and blogs with them and work perfect: one in the same machine with wordpress 2.0, and the other one in a diferent machine with the same wordpress 2.2.2) and they need something more specific to try to help me.

    Does anybody knows some way or at least a clue about how to resolve the problem when the future posts don’t appear in wordpress? Sorry if I insist, but it is a very serious problem to me.

    jonlandrum said that find the solution with this:

    Just edit wp-cron.php, comment out these two lines:

    ‘6 if ( $_GET[‘check’] != wp_hash(‘123456’) )
    7 exit;’
    and set up an hourly Cron job executing wp-cron.php using a CLI php binary like this:
    /usr/local/bin/php /users/home/USERNAME/web/public/wp-cron.php

    And it seems that worked for Terry too.

    But I don’t understand how to do it in wordpress 2.2.2. My archive is cron.php in which the most similar lines I have found are:

    ‘if ( $argyle )
    fputs( $argyle,
    “GET {$parts[‘path’]}?check=” . wp_hash(‘187425’) . ” HTTP/1.0\r\n”
    . “Host: {$_SERVER[‘HTTP_HOST’]}\r\n\r\n”
    );
    }

    function wp_cron() {
    // Prevent infinite loops caused by lack of wp-cron.php
    if ( strpos($_SERVER[‘REQUEST_URI’], ‘/wp-cron.php’) !== false )
    return;’

    What have I write exactly to fix the problem in those lines? I would appreciated any help, because I’m getting mad with this problem.

    Suddenly, I had this problem last week in one of my blogs: after almost two years without problems, future posts do not appear. I changed my wordpress version from 2.1.3 to 2.2.2, but the problem it is the same.

    I read what Otto42 said, and I went to my hosting. They said: ¿bad configuration? We need something more especific if you want us to help you. But the cuestion is that I had three domains and hostings with them and the other two blogs with wordpress work perfect (one of them in the same machine).

    May be you are right, Otto42, and it is not a problem with wordpress, but it is a problem and some of us can’t fix it.

    Thanks in advance to whoever can help me.

    Forum: Fixing WordPress
    In reply to: IE6 or other issue

    I see the site in IE6, IE7 and FF2

    Forum: Plugins
    In reply to: Adjust WP-Gatekeeper
    Thread Starter jorgemarsa

    (@jorgemarsa)

    I have Akismet, but I am tired of see the spam list everyday. I do not know Spam Karma 2 or Bad Behavior, but I heard that the last one stops some right comments too, and this is the reason I do not installed.

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