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-28-2008 06:15 PM

Quote:

Originally Posted by Boofo (Post 1501506)
That is because of your setting description. The "Separate usernames with a comma". ;)

Oops. Thanks! I will make that change now. I am thinking of adding a few more things...

Boofo 04-28-2008 08:22 PM

I just installed the new version and am curious, where is the code to send the PM?

King Kovifor 04-28-2008 09:21 PM

Quote:

Originally Posted by Boofo (Post 1501753)
I just installed the new version and am curious, where is the code to send the PM?

Did I seriously forget that?! Wow. I feel like an idiot. But there probably is none (cause I did this release in a rush). I will add this maybe tonight, maybe tomorrow.

Boofo 04-28-2008 10:03 PM

Also, if it uses the activate_process hook, I would have it disable the other code as the queries do not need to run for the other hook.

Should I hold my breath now? ;)

King Kovifor 04-28-2008 10:14 PM

Quote:

Originally Posted by Boofo (Post 1501835)
Also, if it uses the activate_process hook, I would have it disable the other code as the queries do not need to run for the other hook.

Should I hold my breath now? ;)

It does. The other code is only run when validateemail (which turns on the validation) is set to no. I really haven't had time to test this, so if any one notices problems, please let me know.

Boofo 04-28-2008 10:17 PM

I didn't see the code wrapped in the other hook is why I asked.

You didn't test this? Shame on you. ;)

King Kovifor 04-28-2008 10:21 PM

Quote:

Originally Posted by Boofo (Post 1501847)
I didn't see the code wrapped in the other hook is why I asked.

You didn't test this? Shame on you. ;)

I didn't test as I knew that since it was the same code it would work, that validate email was a boolean so !$vbulletin->options['validateemail'] would allow the code to run. It is basically the same code as before, just with some new checks.

Boofo 04-29-2008 02:25 AM

Got a major problem with this now. It added me as a friend to the new user but this is what is shows now in the Friends tab:

Quote:

Showing Friends 1 to 1 of 2
And this shows in the Friends Block but with only my avatar there and no other friends showing in the block:

Quote:

Showing 1 of 2 Friend(s)
I am the only friend this new user has right now. It is also showing me as having 1 more friend than I actually have, too. I am uninstalling until this can be fixed, if it can.

King Kovifor 04-29-2008 10:20 AM

Quote:

Originally Posted by Boofo (Post 1502003)
Got a major problem with this now. It added me as a friend to the new user but this is what is shows now in the Friends tab:



And this shows in the Friends Block but with only my avatar there and no other friends showing in the block:



I am the only friend this new user has right now. It is also showing me as having 1 more friend than I actually have, too. I am uninstalling until this can be fixed, if it can.

What is your configuration (unless of course the validate email didn't actually stop the code from running)?

Boofo 04-29-2008 06:17 PM

What do you mean? I just set the userid to 1.

I think it did as I was talking about earlier and ran both hooks.

King Kovifor 04-29-2008 06:34 PM

Guess Validate e-mail didn't stop it... Hm. Gotta look into that.

GoTTi 04-29-2008 10:59 PM

i upgraded to 3.7.0 today, but i am still getting a error that i think is caused by this mod...


Code:


Database error in vBulletin 3.7.0:
Invalid SQL:
INSERT INTO userlist (userid, relationid, type, friend) VALUES (, 1, 'buddy', 'yes');
MySQL Error  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 1, 'buddy', 'yes')' at line 1
Error Number  : 1064
Request Date  : Tuesday, April 29th 2008 @ 01:11:23 PM
Error Date    : Tuesday, April 29th 2008 @ 01:11:23 PM
Script        : http://www.site.com/forums/register.php?do=activate
Referrer      : http://www.site.com/forums/register.php?a=ver
IP Address    : IP HERE
Username      : USERNAME-HERE
Classname    : vB_Database
MySQL Version :

ideas?

this error was emailed to me btw

GoTTi 04-29-2008 11:00 PM

and also, the new users that registered today were not added to my list.

Ryan Ashbrook 04-29-2008 11:29 PM

Been waiting for this, thanks. :)

