+ Reply to Thread
Results 1 to 3 of 3

Thread: Domainlist without the . (dot)

  1. Join Date
    Apr 2006
    Posts
    5

    Domainlist without the . (dot)

    Hello,

    Is there anyway to display the tld's without the . (dot) for quicker search in the pulldownlist.
    I'm still in the developement fase, and i allso found that the .ac domein displays as ..ac (double dot) !

    Thanks in advance, nice script though !

  2. Join Date
    Aug 2004
    Posts
    781

    Re: Domainlist without the . (dot)

    The dot is hard coded. Why is it hard coded? Because if the webmaster wants it in a different format then they can just construct a dropdown box manually using their own HTML (instead of the keyword [[tld-dropbox]]).

    Thus, you have two options:

    Recommended:
    You can copy the HTML that is currently generated by [[tld-dropbox]] and remove the dots. Then you can place the modified html in the templates in place of [[tld-dropbox]].

    Not Recommended:
    Modify classes/display.php : Edit the following on line 330:
    PHP Code:
    $searchbar .= "<option value=\"{$ext}\"{$selected_text}>.{$ext}</option>\n"
    and replace .{$ext} with simply {$ext}

    The reason I do not recommend the second option is that it will be overwritten when you update the script while the first option will remain in tact through updates.

  3. Join Date
    Apr 2006
    Posts
    5

    Re: Domainlist without the . (dot)

    Well I tried option one, but then no domain searchbar is being shown.

    I'll try option 2.

    Regards,

    Jelle Dijkstra

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts