WordPress.org

Ready to get started?Download WordPress

Forums

BuddyPress Activity Plus
[resolved] Limit image uploads to one (5 posts)

  1. dasped
    Member
    Posted 8 months ago #

    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/

  2. dasped
    Member
    Posted 8 months ago #

    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 :)

  3. Mike
    WPMU DEV Support Staff
    Posted 8 months ago #

    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.

  4. dasped
    Member
    Posted 8 months ago #

    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

  5. Mike
    WPMU DEV Support Staff
    Posted 6 months ago #

    Excellent, thanks a lot :-)

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.