vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How to send private message to multiple recipients (https://vborg.vbsupport.ru/showthread.php?t=210861)

picamajstori 04-10-2009 04:04 PM

How to send private message to multiple recipients
 
If you want to link someone to send a private message to a specified user (user id ###), you get them to click on following link:

www.forum.com/private.php?do=newpm&u=### (as a generic example)

And it will direct them to a PM page with user ### in the Recipient box.

However i am wondering what you would change the link to if you want it to create a Private Message with more than one user as a recipient. Ive tried things like &u=###u=$$$ and &u=###=$$$ and &u=###,$$$ but to no avail.

Thanks

Brother Malachi 04-10-2009 05:01 PM

No, you can't simply put more "u"-s in the title. The way the url works is php picks up the "u" at the end of the link as a variable.

The syntax is blah.php?var1=blah&var2=blah&var3=blah
so you can't have more than one "u" in there or wrong syntax (&u=##=## won't work because you have two "="s)

Instead try:
forum.com/private.php?do=newpm&u=22;12;44 << that would make more sense. If that doesn't work try using a comma.

picamajstori 04-10-2009 05:21 PM

Ive tried both commas and colons already unfortunately (the last one i bolded). Perhaps there is no way around it.. Thanks anyway

benFF 05-17-2010 10:58 AM

Just incase you are still wondering:

private.php?do=newpm&userid[]=USERID&userid[]=USERID

etc etc etc...

Cadellin 07-13-2010 10:03 PM

I know this is strictly speaking the wrong area but this seamed to be the most logical place.

How is this done in vB4?

I've tried the method posted by benFF but something like private.php?do=newpm&userid[1]=USERID&userid[2]=USERID didn't work.

benFF 07-24-2010 07:37 AM

Hey Cadellin,

In my example, if you want to send to say, users with ID 1 and 2 then you would do:

private.php?do=newpm&userid[]=1&userid[]=2

Maybe this works with VB4?


All times are GMT. The time now is 12:21 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.00960 seconds
  • Memory Usage 1,718KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete