Jump to content

Tooltip help with Custom fields


Zorro67

Recommended Posts

Hi guys,

 

i wonder if there are any coding genieii* (is that the correct spelling for the collective plural?)

that could help me with tool tips for custom fields within WHMCS.

 

I don't have many yet, but I'm planning to add 100-150 custom fields in the next week

 

I know there are 90 ways to enter tooltips (add to mysql, etc), but i have taken the easy way out and added them to the English.txt file as

$_LANG["tooltipcompanyname"] = "What is your \'Trading As\' name?";

 

I have the tooltip code entered into the relevant space of each .TPL file

eg in client register.tpl, at the point of the @@@

<tr><td class="fieldarea">{$LANG.clientareacompanyname}</td><td><input type="text" name="companyname" size=30 value="{$clientcompanyname}"> @@@ </td></tr>

 

I have added <a href="#" onmouseover="Tip('{$LANG.tooltipcompanyname}')"><img src="/support/images/clientarea/helpsm2.png" border="0" alt="tooltip"/></a>

 

Works really well. Then i got to custom fields.

 

I believe I can define it as

$_LANG["tooltip<pluscustomlabelname>"] = "Insert relevant text here";

 

but i'm not sure of the coding to lookup a custom string within a {foreach} routine.

<a href="#" onmouseover="Tip('{$LANG.<get the name of the tooltipcustomlabelhere>}')">

 

has anyone got an easy solution?

Link to comment
Share on other sites

  • 5 weeks later...

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