Skip to:
Content
Pages
Categories
Search
Top
Bottom

User Based Shortcode?


  • mgparisi
    Participant

    @mgparisi

    Is there a way to write a shortcode that can be used by users who enter it into their activity stream? I don’t want them to be allowed to access all of the shortcodes. Just this one.

    Id like to put it in BuddyPress, BBPress, Activity Streams, Groups, etc.

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)

  • shanebp
    Moderator

    @shanebp

    Interesting idea, but no.


    mgparisi
    Participant

    @mgparisi

    I need to do something for it. Even if it is to add a filter afterwords. It could be an HTML tag or a shortcut with []. I don’t care. I do care that it has attributes and that I can access the user ID of the poster.

    Lets figure that I would be willing to write code for this. Is there a hook that might help me? Is there somewhere that processes this input that one can be added?


    mgparisi
    Participant

    @mgparisi


    mgparisi
    Participant

    @mgparisi


    mgparisi
    Participant

    @mgparisi

    Yep, that resolves this problem. It looks VERY new. Very NICE! Awesome! Tried it, and it works GREAT! Now I just need to add the shortcode to my custom plugin then whitelist it! I found it when I started searching for hooks. I found the top post, and that had a forum post from a guy that had another post in the dv plugin. I got lucky 🙂

    Hey @shanebp, Thanks for the help! I know its hard to know EVERYTHING, but I did want to inform you of a solution that does work. Just in case someone else asks! Shortcodes make sense for information that might get updated. It allows users to insert their own. Perfect.

    Thanks!


    shanebp
    Moderator

    @shanebp

    Thanks for the update and info.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Skip to toolbar