How displaying reviews on a custom page


  • Artur
    Newbie
     
    12 points

    Hi,

    I added such a code on the buddypress profile page

    <?php echo _user_trustbar($authorID, ‘inone’); ?>

    the bar is displayed but does not show the correct number of ratings
    ————–
    I also wanted to add product display
    <i class=”glyphicon glyphicon-search”></i> /?s=&uid=<?php echo $post->post_author; ?>” style=”color:#5CB85C”>SHOW ITEM

    but also does not show user’s products .. it shows all (/?s=&uid=0)

    There is a global variable? which should be added to this code?

    Best regards

    Attachments:
    You must be logged in to view attached files.

    Josh
    Josh
    Super Guru
     
    13,887 points

    Hello Artur,
    Try using $user_info = get_userdata($authorID); in your file



    Artur
    Newbie
     
    12 points

    Hello

    thanks Josh for the answer

    I have already tried it at the beginning :)

    if (!defined(‘THEME_VERSION’)) { header(‘HTTP/1.0 403 Forbidden’); exit; }
    $user_info = get_userdata($authorID);

    no error, but it does not work correctly

    I just want to move the AT user profile to the buddypress profile.
    Buddypress has more options to follow users etc.

    ps.I also thought about transferring buddypress options to AT author.php, but the effect was similar ..

    Attachments:
    You must be logged in to view attached files.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.