Page 1 of 1

Do you want to change the "XML" image from the RSS Module?

Posted: Fri Sep 01, 2006 10:55 pm
by alex7575
Hello everyone,

Here is the solution :)

Go to the file "News\action.default.php" on line 29 and change this:
if (isset($params["makerssbutton"]))
{
$image_path = ($params["image"]==null?"images/cms/xml_rss.gif":$params["image"]);
$params["showtemplate"] = "false";
echo $this->CreateLink($id, 'rss', $returnid, "", $params,'',false,false,'',true,'news/rss');
return;
}
Now, go to your page and call the RSS Module with your new image
{cms_module module='news' category='news*' number="10" makerssbutton="true" image="rss_news.gif"}
Example here :)
www.cvk.fr

Hope this will help you !!
Alex

Re: Do you want to change the "XML" image from the RSS Module?

Posted: Mon Oct 01, 2007 11:45 am
by Franck
is this still valid ? I just tried it, and it don't work. the new img "rss_news.gif" must be put in the same directory as the "xml_rss.gif" one I suppose ? Thanx.

I'm using cmsms 1.1.3.1 with news module 2.5

Re: Do you want to change the "XML" image from the RSS Module?

Posted: Sat Oct 20, 2007 3:28 pm
by calguy1000
No this solution won't work as it is in newer versions of news because the image parameter hasn't been registered.

A better solution would've just been to copy over the xml_rss.gif with the image you wanted.

Re: Do you want to change the "XML" image from the RSS Module?

Posted: Sun Oct 21, 2007 11:49 am
by liudaz
Hey,

Try doing the same procedure as for the rss link title.
Read this post: http://forum.cmsmadesimple.org/index.php/topic,6897.0.html
and put this type of argument in the news.module.php

Code: Select all

$this->SetParameterType('image',CLEAN_STRING);
Not sure if this would work, but let my know how it goes.  ;)

liudaz

Re: Do you want to change the "XML" image from the RSS Module?

Posted: Thu Feb 07, 2008 1:33 am
by bluemonkey
calguy1000 wrote: No this solution won't work as it is in newer versions of news because the image parameter hasn't been registered.

A better solution would've just been to copy over the xml_rss.gif with the image you wanted.
I copied over the xml_rss.gif image with my own image, and now no image is displayed.  I did change the dimensions with my new image.  Is this the cause?