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-27-2008 01:46 AM

Quote:

Originally Posted by Boofo (Post 1500311)
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.

The only problem with it would be is that I have the ability of multiple additions, so I would have to add them all to one PM. (And send separate PMs to those who were added).

Boofo 04-27-2008 01:50 AM

I guess I don't follow you. You could do it after a user verifies through email verification.

CHIPIT 04-27-2008 01:50 AM

Thanks
*Installed

King Kovifor 04-27-2008 01:55 AM

Quote:

Originally Posted by Boofo (Post 1500320)
I guess I don't follow you. You could do it after a user verifies through email verification.

What do you mean? The modification runs with do=addmember (when it is actually "registered"). I do not limit on how many users you have automatically added to a members profile, and allow you to separate names using a comma. These are created into an array and they are systematically added to each other's friends list. My problem is that if I have 10 users in the array, I don't want to send the new member 10 different Private Messages saying "you are now friends with x". I would rather have it go something like this.

Quote:

Dear New User,

The administrator has chosen to have the following members automatically added to a new member's friend list. So, the following users have been added to your friend list:
  • Username 1
  • Username 2
If you have any questions regarding this friendship, please contact a member of the administration.

Regards,
{Board Name} Staff
Obviously will be completely customizable.

Boofo 04-27-2008 02:23 AM

OK, but what happens if they do not validate with the email validation? I think it would be better to only add registered users as users who don't validate never make it back, or is that how it works already? I haven't looked at the code so sorry if I am missing something or not understanding.

King Kovifor 04-27-2008 02:31 AM

Quote:

Originally Posted by Boofo (Post 1500338)
OK, but what happens if they do not validate with the email validation? I think it would be better to only add registered users as users who don't validate never make it back, or is that how it works already? I haven't looked at the code so sorry if I am missing something or not understanding.

Well not everyone uses Validation. I might add a check to see if validation is on and add it after that too.

Boofo 04-27-2008 02:36 AM

Validation is the best SPAM fighter vb has. ;)

Thank you for adding that in advance.

King Kovifor 04-27-2008 02:42 AM

Quote:

Originally Posted by Boofo (Post 1500346)
Validation is the best SPAM fighter vb has. ;)

Thank you for adding that in advance.

Your welcome.

nightbloom 04-27-2008 02:48 AM

AK! Yeah, I would have to wait till after you add the post validation option as well. Gaming forums get mad spam. ^^

King Kovifor 04-27-2008 02:58 AM

Quote:

Originally Posted by nightbloom (Post 1500353)
AK! Yeah, I would have to wait till after you add the post validation option as well. Gaming forums get mad spam. ^^

Depending on how late I get home tomorrow, and how long it takes me to finish my homework, I will try to have this released by tomorrow night.

Boofo, the code is rather simple, it just runs a single query to add and two to update both persons friend counts. I spent about 45 minutes figuring that one out. But the validation is easy to implement as all I need to do is copy the code and add a check to the code that is in the product now. But I will also add version checking and product urls to the product XML.


All times are GMT. The time now is 02:03 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.01114 seconds
  • Memory Usage 1,739KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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