King Kovifor 04-30-2008 12:06 AM

Quote:

Originally Posted by GoTTi (Post 1502803)
i upgraded to 3.7.0 today, but i am still getting a error that i think is caused by this mod...


Code:


Database error in vBulletin 3.7.0:
Invalid SQL:
INSERT INTO userlist (userid, relationid, type, friend) VALUES (, 1, 'buddy', 'yes');
MySQL Error  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 1, 'buddy', 'yes')' at line 1
Error Number  : 1064
Request Date  : Tuesday, April 29th 2008 @ 01:11:23 PM
Error Date    : Tuesday, April 29th 2008 @ 01:11:23 PM
Script        : http://www.site.com/forums/register.php?do=activate
Referrer      : http://www.site.com/forums/register.php?a=ver
IP Address    : IP HERE
Username      : USERNAME-HERE
Classname    : vB_Database
MySQL Version :

ideas?

this error was emailed to me btw

Um... It seems like the user id is not added into the query. I guess $userid isn't available. Thanks for letting me know...

Quote:

Originally Posted by GoTTi (Post 1502804)
and also, the new users that registered today were not added to my list.

DId you turn the mutual setting on?

GoTTi 05-01-2008 02:03 PM

i have removed the mod. i am waiting for the fix for that error. do you want me to reinstall the mod and see if it duplicates? when will you be releasing the fixed version

GoTTi 05-01-2008 02:14 PM

ok when i click to activate account, i get taken to /register.php?a=act&u=486&i=XXXXX and i see that error again.

"Make This A Mutual Friendship" is set to yes.

King Kovifor 05-01-2008 03:17 PM

Quote:

Originally Posted by GoTTi (Post 1504569)
i have removed the mod. i am waiting for the fix for that error. do you want me to reinstall the mod and see if it duplicates? when will you be releasing the fixed version

Sorry to hear that, but I will be able to fix starting tomorrow. But I will be able to do it...

Quote:

Originally Posted by GoTTi (Post 1504584)
ok when i click to activate account, i get taken to /register.php?a=act&u=486&i=XXXXX and i see that error again.

"Make This A Mutual Friendship" is set to yes.

Thanks for the information. I guess that $userid isn't used within the validation code. I need to look into the userid variable that is used by default vBulletin code.

GoTTi 05-01-2008 11:04 PM

ok i have it uninstalled for now untill you get it fixed. lemme know. thanks.

King Kovifor 05-01-2008 11:41 PM

Quote:

Originally Posted by GoTTi (Post 1505116)
ok i have it uninstalled for now untill you get it fixed. lemme know. thanks.

At least I am getting the reports now. :) I am not going to code tonight, but will code tomorrow or this weekend. So you should have an update by monday.

egyptsons 05-02-2008 12:20 AM

what about old users ?
can I add them also to a special user?

GoTTi 05-02-2008 04:23 AM

cool beans pal. ur doing a great job. no rush

King Kovifor 05-02-2008 10:16 AM

Quote:

Originally Posted by egyptsons (Post 1505183)
what about old users ?
can I add them also to a special user?

Not yet. I haven't coded that into the product.

carrlos 05-03-2008 02:57 AM

Not working for me. Same problem as GoTTi. Let us know when it's ready. I really like this mod.

King Kovifor 05-03-2008 02:25 PM

I am working on it. I got what I think should work for PMs but it is giving me errors...

GoTTi 05-04-2008 04:09 PM

well post up what you have so far and lets see if the error duplicates

King Kovifor 05-04-2008 06:59 PM

Quote:

Originally Posted by GoTTi (Post 1508238)
well post up what you have so far and lets see if the error duplicates

I haven't actually touched that code. And registration just gives a blank page...

carrlos 05-06-2008 02:37 AM

I say just forget the email registration. Just make the friendship mutual like on MySpace and be done with it. That was the whole idea in the beginning. If the new member doesn't want to be friends, he/she can just delete the person (again, a la MySpace).

My two cents!

King Kovifor 05-06-2008 07:13 PM

Quote:

