Forums

BuddyPress Docs
Expanding Table Functionality (12 posts)

  1. Atticus_Finch12
    Member
    Posted 10 months ago #

    Currently, we are using Buddypress Docs, as part of our Intranet solution along with Buddypress. Both are working great, but I ran into a little snag that I was hoping someone has worked through, or could be considered an enhancement request.

    We use a lot of tables in the Docs, to keep up with various pieces of information, and right now the only time you can create a table or expand a table is at the documents creation.

    Does anyone know of a way to make it possible where the tables could be made longer after a document is created?

    http://wordpress.org/extend/plugins/buddypress-docs/

  2. Boone Gorges
    Member
    Plugin Author

    Posted 10 months ago #

    It's true that TinyMCE disables the Rows and Columns fields after a table exists. But you should be able to expand an existing table by using the other controls: "Insert row before" and "Insert row after".

  3. Atticus_Finch12
    Member
    Posted 10 months ago #

    Thank you for getting back to me, and I see the insert row before/after, on the backend of Buddypress.

    Do you know if it is possible to enable this feature on the frontend while editing a document?

  4. Boone Gorges
    Member
    Plugin Author

    Posted 10 months ago #

    The buttons should be there whether you're on the front or back end.

    What versions of WP/BP/BP Docs are you running? What browser are you using? What theme?

  5. Atticus_Finch12
    Member
    Posted 10 months ago #

    Currently I am using WordPress 3.4.1, Buddypress 1.5.6, Buddypress Docs 1.1.24.

    I have tested on the following Browsers, Chrome 20.0.1132.57, Firefox 13.01, Opera 12.00, and Safari 5.1.7.

    My theme is Buddypress Colours version 1.0.

  6. Boone Gorges
    Member
    Plugin Author

    Posted 10 months ago #

    Could you share a screenshot? It'll be helpful if I can see which buttons are and are not being rendered.

  7. Atticus_Finch12
    Member
    Posted 10 months ago #

    Here is what I am getting on the frontend:
    http://imgur.com/vtvKQ,Pwcgm

    Here is what I am getting on the backend: http://imgur.com/vtvKQ,Pwcgm#1

  8. Boone Gorges
    Member
    Plugin Author

    Posted 10 months ago #

    Is it possible for you to switch to the BuddyPress Default, just for a moment, to test whether the same thing is happening there too?

  9. Atticus_Finch12
    Member
    Posted 10 months ago #

    I just made the switch back to the default template, and I am still not seeing the buttons on the frontend.

    I also brought up a second installation just to check, and was not able to seem them on that installation either.

  10. Boone Gorges
    Member
    Plugin Author

    Posted 10 months ago #

    Thanks for testing.

    I found a typo that may be causing your problem. Would you mind helping me to test?

    Through an FTP editor, navigate to: wp-content/plugins/buddypress-docs/includes/js/. Open the file bp-docs.js in a text editor. Find the line (it should be 75 or thereabouts) that reads:

    var doc_id = $("#existing-doc-id").val();

    Change the '$' to 'jQuery':

    var doc_id = jQuery("#existing-doc-id").val();

    Save the file, and test from the front end again (you'll have to refresh the page in your browser). You should see that the third row of items - the table functions - appear on the third row of the editor buttons.

  11. Atticus_Finch12
    Member
    Posted 10 months ago #

    That was the magic trick. Thank you very much for getting to this so quickly. You ever need a beta tester let me know, and I would be more than happy to help.

  12. Boone Gorges
    Member
    Plugin Author

    Posted 10 months ago #

    Cool, glad it worked! I'll release a new version soon with the fix. Thanks for your help tracking it down.

Reply

You must log in to post.

About this Plugin

About this Topic