Support » Plugin: BuddyPress Activity Plus » Limit image uploads to one

  • Resolved dasped

    (@dasped)


    Hi, I noticed a couple of closed unanswered topics on this so starting a new thread.

    Due to vertical image stacking with no option for horizontal I wish to restrict the amount of image uploads per post to one.

    Please advise how I can achieve this, thanks.

    Sped

    http://wordpress.org/plugins/buddypress-activity-plus/

Viewing 4 replies - 1 through 4 (of 4 total)
  • dasped

    (@dasped)

    Ha, teach me to be lazy and post without looking.

    Goto – /wp-content/plugins/buddypress-activity-plus

    Edit: bpfb.php Line: 59

    // Override image limit in wp-config.php
    if (!defined('BPFB_IMAGE_LIMIT')) define('BPFB_IMAGE_LIMIT', 5, true);

    To

    // Override image limit in wp-config.php
    if (!defined('BPFB_IMAGE_LIMIT')) define('BPFB_IMAGE_LIMIT', 1, true);

    User tries to upload more than one image to activity feed, receives message:

    You tried to add too many images, only 1 will be posted.

    All good 🙂

    Mike

    (@michael-copestake)

    WPMU DEV Support Staff

    Hi @dasped

    Thanks for posting the solution 🙂

    If you could mark this as resolved it would be a really useful resource for anyone with the same question.

    dasped

    (@dasped)

    Hey @mike,

    Honestly thought I had. Strange one.

    Anyway, no worries with the solution, way to many unanswered/unresolved posts in the world mate…

    Cheers

    Mike

    (@michael-copestake)

    WPMU DEV Support Staff

    Excellent, thanks a lot 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Limit image uploads to one’ is closed to new replies.