[solved] Disable RSS Feed for images?

Miss Universum
Miss Universum's picture

Joined: 2008-06-16
Posts: 40
Posted: Mon, 2008-07-21 14:39

Hi,

I have disabled commenting on images by guests and would therefore also disable the (simple) RSS feeds on images for guests as they just say "Not permitted to view comments for this item" which is of course not so nice.

any idea how to do that?

thanks!
MU

 
Miss Universum
Miss Universum's picture

Joined: 2008-06-16
Posts: 40
Posted: Mon, 2008-07-21 14:55

ok, just found out myself ;-)

in modules/rss/module.inc in function getItemLinks

I surrounded the $links[$itemId][] Section by
if ($itemTypeNames[0]=='Album' || $permissions[$itemId]['comment.view'] ) {

  if ($itemTypeNames[0]=='Album' || $permissions[$itemId]['comment.view'] ) {
	  	$links[$itemId][] = array(
			'text' => $this->_translate(array(
			    'text' => 'RSS Feed for this %s',
			    'arg1' => $itemTypeNames[0]), $itemTypeNames[2]),
			'params' => array(
			    'view' => 'rss.SimpleRender',
			    'itemId' => $itemId));
   }
 
PaulYaro

Joined: 2009-04-04
Posts: 23
Posted: Fri, 2010-01-01 17:08

Hi - Happy New Year to all Gallery users!

please can you show your full module.inc ? (or attach file)
I tried to modify but it does not work.
Anyway - is there a way to run rss module WITHOUT setting "view comments" permissions to everyone?
I dont need to show "view comments" in item action as I do not use comments, however I would like to use rss feed for all items.
Thanks.