Jump to content

PHP not working in template files as it should


Recommended Posts

Hi,

 

I'm probably doing this the wrong way, but I can't seem to make this work:https://hastebin.com/ojewomebar.bash

 

We're trying to make it output the TLDs and prices from the database, but it just shows a blank page. Anyone who can help?

 

I see that the PHP tags are disabled by default for security reasons. Is there anyway else we could achieve the same?

Link to comment
Share on other sites

I'm probably doing this the wrong way, but I can't seem to make this work

it sends a shudder down my spine when I see {php} tags now! :)

 

We're trying to make it output the TLDs and prices from the database, but it just shows a blank page. Anyone who can help?

I see that the PHP tags are disabled by default for security reasons. Is there anyway else we could achieve the same?

by using a data feed? :idea:

 

http://docs.whmcs.com/Data_Feeds#Domain_Pricing_Table

 

alternatively, you could use an action hook is this is going to eb used on a WHMCS page... or someone has previously posted a price list hook to replace the pricing table that was removed in v7...

 

https://forum.whmcs.com/showthread.php?119130-WHMCS-v7-explore-domain-TLDs

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.

×
×
  • 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