Buying $5 for this little vbulletin 4.x fix

Discussion in 'Programming' started by Divvy, Aug 13, 2011.

  1. #1
    Hello guys,

    Maybe someone can help me...

    I have this code:
    $template_hook['postbit_userinfo_right_after_posts'] .= '<div style="clear:both;" class="left"><a target="_blank" href="'.$mylink.''.$usernumber.'">'.$mylinktitle.'</a></div>';
    PHP:
    That shows a link at postbit with all topics from the user at a two specific forums.

    I need that:
    - the link only shows when the user have threads at least in one of that two forums.
    - If not, the link doesn't appear.

    It is possible? Please? :)

    Or else, I had another idea...
    The links only appear If the user belongs to a specific group.
     
    Divvy, Aug 13, 2011 IP
  2. JamesPh

    JamesPh Well-Known Member

    Messages:
    230
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    125
    Digital Goods:
    1
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    For your second idea, you can just alter your MYSQL query, but you need to show more code for advice on how to do that. Can basically extend it to "WHERE user_group = "group_name" then it'll only display if the users under that group.
     
    JamesPh, Aug 13, 2011 IP