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.


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