Manchester Web Hosting Posted March 13, 2022 Share Posted March 13, 2022 So stuck getting to display a custome message on the server status page depending on the type of product OR server type/module being used I.e: if its a linux product then show X if its a server product show Y Thought this would have been pretty straight forward in hard coding it to the page without using any quiries (not good at that) and according to: https://whmcs.community/topic/14277-server-status-questions/?do=findComment&comment=78449 that should work but doesnt :( so far tried a good few combinations: {if (in_array($gid, [1,2,3]))} <div> MY CUSTOM MESSAGE </div> {/if} {if $productinfo.pid|in_array:[1,2,3]} good {/if} {if $services.product eq 'web hosting'} good {/if} {if $server.name == "Linux"} <img src=win.gif> Windows Enterprise Server 2003 {elseif $servers == "Windows"} <img src=tux.gif> Linux Red Hat Enterprise 4.4 {/if} {if $servers eq 'Linux'} good {/if} Anyone able to offer help here? simply want to get a custom message to display based on the product/server the customer is on... 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.