Forum Support

Shape 5
March 28, 2024, 12:53:53 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: how to add color to "Taken" and "Available"  (Read 724 times)
seachen
Jr. Member
**
Offline Offline

Posts: 4



« on: June 04, 2009, 06:07:52 PM »

Hi sir,

May i know how to add color to  "Taken" and "Available"?

Can somebody provide the guide..

Thanks.
Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #1 on: June 05, 2009, 08:59:56 AM »

That would require some custom programming. The module doesn't output separate class names for each option.
Logged

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
rammon
Jr. Member
**
Offline Offline

Posts: 1



« Reply #2 on: October 23, 2012, 02:03:41 AM »

A simple solution is to replace this code:

function showDomainResult($domain,$server,$findText)
{
  if (checkDomain($domain,$server,$findText))
  {
     echo "<div style='margin-bottom:4px'>$domain Available</div>";
   }
   else echo "<div style='margin-bottom:4px'>$domain Taken</div>";
 }

By this other code:

function showDomainResult($domain,$server,$findText)
{
   if (checkDomain($domain,$server,$findText))
   {
      echo "<div style='margin-bottom:4px;color:green'>$domain Available</div>";
    }
else echo "<div style='margin-bottom:4px;color:red'>$domain Taken</div>";
}
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.