Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter jweaks

    (@jweaks)

    If I call the folder, I get a forbidden page, that’s good, but I can call the files. It’s weird. I would think the htaccess would do the trick, but it’s not working. I’ll look for a blocking script.

    jw

    Thread Starter jweaks

    (@jweaks)

    aha!…

    I used this hack posted by “pati” at the get-a-post website:

    “…try putting parentheses around the last $query_suffix string, like this: $query_suffix = “(post_status = ‘publish’ OR post_status = ’static’)”;

    That fixed it!

    Thread Starter jweaks

    (@jweaks)

    Okay, I’m getting warm…

    I installed the get-a-post plugin and I added this code just above the Loop:

    <?php global $user_ID; if (!$user_ID): ?>
    <p>Hello guest :-)</p>
    <?php get_a_post('post#'); ?>
    <h3><?php the_title(); ?></h3>
    <?php the_content(); ?>
    <?php endif; ?>

    When I’m logged in, it does nothing… that is good.

    When I log out, I see the ‘Hello Guest’ text, so I know it’s picking up that I’m not logged in, but…

    instead of the post I want to see it loads my contact form!?

    I tried different posts by number and by slug… with and without quotes… still nothing but the contact form.

    I have no idea why it would grab the Contact Form!?

    Definitely on the right track, but I must not be implementing the get-a-post properly.

    Thanks,
    jw

    On my site the default user level is 1. I think I caused it to be that way by changing the writing option to “May submit drafts for review.”

    I think that bumps new registrants up to 1 so they can submit. I’ll bet level 0 is the default at installation.

    If you change write permissions to “May publish…” I’ll bet the new user level goes up again. -jw

    Thread Starter jweaks

    (@jweaks)

    Oooops… please delete this thread, accidental keypress.

    Thanks vkaryl. That thread help me find a solution. I posted what I did over there.

    I think this is a great idea. Ideally it would direct you back to where you were.

    The line CF identified is helpful. At first, it appeared to have no effect and then I realized the code has a user = level 0 conditional. So I changed that redirect by putting a semi-colon after (‘siteurl’) and then a space and then slash-slash to comment out the rest of the line. That way I can undo it easy. That redirects level zeros to the home page.

    Then I copied the two lines, the “if” line and the “$redirect” line and then pasted them back in below the original. I then changed that user level from 0 to 1.

    Default users are, I believe a level 1, so zeros and ones now get redirected to the home page.

    That’s probably not the correct PHP way to do it, but it works.

    I’m using the CG-Feedread plugin at one of my sites with great success. It took some experimenting to get it like I wanted it. There is a “feedread-extras” folder in the zip that has code for handling multiple feeds. You have to figure out how to wipe the cache to be able to test different configurations. https://www.anailinhisplace.net

    Thread Starter jweaks

    (@jweaks)

    Thanks again for the help. I’ve learned a lot about CSS. I took the best of what I learned and started my own 3 column theme… aiming to get the size control and consistency I wanted. The theme has a way to go, but it’s getting there…www.anailinhisplace.org

    I’m wondering about about #2 myself. It seems like a really good idea to route the user to the index instead of the admin. A read only or read/comment only user should never see the admin.

    Thread Starter jweaks

    (@jweaks)

    Holy cow! What a tangled mess.

    Thanks for all the help. I am sorting through the recommendations. The links are great. I’m already trying some changes. The difference between IE and FF is still annoying. The fonts in IE, even at 76%, still look way to big.

    Forum: Themes and Templates
    In reply to: Sidebar issues

    I’m having the same problem. I don’t know if this will help anyone, but…

    it appears even if you shrink the widths, margins, etc… you can still bust the size depending what is INSIDE the box. I had a hyperlink in a post that was wider than the box and it was not being truncated. IE stretched to fit the whole thing regardless of established widths… therefore the sidebar broke and dropped to the bottom. So, look and see if some long text, like a link is forcing the box wide.

    I cut the link and voila… the sidebar fell back into place.

    Sweet, I was looking for this!

    It also works for wp_loginout. I wanted them in a horizontal header bar and could not get it to work until I read this.

    I’m using the Blogrolling PHP code in my sidebar and it works fine. The problem is, it does not validate. Is there a simple way to hack that or to “escape” the problem characters?

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