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
  #22  
Old 01-26-2001, 10:52 PM
Guest
 
Posts: n/a
Default

but I thought using ? just passes it to another form and doesnt allow it to be submitted. That's the impression I got from http://tech.irt.org/articles/js063/index.htm
Reply With Quote
  #23  
Old 01-26-2001, 10:55 PM
Guest
 
Posts: n/a
Default

How old are you? Just wondering..
Reply With Quote
  #24  
Old 01-26-2001, 11:27 PM
Guest
 
Posts: n/a
Default

Create a form and put some fake fields in it.
Make it's method POST.
Submit it and look at the URL.
Change it's mehtod to GET.
Submit it and look at the URL.

That's their difference.
Reply With Quote
  #25  
Old 01-27-2001, 12:26 AM
Guest
 
Posts: n/a
Default

I see, GET passes the values in the URL. How does POST pass the values?
Reply With Quote
  #26  
Old 01-27-2001, 01:08 AM
Guest
 
Posts: n/a
Default

I looked at some GET vs POST answered questions at ASKasp.com and found some answers. With GET data is unsecure and limited to 250 chars, but visible in the address bar, POST sends the data to the server which processes it?
Reply With Quote
  #27  
Old 01-27-2001, 01:19 AM
Guest
 
Posts: n/a
Default

yup makes sense, like replying to this thread uses post. Ed is basically saying we can use his trick only if the resulting script will allow data input by the GET method. then it will work. If it dosen't (and i am betting everyone.net dosen't) and they use only POST then, we are i think, stuck.
Reply With Quote
  #28  
Old 01-27-2001, 02:03 AM
Guest
 
Posts: n/a
Default

If you want to use POST (you can go get this way too), you have to use sockets: http://www.php.net/manual/en/function.fsockopen.php
Reply With Quote
  #29  
Old 01-28-2001, 02:23 AM
Guest
 
Posts: n/a
Default

On the side, just saw anti-trust (only plays late at nite for some reason).

I find it interesting that the head of NURV (the MS like company) looks very much like Mr. Gates.

The movie kind of creeped me out. I keep taking looks over my shoulder now and then.
You should see it.
I give it a B+.

Thank god there is a way. I guess this is sort of like my crusade to find the holy grail.

-Eugene
Reply With Quote
  #30  
Old 01-28-2001, 12:41 PM
Guest
 
Posts: n/a
Default

$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")
?
Reply With Quote
  #31  
Old 01-28-2001, 03:12 PM
Guest
 
Posts: n/a
Default

Quote:

// Data to pass to the cgi script
$name = 'John Doe';
$email = 'johndoe@domain.com';
$description = 'Nice site, I love your animated gif collection!';

// Build the request string
$request = 'name=' . urlencode($name);
$request .= '&email=' . urlencode($email);
$request .= '&description=' . urlencode($msg);

// Build the header
$header = "POST /signup/signup2.php HTTP/1.0\r\n";
$header .= "Content-type: application/x-www-form-urlencoded\r\n";
$header .= "Content-length: " . strlen($request) . "\r\n\r\n";

// Open the connection
$fp = fsockopen('http://www.domain.com/', 80, &$err_num, &$err_msg, 30);
if ($fp)
{
// Send everything
fputs($fp, $header . $request);
// Get the response
while (!feof($fp))
$response .= fgets($fp, 128);
}
is what i was going to work from but so far havn't had much success, i only tried locally which dosen't work so i think i need to do it on a true domain name, will do this week sometime.

the get method worked fine with:

Quote:
$blah = file("http://localhost/signup/signup2.php?name=".urlencode($name)."&email=".urle ncode($email)."&description=".urlencode($descripti on)."");
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 04:30 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.04772 seconds
  • Memory Usage 2,275KB
  • 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