Zorro67 Posted March 2, 2008 Share Posted March 2, 2008 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? 0 Quote Link to comment Share on other sites More sharing options...
Zorro67 Posted April 2, 2008 Author Share Posted April 2, 2008 I resolved this by using wz_tooltip. Then putting in the individual custom field into each relevant template 0 Quote Link to comment Share on other sites More sharing options...
chickendippers Posted April 2, 2008 Share Posted April 2, 2008 This is how we do it with addons, I'm sure you can modify it to work with configurable options: {if $addon.name eq "Downtime SMS Notification"}<a class="tooltip" href="#" onmouseover="Tip('Message Here', TITLE, 'Title Here')">{$addon.name}</a> Hope that helps 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.