MU Advanced: Issues and Discussion
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • September 03, 2010, 11:20:23 AM
Home Forums Contact Tags FAQ Links News Login Register
* *
Navigation Menu
Search

Random Quotes
To succeed in politics, it is often necessary to rise above your principles.
- Murphy's Law
Pages: [1]   Go Down
  Print  
Author Topic: Simplified write post area  (Read 1210 times)
0 Members and 1 Guest are viewing this topic.
Andrea_R
Key Master
*****

Karma: 5
Offline Offline

Posts: 1627


The spiky-haired mistress of homeschooling. (R)


View Profile WWW
« on: June 28, 2008, 09:59:49 AM »

Does anyone know offhand of any plugin that will simplify the write or edit post area? I'm having a devil of a time trying to find something.

I mostly need to get rid of all the category / tag  & advanced options underneath.
Logged

Am I the only one with a sig?
Ah well, might as well read my blog for lols.
Andrea_R
Key Master
*****

Karma: 5
Offline Offline

Posts: 1627


The spiky-haired mistress of homeschooling. (R)


View Profile WWW
« Reply #1 on: June 28, 2008, 10:12:09 AM »

I think I may have found one:
http://wordpress.org/extend/plugins/adminimize/

Also this guy http://bueltge.de/wordpress_plugins/ looks like he has some pretty snazzy plugins. (note: in German.)
Logged

Am I the only one with a sig?
Ah well, might as well read my blog for lols.
ZappoMan
Full Member
***

Karma: 1
Offline Offline

Posts: 157



View Profile
« Reply #2 on: June 29, 2008, 01:47:01 AM »

I have recently solved this problem using a php ob_handler that removes the html for things like custom fields, etc.

In a previous life, I had done this with a core hack... but I've now come to realize that core hacks will only bite you later on in life.

Thoughts on this approach?

Let me know if you want a peak at my code, it's not configurable via an admin, I just always tweak the menus and pages as I see fit.

But, it's all in a plugin.
Logged

Yep, that's me... riding my bike 204 miles in one day.
Andrea_R
Key Master
*****

Karma: 5
Offline Offline

Posts: 1627


The spiky-haired mistress of homeschooling. (R)


View Profile WWW
« Reply #3 on: June 29, 2008, 07:28:47 AM »

hacks are dandy, lemme look. Cheesy
Logged

Am I the only one with a sig?
Ah well, might as well read my blog for lols.
ZappoMan
Full Member
***

Karma: 1
Offline Offline

Posts: 157



View Profile
« Reply #4 on: July 01, 2008, 02:42:02 AM »

Andrea,

The hack version is, I just went in and deleted the code from edit-form-advanced.php.

The new plugin version does this.... (put this in a plugin)

Code:
/**************************************************************************************
 * function:      _delete_customfields_section()
 * description:   this is out ob_start() callback function, it removes the custom fields section
 *                html from the edit post page
 */
if (
        is_admin()
        &&
        (
            (0 === strcmp($_SERVER['PHP_SELF'],'/wp-admin/post-new.php'))
            ||
            (0 === strcmp($_SERVER['PHP_SELF'],'/wp-admin/post.php'))
            ||
            (0 === strcmp($_SERVER['PHP_SELF'],'/wp-admin/page-new.php'))
            ||
            (0 === strcmp($_SERVER['PHP_SELF'],'/wp-admin/page.php'))
        )
    )
{
    //echo "<h1>{$_SERVER['PHP_SELF']}</h1>";
    ob_start("_delete_customfields_section");
}

function _delete_customfields_section($input)
{
    $preg = "/^<div id=\"postcustom\"(.+)use in your theme<\/a>.<\/p>\n<\/div>\n<\/div>/imsU";
    $replace = '';
   
    $output = preg_replace(trim($preg), $replace, $input);

    return $output;
}

Or something like that. I've decided to use this technique for most of my admin system hacks... I think it's a pretty clean solution, I worry a little bit about performance, but these pages don't seem to generate any slower than any other pages...

You could also make this configurable by the site admin pretty easily.

Logged

Yep, that's me... riding my bike 204 miles in one day.
Tags: plugins wirte post 

Pages: [1]   Go Up
  Print  
 
Jump to:  


Login
 
 
Recent Posts
Recent Topics
No new topics.
Hot Tags
Whos Online
6 Guests, 0 Users
Home Forums Contact Tags FAQ Links News Login Register