• Hi Jacob,

    A while ago you created for me/my site a shortcode to allow a single photo to be displayed within a BBPRESS topic/reply = [photo 123]

    I know there is a WPPA generator button as part of the Visual Editor for WordPress Posts.

    What would be really nice, if possible, is a simple WPPA Generator on the BBPRESS Forum Topic and Reply pages, that allows members to simply select the photo of choice – I don’t want to offer them options to insert albums or anything else, just insert the [photo 123] code in a User Friendly way.

    I hope this will be possible to develop – my site will really benefit from it.

    Cheers,

    Laurence

Viewing 8 replies - 16 through 23 (of 23 total)
  • Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Got it finally completely working!

    Do the following:
    – Update to 6.7.10
    – Tick Table IX-L1: Enable shortcode [photo ..]
    – Tick Table IX-J9: Shortcode [photo nnn] on bbPress.
    Recommended other settings:
    – Table IX-L3: Size: Not larger than 440;
    – Table IX-L4: Align: — none — or right.

    Thread Starter coffeecuplj

    (@coffeecuplj)

    Hi Jacob,

    This really is exactly what I’ve been asking for – it will make a difference to my members.

    However, I’ve been testing this today and get an error following uploading a photo, following the confirmation popup box the screen moves to a blank white screen with the following

    ||1008||
    — Please select a photo —
    Photo w#id (test)

    When I attempted to recover from this by tabbing back a page and re-clicking on the Camera it didn’t show the new photo. I refreshed the discussion webpage and clicked the Camera again and this time it worked.

    Maybe there is something I need to do.

    Cheers,

    Laurence

    Thread Starter coffeecuplj

    (@coffeecuplj)

    Separately Jacob, I read your notes about editing the BBPRESS Templates File. I came up with code for my Child Theme’sFunctions.php rather than to edit the BBPRESS Templates file as follows including a bit to make the default land at the Visual Editor version:

    /** WPPA Changes **/
    function bbp_enable_visual_editor( $args = array() ) {
    $args[‘tinymce’] = true;
    $args[‘teeny’] = false;
    return $args;
    }
    add_filter( ‘bbp_after_get_the_content_parse_args’, ‘bbp_enable_visual_editor’ );

    /** make Visual Editor the default **/
    add_filter( ‘wp_default_editor’, create_function(”, ‘return “tinymce”;’) );

    Question – is this still necessary or does the Option Tick Table IX-J9: Shortcode [photo nnn] on bbPress do this ?

    Cheers,

    Laurence

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    However, I’ve been testing this today and get an error following uploading a photo, following the confirmation popup box the screen moves to a blank white screen with the following

    I noticed this, it is however hard to troubleshoot because it only happens sometimes the first time only, and there is only one first time, but it has my attention.

    If you want to take the shortcode generator in production – temporarelly without the upload feature, until i fixed it – you can hide it by placing the following in Table IV-A15: Custom style:

    #wppa-tinymce-upload-tr {
    display:none;
    }
    

    Question – is this still necessary or does the Option Tick Table IX-J9: Shortcode [photo nnn] on bbPress do this ?

    Thanx to the help from @robin-w you do no longer need modifications to bbpress code. Table IX-J9 does the trick likewise.

    Thread Starter coffeecuplj

    (@coffeecuplj)

    Hi Jacob,

    Thanks for the work around, but I will wait until it is fixed as want to make a big thing of the improved functionality in the newsletter.

    Laurence

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Fair enough. I think i found it (timing issue).
    Did some tests with browsers and phone that i never used before for this and no problems. Will supply it as beta version tomorrow. Looks good.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Should work correct now (6.7.11 release version).

    Thread Starter coffeecuplj

    (@coffeecuplj)

    Hi Jacob,

    I works really well – thank you so much.

    I’ve just put it live on my website and posted a topic announcing the new feature to my Club Members.

    Hope the donation gets you a drink or treat – sorry its not a lot but I fund my site personally, otherwise I’d give more.

    All the best,

    Laurence

Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘WPPA Generator button in BBPRESS topic/reply’ is closed to new replies.