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 |
#52
|
|||
|
|||
Hey dood, check out http://www.addesigner.com/ to make some cool banner ads for your sci-fi sites.
You could have them generate it, and then save it to your hd, then edit it with a animated gif editing software to remove the branding, hehe! |
#53
|
|||
|
|||
We're so horrible, then again, everyone else is trying to milk us dry, so were just paying them back.
|
#54
|
|||
|
|||
hehe, coincidence as it be, i came across that site yesterday
|
#55
|
|||
|
|||
So let me see if I have this right, the following is a very crude version of what i think i'm supposed to do:
<TD><normalfont><B>User Name:</B></normalfont></TD> <TD><INPUT TYPE="TEXT" NAME="$username" SIZE=25 MAXLENGTH=25> </TD> </TR> <TD><normalfont><B>Password:</B></normalfont></TD> <TD><INPUT TYPE="PASSWORD" NAME="$password" SIZE=25 MAXLENGTH=15> </TD></TR> <TD><normalfont><B>Email:</B></normalfont><br> <smallfont>Please enter a valid email address. You can choose to hide it below in the preferences section.</smallfont></TD> <TD><INPUT TYPE="TEXT" NAME="$email" SIZE=25 MAXLENGTH=50> </TD> </TR> PostToHost("www.everyone.net","/whatever/signup2.php","everyonename=".urlencode($username). "&everyoneemail=".urlencode($e mail)."&everyonepassword=".urlencode($password)."" ); 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); } //end So that's basically it? Everyoneemail is the imaginary name that everyone.net uses for the form (i havent checked to see the real one). Based on that, is my code correct? |
#56
|
|||
|
|||
no. you can't mix the html and php just like that.
You need 3 sections: 1) a html file. This should contain your form that you want to get the details from. Quote:
Then you need a submit button with the action pointing to your php script script. 2. Php Script. call this process.php or whatever you want. it gets the info from the above script (this is email and password). The values that email holds (ie what was typed in) is now held in $email. You can do now what ever you want with these variables in the script, add them to a database etc whatver. 3. Sending a form off. If you want to sign someone up for the everyone.net email account then what you have next appears ok Quote:
Of course, everyone.net will need more fields in their signup process, to find out view the source of their webpage. (p.s. i still don't think it will necessary work as they will have referer checking on it but you can try). That is all there is to it. p.s. i think you need to do a bit of reading about how basic form processing in php works so you can understand how the advanced stuff does (which some of this is). There are loads of good tutorials on this sort of thing, www.hotscripts.com is a good place to find lots of them, it will almost certainly help. |
#57
|
|||
|
|||
It automatically puts whatever value was in email into $email?
|
#58
|
|||
|
|||
or i just say "email='$email'," ?
|
#59
|
|||
|
|||
Quote:
username="$username", password="$password". Then in the second part, i would send the data, while saying everyonenetuser="$username", etc..? |
#60
|
|||
|
|||
um no.
you already have $username and $password in the script. You really need to tell me what you are trying to actually do. Are you just trying to have a form on your site so people can sign up to everyone.net? is that it? if so, all you need is the 1st bit (html page for getting info) and the third bit (sending data of to another server). |
#61
|
|||
|
|||
Will the intermediate file automatically put the content recieved for the field "username" into $username? Could I see the code for the intermediate file?
What I want to do is have users fill out a form, then have it sent to 3 different sign up forms, each time chaning the form names sent to correspond with the unique form names on each of those forms. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|