Skip to:
Content
Pages
Categories
Search
Top
Bottom

how to use files globally?


  • ashok g
    Member

    @ashokgolusu

    bp_get_activity_thread_permalink(), bp_loggedin_user_domain();
    bp_get_activity_content_body(), plugins_url();

    i am using these files in another plugin page? but it is showing errors like
    Fatal error: Call to undefined function bp_activity_content_body() in D:xampphtdocsprojectwp-contentpluginsbuddypress-share-itshare.php on line 9

    plz tell me the solution
    Thanks n Advance

Viewing 6 replies - 1 through 6 (of 6 total)
  • 1) Is the activity component enabled on your site?
    2) Has BuddyPress loaded by the time you call those function?


    ashok g
    Member

    @ashokgolusu

    Thank u for your fast response,
    i am new to BuddyPress, BuddyPress plugin activated in my site.
    how can i enable activity component? and
    how can i load buddypress by the time i use those functions?

    i just want to do something like share option in Facebook. shared content like images, videos must display in current user activity list exactly like Facebook.
    can u help me for this?
    thanks n advance


    ashok g
    Member

    @ashokgolusu

    Seriously??? No one can help here?


    @ChrisClayton
    Participant

    @chrisclayton

    @ashokgolusu
    1) Is the activity component enabled on your site?
    Go to your wp-admin buddypress settings and click on components. is the ‘activity’ component checked? None of the activity-related functions will load unless it is turned on within the wp-admin.

    2) Has BuddyPress loaded by the time you call those function?
    https://codex.buddypress.org/plugin-development/checking-buddypress-is-active/


    ashok g
    Member

    @ashokgolusu

    Thanks for the responce
    Yes the activity component enabled.
    BuddyPress also loaded.


    ashok g
    Member

    @ashokgolusu

    can any one suggest a plugin for share content Within the Blog? like facebook share.
    Thanks n Advance

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘how to use files globally?’ is closed to new replies.
Skip to toolbar