Jump to content

Hard coded portions


kipperjp

Recommended Posts

Hello,

 

The template system on whmcs is well thought out. Unfortunately I found a portion that is hard coded. The upgrade/downgrade of packages. I found the tables have hard coded styles:

 

<table align="center" bgcolor="#cccccc" cellspacing="1" width="90%">
<tbody><tr style="text-align: center; font-weight: bold;" bgcolor="#efefef"><td width="55%">Description</td><td width="45%">Price</td></tr>

<tr bgcolor="#ffffff"><td><input name="pid" value="2" type="hidden"><input name="billingcycle" value="monthly" type="hidden">Starter Hosting => Basic Hosting</td><td align="center">$9.33 USD</td></tr>

<tr style="font-weight: bold;" bgcolor="#efefef"><td align="right">Subtotal:  </td><td align="center">$9.33 USD</td></tr>
<tr style="font-weight: bold;" bgcolor="#efefef"><td align="right">Total Due Today:  </td><td align="center">$9.33 USD</td></tr>
</tbody></table>

 

Notice the style tags with the bgcolor and the font-weight attributes. Where is this code? It is not in the upgrade.tpl file.

 

Thanks!

 

-John

Link to comment
Share on other sites

Using a program like UltraEdit that allows for searching in unopened files makes locating these things simpler. I'm a bit behind on upgrading, and a search for "bgcolor="#efefef"><td align="right">Subtotal" turned up no results in the whole of the install directory.

 

I did find something like it in the "upgradesummary.tpl" file in the default templates directory, however.

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