Originally Posted by carrlos (Post 1509991)
I say just forget the email registration. Just make the friendship mutual like on MySpace and be done with it. That was the whole idea in the beginning. If the new member doesn't want to be friends, he/she can just delete the person (again, a la MySpace).

My two cents!

That is now a working option. You can turn that on/off as you please (and I feel that users requiring validation shouldn't be added as friends till AFTER validation occurs; so that needs fixed.).

gamerfu 05-06-2008 07:36 PM

security tokens? i will be watching this thread!

King Kovifor 05-07-2008 10:28 AM

Quote:

Originally Posted by gamerfu (Post 1510872)
security tokens? i will be watching this thread!

It shouldn't need any. Are you getting the error?

GoTTi 05-07-2008 11:59 PM

when you re-releasing this king, im eager for this already :)

King Kovifor 05-08-2008 01:24 AM

Quote:

Originally Posted by GoTTi (Post 1512155)
when you re-releasing this king, im eager for this already :)

Let's say when I get some time. As I have been pretty much non stop school for the past week and have been attempting to meet a deadline for a project which has taken up my free time. Depending on whether or not I can sit down and do it on Friday, Saturday, or Sunday.

moger 05-08-2008 09:34 PM

ok installed and i get this error everytime someone signs up...and noone is added as friends....

Database error in vBulletin 3.7.0:
Invalid SQL:INSERT INTO userlist (userid, relationid, type, friend) VALUES (96, bugzy, 'buddy', 'yes');
MySQL Error : Unknown column 'bugzy' in 'field list'Error Number : 1054
Request Date : Thursday, May 8th 2008 @ 05:19:11 PM
Error Date : Thursday, May 8th 2008 @ 05:19:11 PM
Script : http://mysite.com/register.php?do=addmember
Referrer : http://mysite.com/register.php?do=addmember
IP Address : 84.**.***.**
Username : LORANS
Classname : vb_database
MySQL Version :

is this a part of the problens that you are fixing??

King Kovifor 05-09-2008 07:27 PM

Quote:

Originally Posted by moger (Post 1513113)
ok installed and i get this error everytime someone signs up...and noone is added as friends....

Database error in vBulletin 3.7.0:
Invalid SQL:INSERT INTO userlist (userid, relationid, type, friend) VALUES (96, bugzy, 'buddy', 'yes');
MySQL Error : Unknown column 'bugzy' in 'field list'Error Number : 1054
Request Date : Thursday, May 8th 2008 @ 05:19:11 PM
Error Date : Thursday, May 8th 2008 @ 05:19:11 PM
Script : http://mysite.com/register.php?do=addmember
Referrer : http://mysite.com/register.php?do=addmember
IP Address : 84.**.***.**
Username : LORANS
Classname : vb_database
MySQL Version :

is this a part of the problens that you are fixing??

Within the Administrators CP, you don't want to set "Bugzy" to be added as friends. You want to use "Bugzy"'s user ID.

indie2industry 05-12-2008 01:50 AM

testing it now

*edit*

Seems to work fine.

Stubbed 05-12-2008 07:41 AM

This mod has a lot of promise! I'll be installing it when I can do a mass query to add everyone to a friends list...

:)

King Kovifor 05-13-2008 12:41 AM

Quote:

Originally Posted by Stubbed (Post 1516910)
This mod has a lot of promise! I'll be installing it when I can do a mass query to add everyone to a friends list...

:)

That may be a few versions away.

gettingbetter 05-13-2008 10:49 AM

Any progress King? I had to uninstall mine due to the MySQL Syntax Error that other people have been getting, but would love to install this one soon! :)

Thanks for the hard work.

King Kovifor 05-13-2008 06:27 PM

Quote:

Originally Posted by gettingbetter (Post 1518135)
Any progress King? I had to uninstall mine due to the MySQL Syntax Error that other people have been getting, but would love to install this one soon! :)

Thanks for the hard work.

I have some free time today, and will be attempting to finish the update.


All times are GMT. The time now is 11:46 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.01303 seconds
  • Memory Usage 1,833KB
  • 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
  • (2)bbcode_code_printable
  • (20)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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