Forum Replies Created

Viewing 15 replies - 16 through 30 (of 33 total)
  • Forum: Plugins
    In reply to: External logged-in check
    Thread Starter weasello

    (@weasello)

    Yep, I’m making myself a little plugin for this, in WP 1.5.2. That cookie code you posted there is something similar to what I had several hours ago before I abandoned that path, but it is probably the cleanest solution for me. Now that I know you got it to work I should keep hacking at it ??

    Of course, just to be difficult, the code doesn’t work ?? $user_login always returns null. I used an exact cut n paste of the one above. :/

    Forum: Plugins
    In reply to: External logged-in check
    Thread Starter weasello

    (@weasello)

    Yep, I read through the whole post, found the above code works best for my needs. I’ve adjusted it to this for maximum testing flexibility:

    global $user_login, $user_ID;
    get_currentuserinfo();
    if($user_ID != ” || $user_login) {

    … Never triggers ??

    Forum: Plugins
    In reply to: External logged-in check
    Thread Starter weasello

    (@weasello)

    I might just need to say “include X” to fix this, but I’m not sure what ?? Code I used:

    global $user_login;

    get_currentuserinfo();
    if($user_login) {

    Forum: Plugins
    In reply to: External logged-in check
    Thread Starter weasello

    (@weasello)

    The code looks great and I tried it out, but $user_login variable continues to be empty no matter what the login state. I’m not sure if it’s behaving the same as the other thread, because this process does not (currently) include any WP libraries.

    Forum: Fixing WordPress
    In reply to: RSS is Backwards!
    Thread Starter weasello

    (@weasello)

    I opted for the sexy code ninja method, but failed due to implications of my deeply hacked and jury-rigged WordPress install.

    The Plugin *almost* did the trick, but I suppose any further Q&A on that should be directed towards that plugin author ?? Thx alot!

    (for reference: CQS plugin doesn’t have the ability to display the latest date’s posts sorted ASCendingly, as sorting by date ASC will bring up your FIRST ever post instead of the first post for the last day. ??

    Forum: Fixing WordPress
    In reply to: RSS is Backwards!
    Thread Starter weasello

    (@weasello)

    Reasoning behind the line 468 change was that I have a blog, which is updated daily. I want only the current days’ articles posted, in the order they were posted.

    Changing that DESC to ASC made it work perfectly the way I wanted it to, and methinks it’s what has also reversed the RSS displayage.

    Forum: Fixing WordPress
    In reply to: RSS is Backwards!
    Thread Starter weasello

    (@weasello)

    Line 468 of Classes.php – It used to be “DESC” and I changed it to “ASC” there. Sorry, had it backwards ??

    Thread Starter weasello

    (@weasello)

    And of course, the problem is simply at the very VERY end of my plugin file I had an extra whitespace.

    ?>_

    *smacks forehead*

    Thread Starter weasello

    (@weasello)

    For reference, https://paste.uni.cc/8494 that’s one of my plugins (they’re both very similar) (sans-echo commands).

    Thread Starter weasello

    (@weasello)

    I cleared my cookies, restarted my comptuer, and double checked – no temp internet files whatsoever on my machine at home. IE still won’t login for me! Grar!

    A cookie was placed on my system but it isn’t picking it up ??

    I did some digging and may have found a cause, but don’t know how to get around it – my site’s main page (as listed in options) is

    https://www.tehblitz.org/blitz.php

    But the cookie has it listed as

    https://www.tehblitz.org/blitz.php/

    I can see FireFox still working by trimming extraneous or error data, and IE not following suit. ?? Any way to trim the trailing slash? Do you think that would help?

    Thread Starter weasello

    (@weasello)

    Not only did that work, but it fixed a few other bugs as well ?? thanks alot!

    Thread Starter weasello

    (@weasello)

    I’ll ignore those browser errors for now then ??

    My site layout is a little complicated which makes the code look a little more messy, so perhaps a visual would help as well.

    https://paste.uni.cc/8462

    https://www.tehblitz.org/index.php is a page that (should) show 7 individual posts from the previous 7 days. Using the code examples you gave, I constructed an external function (kinda like a plugin) that I could easily call for each of the days of the week.

    For example, for the MONDAY column, I simply put “sa_excerpt(‘Mon’);” into the index.php file and the code does the rest.

    A lot of the code I have in the pastebin right now is me figuring out what the date is for last monday and other custodial work. But like I said, I inserted an ECHO tag into Line 29.

    at Line 29, $count has a value of -1, and $first_post_ID has a value of *null*. As you can see by visiting my page, it is selecting the date and displaying the posts properly – it’s simply not selecting the first post properly, so the rest of my code *should* be good.

    Thanks a lot for the help!

    Thread Starter weasello

    (@weasello)

    Uh oh, this is even more wacky now!!

    I havent’t figured out the above issues yet, but I’ve been working away at designing my site around it (hoping a solution will come along!)

    But this is just messed up. Right now my site is displaying ALL the posts from the selected day instead of just the first post, right? But the weird thing, is that it’s also displaying FUTURE, POST-DATED posts… But ONLY in internet explorer!!! FireFox isn’t showing them at all.

    I’m guessing this is a cookie-related issue as there’s no browser-specific code that can alter that type of thing. I’m hoping that shrinking it down to one post by fixing the above problems will make this go away, but just wanted to leave that interesting tidbit out there :/

    No guarantees, but in your CSS try setting your main column to:
    float: left;
    and your navbar to
    float:right;
    That should solve your problems. Welcome to the wonderful world of CSS Positioning. There are a lot of help guides and examples out there – google for “CSS positioning tutorial” and you should get a lot of really helpful links. I reference it every few days ??

    I agree with Moshu.

    Set left/right columns to 100px (or whatever suits your taste), and the center column will automatically resize to fit the available area.

    Almost everyone I know (including parents) are up to 800×600 at least, and 95% of people I know are up to 1280×1024. For sake of keeping everything civil, I design my site to be 770 pixels wide (leaving room for scrollbars!) and everything dynamically fits inside that bounding box.

    For those with a larger resolution, it gives a neat “sheet of paper on a table” effect that is familiar to most blogging atmospheres.

    I could easily replace all my pixel references with % references, which would allow the page to dynamically fill the screen even at ultra-high resolutions, but I am also a design freak and I don’t want my pargraphs of text stretched out to be one line tall at 100101×150331 resolution. ??

Viewing 15 replies - 16 through 30 (of 33 total)