Forum Replies Created

Viewing 10 replies - 31 through 40 (of 40 total)
  • Forum: Fixing WordPress
    In reply to: Rewrite Rule Bug

    No need to upgrade Apache. Check out
    https://isaacschlueter.com/plugins/i-made/lucky-13-rewrite/

    I wrote a plugin that allows me to use %category%/%postname% permalinks in Apache 1.3 without any trouble whatsoever.

    DualRavens:
    You have to install WordPress into the same database that you use for b2evolution in order for this to work. Don’t worry about overwriting anything: the wordpress tables are wp_ and the b2evo tables are evo_, so they shouldn’t conflict by default.

    Is this a problem? If so, I could add that option to the importer. I’m going to be publishing a new version of it soon (ie, in the next few days/weeks.) If you’d like an early copy, send an email to any address of your choosing at IsaacSchlueter.com.

    Try this:
    <?php
    $my_query = new WP_Query('category_name=featured&showposts=1');
    while ($my_query->have_posts()) : $my_query->the_post();
    $featured_post = $post; // save the feature post for later...
    endwhile; ?>
    <?php
    if (have_posts()) :
    while (have_posts()) :
    the_post();
    if( $post->ID == $featured_post->ID ) continue;
    update_post_caches($posts);
    ?>
    <!-- Do stuff with your regular posts... -->
    <?php
    endwhile;
    endif;
    if( $featured_post ):
    $post = $featured_post;
    ?>
    <!-- Do stuff with your featured post... -->
    <?php
    endif;
    ?>

    Thread Starter isaacschlueter

    (@isaacschlueter)

    I think I might have solved my own problem. This .htaccess handles everything, without the need for a separate script. (Note: if you haven’t installed to the /wp/ directory, then you’ll want to replace all instances of /wp/ with your wordpress directory.)

    Sorry for taking up space in the forum, but hopefully this thread will be a helpful search result for someone:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /wp/
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [S=39]
    #RewriteRule ^(.*)$ /wp/uricruncher.php
    RewriteRule ^([0-9]{4})/feed/(feed|rdf|rss|rss2|atom)/?$ /wp/index.php?year=$1&feed=$2 [QSA,L]
    RewriteRule ^([0-9]{4})/(feed|rdf|rss|rss2|atom)/?$ /wp/index.php?year=$1&feed=$2 [QSA,L]
    RewriteRule ^([0-9]{4})/page/?([0-9]{1,})/?$ /wp/index.php?year=$1&paged=$2 [QSA,L]
    RewriteRule ^([0-9]{4})/?$ /wp/index.php?year=$1 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/feed/(feed|rdf|rss|rss2|atom)/?$ /wp/index.php?year=$1&monthnum=$2&feed=$3 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$ /wp/index.php?year=$1&monthnum=$2&feed=$3 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/page/?([0-9]{1,})/?$ /wp/index.php?year=$1&monthnum=$2&paged=$3 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/?$ /wp/index.php?year=$1&monthnum=$2 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/feed/(feed|rdf|rss|rss2|atom)/?$ /wp/index.php?year=$1&monthnum=$2&day=$3&feed=$4 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$ /wp/index.php?year=$1&monthnum=$2&day=$3&feed=$4 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/page/?([0-9]{1,})/?$ /wp/index.php?year=$1&monthnum=$2&day=$3&paged=$4 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/?$ /wp/index.php?year=$1&monthnum=$2&day=$3 [QSA,L]
    RewriteRule ^(.*)$ /wp/index.php?error=404/$1 [QSA,L]
    </IfModule>

    Re: WordPress’s Edit Preview
    You can get around this by saving your post as “private”, and then viewing it on your site, and clicking “Edit” if you don’t like how it turned out.

    Yep. This is the only effective way to prevent harvesting.

    It’s pretty easy to write a program in VB that will create an Internet Explorer web browser control, and then have it spit out the documentElement.InnerHTML property to harvest for email addresses. (In fact, if one were to write an email-harvesting bot, this would be the easiest way to do it, imo.) The InnerHTML property exposes the document *after* it’s been parsed by the browser, so any method that a browser can see through (i.e., encoding your email with javascript or some such method) is going to expose your address to the harvesters.

    The only safe methods are using turing tests like
    [email protected] (that’s kind of annoying, because someone must then edit the address in their email program, and once enough people use the same sort of thing, then the bots start getting wise to it) or a contact form that keeps your address hidden server-side.

    Hey, this script seems to work really well. I’ve been playing around with it to try to get my stuff over so that I can swap progs without much trouble some time soon.

    Just a few caveats:
    If you have a ‘ in the name of a category, it’s going to choke. Easy enough to work around, since I only have one cat that has a ‘ in it, but there ought to be a way to escape these, no?

    Also, it would be absolutely awesome if it didn’t just import the categories, but also imported the blogs as top-level categories, and then insert the categories themselves as children of the top-level blog category. That would be ideal, since WP categories can do just about everything that multiple blogs can in b2evo, and then I could keep all my permalinks (mostly) stable through the transition.

    I’ve got a lot going on the next few weeks, but if no one else can get to this sooner than me, then I’ll probably look into it.

    Anyway, thanks for the script! It’s going to make this a lot easier.

    Forum: Requests and Feedback
    In reply to: Linkblog
    Thread Starter isaacschlueter

    (@isaacschlueter)

    Hooray!!

    Yes, it’s EXACTLY like “snippets”. In fact, “snippets” could even be just another word for the same thing. I don’t like showing the post contents, since that allows me to fit more links there, and the primary purpose of my blog is to function as my location-independent bookmark list.

    It’s looking more and more like I’ll have to move… ??

    Forum: Requests and Feedback
    In reply to: Linkblog
    Thread Starter isaacschlueter

    (@isaacschlueter)

    Thanks for responding, podz.

    Not quite. I had actually seen that, and implemented it on my localhost WP blog, but it’s not exactly what I’m talking about.

    Asides show up in the main column of your blog. However, they don’t show up in the sidebar.

    No, what I’m saying is more like this:
    Take the things that WP calls a “Link”. https://codex.www.ads-software.com/Links_Manager
    Each link in the links manager has a few attributes: an ID, a title, a URI, etc.
    I want those things to be full-fledged blog posts instead.

    Now, if this means that I just don’t use the links manager, and instead post blogroll items into a particular category, and through some hackery goodness, pull all the posts from that category into the sidebar, that’s fine. Because then I’d be able to comment on my links, and others could comment on them as well. Losing out on OPML or BlogRolling is no biggie for me.

    If you look at the sidebar on my blog, then you’ll see what I’m talking about. Each link has a little icon that links to a permalink for that entry, where you can see my comments about the site, when it was added, and leave a comment of your own if you’d like. That’s because each link in the blogroll is an actual post, too.

    Does this come down to just requesting multiple blog support in WP? I hope there’s another way to do it, because some of the features in WP are pretty sweet, and I’d hate to just be another former-b2evoer who whines about multiple blog support.

    Forum: Requests and Feedback
    In reply to: Link Comments

    Is there a way to show a particular category INSTEAD of a blogroll?

    In the main blog, you’d show everything EXCEPT links, unless the “links” category is specifically requested.

    Then, in the sidebar, just show a list of all the titles of posts that are in the “links” category, along with a little box or something to click on to go to the permalink for that post.

    Anyone out there know how something like that might be accomplished?

Viewing 10 replies - 31 through 40 (of 40 total)