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

Do something cool with CMS? Show us ...
This board is for 'Answers', and the discussion of answers... Not for questions.
Post Reply
alex7575

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

Post 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
Last edited by alex7575 on Mon Sep 04, 2006 3:10 pm, edited 1 time in total.
User avatar
Franck
Dev Team Member
Dev Team Member
Posts: 259
Joined: Tue Jun 12, 2007 1:29 pm

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

Post 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
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

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

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

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

Post 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
bluemonkey
New Member
New Member
Posts: 3
Joined: Sun Jan 20, 2008 4:04 pm

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

Post 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?
Post Reply

Return to “Tips and Tricks”