Page 1 of 1
[SOLVED:] Album called from news content - tag not interpreted
Posted: Mon Sep 03, 2007 5:30 pm
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.
Re: Album called from news content - tag not interpreted
Posted: Tue Sep 04, 2007 8:30 pm
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...
Re: Album called from news content - tag not interpreted
Posted: Tue Sep 04, 2007 9:18 pm
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
Re: Album called from news content - tag not interpreted
Posted: Wed Sep 05, 2007 8:25 am
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.
Re: Album called from news content - tag not interpreted
Posted: Wed Sep 05, 2007 8:55 am
by cyberman
@Caspar:
Can you post a link?
Re: Album called from news content - tag not interpreted
Posted: Wed Sep 05, 2007 9:07 am
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
Re: Album called from news content - tag not interpreted
Posted: Wed Sep 05, 2007 11:28 am
by Dr.CSS
Re: Album called from news content - tag not interpreted
Posted: Wed Sep 05, 2007 12:13 pm
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.

Re: Album called from news content - tag not interpreted
Posted: Wed Sep 05, 2007 12:17 pm
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...
Re: Album called from news content - tag not interpreted
Posted: Wed Sep 05, 2007 12:45 pm
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
Re: Album called from news content - tag not interpreted
Posted: Wed Sep 05, 2007 5:18 pm
by Dr.CSS
Can you get Album to work on other pages, in Content: or in template?...
Re: Album called from news content - tag not interpreted
Posted: Wed Sep 05, 2007 5:22 pm
by Caspar
Absolutely, either way: from content and from page templates.
Re: Album called from news content - tag not interpreted
Posted: Wed Sep 05, 2007 5:23 pm
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}
Re: Album called from news content - tag not interpreted
Posted: Wed Sep 05, 2007 5:29 pm
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