Get profile id

Is there short code to get profile id for custom link in menus ?

  • More
Replies (6)
    • Hello Hodor Hodor !

      Instead of "2" you need to place the {profile_id} key.

      • thanks

        • it's not working, it goes to /page/posts-author?profile_id={profile_id}

          • Plz specify - on what page you want to see this menu point - {profile_id} works in connected "profile unit" areas?

            • on view post page

              i want to create see my posts link for per user

              • Then it will require to add new variable via the code. For example, {author_id}. Then add the processing in modules/boonex/posts/classes/BxPostsMenuView.php after the line like:

                parent::__construct($aObject, $oTemplate);

                need to add the new one like:

                $this->addMarkers(array(

                            'author_id' => $this->_aContentInfo[$CNF['FIELD_AUTHOR']]

                        ));

                Login or Join to comment.