vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   RSS Output Mod & Icon (https://vborg.vbsupport.ru/showthread.php?t=65832)

SnowBot 07-30-2004 02:26 PM

Instead of having the feed icon displayed on the forums, how could i get it like this

http://www.sitepoint.com/syndication/

Any help would be great

Roms 07-31-2004 06:40 PM

Very nice job!!! *clicks install

streetfighter 08-06-2004 11:35 AM

Hey, cool hack....

Everything installed fine and properly working....

My only request is to add instructions at the bottom of rss_mod.txt file is:
Quote:

Enable External Data Provider>RSS(Yes)& XML(Yes)
from Admincp>vboptions
Cos, tats the most important thing without which maximum users get Blank page displays...

roundhost 08-19-2004 10:57 AM

FANTASTIC!

/me clicks install!

/me states that he has got it installed and working easy peasy!

/me is happy!

pgrote 08-27-2004 04:21 PM

Ok I had another question for you all. A while back we were working on getting our feed to spit out the full post, with all of the html intact, where we changed this in the external.php file:

PHP Code:

echo "\t\t<content:encoded><![CDATA["htmlspecialchars_uni(fetch_trimmed_title(strip_bbcode($thread['preview'], falsetrue), $vboptions['thread'])) ."]]></content:encoded.\r\n"

to this:

PHP Code:

require_once('./includes/functions_bbcodeparse.php');
echo 
"\t\t<content:encoded><![CDATA["parse_bbcode2($thread['preview'], falsetruefalsetrue) ."]]></content:encoded.\r\n"

Smileys dont show up when viewing it through bloglines (our company's aggregator of choice)...this is a small annoyance but if someone could fill me in on what to do to get smileys to show up as well that would be great...I NEED the full html so I cannot compromise that, so if it is one or the other, than I can live without smileys.

My big thing is that it seems as though the feed is only pumping out the first posts of each thread, anytime a thread is replied to it does not show up in the feed...any one have any ideas how I can remedy this situation? Any help would be greatly appreciated...Thank you!

Slynderdale 08-28-2004 12:52 PM

Quote:

Originally Posted by pgrote
Ok I had another question for you all. A while back we were working on getting our feed to spit out the full post, with all of the html intact, where we changed this in the external.php file:

PHP Code:

 echo "\t\t<content:encoded><![CDATA["htmlspecialchars_uni(fetch_trimmed_title(strip_bbcode($thread['preview'], falsetrue), $vboptions['thread'])) ."]]></content:encoded.\r\n"

to this:

PHP Code:

  require_once('./includes/functions_bbcodeparse.php');
 echo 
"\t\t<content:encoded><![CDATA["parse_bbcode2($thread['preview'], falsetruefalsetrue) ."]]></content:encoded.\r\n"

Smileys dont show up when viewing it through bloglines (our company's aggregator of choice)...this is a small annoyance but if someone could fill me in on what to do to get smileys to show up as well that would be great...I NEED the full html so I cannot compromise that, so if it is one or the other, than I can live without smileys.

My big thing is that it seems as though the feed is only pumping out the first posts of each thread, anytime a thread is replied to it does not show up in the feed...any one have any ideas how I can remedy this situation? Any help would be greatly appreciated...Thank you!

Check this hack I just made:
https://vborg.vbsupport.ru/showthread.php?t=68815

It lets you choose if you want the feeds to parse bbcodes or not and have support for smilies.

For your second question, open external.php and find:
PHP Code:

         ORDER BY thread.dateline DESC
         LIMIT 15 

and replace that with:
PHP Code:

         ORDER BY thread.lastpost DESC
          LIMIT 15 

Now when a thread gets replied to, it shows up on the feeds.

AlexSFBay 08-28-2004 06:26 PM

I just tweaked the XML image display placement to align to the right of the Forum/Thread title. Looks much cleaner.

FORUMHOME
Code:

<!-- ORGINAL CODE <td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td> -->

<!-- RSS FEED MOD -->
<td class="thead" width="100%" align="$stylevar[left]">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="thead">$vbphrase[forum]</td>
    <td><a href="external.php?type=RSS2" style="float:right"><img src="$stylevar[imgdir_button]/rss.gif" alt="XML RSS 2.0 feed for all Threads in all Forums" border="0" /></a></td>
  </tr>
</table>
</td>

FORUMDISPLAY
Code:

<!-- ORIGINAL CODE <td class="tcat" width="100%">$vbphrase[threads_in_forum]<span class="normal">: $foruminfo[title]</span></td> -->

<!-- RSS FEED MOD -->
<td class="tcat" width="100%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="tcat">$vbphrase[forum]<span class="normal">: $foruminfo[title]</span></td>
    <td><a href="external.php?type=RSS2&amp;forumids=$foruminfo[forumid]" style="float:right"><img src="$stylevar[imgdir_button]/rss.gif" alt="XML RSS 2.0 feed for Threads in $foruminfo[title]" border="0" /></a></td>
  </tr>
</table>
</td>

* Notice I added the Forum Title in the "alt" description for the sub-forums. Now reads alt="XML RSS 2.0 feed for Threads in $foruminfo[title]"

See it in action here

Hope this helps. Enjoy!

ChessMess 08-31-2004 08:30 PM

Is there a way to have the xml icon show on each category on the main forum page? Since my subforms do not need to be expanded to see the sub-boards (All boards are visable on main index page) It'd be ideal to have the icon next to each sub-forum listed.

ChessMess 09-02-2004 04:23 PM

Anyone?

SeanThomps 06-09-2005 03:33 PM

Having a problme with the hack; I have put rss on my site, and I want to use myyahoo's button: http://my.yahoo.com/s/button.html

The weird thing is when I type in the url to rss for my site, which works if you click it, it does not work for yahoo. The link is: http://www.volconvo.com/forums/external.php?type=RSS2

Got any ideas?


All times are GMT. The time now is 07:56 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.01203 seconds
  • Memory Usage 1,759KB
  • 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_code_printable
  • (6)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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