vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Query to add everyone to friends (https://vborg.vbsupport.ru/showthread.php?t=315332)

AndrewSimm 11-08-2014 06:47 PM

Query to add everyone to friends
 
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.


All times are GMT. The time now is 01:34 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
  • Page Generation 0.00917 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete