reimund
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: User Access Manager] DB_ACCESSGROUP_TO_POST doesnt existI think DB_ACCESSGROUP_TO_POST and the others are old constants that the developer forgot to update with the more generic DB_ACCESSGROUP_TO_OBJECT constant. So I changed them into using DB_ACCESSGROUP_TO_OBJECT instead.
For example:
public function removePostData($postId) { global $wpdb; $wpdb->query( "DELETE FROM " . DB_ACCESSGROUP_TO_OBJECT . " WHERE object_id = ".$postId . " AND (object_type='post' OR object_type='page')" ); }Forum: Plugins
In reply to: [Front-end Editor] Some thoughs on improvements for Front-end EditorUpdated from 2.1.2 alpha to 2.1.2 and now it works using your paragraphs-workaround.
Forum: Plugins
In reply to: [Front-end Editor] Some thoughs on improvements for Front-end EditorI still can’t save it when it’s empty though.. :/
Forum: Plugins
In reply to: [Front-end Editor] Some thoughs on improvements for Front-end EditorI’ve explicitly cleaned the cache and still experience the same problem.
To reproduce it, try putting
<h1>Foobar</h1>as the content. Then edit it again and remove “Foobar”. Now the content will be<h1></h1>and it will be uneditable.Forum: Plugins
In reply to: [Front-end Editor] Some thoughs on improvements for Front-end EditorThanks for the fixes.
Although I still cannot save empty meta fields nor pages. Semi-empty works, that is, if you have something like “<p></p>” but real empty values, ie the empty string “” does not save.
Which brings me to the reason you sometimes cannot see the edit button, they’re just semi-empty, like “<h2></h2>”. Hench it will render as empty and no edit button will appear. Since the wysiwyg editor cannot edit html you can only edit that field the old school way via wp-admin. The same is true for meta fields. A real bummer.
Please give us back the html editor so we get full inline control over our posts! 🙂
Just edit
multiple_content.phpto send the$contentthrough thedo_shortcodefunction. Ie add the following line to thethe_blockandget_the_blockfunctions:$content = do_shortcode($content);
Cheers
Reimund TrostForum: Plugins
In reply to: [Plugin: Front-end Editor] Edit Content Blocks@scribu 🙂
One more thing. You probably want to treat the content blocks more like the_content, meaning you’ll want to have paragraphs wrapped in <p> elements. The easiest way to do this is to modify the Front-end Editor plugin. Simply add the following line:
$new_value = wpautop($new_value);somewhere in the beginning of the save function of the FEE_Field_Meta class (fields/post.php around line 540).
Perhaps this could be an option in a future version of FEE?
Good luck!
Reimund TrostForum: Plugins
In reply to: [Plugin: Front-end Editor] Edit Content BlocksGetting Front-end Editor to work with Multiple content blocks is rather easy. To get it working you just need to modify the source of Multiple content blocks plugin a bit.
Just replace line 236 and 245 of
multiple_content.phpwith:echo apply_filters('post_meta', $content, $post->ID, '_ot_multiplecontent_box-' . $blockName, 'rich', true);and
return apply_filters('post_meta', $content, $post->ID, '_ot_multiplecontent_box-' . $blockName, 'rich', true);respectively.
Cheers!
Reimund Trost