Page 1 of 2

News items not displaying

Posted: Mon Nov 29, 2004 1:03 am
by coriolisdave
Hello again...

For no apparent reason, my news items aren't displaying in IE. They appear in Opera (and I assume Firefox), but in IE all I get is a small box for each post (http://www.classicalgeek.com/cms/cmsmadesimple/).

Any thoughts?

Edit
Okay.. seems that if I create a "news" page, the news items display. However, if I am attempting to insert the news by calling the module in a "content" page, all I get are the little boxes.

damnit.

Suggestions?

News items not displaying

Posted: Mon Nov 29, 2004 7:04 pm
by Greg
I was having a similar problem.. found it related to htmlarea not parsing quotation mark properly. Try with and without ' " etc.

News items not displaying

Posted: Mon Nov 29, 2004 11:08 pm
by coriolisdave
Greg wrote:I was having a similar problem.. found it related to htmlarea not parsing quotation mark properly. Try with and without ' " etc.
quotes in the news entries themselves?

News items not displaying

Posted: Tue Nov 30, 2004 9:23 pm
by Greg
On testing this I found the little squares appear when htmlarea wraps the link in tags.

News items not displaying

Posted: Tue Nov 30, 2004 10:35 pm
by coriolisdave
Greg wrote:On testing this I found the little squares appear when htmlarea wraps the link in tags.
Thanks - discovered that myself yesterday :) Glad to have a fix, though - which brings me to another point.

Mr Wishy Sir - would it be possible to have a couple of extra fields available for a "news" page when it is created? Particularly options for the "catagory" and "switchtitledate"?

News items not displaying

Posted: Tue Nov 30, 2004 10:42 pm
by Ted
Mr Wishy? That's my dad's name. :)

Well, I actually recommend doing a blank content page with a cms_module tag instead. 0.8 is going to introduce some changes to content, and there's some issues I haven't worked out yet. Modules as content types is one of those things...

News items not displaying

Posted: Tue Nov 30, 2004 11:09 pm
by coriolisdave
wishy wrote:Mr Wishy? That's my dad's name. :)

Well, I actually recommend doing a blank content page with a cms_module tag instead. 0.8 is going to introduce some changes to content, and there's some issues I haven't worked out yet. Modules as content types is one of those things...
Fairy snuff. As a matter of curiosity, how easy should it be to install Smarty plugins? I see that there are a few out there, like a calendar and whatnot - should these just work?

News items not displaying

Posted: Tue Nov 30, 2004 11:44 pm
by Ted
Well, there are 2 different things...

Modules and plugins are very different. A plugin can just be put in the plugins dir and smarty will automatically pick it up and use it.

Modules are more difficult, because they offer advanced functionality. Though... a module usually needs to be unziped in the modules directory, and then click the install link for it in the Plugin Management page.

There is a fairly lengthy discussion on setting up the bookmark module here.

News items not displaying

Posted: Wed Dec 01, 2004 12:28 am
by coriolisdave
wishy wrote:Well, there are 2 different things...

Modules and plugins are very different. A plugin can just be put in the plugins dir and smarty will automatically pick it up and use it.

Modules are more difficult, because they offer advanced functionality. Though... a module usually needs to be unziped in the modules directory, and then click the install link for it in the Plugin Management page.

There is a fairly lengthy discussion on setting up the bookmark module here.
Which plugins directory? The cms/smarty/plugins, or the cms/plugins? The calendar I'm looking at trying to incorporate is a "plugin" -
http://michael.yoon.org/software/smarty-plugins/. If you have a chance, take a look and let me know if this should be do-able?

Edit You can see the error I get - http://www.classicalgeek.com/cms/cmsmad ... ge=Toowong.
In order to get it to appear in the plugin list in the admin section, I specified the path to smarty.class was in the function.calendar.php file.

No joy, however. Gah! Is it obvious yet that I know next to nothing about programming? ;)

News items not displaying

Posted: Wed Dec 01, 2004 1:54 am
by Ted
A plugin like that would go in smarty/cms/plugins. However, there is a bug in 0.7.3 that makes these not get loaded right. It's fixed in svn, and, if you're feeling adventerous, I'll guide you through updating the right files to make it work.

News items not displaying

Posted: Wed Dec 01, 2004 2:05 am
by coriolisdave
wishy wrote:A plugin like that would go in smarty/cms/plugins. However, there is a bug in 0.7.3 that makes these not get loaded right. It's fixed in svn, and, if you're feeling adventerous, I'll guide you through updating the right files to make it work.
Sure, why not? It's not like it's a production site yet :) Are you able to post the instructions? I'm at work at the moment, so I'll have to do it in dribs and drabs.... (stupid bosses ;))

News items not displaying

Posted: Wed Dec 01, 2004 2:26 am
by Ted
Ok, grab these 3 files...

http://svn.cmsmadesimple.org/cms/trunk/ ... ctions.php
http://svn.cmsmadesimple.org/cms/trunk/ ... ctions.php
http://svn.cmsmadesimple.org/cms/trunk/ ... ctions.php

Put those 3 files in the lib directory.

Then, put your smarty plugin in smarty/plugins and see how it turns out.

News items not displaying

Posted: Wed Dec 01, 2004 3:29 am
by coriolisdave
Um.
Trying to view the "plugin management" page I receive:

[size=9px]Fatal error: main(): Failed opening required ' /homepages/39/d93285545/htdocs/cms/cmsmadesimple/smarty/Smarty.class.php' (include_path='.:/usr/local/lib/php') in /homepages/39/d93285545/htdocs/cms/cmsmadesimple/smarty/plugins/function.calendar.php on line 27[/size]

News items not displaying

Posted: Wed Dec 01, 2004 10:27 am
by Ted
Remove line 27 in function.calendar.php. I just tried it here and it works fine.

News items not displaying

Posted: Wed Dec 01, 2004 10:21 pm
by coriolisdave
wishy wrote:Remove line 27 in function.calendar.php. I just tried it here and it works fine.
Shite. I've gotta be doing something wrong. I removed that line from the function, which is in smarty/plugins. I have put together a page with {calendar} in it - http://www.classicalgeek.com/cms/cmsmad ... e=Enoggera, which throws 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]

Sorry to be such a n00b - I appreciate all the help.