Fantastic mod! But how do I remove "statistics Posts Vi

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

Moderator: Moderators

Fantastic mod! But how do I remove "statistics Posts Vi

Postby classixuk » Thu Nov 13, 2008 6:48 pm

Let me say thank you and very well done for GYM sitemaps & RSS...it's amazing!

On my site, I do something strange...I use the RSS News module to post the first post of each topic onto my home page.

However, I do not want "Statistics : 12 Replies || 752 Views" in my RSS feed.

Is there anyway I can remove this please?

For an example of my RSS, see here:
http://www.hairdressingworld.com/hairdr ... &forum=526

Many thanks

Chris.
classixuk
 
Posts: 14
Joined: Wed Nov 12, 2008 12:22 pm

Advertisement

Postby HB » Fri Nov 14, 2008 5:16 am

Not tested, but in rss_forum.php, delete:

Code: Select all
            $topic_stats = '<b>' . $user->lang['STATISTICS'] . '</b> : ' . ($topic['topic_replies'] + 1) . ' ' . (($topic['topic_replies'] > 1) ? $user->lang['REPLIES'] : $user->lang['POST'] );
            $topic_stats .= ' || ' . ($topic['topic_views'] + 1) . ' ' . $user->lang['VIEWS'];
Dan Kehn
HB
phpBB SEO Team
phpBB SEO Team
 
Posts: 1322
Joined: Mon Oct 16, 2006 2:25 am

Postby classixuk » Fri Nov 14, 2008 7:00 am

Thanks for that.

Also, I have noticed that the images and smilies are not being stripped from my RSS feeds, although they have been set. This is important for my site.

Did I do something wrong, or is this not working yet?

Example:
http://www.hairdressingworld.com/hairdr ... &forum=511

You can still see
Code: Select all
{img}
is the feeds.

Thanks,
Chris.
classixuk
 
Posts: 14
Joined: Wed Nov 12, 2008 12:22 pm

Postby SeO » Sun Nov 16, 2008 8:52 am

The {img} bit is just kept by default to tell readers that an image would be available in the original source, it's the same with all bbcodes.

You can replace stripped bbcodes with a whit space instead by replacing :
Code: Select all
$replaces[] = "{ \\1 }";

with :
Code: Select all
$replaces[] = " ";


in gym_sitemaps/includes/gym_rss.php ;)
SeO
Admin
Admin
 
Posts: 6334
Joined: Wed Mar 15, 2006 9:41 pm

Postby classixuk » Sun Nov 16, 2008 12:03 pm

Thanks for your reply SEO :)
classixuk
 
Posts: 14
Joined: Wed Nov 12, 2008 12:22 pm


Return to GYM Sitemaps & RSS

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 11 guests