Support for Domain Broker 2 - Landing Page to Sell Domains

Support for Domain Broker 2 - Landing Page to Sell Domains

Cart 781 sales
Well Documented

LoewenWeb does not currently provide support for this item.

Popular questions for this item

Can I add multiple recipients to the contact form?

Yes, to do that simply open includes/process-form.php, then add the following code after line 136:

$mail->AddCC('email@example.com', 'Your Name');

How can I show the right price and description whether “www.” is included in the domain name or not?

I suggest redirecting the domain name/s to your preferred format. Add a new file called .htaccess in the same directory as index.php. Then edit that file with the following contents:

For www. in front of all domains:

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

To remove www. for all domains:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

To remove www. for all domains AND force https:// (you must have a SSL certificate that is valid for all your domains)

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.(.)$ [NC]
RewriteRule ^(.)$ https://%1/$1 [R=301,L]
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

Note that this applies to Apache web hosting only.

Once applied, these changes will be cached in your web browser, since they are using a 301 redirect. This means that any future changes you make will require clearing the browser cache before they take effect.

How do I add additional fields to the contact form?

To add more fields in the form, you’ll need to edit two places.

1) In includes/views/offer-form-partial-view.php – you will need to add fields inside the DIV element with a class of “fields”. You can copy and paste an existing field and edit the details as needed.

2) In includes/process-form.php, add your new field names to the $fields array, then add them to the email template inside $mail->Body.

Can I host this theme on a domain I don’t want to sell?

Yes, it is possible to set up Domain Broker 2 on a primary domain you do not want to sell!

Just upload the theme to a new folder on your primary domain (example: yourdomain.com/db2), and set up each domain you want to sell with Domain Broker 2 as an add-on domain in your web hosting control panel, with the Document Root set to the “db2” folder.

Is there a way to add many domains at once without having to enter each one?

I suggest contacting your web host if you have many domains to add, providing them with a spreadsheet or text file with your list of domains and requesting they add them to your account as Alias or Add-on domains (depending on your needs – if you want to install Domain Broker 2 on a domain you do not wish to sell, choose add-on domains and make sure the document root is set to the folder domain broker is installed).

If you have dedicated or VPS web hosting, you can do this yourself by using a script, such as this one.

How do I fix the server misconfiguration (500) error?

If loading Domain Broker results in an error message like this:

“The server encountered an internal error or misconfiguration and was unable to complete your request.”

or

“500 – internal server error”

The file permissions will need to be changed. Using your FTP client or hosting Control Panel, edit the index.php, config.php, and includes/process-form.php file permissions to 644.

This issue is fixed in version 1.1.1 of Domain Broker 2.

How do I fix the template not displaying at all (blank screen) or a PHP syntax error?

If visiting the template in your web browser shows no content, or a PHP error message, check the PHP version in your web hosting control panel. PHP 5.4+ is required.

If the version shows as less than 5.4, use the PHP version switcher in the control panel to upgrade it, or if no switcher is available, contact your web host to upgrade.

How do I change the icons?

Form fields

The form field icons are set in the assets/css/screen.css file. Search for this block, it should be about line 1247:

.field-wrapper .offer-label:after {
  content: "\e020";
}

The content property is setting the icon. To see what content codes match up with what icons, refer to assets/scss/_linecons.scss.

Other icons

Icons in other locations, such as the error/success icons and domain portfolio icon are inserted in index.php using the following markup:

<span aria-hidden="true" class="icon li_pen" />

To change the icon, change the class name that starts with “li_”, in this case “li_pen”. For a list of available icons, refer to the icon classes found at the bottom of assets/scss/_linecons.scss.

Why can’t I log in to the Visual Editor with my Microsoft/Google/LinkedIn account?

Please update to the latest version of Domain Broker 2 which uses your Envato account to log in.

Is Domain Broker 2 compatible with my web hosting?

Domain Broker 2 is compatible with the majority of shared, VPS, and dedicated web hosts, especially hosts with cPanel. The basic requirements are:

  • PHP 5.6+ with standard modules installed (PHP 7 and 8 are supported, 8+ is recommended)
  • Apache
  • PHP allow_url_fopen setting enabled (create a test file with <?php phpinfo(); ?> and visit it in your browser if you’re not sure that your web host has this setting enabled – most do)
Known exceptions:
  • 1&1 Hosting – Visual Editor does not function

Email is not sending from the contact form using SMTP

Certain versions of PHP 5.6 have experienced issues sending email through SMTP.

If you can, try switching to a different PHP version, such as a more recent version of PHP 5.6 or to PHP 7.

If that option isn’t available, you’ll have to remove the SMTP credentials (server and password), and send through your web host’s default email server. In this case, I’d recommend setting up your email filter to prevent messages from going to your spam folder.

How do I fix “Parse error: syntax error, unexpected ‘[’ in ../includes/functions.php on line 30”?

Some versions of PHP throw this error because of the square brackets used in functions.php. To fix this, replace /includes/functions.php line 30 with this:

$rgb = array($r, $g, $b);

How can I fix a “This domain name is not valid” error after submitting the form?

The most common issue is in the reCAPTCHA website settings. Try disabling “Domain Name Validation” under Advanced Settings on the reCAPTCHA website.

Second, make sure the domain name is set up either through the Visual Editor or config.php.

Third, please note that the domain name set up through the Visual Editor or config.php must match exactly what is entered in the web browser. This means www. must be included if you want to access the domain via www.

How do I translate the interface to my/my client’s language?

Here are the files to edit, just change the words to your language of choice:

Note: file locations refer to version 1.3.2

  • includes/functions.php line 202
  • includes/process-form.php line 22, 38, 71, 118, 123, 127, 161, 206–223
  • includes/views/ (all files in this folder except for index-partial-view, scripts-partial-view, and styles-partial-view)
  • includes/editor.php (for the Visual Editor interface)
  • assets/js/main.js line 121, 178–179

LinkedIn Fails to Log In

Note: the latest version supports logging in with your Envato account. This FAQ applies to versions previous to 1.4.0.

First, please check that there is no slash at the end of your Authorized Redirect URL.

If that doesn’t solve it, then open the config.php file, and edit the LinkedIn section to match the following:

'LinkedIn' => array(
  'api_key' => '(your API key)',
  'secret_key' => '(your secret key)',
  'scope' => 'r_basicprofile r_emailaddress'
),

Note the change to the ‘scope’ line. If that doesn’t solve it, feel free to contact me using my profile page contact form.

How can I change the currency symbol in the form?

To edit the currency symbol, open includes/views/offer-form-partial-view.php and change line 127:

placeholder="offer ($)*" 

How do I set up email with GMail (or G Suite)?

You can use your Gmail or G Suite account to send email through the Domain Broker 2 contact form to take advantage of the more reliable deliverability and spam filtering Google provides. Here are the steps:

  1. Enter smtp.gmail.com in your config.php file beside “smtp_server”
  2. Enable 2-step authentication in your Gmail account
  3. Create an app password to use with Domain Broker 2
  4. If email is not sending yet, enable “Allow less secure apps” in your Google security settings
  5. Also, check your inbox for emails from Google asking you for permission to receive the new messages
If you’re still not seeing messages come through, you can view detailed error messages by enabling debugging.
  1. Open includes/process-form.php and un-comment line 177, so it will look like this: $mail->SMTPDebug = 3; then save the file.
  2. Open the landing page in your browser
  3. Open Chrome Developer Tools (F12 or Ctrl+Shift+I) and switch to the “Network” tab
  4. Fill out and submit the Domain Broker 2 form
  5. Click the new request that showed up in the Network tab – called “index.php?ajax” then click the “Response” tab. This will show the error message, if any.
  6. Feel free to email me this error message if you would like assistance.

Show more

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve ThemeForest.

Sure, take me to the survey