This is a new video training section for beginnier: http://www.youtube.com/user/videossurinternet

Local Date format with Advancednews

Right now (last two days) I can’t login in cmsimple.dk/forum. But I’ve found there following post:

Hallo Cracks wo werden in cmsimple die Namen der Monate gespeichert ? Das whatsnew-plugin wirft mir leider immer die englische Bezeichung der Monatskürzel raus und ich hätte da viel lieber die deutschen Abkürzungen stehen... Danke schön für eure Hilfe ! cu Martin and following answer: Hallo Mattin, ich habe mir das mal im Code angesehen. Das Plugin verwendet die Datumsformatierung von PHP - und die gibt nun mal den Monat in englischer Form aus. Für deutsche Monatsbezeichnungen muss der entsprechende Bereich des Plugins geändert werden. Kontaktier doch mal direkt den Entwickler. Grüße Joachim

I had this problem before as well (in my native language - Slovak). And after some searching and try&fault eforts a found a way which seems to work fine on my pages:

  1. I opened the plugins/advancednews/index.php file
  2. looked for lines:
for($month=$currentMonth;$month>=1;$month--){
$startmonth=mktime(NULL,NULL,NULL, $month, 1, $newsYear);

and inserted the code between them:

 setlocale(LC_TIME, 'slovak');

If you can login to the forum, and if you find this mod useful, please copy and paste as the answer to the post: http://www.cmsimple.dk/forum/viewtopic.php?t=5828

Thanks Tata

Multilanguage titles in template

Webmaster may often need to have titles written in a template. It is simple HTML topic on one language page. But if there is a need to have any 2nd language, there might be a problem for those not very familiar with CMSimple and PHP. There are various ways. This one may be the simple one:

tips_and_tricks_new.txt · Last modified: 2008/04/15 14:48 by tata