October 3rd, 2005, 09:48 PM
|
#1 (permalink)
| | Si vis pacem, para bellum
Join Date: Sep 1999 Location: KBAD-Bossier City LA
Posts: 7,600
| Question about PHP forum code
Hi everybody!~
Long time no see.  I hope everyone is doing well.
I have a question about code on a forum like this one. What I am trying to do is set up a link to be able to send a PM to up to ten people.
Here is a link to PM me at that site:
http ://www.christianforums.com/private.php?do=newpm&stripquote=1&u=32263
(I added a space after the "http" to disable the automatic URL parsing.)
The 32263 is my user profile number. How would I write a link that would allow me to PM up to ten of these user ID numbers?
Thanks!
Dave
Last edited by daveleau : October 3rd, 2005 at 10:18 PM.
|
| |
October 3rd, 2005, 10:07 PM
|
#2 (permalink)
| | Mr. Smartypants
Join Date: Jan 2002 Location: MI
Posts: 14,107
|
Holy Cow!
Hiya Dave, sorry I can't answer the question, but I thought I would crap a hello anyway! |
| |
October 3rd, 2005, 10:17 PM
|
#3 (permalink)
| | Si vis pacem, para bellum
Join Date: Sep 1999 Location: KBAD-Bossier City LA
Posts: 7,600
|
Hey, good to see you Detritus!  Hellos from friends are never a thread crap where I'm concerned. |
| |
October 3rd, 2005, 10:19 PM
|
#4 (permalink)
| | dword to your moms
Join Date: Oct 2001 Location: ~/
Posts: 3,195
|
You could easily allow multiple u=vars (GET) to be passed via the URL and then use explode to separate them all (they will populate as comma seperated under the u key). |
| |
October 3rd, 2005, 11:56 PM
|
#5 (permalink)
| | Si vis pacem, para bellum
Join Date: Sep 1999 Location: KBAD-Bossier City LA
Posts: 7,600
|
Hi krohnjw. Thanks. How would that look in text? I'm trying to do this without access to the forum code itself. |
| |
October 4th, 2005, 01:40 AM
|
#6 (permalink)
| | Real gangstas sip on Yacc
Join Date: Oct 2001 Location: Suckas-ville
Posts: 4,549
|
If you don't have access to the code then who knows.
It simply could take u= as a strict userid, attempt to validate and send. Without access to the code there is really no way of knowing:
1) If it is possible to send to more than one using the function that page invokes
2) If it is possible, what parameters it takes
You could attempt the following if you like http://www.christianforums.com/priva...SERID3,USERID4
Without access to the code there is really no way of knowing though except to try this. If it doesn't work there really is not much you can do without access.
Jkrohn
__________________
Signatures blow hard
If your signature contains an ad of any kind, congratulations, you're on my ignore list.
|
| |
October 4th, 2005, 02:48 AM
|
#7 (permalink)
| | Si vis pacem, para bellum
Join Date: Sep 1999 Location: KBAD-Bossier City LA
Posts: 7,600
|
Thanks. I just tried your suggestion. Adding user id's in that manner only lists the first user id in the address of the PM. I guess the coding would have to allow for it, and it doesn't right now.
I appreciate the help.
Dave |
| |
October 4th, 2005, 09:14 AM
|
#8 (permalink)
| | dword to your moms
Join Date: Oct 2001 Location: ~/
Posts: 3,195
|
The coding will definitely need to allow for it to work. Unless you can somehow structure the u variable to accept a string of users that will work with the current sending format you will be unable to accomplish this without code modification.
With a bit more information as to how the PM "function" parses the u variable to determine who to send it to and how it actually sends it, it may be possible to create a to string that will send to multiple recipients, but you would likely need to find this information first.
Last edited by krohnjw : October 4th, 2005 at 09:21 AM.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | |
Posting Rules
| You may post new threads You may post replies You may not post attachments You may not edit your posts HTML code is Off | | | | Most Active Discussions | | | | | Recent Discussions  | | | | | |