Title: davidosullivan's Replies | WordPress.org

---

# davidosullivan

  [  ](https://wordpress.org/support/users/davidosullivan/)

 *   [Profile](https://wordpress.org/support/users/davidosullivan/)
 *   [Topics Started](https://wordpress.org/support/users/davidosullivan/topics/)
 *   [Replies Created](https://wordpress.org/support/users/davidosullivan/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/davidosullivan/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/davidosullivan/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/davidosullivan/engagements/)
 *   [Favorites](https://wordpress.org/support/users/davidosullivan/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 22 total)

1 [2](https://wordpress.org/support/users/davidosullivan/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/davidosullivan/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PublishPress Capabilities - User Role Editor, Access Permissions, User Capabilities, Admin Menus] Capability Manager Enhanced throws errors when adding a site with MU 3.8](https://wordpress.org/support/topic/capability-manager-enhanced-throws-errors-when-adding-a-site-with-mu/)
 *  [davidosullivan](https://wordpress.org/support/users/davidosullivan/)
 * (@davidosullivan)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/capability-manager-enhanced-throws-errors-when-adding-a-site-with-mu/#post-4510949)
 * Actually I think this is to do with your PHP version/setup. I think later versions
   of PHP throw an error when you try to do something like:-
 *     ```
       if ( in_array( $role_name, $main_pp_only ) ) {
       do something
       }
       ```
   
 * and the variable to be searched is not an array- which is what is happening on
   line 56 (roughly) when I get errors thrown.
 * This is because the plugin looks to see if the paid version of the plugin is 
   installed and if it is it defines two variables in includes > network.php which
   are $blog_pp_only and $main_pp_only. If you simply instantiate these variables
   as arrays at the start of the code on that page, the errors go away, so add:-
 *     ```
       $blog_pp_only = array();
       $main_pp_only = array();
       ```
   
 * at line 14 in includes > network.php and that will solve the issue.
 * Hopefully the developers will see this post and update the plugin accordingly…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Analyticator] How is this working with Multisite At the moment?](https://wordpress.org/support/topic/how-is-this-working-with-multisite-at-the-moment/)
 *  Thread Starter [davidosullivan](https://wordpress.org/support/users/davidosullivan/)
 * (@davidosullivan)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/how-is-this-working-with-multisite-at-the-moment/#post-3733967)
 * Actually I meant to change the title of this post since I did my own testing…
   sorry about that…
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Didn't use child themes in twenty eleven theme, HELP!](https://wordpress.org/support/topic/didnt-use-child-themes-in-twenty-twelve-theme-help/)
 *  [davidosullivan](https://wordpress.org/support/users/davidosullivan/)
 * (@davidosullivan)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/didnt-use-child-themes-in-twenty-twelve-theme-help/#post-2747972)
 * If you duplicate the Twenty Eleven theme folder and call it something else and
   choose that theme in your themes in the back end you will be fine 😉
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Front-end Editor] [Plugin: Front-end Editor] how to initialize alohaBlock with fee](https://wordpress.org/support/topic/plugin-front-end-editor-how-to-initialize-alohablock-with-fee/)
 *  Thread Starter [davidosullivan](https://wordpress.org/support/users/davidosullivan/)
 * (@davidosullivan)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-front-end-editor-how-to-initialize-alohablock-with-fee/#post-2707124)
 * Thats brilliant thanks! 😉
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Front-end Editor] [Plugin: Front-end Editor] is there a FrontEndEditor show event I can bind to?](https://wordpress.org/support/topic/plugin-front-end-editor-is-there-a-frontendeditor-show-event-i-can-bind-to/)
 *  Thread Starter [davidosullivan](https://wordpress.org/support/users/davidosullivan/)
 * (@davidosullivan)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-front-end-editor-is-there-a-frontendeditor-show-event-i-can-bind-to/page/2/#post-2686063)
 * I think its deliberate looking at the notes in blockmanager.js… I’ll be digging
   into the block plugin alot over the next couple of days
 * So yeah I think what you have done with the editor buttons in 2.3 works a treat
   🙂
 * Going back to the original subject of the thread though since there are still
   some more things I need to do to the form once it is loaded, is it possible to
   have an ‘edit_ready’ trigger to bind to?
 * I can bind to “edit_start”:-
    jQuery(document).bind(“edit_start”, function(){//
   do whatever }) It would be really great if I could bind to something that triggered
   when the content has been retrieved from ajax and added into the form:- jQuery(
   document).bind(“edit_ready”, function(){ //do whatever }) Any chance of that?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Front-end Editor] [Plugin: Front-end Editor] is there a FrontEndEditor show event I can bind to?](https://wordpress.org/support/topic/plugin-front-end-editor-is-there-a-frontendeditor-show-event-i-can-bind-to/)
 *  Thread Starter [davidosullivan](https://wordpress.org/support/users/davidosullivan/)
 * (@davidosullivan)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-front-end-editor-is-there-a-frontendeditor-show-event-i-can-bind-to/page/2/#post-2686062)
 * Solved this by adding class ‘aloha-block’ to the element I wanted draggable 😉
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Front-end Editor] [Plugin: Front-end Editor] is there a FrontEndEditor show event I can bind to?](https://wordpress.org/support/topic/plugin-front-end-editor-is-there-a-frontendeditor-show-event-i-can-bind-to/)
 *  Thread Starter [davidosullivan](https://wordpress.org/support/users/davidosullivan/)
 * (@davidosullivan)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-front-end-editor-is-there-a-frontendeditor-show-event-i-can-bind-to/page/2/#post-2686060)
 * I have tracked it down to being something to do with the block plugin in the 
   new aloha build actually- at lib/aloha-editor/plugins/common/block- if I use 
   the block plugin from fee 2.2 jQ UI draggable works again… Will look into it 
   more, but its off topic now…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Front-end Editor] [Plugin: Front-end Editor] is there a FrontEndEditor show event I can bind to?](https://wordpress.org/support/topic/plugin-front-end-editor-is-there-a-frontendeditor-show-event-i-can-bind-to/)
 *  Thread Starter [davidosullivan](https://wordpress.org/support/users/davidosullivan/)
 * (@davidosullivan)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-front-end-editor-is-there-a-frontendeditor-show-event-i-can-bind-to/#post-2686058)
    1.  Do you disable these listeners when the mouse is over the floating editor controls?
       The save and cancel buttons hide themselves when the mouse is over the editor
       controls… I’d like to replicate that when the mouse is over one of my active
       images- or perhaps when my ‘edit image’ button has been clicked…
 * I can see now that this is because the mouse is not over the form when it is 
   over the editor- so it constitutes a mouseout and so the buttons get hidden…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Front-end Editor] [Plugin: Front-end Editor] is there a FrontEndEditor show event I can bind to?](https://wordpress.org/support/topic/plugin-front-end-editor-is-there-a-frontendeditor-show-event-i-can-bind-to/)
 *  Thread Starter [davidosullivan](https://wordpress.org/support/users/davidosullivan/)
 * (@davidosullivan)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-front-end-editor-is-there-a-frontendeditor-show-event-i-can-bind-to/#post-2686056)
 * Also am having issues with jQuery UI draggable in this new version with the save/
   cancel buttons- I am not sure if this is down to those changes or the new version
   of Aloha…
 * What I am doing is making images editable in various ways when the editor is 
   in editing mode. One of the things I do is initialise draggable on click on the
   image which enables the image to be able to be dragged around inside its own 
   container.
 * This was working in FEE 2.2 but in this new version the drag is not working. 
   If I bind an alert to the dragstart event on the image that shows up- but the
   actual jQuery ui ‘drag’ event seems to be being blocked.
 * Any idea why that may be?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Front-end Editor] [Plugin: Front-end Editor] is there a FrontEndEditor show event I can bind to?](https://wordpress.org/support/topic/plugin-front-end-editor-is-there-a-frontendeditor-show-event-i-can-bind-to/)
 *  Thread Starter [davidosullivan](https://wordpress.org/support/users/davidosullivan/)
 * (@davidosullivan)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-front-end-editor-is-there-a-frontendeditor-show-event-i-can-bind-to/#post-2686049)
 * Yep that all seems to work great 😉
 * Still got issues with text aligning btw
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Front-end Editor] [Plugin: Front-end Editor] is there a FrontEndEditor show event I can bind to?](https://wordpress.org/support/topic/plugin-front-end-editor-is-there-a-frontendeditor-show-event-i-can-bind-to/)
 *  Thread Starter [davidosullivan](https://wordpress.org/support/users/davidosullivan/)
 * (@davidosullivan)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-front-end-editor-is-there-a-frontendeditor-show-event-i-can-bind-to/#post-2685944)
 * Hmm, had a look at CoffeeScript. I think it would be a good idea for me to learn
   it but just don’t think I can right now… I take it that you’d like me to have
   a go at writing the changes in Coffee script so you can compile them into the
   output your end is that right?
 * I think it should be a pretty straight forward change though actually- couldn’t
   we just include the buttons in the markup and hide them- then show them on start_editing(
   maybe with a little timeout unless we can make them show when the fee-form is
   loaded) and bind a click function that triggers a click on the aloha buttons?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Front-end Editor] [Plugin: Front-end Editor] is there a FrontEndEditor show event I can bind to?](https://wordpress.org/support/topic/plugin-front-end-editor-is-there-a-frontendeditor-show-event-i-can-bind-to/)
 *  Thread Starter [davidosullivan](https://wordpress.org/support/users/davidosullivan/)
 * (@davidosullivan)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-front-end-editor-is-there-a-frontendeditor-show-event-i-can-bind-to/#post-2685917)
 * CoffeeScript- I am afraid not… I will look into it though, whats it for/do?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Front-end Editor] [Plugin: Front-end Editor] is there a FrontEndEditor show event I can bind to?](https://wordpress.org/support/topic/plugin-front-end-editor-is-there-a-frontendeditor-show-event-i-can-bind-to/)
 *  Thread Starter [davidosullivan](https://wordpress.org/support/users/davidosullivan/)
 * (@davidosullivan)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-front-end-editor-is-there-a-frontendeditor-show-event-i-can-bind-to/#post-2685908)
 * Basically its because I think that the user may well expect to see save/cancel
   buttons in the same place as they saw the ‘edit’ button- specifically if you 
   have for example inserted an image and the save cancel buttons are not visible
   in that ‘insert’ tab. Also if you have large images at the top of your post quite
   often the editor goes off screen untill you click on text below- in which case
   you cant see what to do to get out of the mode. If there were save/cancel buttons
   following you down the post this would all be obvious to the user.
 * The way I was planning on doing it to avoid the problem you mention is to clone
   the buttons from the editor (which should also carry over their functionality)
   and insert them into the edit button itself and give that button a different 
   class at the same time which would make them show correctly.
 * Thats why I need to bind to the stage ready event or something so that I know
   when the editor and its buttons and the fee-form are all ready to go…
 * Really hope this is something you have some ideas about as I really think it 
   will have big usability benefits…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Front-end Editor] [Plugin: Front-end Editor] Can Aloha insert divs in theory? If so how?](https://wordpress.org/support/topic/plugin-front-end-editor-can-aloha-insert-divs-in-theory-if-so-how/)
 *  Thread Starter [davidosullivan](https://wordpress.org/support/users/davidosullivan/)
 * (@davidosullivan)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-front-end-editor-can-aloha-insert-divs-in-theory-if-so-how/#post-2685870)
 * Ok I see in the Aloha api there is a block plugin I can have a play with
 * [http://aloha-editor.org/builds/development/latest/doc/guides/output/plugin_block.html](http://aloha-editor.org/builds/development/latest/doc/guides/output/plugin_block.html)
 * Will post up any interestimg results…
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [front-end editor takes me to dashboard](https://wordpress.org/support/topic/front-end-editor-takes-me-to-dashboard/)
 *  [davidosullivan](https://wordpress.org/support/users/davidosullivan/)
 * (@davidosullivan)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/front-end-editor-takes-me-to-dashboard/#post-2684872)
 * Look in wp-content/themes/twentyten/loop-page.php around line
    around line 30
   change this:- edit_post_link( __( ‘Edit’, ‘twentyten’ ), ‘<span class=”edit-link”
   >’, ‘</span>’ ); to this:- //edit_post_link( __( ‘Edit’, ‘twentyten’ ), ‘<span
   class=”edit-link”>’, ‘</span>’ );
 * and in wp-content/themes/twentyten/loop-page.php
    around line 56 change this:-
   edit_post_link( __( ‘Edit’, ‘twentyten’ ), ‘<span class=”edit-link”>’, ‘</span
   >’ ); to this //edit_post_link( __( ‘Edit’, ‘twentyten’ ), ‘<span class=”edit-
   link”>’, ‘</span>’ );
 * and in wp-content/themes/twentyten/loop.php
    around line 100 change this:- edit_post_link(
   __( ‘Edit’, ‘twentyten’ ), ‘<span class=”meta-sep”>|</span> <span class=”edit-
   link”>’, ‘</span>’ ); to this:- //edit_post_link( __( ‘Edit’, ‘twentyten’ ), ‘
   <span class=”meta-sep”>|</span> <span class=”edit-link”>’, ‘</span>’ );

Viewing 15 replies - 1 through 15 (of 22 total)

1 [2](https://wordpress.org/support/users/davidosullivan/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/davidosullivan/replies/page/2/?output_format=md)