Forum Replies Created

Viewing 15 replies - 31 through 45 (of 100 total)
  • michael_

    (@michael_)

    No, just in XIfModule and X/IfModule. I did not post it as this forum will discard it as it thinks it is invalid HTML code…

    You can use it in the same manner:
    #– Your rewrite
    XIfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^123(|/)$ /?id=123 [L,R=301]
    X/IfModule>

    michael_

    (@michael_)

    Some SEOs think that in permalinks a trailing *.html is better than just having a folder “site.com/cat/”, so they think “site.com/cat.html” would be better. You can achieve this by changing the permalinks e.g. to “%postname%.html”.
    However, as far as I know do you have no option to change it for pages in WP.
    Also, I think “*.php” does not make sense.

    michael_

    (@michael_)

    The same:
    #– Your rewrite
    XIfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^none(|/)$ / [L,R=301]
    X/IfModule>

    Where both “/none/” and “/none” are being redirected as it considers trailing slashes as well.

    michael_

    (@michael_)

    Oh, just double-red your post. I think my rewrite rule will not work with WordPress since it needs index.php…. Sorry.

    michael_

    (@michael_)

    This one should work, replace X with <.

    #– Your rewrite
    XIfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index.php$ / [L,R=301]
    X/IfModule>

    michael_

    (@michael_)

    Just have seen this topic via referrer.
    In the meantime the issue with TinyMCE is solved in the Link Indication Plugin. I was having an ob_start issue and the solution of Otto solved this problem as well (http://wordpress.org/support/topic/58626).

    Thread Starter michael_

    (@michael_)

    @cypher: Yes, but if you have some mistakes in tags / categories or want to re-organize your postings, they appear as “modified” in the feed.
    @woo-hoo: thanks, but I need something that does not update the RSS feed. As far as I could see does this plugin not change the behavior of wordpress in regards of updating feeds.

    @all: I would just like to modify a post (e.g. changing its categories), save it and the feed should not be updated. Hmm, perhaps I will write a plugin for this purpose: Having a checkbox “Do not update” would be sufficient.
    Very often I see updated blog posts in my feed reader, in most cases they have changed categories. My feedreader displays it, but it’s not useful if just a category was changed…

    michael_

    (@michael_)

    Add the following code below “<?php if (have_posts()) : while(have_posts()) : the_post(); ?>”
    if (! (is_search() or is_page() or is_single() or is_archive() or is_404()) ) {
    switch ($post) {
    case $posts[0]:
    echo "<div style='background-color: green;'>";
    break;
    case $posts[5]:
    echo "</div>";
    echo "<div style='background-color: yellow;'>";
    break;
    } // switch
    }

    Insert

    if (! (is_search() or is_page() or is_single() or is_archive() or is_404()) ) {
    echo "</div>";
    }
    right below the endwhile.
    This will assign a green background to the first 5 posts and posts 6-10 will have a yellow background. Just use CSS for positioning…

    michael_

    (@michael_)

    if ($post >= $posts[4]) {
    echo “</div> <!– this was for the first 5 posts –>
    echo ‘<div id=”box-right”>’
    }

    You could use appropriate CSS, one div on the left and one on the right side.

    The aforementioned code shows (use it in the loop) how to find out the current post number.

    michael_

    (@michael_)

    Otto, I was evaluating both UTW and Jerome’s keywords. I liked Jerome’s Keywords more. But after using it some weeks and finding out that I do not need categories at all for my blog, I am using categories as tags. OK, not that many features like UTW has. But it’s a standard WordPress feature, no additional tables/fields needed in MySQL and will work also in future versions of WP (which is not sure when using a plugin).
    I only was missing a tag cloud and related posts based on tags, therefore I have written a plugin that provides this by using the categories (http://www.sw-guide.de/projekte/wordpress-projekte/category-tagging-plugin/).

    Thread Starter michael_

    (@michael_)

    Perfect! Many thanks, Otto, I just have tested it and it works like a charm.
    So gzip issue is solved now 😉

    Thread Starter michael_

    (@michael_)

    This is the code I am using for applying the plugin:

    } else {
    // Apply to entire blog but not to WP admin
    if ( strpos($_SERVER['REQUEST_URI'], 'wp-admin') === false ) {
    ob_start('wp_link_indication');
    }
    }

    The plugin is not applied at all when gzip is on.

    The following function does some replacements in anchor tags.
    function wp_link_indication($content) {

    // perform the replacement of each URL in content
    $pattern = '/(.*?)<\/a>/i';
    $result = preg_replace_callback($pattern,'mwli_parse_links',$content);
    return $result;
    }

    Forum: Plugins
    In reply to: Form on Page to Email
    michael_

    (@michael_)

    You need to make sure spammers/hackers have no chance to abuse your form. Contact forms are frequently hacked.
    Make sure *every* variable is being checked that comes via $_POST to avoid hacking.

    You can check appropriate sites in the web that provide php code for contact forms, e.g. hotscripts.com. Also, there are several plugins available for WordPress, see http://codex.wordpress.org/Plugins or http://www.wp-plugins.net/.

    But read the comments on the plugin’s pages, AFAIK were there some plugins for contact forms that have been hacked in the past.

    Thread Starter michael_

    (@michael_)

    Im offering ob_start() as an option in my plugin Link indication.
    In the meantime there are 2 known issues when using this option:
    – gzip issue (see above)
    – some users reported that TinyMCE didn’t work anymore. I could reproduce this only when using IE but not with Firefox, but they did have this problem with FF as well.

    Hope that we will have such plugin filter in future WP release…

    Thread Starter michael_

    (@michael_)

    Anyone?

Viewing 15 replies - 31 through 45 (of 100 total)