![]() |
Quickly Add or Remove Users from Buddy List
I'm looking to quickly add a user into the buddylist array - or then remove it from that array with a different command.
So if user A wants to add user B to their buddylist, it runs a quick check, then alters that column (usertextfield.buddylist). If they want to remove the buddy - it removes the ID from usertextfield.buddylist. What's the SQL for this? Do I have to first grab all the data from buddylist, and then add the value, and then put it back in? Is there a easier way? |
Are you thinking of writing this as a Mod because there already is one: Buddy & Ignore List Add/Remove in Postbit I'm sure you can download that and see what the query is.
|
That just provides a link to send someone to the profile.php page to add buddies. That page for adding buddies is absolutely annoying.
|
This is how I add friends through php.
PHP Code:
|
Quote:
Interesting. |
It is code for vBulletin 3.7. Probably different then 3.6 or 3.5.
|
Yep, it is. :-/
That's too bad - that's easier to manipulate and get at the data. 3.6 is different. --------------- Added [DATE]1208820707[/DATE] at [TIME]1208820707[/TIME] --------------- I ended up just doing it kinda like this: PHP Code:
If anyone has a better/more efficient way -- I'd love to hear it. Thanks! |
All times are GMT. The time now is 12:53 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|