Jump to content

Changing label from recent tickets in client area


Recommended Posts

Hello, is it possible to modify the label from the recent tickets panel on the client area home ? Now it's something like

<label class="label" style="background-color: #2DCE89">Open</label>

 

but i want to edit it to

<label class="badge" style="background-color: #2DCE89">Open</label>

Thank you for your help.

Link to comment
Share on other sites

16 hours ago, ZeProf2Coding said:

Hello, is it possible to modify the label from the recent tickets panel on the client area home ?

not easily - there's no file that you can edit to tweak these panels as their generation will be hardcoded within WHMCS.

I suppose the native way would be a homepagepanels hook, though you'd have to loop through the children of the panel and change the html code within each (string replace) - then set the children with the updated content.

another way would be to edit the clientareahome.tpl template and use a Smarty replace on the appropriate variable - though if this is only to occur for this one panel, that code would need to be wrapped within an if statement.

wyA3VsP.png

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.

Guest
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