[solved] Include Sitename in xml RSS feed title?

The GYM Sitemaps & RSS module for phpBB. Sitemaps and RSS feeds for Google Yahoo! and MSN Live, support, add ons etc ...

Moderator: Moderators

[solved] Include Sitename in xml RSS feed title?

Postby slayer_ » Tue Apr 20, 2010 2:51 am

I have phpBB SEO premod 3.0.7-PL1 installed and working locally in XAMPP.

Is there a way that I could have the generated xml feed output include my sitename in the title.

Currently the generated xml shows this for my General Discussion Forum.

Code: Select all
<channel>
      <title>General Discussion - News</title>

I would like it to include my sitename and appear like this.
Code: Select all
<channel>
      <title>Sitename - General Discussion - News</title>

I feel that this would save my users some time when adding feeds to their feed reader by making feeds from my site easier to identify.

Thanks
Last edited by slayer_ on Sun May 02, 2010 11:38 pm, edited 1 time in total.
slayer_
 
Posts: 3
Joined: Tue Apr 20, 2010 2:36 am

Advertisement

Re: Include Sitename in xml RSS feed title?

Postby dcz » Sun May 02, 2010 9:16 am

That could be some new feature to add for next release. Until then, you could alter this line in gym_sitemaps/modules/rss_forum.php :
Code: Select all
               $chan_title = $this->forum_cache[$forum_id]['forum_name'] = $forum_data['forum_name'];

And change it to :
Code: Select all
               $chan_title = $this->forum_cache[$forum_id]['forum_name'] = $forum_data['forum_name'];
               $chan_title = $config['sitename'] . ' - ' . $chan_title;


;)
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21383
Joined: Fri Apr 28, 2006 9:03 pm

Re: Include Sitename in xml RSS feed title?

Postby slayer_ » Sun May 02, 2010 11:37 pm

Thank You dcz. That was exactly what I was looking for.

It would be a great feature for the next release indeed.
slayer_
 
Posts: 3
Joined: Tue Apr 20, 2010 2:36 am


Return to GYM Sitemaps & RSS

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 5 guests