vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   AutoPM after addBuddy (https://vborg.vbsupport.ru/showthread.php?t=104872)

Antivirus 08-29-2006 02:55 PM

Quote:

Originally Posted by Erwin
Yup, they changed the way buddylists are handled in 3.6. I'll take a closer look later to see if I can make it work.

That would be fine Erwin, as I'm not yet sure when i will be moving on to 3.6 code... thanks!

GrendelKhan{TSU 08-30-2006 11:33 AM

loooking forward to this once the upgrade is done. very straightforward and useful mod. :)

Erwin 09-02-2006 06:06 AM

Hang on a minute...

Erwin 09-02-2006 06:18 AM

Okay, to get this to work in 3.6, you can replace the whole plugin with the following code - not the most elegant, but it works for me:

PHP Code:

if ($vbulletin->GPC['userlist'] == 'buddy') {

require_once(
DIR '/includes/functions_newpost.php');

$anti_autopm_bud_tit construct_phrase($vbphrase['anti_autopm_bud_tit'], $vbulletin->userinfo['username']); 

$anti_autopm_bud_mes construct_phrase($vbphrase['anti_autopm_bud_mes'], $vbulletin->userinfo['username'], $vbulletin->options['bburl'], $vbulletin->userinfo['userid'], $vbulletin->options['bbtitle'], $userid['username']); 
    
$db->query("INSERT INTO " TABLE_PREFIX "pmtext\n\t(fromuserid, fromusername, title, message, touserarray, iconid, dateline, showsignature)\nVALUES\n\t(" $vbulletin->userinfo[userid] . ", '" addslashes($vbulletin->userinfo['username']) . "', '$anti_autopm_bud_tit', '$anti_autopm_bud_mes', '" addslashes(serialize($tostring)) . "', 0, " TIMENOW ", 1)");
$pmtextid $db->insert_id();

$db->query("INSERT INTO " TABLE_PREFIX "pm (pmtextid, userid, messageread) VALUES ($pmtextid$userid[userid], 0)");
$db->shutdown_query("UPDATE " TABLE_PREFIX "user SET pmtotal=pmtotal+1, pmunread=pmunread+1 WHERE userid = $userid[userid]");




JoeWho 09-02-2006 01:26 PM

Erwin,

Thanks for updating it to work with 3.6... I changed the code in (Product : AutoPM after addBuddy by Antivirus) and tested it ...but it did not send the user I added to the buddy-list a PM, any suggestions?

Thanks!

Joep11 09-04-2006 07:14 PM

Changed the plugin but not working here either on 3.6!

JoeWho 09-05-2006 09:59 PM

Quote:

Originally Posted by Joep11
Changed the plugin but not working here either on 3.6!

To All,

Yep, bummer... Does anyone have this working on 3.6, if so please let us know how you got it to work?

Thanks.

bada_bing 09-06-2006 02:06 AM

Quote:

Originally Posted by bada_bing
Is there a way for admins and moderators to be excused from sending PM to members when they are added? For example if me the admin adds a members to my buddy list I want the option to not send a PM to that member. We use this on my other board to watch potenial trouble makers when they are online and offline and I dont want them receiving a PM from my staff saying that he is now added to my buddy list.

Anyone PLease

Antivirus 09-06-2006 01:27 PM

I could add a setting within the AdminCP which would give Admin the option of preventing the PM from being sent if sender is member of usergroup "x".

JoeWho 09-06-2006 02:13 PM

Antivirus,

Can you give me some help in fixing it so it will work with 3.6?
If you could tell me what to look for... I think I could fix it. I installed it and do not get any errors so I don't where to look.

Thanks.

bada_bing 09-06-2006 04:15 PM

Quote:

Originally Posted by Antivirus
I could add a setting within the AdminCP which would give Admin the option of preventing the PM from being sent if sender is member of usergroup "x".

Now that would be very nice

Erwin 09-07-2006 03:47 AM

Mmm... weird because the code I posted works for me fine. Mind you, my site is very hacked up.

JoeWho 09-07-2006 12:47 PM

Quote:

Originally Posted by Erwin
Mmm... weird because the code I posted works for me fine. Mind you, my site is very hacked up.

Erwin,

Can you tell me how to check it? I add someone to my buddy-list and no-PM to them. I don't receive any errors so I don't know where to look.

I am not a coder but I can hack my way through most things.

Thanks.

noonespecial 09-14-2006 12:15 AM

Anyone get this to work on 3.6?

Antivirus 09-14-2006 02:50 PM

Quote:

Originally Posted by noonespecial
Anyone get this to work on 3.6?

This hack currently only works for version 3.5.x. When I am ready to upgrade my sites to 3.6.x, i'll work on porting over the hack, but until then it's only for 3.5.x.

bada_bing 09-15-2006 12:55 AM

Antivirus,

Any update to this

Quote:
Originally Posted by Antivirus
I could add a setting within the AdminCP which would give Admin the option of preventing the PM from being sent if sender is member of usergroup "x".
Now that would be very nice

Antivirus 09-15-2006 01:14 PM

Quote:

Originally Posted by bada_bing
Antivirus, Any update to this?
Quote:
Originally Posted by Antivirus
I could add a setting within the AdminCP which would give Admin the option of preventing the PM from being sent if sender is member of usergroup "x".
Now that would be very nice

Sorry, have been really busy with some other things, and haven't been able to get to it yet. It's on my to-do list for next version of this hack however...

JoeWho 09-29-2006 02:45 PM

Quote:

Originally Posted by noonespecial
Anyone get this to work on 3.6?


Yes, I have it working... see message: #840 = Myspace Profile Re-Write PRO! 1.0.0

Lionel 10-05-2006 08:45 PM

Quote:

Originally Posted by JoeWho
Yes, I have it working... see message: #840 = Myspace Profile Re-Write PRO! 1.0.0

so you mind telling us how?

:Judge: 10-08-2006 06:17 PM

Anyone have any idea or fix on this for 3.6.*?

JoeWho 10-08-2006 06:55 PM

Quote:

Originally Posted by :Judge:
Anyone have any idea or fix on this for 3.6.*?

Well, I was hoping somebody would help me with the problem I was having, but I guess not. That won't stop me from helping someone else.

I'll post what I figured out in a few minutes, let me pull the information.

Please keep in mind that this is only a temporary fix, it is not the best way of doing it, but it does work.

JoeWho 10-08-2006 07:07 PM

Quote:

Originally Posted by Lionel
so you mind telling us how?


This is a export of the plug-in that works on my system, you can open it up and see the changes I have made.

The best part about this is... when Antivirus gets around to updating this the correct way, all you will have to do is reinstall and overwrite what is already there.

I hope this will help you.

Krofh 10-12-2006 05:05 AM

^ Trouble with that is it only works when you click on the link from someone's profile, not when you just add someone through the actual buddylist page.

robert_2004 11-01-2006 12:39 PM

QUESTION & FEATURE:
in the PM, does it allow the user to disallow / delete the friend request?
Say "adam" adds "lucy". lucy gets a PM saying she's been added, and also allowing her to add him.
in that PM, Lucy should receive a link to delete the friendship from occuring - because maybe shedoesn't want to be even seen on his profile.

bada_bing 11-01-2006 06:37 PM

Quote:

Originally Posted by Antivirus
Sorry, have been really busy with some other things, and haven't been able to get to it yet. It's on my to-do list for next version of this hack however...

Any updates to when you will add this feature or are you going to abandon this hack?

Antivirus 11-02-2006 02:07 PM

Quote:

Originally Posted by robert_2004
QUESTION & FEATURE:
in the PM, does it allow the user to disallow / delete the friend request?

Please keep in mind that this hack has nothing to do with "friend requests". You might be confusing this hack's functionality with Cloudwarrior's vbfriends hack (which was what inspired this hack). This hack simply sends a PM to "user 2" when "user 1" adds "user 2" to his/her buddy list. To answer your question, when "user 2" receives the PM, he/she is able to either add "user 1" to his/her buddy list, or if "user 2" feels "user 1" is harassing, add "user 1" to his/her ignore list.


Quote:

Originally Posted by bada_bing
Any updates to when you will add this feature or are you going to abandon this hack?

I will not be abandoning this, and I will be updating this to 3.6.x sometime after I fully upgrade my sites to 3.6 which I am currently in the process of doing so.

Cocko 11-02-2006 04:00 PM

Quote:

Originally Posted by Antivirus
I will be updating this to 3.6.x sometime after I fully upgrade my sites to 3.6 which I am currently in the process of doing so.

hope u will update very soon... :up:

Andre31 11-04-2006 06:55 PM

Quote:

Originally Posted by JoeWho
This is a export of the plug-in that works on my system, you can open it up and see the changes I have made.

The best part about this is... when Antivirus gets around to updating this the correct way, all you will have to do is reinstall and overwrite what is already there.

I hope this will help you.

I?ve installed it on 3.6.2 and it works fine. THX.:cool:

Cocko 11-16-2006 06:07 PM

Quote:

Originally Posted by Krofh (Post 1095167)
^ Trouble with that is it only works when you click on the link from someone's profile, not when you just add someone through the actual buddylist page.

same issue (?) - anybody found out to fix ?

bada_bing 11-21-2006 12:21 AM

Quote:

Originally Posted by Antivirus (Post 1075481)
Sorry, have been really busy with some other things, and haven't been able to get to it yet. It's on my to-do list for next version of this hack however...

Will this feature be available soon?

teenhut 11-29-2006 06:37 AM

Can someone make it work for 3.6? I really need this one!

noonespecial 12-04-2006 07:31 PM

Quote:

Originally Posted by teenhut (Post 1127882)
Can someone make it work for 3.6? I really need this one!

Ditto.

Willing to offer $.

delaen1 12-06-2006 12:04 PM

Quote:

Originally Posted by JoeWho (Post 1092566)
This is a export of the plug-in that works on my system, you can open it up and see the changes I have made.

The best part about this is... when Antivirus gets around to updating this the correct way, all you will have to do is reinstall and overwrite what is already there.

I hope this will help you.

This works well. I had to make a change so that it wouldn't send a PM to yourself if you added yourself to your own buddy list. It was causing a hell of a lot of confusion when testing this (I'd add a buddy, check my sent pm's, read the one that was sent to my new buddy, and click the "add me too" link...which would add myself to my own buddy list and then send me a new PM. If this sounds confusing...err..yea, it is. :))

However, there is a problem I've found where this sends the PM/Email (if they have the option enabled to receive new PM's via email) before they're actually added to the list. And there's no checking to see if a PM has already been sent. So, I was able to go to the "Add Buddy" screen, hit refresh 50 times, and mail myself off 50 emails. Not good.

Trying to figure out a fix for this. Anyone have any ideas?

delaen1 12-06-2006 12:14 PM

Oh, I see. These problems were already fixed in the prior version. Anyone know what's causing it not to work with 3.6?

Kihon Kata 12-15-2006 01:00 PM

Why doesn't this work with 3.6.4?

delaen1 12-18-2006 12:39 AM

Quote:

Originally Posted by Kihon Kata (Post 1139131)
Why doesn't this work with 3.6.4?

It seems the hook it was using was removed or renamed (at least I can't get it to fire ever).

The replacement that someone suggested earlier fires before the person is actually added to the buddy list, which creates a situation where it can be continuously spammed. With a little tweaking it can work just about the same way, but I can't figure out a solution to that problem.

Antivirus 01-10-2007 10:06 PM

I'm finally upgraded to v3.6.4 so i'll be working on an update for this soon. Thanks for your patience :)

Qwest 01-14-2007 02:43 AM

Looking forward to this. I need it for my myspace profiles hack to work.

noonespecial 01-14-2007 02:52 AM

Good.

delaen1 01-15-2007 09:28 AM

Here's the one I've been using with 3.6.4. It's mostly the one that was posted a few pages back, but with a few changes to make it slightly more difficult to spam. I'd still like any idea anyone has how to fix that problem.


All times are GMT. The time now is 09:52 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.01517 seconds
  • Memory Usage 1,846KB
  • 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)bbcode_php_printable
  • (21)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