Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 37

Thread: domain suggestion tool

  1. #16
    Join Date
    Mar 2008
    Posts
    144

    Default

    Not sure why all of the default plugins for Smarty are not loaded, there are a few worthwhile modifiers missing.... For those who want to take a look, here is the link to the download the current version of smarty (which is the same version used in 4.2.1) and all you need to do is copy the modifier.*.php files from the Smarty-2.6.26\libs\plugins directory (from the zip file) into your WHMCS/includes/smarty/plugins directory...
    Thanx!
    Rob

  2. #17
    Join Date
    Mar 2009
    Posts
    25

    Default Thanks Sparky ... that solved that part

    Just rechecked my 4.2.1 download, and I can confirm that file wasn't part of the distribution.

    Now why it's pulling the GBP pricing has me stumped. We do have 4 currency's setup, with USD as the default. Everything else of the site works properly, except this script.

    Anyone have a fix or willing to take a look at the zip file and update it?

  3. #18
    Join Date
    Mar 2010
    Location
    Argentina
    Posts
    286

    Default thanks !!

    Quote Originally Posted by sparky View Post
    upload the attached file to your includes/smarty/plugins directory and remove the .txt from the end
    Thanks it works fine now !!

  4. #19
    Join Date
    Jan 2012
    Location
    USA
    Posts
    360

    Default

    Should i assume this is what us opensrs people are using now, i dont see this has been added as a feature to whmcs.

  5. #20
    Join Date
    Jan 2012
    Location
    USA
    Posts
    360

    Default

    OK i got this working but you dont have to upload any new modifer to the smarty folder.

    All you have to do is use the strtolower function in your form.

    The original shows this.

    <td><input type="checkbox" name="domains[]" value="{$result.domain|lower}" /> {$LANG.domainavailable}</td>
    <td><select name="domainsregperiod[{$result.domain|lower}]" style="width:175px;">

    Which bombs out because it does not recognize the "lower" attribute.

    So just change it like this, very easy.

    <td><input type="checkbox" name="domains[]" value="{$result.domain|strtolower}" /> {$LANG.domainavailable}</td>
    <td><select name="domainsregperiod[{$result.domain|strtolower}]" style="width:175px;">

    works great. For me i created a html file that fit my site look, put the form inside of that, which calls the php file, and then put the php file inside my whmcs dir (with my info inside) then put the tpl file in my template folder and whala works great. Even carries the name selected all the way thru the order process.

    I just have to decide if i want to keep the check for login that exists in the whmcs sample code, i dont think i need that, i should be able to just remove that section all together.

    Very nice job bill.

    Thanks billchalmers

  6. #21
    Join Date
    Jan 2012
    Location
    USA
    Posts
    360

    Default

    A few improvements i am working on. Get more results, min of 50 would be better. Possibly have a pagination (not sure with 50 results) just thinking. And being able to isolate which tld i want to search for. No sense in showing any of the others if thats not what i want to focus on.

  7. #22
    Join Date
    Jan 2012
    Location
    USA
    Posts
    360

    Default

    Ok i have made some improvements and able to do both mixed and individual tlds, anyone interested in checking this out?

  8. #23
    Join Date
    Jan 2012
    Location
    USA
    Posts
    360

    Default

    i am not an expert on xml i think i just change this to 50 for more replys,
    <item key='maximum'>25</item>
    but not sure, it bombed on me when i changed this when testing and gave up on that idea, not a big deal.

    Anyway it seems to work, there are some tlds that it is not compatable with in the look up, im not sure if that is my registrar or the script but when looking up .ca and .co.uk and .tv it blew up and the xml showed inside that those tlds were not compatable.

    The only compatable tlds are what is in my form.

    I limited the input to 50 chars, if they cant come up with a name in 50 chars they are sad lmao.

    You may have to tweak the tpl a bit for your template but process wize its sound i do believe. If anyone sees anything let me know im sure that all together we can all come with something really grand.

    There are three files,
    suggest.html - just a form page, change the action of the form to where your whmcs is. This goes in your website root.

    suggest_name.php which is just the file to display the page just as bill had mentioned - all i did was take out the check if login part and add some text documentation. This file goes in your root whmcs folder.

    namespinner.tpl This is the meat of the process - there is internal doc. The original did not verify if no results of query so it still showed the add to cart stuff with no results, and did not sanitize, i did fix both items and also added some checks and balances. It should be well documented. Just put your opensrs stuff in the top of this file where instructed just like the orig file was. This file goes in your template folder.

    Thats it. Check it out and let me know. If you have improvments, make them and post the result here with explanation please. We got this process for free so lets continue to give the better versions for free please, let's give back.

    Thanks.

    Here is the zip.
    Attached Files Attached Files
    Last edited by durangod; 05-03-12 at 06:29 PM.

  9. #24
    Join Date
    Jan 2012
    Location
    USA
    Posts
    360

    Default

    I forgot to mention in the suggest_name.php file youll have to change this breadcrumb if your not doing an html file.

    PHP Code:
    $breadcrumbnav .= ' > <a href="../suggest.html">Suggest Name Tool</a>'

  10. #25
    Join Date
    Jan 2012
    Location
    USA
    Posts
    360

    Default

    Iit appears that 6 people have downloaded this new version, any feedback?
    Its short for durango dave.
    Courage is being scared to death but saddling up anyway.

  11. #26
    Join Date
    Nov 2010
    Posts
    2

    Default

    hi ive added the files and made the changes as stated above, however after clicking submit, i get "sorry no results found"

    Ive added my opensrs username and private key ofcorse.

    I appreciate any help or im willing to hire you directly to help implement and maybe modify this code/plugin.

    my ICQ number is: 567856388
    or i'll monitor this thread.

    thanks!

  12. #27
    Join Date
    Jan 2012
    Location
    USA
    Posts
    360

    Default

    Strange, should work fine. Please let me know what your typing into the input field, what text exactly?, so i can test it here as well. Thanks.
    Its short for durango dave.
    Courage is being scared to death but saddling up anyway.

  13. #28
    Join Date
    Nov 2010
    Posts
    2

    Default

    Hi,

    Ive tried several things such as apple or business.

    i get this on the following page (suggest_name.php)

    Below Are Your Suggested Available Domain Names
    Domain Name Status More Info
    Sorry there were no results found!

    Thanks

  14. #29
    Join Date
    Jan 2012
    Location
    USA
    Posts
    360

    Default

    Sorry for late reply i have not been available. Not sure whats going on with your install of this. Worked for me perfect and 35 others have not said it didnt work. Has to be something with your install of it, a permission, something strange. Your not getting an error? Do you have errors set to show and did you check your log?

    I dont know that to tell you honestly, it has to be something that is special to your environment i would think. Also this is not my mod, i just found it and did some small improvements and then loaded it back for other to do the same. Sorry i cant be more help but im surprised its not working.
    Its short for durango dave.
    Courage is being scared to death but saddling up anyway.

  15. #30
    Join Date
    Jan 2012
    Location
    USA
    Posts
    360

    Default

    jo2jo, hey just fyi when i moved to the new server mine stopped working as well, so i will look at it tomorrow and see whats up with this thing. And yes mine is doing exactly as yours does, no results. I will keep you posted.
    Its short for durango dave.
    Courage is being scared to death but saddling up anyway.

Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. domain suggestion tool
    By alkadr in forum Customisation & Integration Questions
    Replies: 1
    Last Post: 08-31-11, 04:16 PM
  2. OpenSRS Domain Suggestion Tool Integration
    By tkalfaoglu in forum Feature Requests
    Replies: 2
    Last Post: 01-31-11, 04:32 PM
  3. ResellerClub Domain Suggestion tool?
    By hypertoast in forum Customisation & Integration Questions
    Replies: 0
    Last Post: 04-21-10, 02:51 PM
  4. Enom Advanced domain suggestion tool
    By ecommerce-host in forum Feature Requests
    Replies: 7
    Last Post: 03-23-08, 03:25 PM