PDA

View Full Version : Buddy-List on every site


HumGym
01-02-2003, 11:06 AM
Is their a hack for displaying the user's buddy-list on every site of the forum? Or what do I have to change to get that? I've tried to copy the buddylist-parameter in every template, but it didn't work.

thanks in advance

Kars10
01-02-2003, 11:38 AM
Hi HumGym!
It is possible but i think not so good, because you earn a lot of Querys on the pages with the buddylist...
I think you should forget this.

BtW: Here on vborg is a hack where you can have the buddys as a Dropdown on the index.php.
I tested this hack and get about 15 Querys more like without the buddylist... ;)

HumGym
01-05-2003, 11:53 AM
What are "Querys"? And what makes them so negative?

Logician
01-06-2003, 08:01 AM
Originally posted by Kars10
BtW: Here on vborg is a hack where you can have the buddys as a Dropdown on the index.php.
I tested this hack and get about 15 Querys more like without the buddylist... ;)
You dont need to query the db for buddy list as its already loaded into the memory when a member logs in.

If you go through buddy list of the member and query the session table for each of the buddies to get their status, this will produce additional queries.

However you can achieve your goal with 1 query with a simple trick: Instead of getting online status of each buddies seperately, get the entire list of visible online members from session table inside global.php, then compare the list with your buddy list to produce online buddy list. This will add 1 query to any vb page and you can use the list in all vb pages by adding it to header, footer etc.

HumGym
01-07-2003, 10:01 PM
Could you please explain step-by-step what I have to do? ('cause I'm quite not an expert in vbulletin theme editing/programming)

I know that there's a parameter $buddylist on the UCP. But if I copied that in other themes, it doesn't work. So, what exactly do I have to do?

thanks in advance