The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Details »» | |||||||||||||||||||||||||
I need code that will take an entry into a formbox, send a copy of that entry to one site using one name for the box, send it to another site using another name for the box, etc...
In other words, I'm trying to create one single registration page that will transparently register the user with liveuniverse.com, and Vbulletin at the same time, without renaming all the login fields on member.php. For example the field for the username on Liveuniverse.com is named "dig.new.handle" while the field for the username on Vb is named "username". If someone could help me with this it would be greatly appreciated. A friend suggested hidden frames, but I didn't understand his explanation. Thanks! -Eugene Pertinent info: My forum http://techhappy.com/forums/member.p...ster&who=adult Liveuniverse: http://www.liveuniverse.com Show Your Support
|
Comments |
#32
|
|||
|
|||
Maybe these threads will help?
http://www.phpbuilder.com/mail/php3-...99806/0902.php |
#33
|
|||
|
|||
<a href="http://marc.theaimsgroup.com/?l=php-general&m=90222503032679&w=2" target="_blank">http://marc.theaimsgroup.com/?l=php-...2503032679&w=2</a>
|
#34
|
|||
|
|||
<a href="http://marc.theaimsgroup.com/?l=php-general&m=90222503032679&w=2" target="_blank">http://marc.theaimsgroup.com/?l=php-...2503032679&w=2</a>
is very useful, thanks. Will try that out very soon. |
#35
|
|||
|
|||
Here is the original, with other items about it
http://www.phpbuilder.com/mail/php3-...99806/0856.php |
#36
|
|||
|
|||
Quote:
have you got it working now? i have with the links you gave me, if you need help i can but i imagine you have it working now?? |
#37
|
|||
|
|||
Nope, I'm not sure which script to use to accomplish what I need.
function PostToHost($host, $path, $data_to_send) { $fp = fsockopen($host,80); fputs($fp, "POST $path HTTP/1.1\n"); fputs($fp, "Host: $host\n"); fputs($fp, "Content-type: application/x-www-form-urlencoded\n"); fputs($fp, "Content-length: ".strlen($data_to_send)."\n"); fputs($fp, "Connection: close\n\n"); fputs($fp, $data_to_send); while(!feof($fp)) { echo fgets($fp, 128); } fclose($fp); } You would call this function with something like: PostToHost("www.whatever.com","/cgi-bin/whatever.cgi","abc=123&def=456"); or $fp = fsockopen ("www.php.net", 80, $errno, $errstr, 30); if (!$fp) { echo "$errstr ($errno)<br>\n"; } else { fputs ($fp, "GET / HTTP/1.0\r\n\r\n"); while (!feof($fp)) { echo fgets ($fp,128); } fclose ($fp); } Perhaps you can email me what you did if you don't want to display it. |
#38
|
|||
|
|||
ok.
i have two scripts. one is called signup.php and the other is called signup2.php the idea is that signup.php is like the register script for vbulletin. It does whatever it does and then you add in a bit more to make it send the data to your other script. The other script is signup2.php - this would perhaps be your everyone.net script etc (it is the one that you do NOT need to edit). Anyway, this is what i added to signup.php Quote:
1) connects to the domain name http://www.ascifi.net 2) and finds the script url at /post/signup2.php 3) it then sends the data name=$name url=$url description=$description 4) prints if it works or not. So basically, signup.php is sending a form containing a name, email and a description field to your external script as if a webuser was doing it. This should work for everyone.net i would think. |
#39
|
|||
|
|||
So basically I would substitute in the address of the everyone.net sign up page instead of index2.php?
Does it matter that everyone.net might use something other than php? |
#40
|
|||
|
|||
Your a scifier? Cool.
Im a trekkie, although I like andromeda more nowadays. Beltran (Q) was on andromeda, and is going to be in the next episode on monday nite. I missed the first version on Saturday. How old are you? Anyway, this will open a socket to the site, and they will be unable to avoid this emulation, no? Your version will send whatever $email is equal to, put it in the form field named "email", send whatever $username is equal to, and put it in the form field named "username"; since "email"=$email, and "username"=$username It will submit it to whatever script is running (whether it be Perl/CGI, PHP, ASP, etc... since the script will get the HTML end result of the PHP, Perl, or ASP script)? |
#41
|
|||
|
|||
yeah that is all correct, it will not matter if asp etc.
couple of things: 1) check out the everyone.net signup page, they may have hidden variables and stuff like that you need to incclude 2) it is NOT guaranteed to work by any stretch of the imagination. Everyone.net can prevent signups coming from outisde their domain, so that it would have to be from their page, if they did this at a server level you might not get round it, i recon you probably could though as communityarchitect.com went to quite strong measures to stop this sort of thing, see www.signup.ascifi.net to see (at the bottom you have to type in the numbers and graphics they have). I am 19. Sci-Fi yeah, love it. stargate/farscape are my favourite. ST i like in moderation, andromeda.. um.. ok but Kevin Sorbo is just, i am afraid to say, corny. Suffice to say my opinions arn't hugely popular on my www.talkandromeda.com board but lots there like it. Do come and join in |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|