View Full Version : Hey a little help
Menekali
08-16-2004, 02:19 AM
Cool script i love it. I was wondering how i could get the script to generate alternatives (random or not,) that arent registered. So say you go to register yahoo.com. Obviously its not available, so the scripts offer you the .org .net etc... but id like this as well:
"try these alternatives as well
123yahoo.com
ya-hoo.com
myyahoo.com
yahoo321.net "
etc. How could i go about doing this? Thanks in advance for the help.
Menekali
08-17-2004, 12:39 AM
Hey also this i need too (more than the above). When it comes to the outside script example i need this. I just want it to pass the variables to another page, and then im going to use that page to email the information.
So it will take them to a registration page, with the domain they chose, and extension already filled out, and then they fill out their personal information, and then they click mail and it will mail. I can code the mailing part, but the passing of the variables is a tough one for me. I tried just changing the outside script to purchase.php in the config, file, then trying to exho out the $domain but it just comes up with a parse error. Heres the code i tried
<? PHP
echo "$domain";
?>
I would just like it to do that, rather than use the whole url integration of the variables. Could you PLEASE help me out thanks alot.
Patrick
08-17-2004, 12:25 PM
Cool script i love it. I was wondering how i could get the script to generate alternatives (random or not,) that arent registered. So say you go to register yahoo.com. Obviously its not available, so the scripts offer you the .org .net etc... but id like this as well:
"try these alternatives as well
123yahoo.com
ya-hoo.com
myyahoo.com
yahoo321.net "
etc. How could i go about doing this? Thanks in advance for the help.
I will see if I can get this into the next release.
Hey also this i need too (more than the above). When it comes to the outside script example i need this. I just want it to pass the variables to another page, and then im going to use that page to email the information.
So it will take them to a registration page, with the domain they chose, and extension already filled out, and then they fill out their personal information, and then they click mail and it will mail. I can code the mailing part, but the passing of the variables is a tough one for me. I tried just changing the outside script to purchase.php in the config, file, then trying to exho out the $domain but it just comes up with a parse error...
This is fairly easy if you just use the built in $CONF['external_script_url'] variable in the config and the extra support added in version 1.41 (make sure you are using the latest).
Just set your $CONF['external_script_url'] to the url of your payment script, such as http://www.yourdomain.com/purchase.php .
Then in purchase.php, the variables would be available as:
$_POST['domain']
$_POST['ext']
So example code would be:
echo $_POST['domain'] . "." . $_POST['ext'];[code]
With this you could hide the domain into some hidden form objects and have the whole thing look something like:
[code]
<form name="domain_email" action="either mailto:youremail@youremail.com or other_script_for_sending.php" method="post">
Name: <input type="text" name="Name"><br>
Address: <input type="text" name="Address"><br>
Whatever else: <input type="text" name="Whatever_Else"><br>
<input type="hidden" name="domain" value="<? echo $_POST['domain'] . "." . $_POST['ext']; ?>">
<input type="submit" value="Submit Domain Registration">
Now if you pass this onto another script to mail to you, you will be able to access all of these variables via the same $_POST variable, with $_POST['domain'] including the full domain in the above html/php.
I hope this helps you out. As of v1.41 I included an external_example_script.php to give examples of manipulating and using domains that have been passed on.
Menekali
08-17-2004, 01:08 PM
Thanks man i got the variables going good. It does indeed pass on the information to my purchase.php Thanks for the help. I will be looking forward to see the code that allows the manipulation.
I will get working on the mailing and tell ya if it worked thanks bro.
Menekali
08-18-2004, 05:35 AM
Hmm another question, is there anyway to pass the price of the chosen domain (which variable would i do that with?) to the purchase.php?
Patrick
08-19-2004, 02:20 PM
Passing in the price would not be a good idea because a person could simply pass in whatever they want and potentially screw up your system. You could try to include the whois config file and work with the price array, but that would require a little programming knowledge.
Hi
Your Whois script is very nice and easy to install.
Is it possible to change it so that it can check for .co.za domains? I mostly sell .co.za and .com domains.
Regards
Pieter
Patrick
08-24-2004, 08:54 PM
In the config.php file you can change this easily. I can't recall what option it is off of the top of my head, but there is a listing of .com, .net, .org in the config.php. You can add tlds, remove tlds, ect. through this list to be automatically search for.
Powered by vBulletin™ Version 4.0.0 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.