Jump to content

edit client area panels widget


avatco

Recommended Posts

hi

how can i edit client area panels ( widgets ) and edit date format on this panels ?

i want to add my SMARTY to edit date format on home panels like recent tickets , recent news

check this picture :

http://www.docs.modulesgarden.com/images/d/d5/Z2_21.png

i want to edit date code below the items on recent news and recent tickets

 

where are the php or tpl file of widgets panels ?

 

sorry for my english ! :cry:

Link to comment
Share on other sites

how can i edit client area panels ( widgets ) and edit date format on this panels ?

i want to add my SMARTY to edit date format on home panels like recent tickets , recent news

check this picture :

http://www.docs.modulesgarden.com/images/d/d5/Z2_21.png

i want to edit date code below the items on recent news and recent tickets

 

where are the php or tpl file of widgets panels ?

they are called HomePage Panels and you cannot edit them in the template files - you would need to write an action hook, using PHP code, to modify or create them - you cannot use any Smarty code to do this.

 

http://docs.whmcs.com/Working_With_Client_Area_Home_Page_Panels

 

however, you may be in luck because the dates in these panels can be changed by the choice in your Localisation tab in General Settings.

 

http://docs.whmcs.com/Localisation_Tab#Client_Date_Format

 

Client Date Format

 

Choose how the date will be displayed throughout your client area.

so if you wanted to use the USA date format (mm/dd/yyyy) in your client area (and these panels), you would select MM/DD/YYYY from the Date Format dropdown and select "Same as Admin" for the Client Date Format.

 

kZQXAPX.png

 

however, if you wanted to use an unsupported WHMCS date format, e.g jalali, then you would need to modify the existing panels or create new ones - in this instance, it would probably be easier to create new panels and output the date in the format of your choice - but it would not be easy because you would need to query the database to get all of the data required for the output, and also require special external code to convert the dates to jalali.

Link to comment
Share on other sites

thanks for your great answer brian !

exactly i need to convert date format to jalili

in Template .tpl file , emails Template and sms module i just add |sdate to convert date format to jalali , i fix all files but i can not find any way to edit HomePage Panels

i read your answer and links you send , i think it's better to keep them untouched and use USA date format instead of jalali

 

 

brian thanks for your time to write , and great answer

and sorry for my english

i wish u good life

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