vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Add-On Releases - Change External.php To RSS Feed For One Forum Only (https://vborg.vbsupport.ru/showthread.php?t=165276)

SBlueman 12-15-2007 10:00 PM

Change External.php To RSS Feed For One Forum Only
 
Step 1: Create a file called rss.php and add this to the file:
Code:

<?
header("Location: http://yoursite.com/forum_feed_address");
?>

Example: On my site this is the addess I have entered:
Code:

http://gridironfans.com/forums/external.php?type=RSS2&forumids=109&order=1
Step 2: Upload to your root directory folder (http://yoursite.com/")

Step 3: Template Edit:

AdminCP/Style Manager/All Style Options

In headerinclude:

Find:
Code:

<link rel="alternate" type="application/rss+xml" title="$vboptions[bbtitle] RSS Feed" href="external.php?type=RSS2" />
<if condition="$show['foruminfo'] OR $show['threadinfo']">
<link rel="alternate" type="application/rss+xml" title="$vboptions[bbtitle] - $foruminfo[title_clean] - RSS Feed" href="external.php?type=RSS2&amp;forumids=$foruminfo[forumid]" />

Change To:
Code:

<link rel="alternate" type="application/rss+xml" title="$vboptions[bbtitle] RSS Feed" href="http://yoursite.com/rss.php" />
<if condition="$show['foruminfo'] OR $show['threadinfo']">
<link rel="alternate" type="application/rss+xml" title="$vboptions[bbtitle] - $foruminfo[title_clean] - RSS Feed" href="http://yoursite.com/rss.php" />

(Don't forget to edit both instances of "http://yoursite.com/rss.php" to the correct path)

shadowevil 12-16-2007 08:00 AM

demo or screenshot ??

nyunyu 12-16-2007 09:26 AM

nice, as seen on your site..

thank you for this.

SBlueman 12-16-2007 04:37 PM

Quote:

Originally Posted by shadowevil (Post 1402014)
demo or screenshot ??

You can see how it's incorporated at my website, http://gridironfans.com/

Not something that would have a screenshot though.

johnrizz 12-16-2007 08:15 PM

its a bookmark?

SBlueman 12-16-2007 08:52 PM

No, all it does is change external.php so instead of your site pumping out a default RSS feed for the entire site it pumps out a RSS feed for one specific news feed.

valdet 12-16-2007 09:22 PM

I am a bit stumped with the first part, when you say : Create a file called rss.php and add this to the file:
Quote:

<?
header("Location: http://yoursite.com/forum_feed_address");
?>
That is a simple redirect script.

Is there something I am missing here?

How can we set it so the default forumid (like 109 in your case) will be changed as per forum we are viewing?

johnrizz 12-16-2007 09:32 PM

Quote:

Originally Posted by SBlueman (Post 1402369)
No, all it does is change external.php so instead of your site pumping out a default RSS feed for the entire site it pumps out a RSS feed for one specific news feed.

ok I see thanks

Zi55 12-18-2007 12:10 AM

How i can edit external.php to don't appear only one forum threads ?
Thanks

SBlueman 12-18-2007 12:55 AM

Um...what?


All times are GMT. The time now is 01:09 AM.

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.01169 seconds
  • Memory Usage 1,735KB
  • 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
  • (4)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete