avatco Posted April 24, 2016 Share Posted April 24, 2016 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 ! 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted April 25, 2016 Share Posted April 25, 2016 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. 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. 0 Quote Link to comment Share on other sites More sharing options...
avatco Posted April 25, 2016 Author Share Posted April 25, 2016 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 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.