[SOLVED:] Album called from news content - tag not interpreted

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
Caspar

[SOLVED:] Album called from news content - tag not interpreted

Post by Caspar »

I have placed the tag for an existing Album in the content area of an news article:

Code: Select all

{cms_module module='Album' albums='26'}
Insted of the particular album being displayed in the frontend, the tag is being displayed, just as it is notated in the backend. Varitations with upper-/lowercase didn't bring no change. It particulary astonishes me that there is no error message or something like that. The tag seems to be interpreted as usual text. Has anybody have had the problem before and know a solution!

Thank you!
Caspar

P.S.: System: Apache, PHP5, MySQL, CMSMS 1.1.1. Usually all fine with CMSMS.
Last edited by Caspar on Wed Sep 05, 2007 5:29 pm, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Album called from news content - tag not interpreted

Post by Dr.CSS »

I think you have dbl. posted this question...

But look in the source/HTML button of editor to make sure it's not wrapped in the   format...
Caspar

Re: Album called from news content - tag not interpreted

Post by Caspar »

Hi Mark,
thanks for responding.
mark wrote: I think you have dbl. posted this question...
Have I? Where? I checked my posts and couldn't find it... unless you mean I've posted it in the German forum also.
mark wrote: But look in the source/HTML button of editor to make sure it's not wrapped in the   format...
No, it's plain text, no HTML-tags. I have another site running 1.0.4, and the same situation works excellent there.

Thanks anyway!
Caspar
halm
Forum Members
Forum Members
Posts: 103
Joined: Mon Jun 11, 2007 12:52 pm

Re: Album called from news content - tag not interpreted

Post by halm »

I posted a similar problem in modules help yesterday. Not the same though ;)

Turn off WYSIWYG, check that there are no formating surrounding the tag, such as , , , whatever ...
Worked for me.
"One measures a circle, beginning anywhere" - Charles Fort
cyberman

Re: Album called from news content - tag not interpreted

Post by cyberman »

@Caspar:

Can you post a link?
Caspar

Re: Album called from news content - tag not interpreted

Post by Caspar »

@halm: As I mentioned above that's not it. Thanks anyway.
@cyberman: http://tina.sackermann.net/news/54/63/
As you read it here, never mind my double post in the German Forum... ;)

Thanks,
Caspar
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Album called from news content - tag not interpreted

Post by Dr.CSS »

Have you tried lower case ='album' it works here...

http://multiintech.com/cmsms1.1/index.p ... eturnid=39
Caspar

Re: Album called from news content - tag not interpreted

Post by Caspar »

Yeah, I tried it lowercase. Meanwhile, I get the impression something's wrong with my config for I tried to use this UDT http://forum.cmsmadesimple.org/index.php?action=post;topic=14733.0;num_replies=7 which seems to work for everyone but me. Here's a part of my config.php. Can you see something wrong with it?

Code: Select all

#------------------

#Usability Settings

#------------------



#Allow smarty {php} tags?  These could be dangerous if you don't trust your users.

$config['use_smarty_php_tags'] = true;



#CMSMS Debug Mode?  Turn is on to get a better error when you

#see {nocache} errors.

$config['debug'] = false;



#Automatically assign alias based on page title?

$config['auto_alias_content'] = true;



#------------

#URL Settings

#------------



#Show mod_rewrite URLs in the menu? You must enable 'use_hierarchy' for this to work for modules

$config['assume_mod_rewrite'] = true;



#Extension to use if you're using mod_rewrite for pretty URLs.

$config['page_extension'] = '/';



#If you don't use mod_rewrite, then would you like to use the built-in

#pretty url mechanism?  This will not work with IIS and the {metadata} tag

#should be in all of your templates before enabling.

$config['internal_pretty_urls'] = false;



#If you're using the internal pretty url mechanism or mod_rewrite, would you like to

#show urls in their hierarchy?  (ex. http://www.mysite.com/parent/parent/childpage)

$config['use_hierarchy'] = true;



#If using none of the above options, what should we be using for the query string

#variable?  (ex. http://www.mysite.com/index.php?page=somecontent)

$config['query_var'] = 'page';
I tried it without mod_rewrite/htaccess also - no result.
???
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Album called from news content - tag not interpreted

Post by Dr.CSS »

Have you tried to set your preferences to not have a wysiwyg editor, then go to page and edit it to make sure it's not getting wrapped in format tags , sorry I still think it's the problem...

Don't think it has to do with.. $config['use_smarty_php_tags'] = true;  but this can be an insecure setting...
Caspar

Re: Album called from news content - tag not interpreted

Post by Caspar »

mark wrote: Have you tried to set your preferences to not have a wysiwyg editor, then go to page and edit it to make sure it's not getting wrapped in format tags , sorry I still think it's the problem...
Hey Mark, here's my source-code, I can't see a tag:

Code: Select all

<p>
<strong>„Das Märchen vom Kristallpalast” — </strong><strong>„The Fairy Tale Of The Crystal Palace”</strong><br />
Ein Gesamtkunstwerk in einer deutschen und einer englischen Version<br />
Ort: Andrews-Barracks Theater, Berlin
</p>
{cms_module module='Album' albums='26'}

</div>
But I enabled param-check in global settings and got this for all my Album pages:
Warning: WARNING: Album is not properly cleaning input params. in /[mydirectories]/lib/classes/class.module.inc.php on line 1501
Last edited by Caspar on Wed Sep 05, 2007 12:47 pm, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Album called from news content - tag not interpreted

Post by Dr.CSS »

Can you get Album to work on other pages, in Content: or in template?...
Caspar

Re: Album called from news content - tag not interpreted

Post by Caspar »

Absolutely, either way: from content and from page templates.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Album called from news content - tag not interpreted

Post by calguy1000 »

Check your news summary and/or detail templates to make sure that the content field is being 'eval'd through smarty.

i.e:  {eval var=$entry->content}
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Caspar

Re: Album called from news content - tag not interpreted

Post by Caspar »

calguy1000 wrote: Check your news summary and/or detail templates to make sure that the content field is being 'eval'd through smarty.

i.e:  {eval var=$entry->content}
YIPPPPIIIEEEEEEHHHHHH! That's it! All fine now.

Still, I get this warning when I enable the param-check in global settings:
Caspar wrote: Warning: WARNING: Album is not properly cleaning input params. in /[mydirectories]/lib/classes/class.module.inc.php on line 1501
Actually now, I get it for FormBuilder as well. It doesn't seem to have any influence when param-check is disabled, though.

Thanks a LOT, Mark and Robert!!
Caspar
Locked

Return to “CMSMS Core”