Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-07-2007, 07:59 PM
Tane Tane is offline
 
Join Date: Jul 2002
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default buddylist conditional on Postbit_Legacy

OK, I have seen some threads on this, but all relate to older VB versions.

I want a condition in Postbit_Legacy based on whether the poster is in your buddylist.

I am trying to get something that works with 3.6.

Previous threads:
https://vborg.vbsupport.ru/showthread.php?t=82471

------------------
My problem is where to put this code:

PHP Code:
 // set-up for buddylist conditional - postbit 
    $isbuddy = explode(' ', $bbuserinfo['buddylist']); 
     
    if (in_array($post['userid'], $isbuddy)) 
    { 
        $isbuddy = true; 
    } 
    else 
    { 
        $isbuddy = false; 
    } 
From plugin at hook "postbit_display_start" - I don't seem to have access to $bbuserinfo['buddylist'] - I have also tried $vbulletin->userinfo['buddylist'].

From the Postbit_Legacy template, I CAN display $bbuserinfo[buddylist] - which a space separated list, not an array.

Any ideas, as I'm sure there is a simple answer that I'm missing.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:07 PM.


Powered by vBulletin® Version 3.9.0
Copyright ©2000 - 2017, vBulletin Solutions Inc.