BuddyPress Activity Plus
[resolved] Extra input form options (5 posts)

  1. xyhavoc
    Posted 2 years ago #

    Hello developers,

    I'm having a difficult time understanding how the javascript produces the activity form. I have a good understanding of HTML/CSS, and know very minimal basics about javascript and PHP.

    If you will take a look at this example of what I'm trying to do:

    Basically I want it to allow me to include at most two additional URLs, labeled "+URL" and "+Files" in the diagram. However only specific top-level domains are allowed to be entered. If they aren't then it doesn't allow the information to be posted.

    I'm looking through the javascript file and I see the scripts for how the plugin handles adding photos, videos, and URLs. I'm hoping I could just copy-paste some of these, change some values, and add a URL validation function.

    Any assistance is much appreciated :)


  2. xyhavoc
    Posted 2 years ago #

    At the very least, I'd like to be able to limit which URLs are embedded and which are displayed as plain text.

  3. J K
    WPMU DEV Support Staff
    Posted 2 years ago #

    Hi there @xyhavoc,

    I hope you are well today and thanks for your question.

    I just tried looking at your example, but unfortunately it wouldn't load for me.

    So are you looking to add two additional buttons to the plugin that on click allow additional URL's?

    Please advise!

    Thank you :)

    Kind Regards

  4. xyhavoc
    Posted 2 years ago #

    Yeah. I'm looking for a solution to include multiple input boxes that will accept only a specific top-level domain URL so the site is used only to post specific content. For instance, the user can input:

    "Hey guys, check out this video I made! I've also attached a link to the video source files."
    +insert youtube URL
    +insert example.com URL

    It then outputs the text, the embedded video, and the embedded example.com URL link (the same way Buddypress Activity Plus already works). As long as the back-end can get me the output that I need, I could style it myself.

    Here's another link to the example, hopefully it works for you:

    I'm probably asking for too much, I may just need to hire a programmer.

  5. J K
    WPMU DEV Support Staff
    Posted 2 years ago #

    Hi there @xyhavoc,

    Greetings, yeah I'm afraid this would require quite a bit of custom coding and isn't something that's out of the box.

    You could take a look within the plugin files themselves to check how they are done and then basically replicate that :)


    Kind Regards

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • BuddyPress Activity Plus
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.