The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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? |
#2
|
||||
|
||||
![]()
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.
|
#3
|
|||
|
|||
![]()
That just provides a link to send someone to the profile.php page to add buddies. That page for adding buddies is absolutely annoying.
|
#4
|
|||
|
|||
![]()
This is how I add friends through php.
PHP Code:
|
#5
|
|||
|
|||
![]() Quote:
Interesting. |
#6
|
|||
|
|||
![]()
It is code for vBulletin 3.7. Probably different then 3.6 or 3.5.
|
#7
|
|||
|
|||
![]()
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! |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|