dperron25 Posted March 25, 2015 Share Posted March 25, 2015 I would if my configurable option "Control Panel" is "cPanel / WHM (requires CentOS)" I'd like to show more content Example: if the choice is "No Control Panel" I want displays Server Details ============================= Server Type: {$service_product_name} Primary IP address {$service_dedicated_ip} Host Name: {$service_server_hostname} Username: {$service_username} Password: {$service_password} Additional IP for the server: {$Service_assigned_ips} if the choice is "cPanel / WHM (require CentOS)" I want displays Server Details ============================= Server Type: {$service_product_name} Primary IP address {$ service_dedicated_ip} Host Name: {$service_server_hostname} Username: {$service_username} Password: {$service_password} Additional IP for the server: {$Service_assigned_ips} WHM Access ============================= http: //{$service_dedicated_ip}: 2086 Username: root Password: {$service_password} and if I put {$Service_config_options_html} I have the result below: Control Panel: Control Panel NO Operating System: CentoOS 6 (x86_64 bit) IP address: 1 (Included) 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 25, 2015 Share Posted March 25, 2015 try... {if $service_config_options_html|strstr:'cPanel/WHM'} *content for cpanel* {elseif $service_config_options_html|strstr:'DirectAdmin'} *content for directadmin* {else} *content for no control panel* {/if} 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.