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
  #2  
Old 01-26-2001, 09:26 AM
Guest
 
Posts: n/a
Default

i started a post about just the same type of thing yesterday:

http://vbulletin.com/forum/showthread.php?threadid=7216
Reply With Quote
  #3  
Old 01-26-2001, 02:23 PM
Guest
 
Posts: n/a
Default

i dont understand what your trying to do on your site. If they sign up it puts them in the database. I want to have a form that signs them up to multiple sites, and i dont have explicit access to the database.
Reply With Quote
  #4  
Old 01-26-2001, 02:25 PM
Guest
 
Posts: n/a
Default

Also, I dont want to have multiple sign ups to Vb.

I want it to sign up to Vb, a chat service, and everyone.net, all from one page.

The problem is, each of those services name the fields differently, one calls the username "username", another calls it "Dig.user", etc..
Reply With Quote
  #5  
Old 01-26-2001, 02:52 PM
Guest
 
Posts: n/a
Default

same here....

basically i want this for two things. 1 is exactly what you want, so that they sign up for say vbulletin and their email also goes to a mailing list script as well.

Secondly, i want to be able to put some code into someone's elses of server script (that does NOT do mysql itself with username and password) that sends some info to say register2.php (to be made) on my server that adds the info to my database?

ie.

1. user goes to http://www.friendsdomain.com
2. user fills in form to sign up for friendsdomain.com
3. form contains username and email etc.
4. presses submit
5. goes to http://www.friendsdomain.com/processform.php
----
6. Now i want that info to also be sent to http://www.mydomain.com/register.php so it can deal with it.
----
7. user sent to http://www.friendsdomain.com/thankyou.php
Reply With Quote
  #6  
Old 01-26-2001, 03:00 PM
Guest
 
Posts: n/a
Default

Everything you want done can be done, I just don't know the way to code it.

It will fire off a Lynx browser on your system, that updates each of those other sites

Like
http://www.blah.com/register.cgi?use...&password=blah etc

The sistes would have to all a post from outside their server on the script for it to work.
Reply With Quote
  #7  
Old 01-26-2001, 04:23 PM
Guest
 
Posts: n/a
Default

cool... i suppose the hidden frame thing could work like that as well creating a frame with url

http://www.domain.com/register.php?u...assword=blah.. i may see if i can do that although doing it the way you suggest would be a lot better, i will search around and see if i can find anything.
Reply With Quote
  #8  
Old 01-26-2001, 04:51 PM
Guest
 
Posts: n/a
Default

What I've done is simple, probably not incredibly efficient, but it works.

$blah = file("http://www.domain.com/script.php?arg=".urlencode($val)."&arg2=1");

Of course, this might not work if the program being used ignores variables sent through GET. You could do a more complex way and just emulate POST, but I'm not going to go into that.
Reply With Quote
  #9  
Old 01-26-2001, 06:07 PM
Guest
 
Posts: n/a
Default

Quote:
Originally posted by Ed Sullivan

$blah = file("http://www.domain.com/script.php?arg=".urlencode($val)."&arg2=1");
Uh huh, what does each part of this statement do?
Reply With Quote
  #10  
Old 01-26-2001, 07:32 PM
Guest
 
Posts: n/a
Default

cool ed, simplicity is best - clever

thanks

eugenie

$blah = file("http://www.domain.com/index.html")

just tells the script to download the file (in the process of course it sends the data to that server.. about to come to that).

the

?arg=blah

arg is like username=
and blah would be the actual username

now the .urelencode($val) is just to turn $val (which may be say two words into url transmittalbe information).

Make sense.

ED:

How would you do this in perl?
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 11:04 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.04316 seconds
  • Memory Usage 2,270KB
  • Queries Executed 23 (?)
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
  • (1)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
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)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