News items not displaying

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

News items not displaying

Post by Ted »

You need to have the function, the resource and the calendar.tpl files in there.
coriolisdave

News items not displaying

Post by coriolisdave »

I have them all in there (even the readme! ;)). I've just tried extracting them again and editing the file, and it is no longer throwing the error. However, simply inserting {calendar} into a page doesn't show anything.. should it? Or are there arguments I need to input?

Do I actually need to do anything with the .tpl files?
coriolisdave

News items not displaying

Post by coriolisdave »

I also just tried throwing {calendar url_format=$url_format year=$year month=$month day=$day} (from the example.tpl file) into a content page, but that produced the error:
[size=9px]Warning: Smarty error: [in db:Enoggera line 244]: syntax error: custom function 'calendar' is not implemented (Smarty_Compiler.class.php, line 779) in /homepages/39/d93285545/htdocs/cms/cmsmadesimple/smarty/Smarty.class.php on line 1088[/size]
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

News items not displaying

Post by Ted »

Do: {calendar url_format='' year='2004' month='12' day='02'}

You can put that php code to grab the current date into a user defined plugin, but I would start there first.
coriolisdave

News items not displaying

Post by coriolisdave »

Tried that, same error?
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

News items not displaying

Post by Ted »

Sorry, that was me making an ASSumption.

Do: {calendar url_format='?year=%Y&month=%m&day=%d' year='2004' day='01' month='12'}

This is working fine for me on my dev box. I'll try and take some time tomorrow to write up how to do the custom tag to get it to use the current date.
coriolisdave

News items not displaying

Post by coriolisdave »

*whimper*
I'm still getting exactly the same error - I'm following instructions, honest guv!

Thanks for your help -sorry to be such a pain.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

News items not displaying

Post by Ted »

:)

If you have some time, jump on the IRC channel. We can proably get through this a lot faster that way.
Locked

Return to “[locked] Installation, Setup and Upgrade”