PDA

View Full Version : Change site name & site URL listed in RSS feed?


Ceaseless Skies
11-12-2008, 08:21 PM
I'm running vB 3.7.2 with no mods.

I'm wondering how I could modify external.php to change two data fields in the RSS feed for my vB forums. Specifically, I would like to change the channel <title> and <link> fields from the forums title and URL ($vboptions variables [bbtitle] and [bburl]) to my homepage title and URL ($vboptions variables [hometitle] and [homeurl]).

How could I go about doing that?

Thanks very much.

Lynne
11-12-2008, 08:54 PM
You need to look in the external.php page for the places it defines the channel. For instance, around line 464:
$xml->add_group('channel', array(
'rdf:about' => $vbulletin->options['bburl']
));
$xml->add_tag('title', $rsstitle);
$xml->add_tag('link', $vbulletin->options['bburl'], array(), false, true);You may modify those lines (they are in there a couple of times). It looks like $rsstitle is defined a little above there:
if (empty($title))
{ // just show board title
$rsstitle = $vbulletin->options['bbtitle'];
}
else
{ // show board title plus selection
$rsstitle = $vbulletin->options['bbtitle'] . " - $title";
}So you may modify it there.

I didn't look very hard in the file, so you'll have to just look for things like that in there and change them. At first glance, I don't see a hook location that you can plugin to in order to change them.

Ceaseless Skies
11-13-2008, 12:40 PM
So you may modify it there.

I didn't look very hard in the file, so you'll have to just look for things like that in there and change them.
Thanks very much!