vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Change site name & site URL listed in RSS feed? (https://vborg.vbsupport.ru/showthread.php?t=196110)

Ceaseless Skies 11-12-2008 08:21 PM

Change site name & site URL listed in RSS feed?
 
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:
PHP Code:

            $xml->add_group('channel', array(
                
'rdf:about' => $vbulletin->options['bburl']
            ));
                
$xml->add_tag('title'$rsstitle);
                
$xml->add_tag('link'$vbulletin->options['bburl'], array(), falsetrue); 

You may modify those lines (they are in there a couple of times). It looks like $rsstitle is defined a little above there:
PHP Code:

    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

Quote:

Originally Posted by Lynne (Post 1664482)
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!


All times are GMT. The time now is 08:49 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00971 seconds
  • Memory Usage 1,723KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete