PDA

View Full Version : Query to add everyone to friends


AndrewSimm
11-08-2014, 06:47 PM
I am looking for a query or small bit of code to add everyone registered and everyone that will register to the friend list of a few of the admins. Think of Tom and MySpace lol.

Lynne
11-08-2014, 09:16 PM
You can't use a onetime query for that as all the information is stored in the userlist table. So, if someone adds you as a friend, you are listed as 'buddy' 'pending'. Then when you accept the friendship request, you are listed as a 'buddy' 'yes' (or if you said no, then a 'buddy' 'no'). But every one of a users contacts/friends gets listed in that table. So, if userid 100 signs up, he won't get listed if you already ran the query. You really need to write a plugin that adds it automatically when the user registers. If you don't know how to do that, you may want to consider paying someone to do that for you.

ozzy47
11-08-2014, 09:22 PM
I believe you can use this mod to add a buddy on registration, https://vborg.vbsupport.ru/showthread.php?t=252787

AndrewSimm
11-09-2014, 04:34 AM
Thank you Ozzy

ozzy47
11-09-2014, 08:01 AM
Not a problem, hopefully it still works.