Jump to content

Custom Message on Server Status Page

Recommended Posts

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]))}

{if $productinfo.pid|in_array:[1,2,3]}

{if $services.product eq 'web hosting'}

{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 $servers eq 'Linux'}

Anyone able to offer help here? simply want to get a custom message to display based on the product/server the customer is on...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated