vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Profile Enhancements - Automatically Add Friend (https://vborg.vbsupport.ru/showthread.php?t=177269)

King Kovifor 04-26-2008 10:00 PM

Automatically Add Friend
 
Introduction
This modification acts somewhat like Myspace. When you register on Myspace, the creator of Myspace (Tom) is automatically added as a friend (mutually). This acts the same way on your forum by adding any number of users (user IDs required) to the new users friend list. This is completely mutual, but now has the option to be a non-mutual friendship.

This was coded by request in this thread.

Requirements
  • vBulletin 3.7.x (This should work on ALL betas & RCs!)
Installation
  1. Upload the attached product file by following this path:
    ACP -> Plugins & Products -> Manage Products -> [Add/Import Product]
  2. Head over to the vBulletin options, open up the "User Registration Options", and set a list of users under the "Automatically Add Friends" option.
  3. Enjoy!

King Kovifor 04-27-2008 12:44 AM

Change Log
v1.0.0 (April 26, 2008)
  • Initial Release
v1.0.1 (April 28, 2008)
  • Fixed! Grammar mistake inside the ACP that has led some users into the wrong direction on how to properly set this up.
  • Fixed! Removed a var_dump() from within the code, left over from debugging.
  • New! Added ability to make this friendship non-mutual!
  • New! Product Checking was added to this product for the ability to find whether your version is up to date.
  • New! Support URL has been added linking to this thread.
  • Known Bugs:
    • Options were added for Private Message notifications, but no code was added.
    • mySQL Error Using Validation code.
    • Code may be run twice (as friend counts is being added multiple times).

Danny-E 04-27-2008 12:58 AM

installing...

thanks


edit: ended up uninstalling it :( would have wanted it to add all current members to my friends list. maybe do this in a future release? thanks

King Kovifor 04-27-2008 01:24 AM

Quote:

Originally Posted by Danny-E (Post 1500271)
installing...

thanks


edit: ended up uninstalling it :( would have wanted it to add all current members to my friends list. maybe do this in a future release? thanks

I don't know. I will try that tomorrow or next week if I get a chance.

Boofo 04-27-2008 01:29 AM

Quote:

Originally Posted by Danny-E (Post 1500271)
installing...

thanks


edit: ended up uninstalling it :( would have wanted it to add all current members to my friends list. maybe do this in a future release? thanks

Maybe as an option as I think that would not be useful, especially on larger boards.

Boofo 04-27-2008 01:30 AM

Jeremy, by mutual, what exactly does that mean?

King Kovifor 04-27-2008 01:32 AM

Quote:

Originally Posted by Boofo (Post 1500296)
Maybe as an option as I think that would not be useful, especially on larger boards.

I wouldn't make it automatic. I would always make it an option.

Quote:

Originally Posted by Boofo (Post 1500297)
Jeremy, by mutual, what exactly does that mean?

The person goes on your buddy list (as the one defined that is), as well as you on theirs.

Boofo 04-27-2008 01:34 AM

Does it send out a notice to the new user that this has happened?

King Kovifor 04-27-2008 01:35 AM

Quote:

Originally Posted by Boofo (Post 1500303)
Does it send out a notice to the new user that this has happened?

Nope. I based it off of MySpace, but I guess that is an easy addition to code. I will add this sometime next week. I will give you an option for this:
  1. User Only (Default)
  2. Admin & User
  3. No Notification

Boofo 04-27-2008 01:40 AM

Sounds good. I was just thinking that a new member that doesn't know vb that well might not understand what the automation part is all about so they might not even know that a friend has been added.


All times are GMT. The time now is 10:00 PM.

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.01270 seconds
  • Memory Usage 1,738KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete