Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter surfacinglove

    (@surfacinglove)

    Yes I did try on Twenty Ten with ONLY this plugin installed. It’s definitely inconsistent depending on where it’s called (header, page, or sidebar). For sure, if there is ever more than one instance on a single page, only the first one’s register link will fire the popup. I’m still also seeing the “Please supply your username and password.” message depending on where I’m rendering the login form.

    I suggest you look into it a little further…?

    Thread Starter surfacinglove

    (@surfacinglove)

    I’m not too sure about that… I just updated to the latest WordPress last week or so, and it stopped working as described above since then.

    I’ve tried looking at the code and can’t see why it’s so inconsistent depending on where in the page it’s rendered… any other thoughts?

    Thread Starter surfacinglove

    (@surfacinglove)

    If I have all three showing (in header, in page, and in sidebar), the page and sidebar logins work, but the header still shows the message as if I haven’t entered anything.

    Also noticed that the redirect after login is not working. It’s just reloading the same page.

    Also the registration popup only work when clicking on the first instance of login form (header if all three, page if only page and sidebar). Other register links like to actual WP registration page.

    Also the registration popup is always giving the same message of:

    Please supply your username and password.

    Hope that helps narrow down the issue!

    Thread Starter surfacinglove

    (@surfacinglove)

    Just noticed it does allow login from the sidebar widget, but not when using a template or page tag.

    Thread Starter surfacinglove

    (@surfacinglove)

    Found the format I needed:

    <?php if (strtotime($post->post_date) > strtotime('-4 days')): ?> <b>NEW</b> <?php endif; ?>

    Thread Starter surfacinglove

    (@surfacinglove)

    I’ve tried this, and the functionality still isn’t working properly. Looking at the following example:

    Return posts for various date ranges:

    <?php
    //based on Austin Matzko's code from wp-hackers email list
      function filter_where($where = '') {
        //posts in the last 30 days
        //$where .= " AND post_date > '" . date('Y-m-d', strtotime('-30 days')) . "'";
        //posts  30 to 60 days old
        //$where .= " AND post_date >= '" . date('Y-m-d', strtotime('-60 days')) . "'" . " AND post_date <= '" . date('Y-m-d', strtotime('-30 days')) . "'";
        //posts for March 1 to March 15, 2009
        $where .= " AND post_date >= '2009-03-01' AND post_date < '2009-03-16'";
        return $where;
      }
    add_filter('posts_where', 'filter_where');
    query_posts($query_string);
    ?>

    How can I take what I have above and use the same functionality from this example in an if statement to add something extra if the date range is true? I still can’t get it quite right…

Viewing 6 replies - 1 through 6 (of 6 total)