Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 01-25-2001 Last Update: Never Installs: 0
 
No support by the author.

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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 01-28-2001, 03:45 PM
Guest
 
Posts: n/a
Default

Maybe these threads will help?
http://www.phpbuilder.com/mail/php3-...99806/0902.php
Reply With Quote
  #33  
Old 01-28-2001, 03:49 PM
Guest
 
Posts: n/a
Default

<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>
Reply With Quote
  #34  
Old 01-28-2001, 04:07 PM
Guest
 
Posts: n/a
Default

<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.
Reply With Quote
  #35  
Old 01-28-2001, 04:12 PM
Guest
 
Posts: n/a
Default

Here is the original, with other items about it

http://www.phpbuilder.com/mail/php3-...99806/0856.php
Reply With Quote
  #36  
Old 01-28-2001, 04:35 PM
Guest
 
Posts: n/a
Default

Quote:
Originally posted by Eugenie2000
$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);
}


is that what I use? Where do I insert
fopen("http://some.site.com/html/page.html","r")
?



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??
Reply With Quote
  #37  
Old 01-28-2001, 05:12 PM
Guest
 
Posts: n/a
Default

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.
Reply With Quote
  #38  
Old 01-28-2001, 08:49 PM
Guest
 
Posts: n/a
Default

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:
PostToHost("www.ascifi.net","/post/signup2.php","name=".urlencode($name)."&email=".ur lencode($email)."&description=".urlencode($descrip tion)."");





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);
}
what this does is:

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.
Reply With Quote
  #39  
Old 01-28-2001, 09:47 PM
Guest
 
Posts: n/a
Default

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?
Reply With Quote
  #40  
Old 01-28-2001, 09:59 PM
Guest
 
Posts: n/a
Default

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)?
Reply With Quote
  #41  
Old 01-28-2001, 10:55 PM
chrispadfield2
Guest
 
Posts: n/a
Default

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:57 PM.


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.05077 seconds
  • Memory Usage 2,283KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete