News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Remove Forum Title on RSS Feed for boards

Started by Aileen, December 09, 2007, 05:14:23 PM

Previous topic - Next topic

Aileen

Can we remove forum title for boards RSS Feed?

thanks

JayBachatero

Open News.php
Code (find and remove) Select

<title>', $feed_title, '</title>
<link>', $scripturl, '</link>
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Aileen


H

#3
Really you only need to edit the title tag. Removing it altogether is bad for validation.

As for the RSS, you can easily disable it through the admin area, see: News and newsletters
Ignore this, I misread the post :(
-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)
                             

Aileen

I am using this RSS feed from one of my boards

index.php?action=.xml;sa=recent;limit=20;type=rss2;board=1.0;sa=news


it shows

Forum Name - Board Name


If I remove

<title>', $feed_title, '</title>

It removes the entire title

Is it possible to remove the title of the forum only (Forum Name)

THanks

JayBachatero

Oh I misread that.

Code (find) Select

$feed_title = htmlspecialchars(strip_tags($context['forum_name'])) . (isset($feed_title) ? $feed_title : '');

Code (replace) Select

$feed_title = isset($feed_title) ? $feed_title : '';
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Aileen


Aileen

BTW I changed it. And the Forum title is gone, however there is A (- )hyphen and a space before the board title. I tried reading the codes but I cannot understand it. Is there a way to change this. thanks

JayBachatero

Ok here you go.
Code (find) Select

$feed_title = ' - ' . strip_tags($board_info['name']);

Code (replace) Select

$feed_title = strip_tags($board_info['name']);
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Aileen

Great, it worked, thanks so much jay...SMF community should reward you for being so helpful ;)

Advertisement: