Jump to content

Anyone have an idea of server module development?


Edi

Recommended Posts

I need a whmcs server module, this module very simple:

1. WHMCS backend -> Client Profile -> Products/Services need a HTML code supported text area.

2. And display 'HTML code supported text area' on the frontend Manage Product -> Product Details -> behind Additional Information.

Link to comment
Share on other sites

any particular reason why you need a server module to do this and can't just use Product Custom Fields ?

you could create a textarea custom field and it would be shown on the admin area Client Profile -> Products/Services page...

jfcrUzy.png

in the client area, it would normally be shown as is...

BS0mNVX.png

if you need it to not show the HTML code, but make it work as HTML, you could modify the clientareaproductdetails.tpl and change {$field.value} to...

{$field.value|html_entity_decode:$smarty.const.ENT_QUOTES:'utf-8'}

FhUGwBB.png

now you might need to wrap the above line in an {if} statement to only make the change for textareas, but as long as you don't need the client to edit the field, you should just be able to use a custom field.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • 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