Back Home

Open Designs

Community. Driven.

    • CommentAuthorniemion
    • CommentTime7 days ago
     
    I've seen a lot of plugins which enables you to edit comments without having to log in to the admin interface, but is there an equivalent for editing blog post?

    Should support 2.51 of course bakie
    •  
      CommentAuthorSean
    • CommentTime7 days ago
     
    It only takes a moment to log into your WordPress dashboard, so I'm not sure why you need a plugin for this?

    Even with a plugin, I would think for security reasons you'd need to have the plugin login or something?
    • CommentAuthorniemion
    • CommentTime7 days ago
     
    Posted By: Seanfor security reasons you'd need to have the plugin login
    Yes, I didn't mean skipping logging in. I'm thinking of something similar to attackr where you login but without immediately going to the admin interface.
    Posted By: SeanI'm not sure why you need a plugin for this
    I've been using MODx CMS for a while and as it offers that feature I sort of got used to it. For me it's a more convenient way of making minor corrections in my posts.
    • CommentAuthorniemion
    • CommentTime7 days ago
     
    Another reason why it would be nice to be able to edit posts on the fly:

    The height of the edit area in the admin interface is 133px.

    Dealing with longer blog posts / articles, editing posts in this small area is like trying to sleep in the toilet. It's too small, it's too wet.
    •  
      CommentAuthorSean
    • CommentTime7 days ago
     
    On attackr we did a special function in the theme, so once you login, it sends you to the home page. If you want something like this, I can send you the code for it. It's not a plugin but it's easy to do.
    • CommentAuthorniemion
    • CommentTime6 days ago edited by niemion on the 08th May 2008 at 13:53:24 EDT
     
    That would be nice Sean, but I can first put it to use when I find a plugin that does what I need. But please, send the code. You have me email.

    Does anyone know how to enlargen the actual area where you can edit text in the WP-admin?

    Edit: Found it!

    <iframe frameborder="0" id="content_ifr" src="javascript:""" style="width: 100%; height: 133px;"/>
  1.  
    Does anyone know how to enlargen the actual area where you can edit text in the WP-admin?

    If you use the WYSIWYG editor you can drag the bottom right corner of it to enlarge, if you use the code view then you cannot do this though.
    • CommentAuthorniemion
    • CommentTime6 days ago
     
    If you use the WYSIWYG editor you can drag the bottom right corner of it to enlarge, if you use the code view then you cannot do this though.

    Thanks, but I'm looking for a way to do this permanently, not every time I open and close my browser. Using Firbug I found that changing 133px in this code

    <iframe frameborder="0" id="content_ifr" src="javascript:""" style="width: 100%; height: 133px;"/>

    will indeed do the trick. But which file in the WP-Admin directory has this piece of code in it?
    •  
      CommentAuthorChristopher
    • CommentTime6 days ago edited by Christopher on the 08th May 2008 at 16:32:10 EDT
     
    Okay I had a quick look at the code, create a new PHP file to use as a plugin and paste this code in it then upload/activate - alter the 450px as desired.

    <?php
    /*
    Author: Christopher Robinson
    Author URI: http://www.edg3.co.uk/
    Description: Increases the size of the editor in the WordPress admin area.
    Plugin Name: Increase Textarea Editor Size
    Plugin URI: http://www.edg3.co.uk/go/wordpress-plugin-increase-textarea-editor-size/
    Version: 0.1
    */

    //
    function admin_customcss() {
    echo '<style media="screen" type="text/css">
    textarea#content {
    height:450px;
    }
    </style>';
    }

    //
    add_action('admin_head', 'admin_customcss');
    ?>
    edit: forgot the code tags!
    •  
      CommentAuthorgnome
    • CommentTime6 days ago edited by gnome on the 08th May 2008 at 15:28:41 EDT
     
    Christopher: you should add a new page to the admin just to edit the height.
    • CommentAuthorniemion
    • CommentTime6 days ago
     
  2.  
    Sorry Niemion, Open Designs messed up the code, was meant to have style tags wrapped around the declaration!

    Try this one:

    http://www.edg3.co.uk/download/edg3-textarea.zip

    Then activate, navigate to Options -> Editor Textsize, set your height in px, e.g. 450, then hit submit.

    When you activate the plugin, it creates a new database tables to store the value, when you deactivate the plugin, it deletes (drops) this table.

    I'll update it to be a bit cleaner later this evening or tomorrow!
    • CommentAuthorniemion
    • CommentTime6 days ago edited by niemion on the 08th May 2008 at 16:23:50 EDT
     
    NP Chris. The error is fixed, but it still doesn't do anything. It's still 130px high.

    See this screen shot.

    I think the plugin should edit this value instead:

    element.style {
    height:130px;
    width:100%;
    }

    Edit: Of course it works, must have been some cache kicking in. Thanks!
    •  
      CommentAuthorChristopher
    • CommentTime6 days ago edited by Christopher on the 08th May 2008 at 16:22:57 EDT
     
    The height should (and does for me) target the textarea directly, as it has an ID of content.

    So injecting:

        textarea#content {
    height:450px;
    }
    Into the admin stylesheet (or head section) should change it.

    E.g. using the zip I posted above, I see (1) and (2).

    edit: by the way I've only tested this on WordPress 2.5.1
    • CommentAuthorniemion
    • CommentTime6 days ago
     
    Christopher it's an excellent plugin, I'm wondering why it's not standard. Surely there must be others writing blog posts longer than 4 lines?

    Anyway, I'm still looking for a plugin that enables me to edit my posts directly on the site. (Outside the admin) If anyone knows something, speak up please. bakie