Forum Replies Created

Viewing 15 replies - 16 through 30 (of 35 total)
  • Forum: Plugins
    In reply to: Removing wpautop Filter

    Hey guys, I wrote this plugin yesterday and until now I stumbled through this support post. I managed to make it work for pages and single posts.

    <?php
    /*
    Plugin Name: rmWPautop
    Plugin URI: https://rolandog.com/archives/2008/11/12/wp-plugin-rm-wpautop/
    Description: This plugin allows you to set a 'rm_autop' custom field in your pages or posts and allow for WordPress not to add automatically paragraph elements.
    Author: Rolando Garza
    Author URI: https://rolandog.com/
    Version: 0.2
    
    */ 
    
    function rm_autop() {
    	global $posts;
    
        // get the posts
        foreach ($posts as $post) {
    	    // Get the keys and values of the custom fields:
    	    $id = $post->ID;
    	    $rmautop = get_post_meta($id, 'rm_autop', true);
    
    	    // Remove the filter
    	    if ($rmautop === 'true') {
                remove_filter('the_content',  'wpautop');
    	    }
        }
    }
    
    // Hook into the Plugin API
    add_action('wp_head', 'rm_autop');
    
    ?>

    Rather than write something into your post, you specify a Custom Field with a key of ‘rm_autop’ and a value of true (without the quotes).

    Your post/page will show without autop’s breaks and paragraph elements. You also have to take into account that plugins like Snipplr’s will compensate for the implied autop filter. I wasn’t validating at first and I kept thinking I was doing something wrong.

    Thread Starter rolandog

    (@rolandog)

    Hey, I looked up some rewrite rules,… at this cheatsheet:
    https://www.ilovejackdaniels.com/mod_rewrite_cheat_sheet.png

    How about using something like:
    RewriteRule ^opml/([0-9-]+)/?$ wp-links-opml.php?link_cat=$1

    Thread Starter rolandog

    (@rolandog)

    Hi Otto42. Thanks for your reply. I din’t know about the search by category. I guess this works for me… since I wanted to get only those links.

    Hey, I already tried it, and it works… In WP 1.5.x the hses.php file is named kses.php. You can modify that file by adding the line nyflorac mentioned in the allowed tags array
    'img' => array('src' => array(), 'alt' => array(), 'title' => array(), 'height' => array(), 'width' => array())

    I have a question, though… does it mean that if you don’t allow a ‘border’ attribute, they are stripped?

    Forum: Fixing WordPress
    In reply to: thumbnail size
    rolandog

    (@rolandog)

    I don’t understand… how was it that they removed the ‘specify your thumbnail’ size feature from WordPress?

    It was back in the upload section in WP 1.5. Also, how about putting back in the option to specify the file extensions I will allow uploading? I remember I was able to upload PDFs, and other stuff…

    rolandog

    (@rolandog)

    Nope… still a security release, this 2.0.2 version…

    Hmm… can’t say I know how to change columns and place them elsewhere… I guess that if you want to place it outside the page div, then do so… by taking it out in the code. (edit: and place it elsewhere).

    But you’re going to have to place it manually in every file like archives index single and other stuff.

    I guess its doable… but you’re going to have to split your footer.php file so that you can place the sidebar outside the div called page. That would make you have to call another file before closing a document.

    <?php get_footer1(); ?>
    <?php get_sidebar(); ?>
    <?php get_footer2(); ?>

    I’m no CSS, HTML, PHP expert but I just went through some lines of code to make the archives and categories to stop being displayed in the Archives page, and I kinda understood how the WordPress system works. I’m still having a hard time theming my blog.

    Heeey Hipo! Buen dise?o. Quedó muy chido.
    BTW, the new URL is now regioblogs.com.

    I think we’re better off trying to learn how to do this using MiniXML and Cache_Lite…

    I’m all for switching to Postgre. But I can’t stop using WP. WordPress-Pg doesn’t have a 1.5.x version out,… so I guess I’ll just wait it out.

    Thread Starter rolandog

    (@rolandog)

    bump

    The simplemachines forums (https://www.simplemachines.org) have a great way of auto-updating… and the plugins are managed through a ‘package manager’, which allows you to download plugins from several servers. Perhaps there could be a way of updating in a similar way? (Usually a 1-click process through the admin panel in SMF).

    Moose, I agree. Tags regard what your post is about:
    e.g. “fast+recovery” could be about someone you care about recovering fast after an accident

    Then again, “update” would be the category for follow-ups or what not.

    Forum: Requests and Feedback
    In reply to: TagCloud

    Ha, don’t worry, I know about TagCloud… it’s great. I didn’t have any trouble making it accept my feeds.

    I decided to keep two separate clouds. One cloud is of my blog, and the other is of the rest of my cyber activity… (furling, flickring, scrobbling). I think it’s a great service. Though I was hoping to achieve something like El Oso has done… a ‘cosmos’ with links for each tag to technorati, flickr and del.icio.us…

    Check out https://el-oso.net/blog/cosmoso/ I don’t know if it’s a WP plugin, but it looks cool.

    On the other hand, I use the scripts from TagCloud, and they look ok.

    I’m having the same problem, opposite objective…

    Do your pages get listed in the wp_list_pages function? I have several subfolders and stuff which I’d like to link in the pages section, but I’m afraid something might ‘break’ if I do so.

    Any experts on the subject at hand?

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