Results 1 to 5 of 5

Thread: Create custom field for domain

  1. #1
    Join Date
    Jan 2012
    Posts
    10

    Default Create custom field for domain

    Hi

    I tried to find how to make a custom field for domain panel.

    Same as you can create custom field for product.
    I need to add username and password field for domain page. clientarea.php?action=domaindetails

    Basically when I add un/pass on the admin side under domain tab, it appears on the client side as well.

    Easy to do this? Or should I forget it?

    Thanks

  2. #2
    Join Date
    Feb 2007
    Location
    London, United Kingdom.
    Posts
    3,891

    Default

    yes, in ./includes, look at the domain additional fields php file
    Rob Golding UK Web Hosting est 1996 - Cloud/VPS/Servers in own UK London Docklands DataCentre - ICANN Accredited Registrar (PM me for a free WHMCS domain reseller module)
    WHMCS Modules: Registrars:CentralNIC, RRPProxy, AstutiumDomains, Cacti Bridge, APC/Raritan Power Control, Linux-Ensim, DNS Manager, VAT Reports, Samba Control

  3. #3
    Join Date
    Jan 2012
    Posts
    10

    Default

    sure, but those are fields that customer have to fill in when he is registering domain. I need fields that I can fill in from the admin panel. Like username/password for services/products.

    Thanks

  4. #4
    Join Date
    Feb 2007
    Location
    London, United Kingdom.
    Posts
    3,891

    Default

    Yes, just use the same file, and prefix them with "ADMIN", and change your orderform/tpl not to ask for the user to put data in the ones starting with ADMIN
    Rob Golding UK Web Hosting est 1996 - Cloud/VPS/Servers in own UK London Docklands DataCentre - ICANN Accredited Registrar (PM me for a free WHMCS domain reseller module)
    WHMCS Modules: Registrars:CentralNIC, RRPProxy, AstutiumDomains, Cacti Bridge, APC/Raritan Power Control, Linux-Ensim, DNS Manager, VAT Reports, Samba Control

  5. #5
    Join Date
    Jan 2012
    Posts
    10

    Default

    Hi

    Hmm, can you give me an example? Are you talking about this file? additionaldomainfields.php

    If you could maybe give me a line of code as a example that would be great.

    Thanks
    Krys

Similar Threads

  1. Add custom field in Domain Admin Contact
    By fanico in forum Customisation & Integration Questions
    Replies: 0
    Last Post: 02-20-11, 09:09 AM
  2. Possible? Set the value of a custom field based on the domain option selected
    By writeclickmedia in forum Customisation & Integration Questions
    Replies: 0
    Last Post: 10-13-10, 11:38 PM
  3. API: Create Client custom field
    By deviantlinux in forum Customisation & Integration Questions
    Replies: 0
    Last Post: 03-30-09, 09:23 PM
  4. Create Ticket Action Hook and custom field
    By ahmadfarhan in forum Customisation & Integration Questions
    Replies: 1
    Last Post: 05-06-08, 11:48 PM