• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: RSS Module hack  [SOLVED]
PostPosted: Sun Feb 06, 2005 12:54 am 
The default behaviour of the RSS module is to open links in the same window - not always the best (IMHO).

I have edited my copy of RSS/modulefunctions.php to allow the browser window target to be specified in the parameters.

Here's the hack:

Insert into line 44

//allow target to be specified in params
if (isset($params['target']))
{
$target = $params['target'];
}
else
{
$target = '';
}

Now change the echo line at the bottom of the function to include the target (line 68 after inserting the above):

echo "\n";

The module can now be called with the target parameter i.e.
{cms_module module="rss" url="http://homepage.mac.com/kevinread/blogwavestudio/rss.xml" numbertoshow="15" target="_rss"}


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: Inula


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
A2 Hosting