Hi,
I found a smarty plugin to visualize the Persian calendar. Does anyone know how I could integrate it into CMSMS?
The link is:
http://code.google.com/p/smartyjalalipl ... p&can=2&q=
There is also a version of CMSMS but is too old and does not work with 1.11.x.:
https://onedrive.live.com/?cid=fa49c2c8 ... C314%21163
Thanks in advance
far
Persian date Smarty
Re: Persian date Smarty
Usually, any smarty plugin can be dropped in CMSMS own plugins folder and it should work, but these have a hardcoded include, so your best option is to find the smarty own plugins folder (should be <site_root>\lib\smarty\plugins) and drop those files there.farhadprm wrote:Does anyone know how I could integrate it into CMSMS?
HTH
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Re: Persian date Smarty
Thank you for your response.
I copied the files in (<site_root>\lib\smarty\plugins) but when i call it my site go down.
For example, when I edit:
to
I recieve error.
Maybe I'm wrong code to call it?
Thank you
I copied the files in (<site_root>\lib\smarty\plugins) but when i call it my site go down.
For example, when I edit:
Code: Select all
{$entry->postdate|cms_date_format}
Code: Select all
{$entry->postdate|jdate_format}
Maybe I'm wrong code to call it?
Thank you
Jo Morg wrote:Usually, any smarty plugin can be dropped in CMSMS own plugins folder and it should work, but these have a hardcoded include, so your best option is to find the smarty own plugins folder (should be <site_root>\lib\smarty\plugins) and drop those files there.farhadprm wrote:Does anyone know how I could integrate it into CMSMS?
HTH
Re: Persian date Smarty
What is the error message?farhadprm wrote:I recieve error.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Re: Persian date Smarty
this is the error message:
Code: Select all
ERROR: at line 17 in file /var/www/vhosts/domain.it/httpdocs/lib/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php:
Syntax error in template "module_db_tpl:News;summaryresponsive-summary-main" on line 17 " {$entry->postdate|jdate_format}" unknown modifier "jdate_format"
Jo Morg wrote:What is the error message?farhadprm wrote:I recieve error.
Re: Persian date Smarty
Ok. There is a difference in last release of Smarty in that the correct Smarty plugins folder is in <site_root>\lib\smarty\libs\plugins (my bad), so you'll need to move the files to this folder...
... the bad news is: I tested this, and although it recognizes the modifier it doesn't seem to work so well. You'll need to debug it as there seems to be an issue with the plugin itself.
HTH
... the bad news is: I tested this, and although it recognizes the modifier it doesn't seem to work so well. You'll need to debug it as there seems to be an issue with the plugin itself.
HTH
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Re: Persian date Smarty
I tried this version and it worked!
Thank you
http://code.google.com/p/smartyjalalipl ... p&can=2&q=

Thank you
http://code.google.com/p/smartyjalalipl ... p&can=2&q=
Jo Morg wrote:Ok. There is a difference in last release of Smarty in that the correct Smarty plugins folder is in <site_root>\lib\smarty\libs\plugins (my bad), so you'll need to move the files to this folder...
... the bad news is: I tested this, and although it recognizes the modifier it doesn't seem to work so well. You'll need to debug it as there seems to be an issue with the plugin itself.
HTH
Re: Persian date Smarty
Cool!
Maybe I just don't have the locale set on my side and it pukes
.
Glad it worked for you.
Maybe I just don't have the locale set on my side and it pukes

Glad it worked for you.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!