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.
coriolisdave

News items not displaying

Post 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?
Greg
Power Poster
Power Poster
Posts: 598
Joined: Sun Sep 26, 2004 6:15 pm

News items not displaying

Post by Greg »

I was having a similar problem.. found it related to htmlarea not parsing quotation mark properly. Try with and without ' " etc.
Greg
coriolisdave

News items not displaying

Post 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?
Greg
Power Poster
Power Poster
Posts: 598
Joined: Sun Sep 26, 2004 6:15 pm

News items not displaying

Post by Greg »

On testing this I found the little squares appear when htmlarea wraps the link in tags.
Greg
coriolisdave

News items not displaying

Post 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"?
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

News items not displaying

Post 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...
coriolisdave

News items not displaying

Post 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?
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

News items not displaying

Post 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.
coriolisdave

News items not displaying

Post 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? ;)
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

News items not displaying

Post 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.
coriolisdave

News items not displaying

Post 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 ;))
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

News items not displaying

Post 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.
coriolisdave

News items not displaying

Post 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]
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

News items not displaying

Post by Ted »

Remove line 27 in function.calendar.php. I just tried it here and it works fine.
coriolisdave

News items not displaying

Post 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.
Locked

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