Remove topic title from Item description

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

Moderator: Moderators

Re: Remove topic title from Item description

Postby Newweb » Tue Jul 07, 2009 6:52 pm

fadetoblack22 wrote:I'm not a programmer, so I don't know, but I read that someone else managed to remove the stats like number of views from showing by editing this file, so I was assuming at the rest would be in here as well.

I am trying to remove the forum title and only leave the post title with description. Is this what you are trying to do or is it the post title that you want removed?

I'd like to reduce space (height) between "Topic Title" and "Statistics" in description tiem, and, if is necessary, I must to erase topic title.
Newweb
 
Posts: 32
Joined: Sat Jun 21, 2008 9:55 am

Advertisement

Re: Remove topic title from Item description

Postby fadetoblack22 » Tue Jul 07, 2009 7:00 pm

I think I am trying to do the same thing.
fadetoblack22
PR0
PR0
 
Posts: 57
Joined: Tue Aug 12, 2008 8:31 pm

Re: Remove topic title from Item description

Postby dcz » Tue Jul 07, 2009 9:58 pm

All right, what I told you did remove the post title in case you'd include content, so now, to additionally remove the forum link, you can replace :
Code: Select all
$item_desc = $this->forum_cache[$forum_id]['forum_url_full'] . "\n\n" .  $first_message. "\n" . $topic_stats . $lastposter;

with :
Code: Select all
$item_desc = $first_message. "\n" . $topic_stats . $lastposter;

and :
Code: Select all
$item_desc = $this->forum_cache[$forum_id]['forum_url_full'] .  $last_message . "\n" . $topic_stats .  $lastposter;

with :
Code: Select all
$item_desc = $last_message . "\n" . $topic_stats .  $lastposter;

in gym_sitemaps/modules/rss_forum.php.

Removing the statistics or the last poster information would be as easy as getting rid of the variable of the same name in these two lines, but you would end up with an empty description. $first_message and $last_message are required to display post content in specific feeds and are empty when you hit a simple feed :
rss/news/rss.xml vs rss/news/digest/rss.xml

++
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: 21424
Joined: Fri Apr 28, 2006 9:03 pm

Re: Remove topic title from Item description

Postby fadetoblack22 » Wed Jul 08, 2009 8:53 am

Thanks, the first bit removes the title.

I wasn't sure what you meant by this bit "Removing the statistics or the last poster information would be as easy as getting rid of..."

I want to remove the stats and last poster info by removing this


$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'];

It seems to work fine.

Do you know how to remove the "more" link after every post?

thanks.
fadetoblack22
PR0
PR0
 
Posts: 57
Joined: Tue Aug 12, 2008 8:31 pm

Re: Remove topic title from Item description

Postby Newweb » Wed Jul 08, 2009 6:33 pm

Yes it works fine.

Thank you boys :D
Newweb
 
Posts: 32
Joined: Sat Jun 21, 2008 9:55 am

Re: Remove topic title from Item description

Postby dcz » Sat Jul 11, 2009 1:49 pm

@fadetoblack22 what you did works, but you could just have used :
Code: Select all
$item_desc = $first_message;


to lower the amount of altered lines of code.

++
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: 21424
Joined: Fri Apr 28, 2006 9:03 pm

Previous

Return to GYM Sitemaps & RSS

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 5 guests