Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] How to get message convertion thread id from URL?


  • laxmanvel
    Participant

    @laxmanvel

    Hi,
    I’m developing wordpress site with Buddypress. I’m try to add some kind of extending new functionality in my website.
    if URL is,

    http://localhost/wordpress/members/admin/messages/view/15/

    above link is hold message conversion of one to another. how will i get message thread id 15 from URL?
    this thread id is just example.
    i’m customize the buddypress template files in bp-legacy folder in buddypress plugin directory.

    i will just add to some kind of code placed to template file with thread id. i’m stuck in problem with this process kindly solve my problem?

    if any reply will be appreciated.!

    -laxmanvel

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

  • danbp
    Participant

    @danbp

    Oops !

    i’m customize the buddypress template files in bp-legacy folder in buddypress plugin directory.

    Don’t that, as at next BP update your work will be overridden.

    Message URL’s are built dynamically. So you can’t fetch them diretly from within the template. You need a custom function to do that and use it from your theme’s functions.php.

    Read in file bp-messages/bp-messages-classes.php

    Read this topic for some inspiration.


    laxmanvel
    Participant

    @laxmanvel

    Hi Dandp,

    Thanks for your reply.

    OH is it? if i customize template file then will update version overridden.! okay i understand your words.!

    finally get URL value. i want message thread id from URL.

    Just using simple keyword ( bp_get_thread_id(); )
    this function get current URL thread id in Buddypress.

    -Laxmanvel

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] How to get message convertion thread id from URL?’ is closed to new replies.
Skip to toolbar