Advertisement:

Author Topic: RSS Feed Icon for boards  (Read 147019 times)

Offline chep

  • Jr. Member
  • **
  • Posts: 338
    • Traditional Archer
Re: RSS Feed Icon for boards
« Reply #60 on: January 11, 2007, 08:05:45 PM »
http://mysite.com/smf/index.php?action=.xml;type=rss

Hello I think this would create and overall board feed. No?

I tried it and put it in my "News" rotation

http://www.chep-net.com/smf/index.php

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,673
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: RSS Feed Icon for boards
« Reply #61 on: January 11, 2007, 08:07:32 PM »
Yes it would.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline chep

  • Jr. Member
  • **
  • Posts: 338
    • Traditional Archer
Re: RSS Feed Icon for boards
« Reply #62 on: January 11, 2007, 08:20:58 PM »
So a technical question...

If I offer a feed and a user subscribes to it; is the feed cached somewhere so that any arbitrary program does not flood my site\database with http gets every 10 seconds?

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,673
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: RSS Feed Icon for boards
« Reply #63 on: January 11, 2007, 08:26:00 PM »
I might be sort off cached
Code: [Select]
// Get the associative array representing the xml.
if ($user_info['is_guest'] && !empty($modSettings['cache_enable']) && $modSettings['cache_enable'] >= 2)
$xml = cache_get_data('xmlfeed-' . $xml_format . ':' . md5(serialize($_GET)), 240);
if (empty($xml))
{
$xml = $subActions[$_GET['sa']][0]($xml_format);

if ($user_info['is_guest'] && !empty($modSettings['cache_enable']) && $modSettings['cache_enable'] >= 2)
cache_put_data('xmlfeed-' . $xml_format . ':' . md5(serialize($_GET)), $xml, 240);
}
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline chep

  • Jr. Member
  • **
  • Posts: 338
    • Traditional Archer
Re: RSS Feed Icon for boards
« Reply #64 on: January 11, 2007, 08:29:06 PM »
I suppose I will have to go read what cache_put_data does.

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,673
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: RSS Feed Icon for boards
« Reply #65 on: January 11, 2007, 08:30:50 PM »
It doesn't look like the feed itself is cached I took a quick look at it.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline chep

  • Jr. Member
  • **
  • Posts: 338
    • Traditional Archer
Re: RSS Feed Icon for boards
« Reply #66 on: January 11, 2007, 08:39:50 PM »
I suppose if anyone is malicious they could tank my board without a feed anyway. Unless I enforce stricter flood control.

Although having a cache might be a good idea to ease the load on the database.

Offline Tanks

  • Full Member
  • ***
  • Posts: 583
  • Gender: Male
  • Danish Dude
Re: RSS Feed Icon for boards
« Reply #67 on: January 13, 2007, 05:20:14 AM »
http://mysite.com/index.php?action=.xml;type=rss

That wont work.. that was the reason my rss didnt work on most readers..

You have to go to server settings and change the URL for your site to http://www

After doin this your rss feeds will work fine

http://www.mysite.com/index.php?action=.xml;type=rss

Will work fine..

Hope this helps for some - That was the problem i had !

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,673
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: RSS Feed Icon for boards
« Reply #68 on: January 13, 2007, 11:26:36 AM »
That's strange I would why in the world it would require www
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline Tanks

  • Full Member
  • ***
  • Posts: 583
  • Gender: Male
  • Danish Dude
Re: RSS Feed Icon for boards
« Reply #69 on: January 14, 2007, 01:52:03 AM »
That's strange I would why in the world it would require www

I dont know.. but i seen this problem a few times now..

If you dont use www.. it looks like its working because you can open the feed in your browser.. but when you put the feed into a RSS reader you get "No feed found at this URL"

When you add the www it seems to work perfect.. dont ask me why LoL

Even if your site works fine without www the feed wont work without it :-s

Offline dsanchez

  • Jr. Member
  • **
  • Posts: 320
  • Gender: Male
Re: RSS Feed Icon for boards
« Reply #70 on: January 19, 2007, 08:36:21 AM »
Hello, this mod looks interesting but actually I would just love a single RSS icon in the bottom of my page that show the latest post. This mod is able to do this?

Curefans.com - The meeting point for Curefans worldwide
http://www.curefans.com

Offline zoki

  • Semi-Newbie
  • *
  • Posts: 43
  • Gender: Male
  • Have you seen me offline?
Re: RSS Feed Icon for boards
« Reply #71 on: February 01, 2007, 01:41:34 PM »
I installed this mod but cannot see it anywhere. It just says it is installled. I am using different theme than default theme...  

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,673
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: RSS Feed Icon for boards
« Reply #72 on: February 01, 2007, 02:15:27 PM »
Mods only installs on the default theme.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

genesteinberg

  • Guest
Re: RSS Feed Icon for boards
« Reply #73 on: February 04, 2007, 07:00:06 PM »
Mods only installs on the default theme.

And what's the good of that? Too many of these mods can't be extended to themes other than the default -- which means they can't be used. Thanks for nothing :(

Or can anyone suggest how I would adapt it to another theme?

Peace,
Gene

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,673
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: RSS Feed Icon for boards
« Reply #74 on: February 04, 2007, 07:07:05 PM »
All mods that makes changes to a theme only install on the default theme since themes can have different coding the package manager would have no way to install it on them.
You can install mods maunally.
http://docs.simplemachines.org/index.php?topic=402
 
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

genesteinberg

  • Guest
Re: RSS Feed Icon for boards
« Reply #75 on: February 04, 2007, 07:22:21 PM »
All mods that makes changes to a theme only install on the default theme since themes can have different coding the package manager would have no way to install it on them.
You can install mods maunally.
http://docs.simplemachines.org/index.php?topic=402
 

All right, this is greek to me. My Webmaster is on hiatus, so I need better guidance.

I'm using the Classic YaBB SE Theme. So where do I put what to make this work?

Step by steps will help.

Peace,
Gene

genesteinberg

  • Guest
Re: RSS Feed Icon for boards
« Reply #76 on: February 05, 2007, 05:31:39 PM »
Isn't there anyone willing to help?

It'll probably take the PHP-experts amongst you five minutes to do this, and me five years :)

Peace,
Gene

Offline Sven0

  • Jr. Member
  • **
  • Posts: 137
Re: RSS Feed Icon for boards
« Reply #77 on: February 05, 2007, 05:57:11 PM »
is it possible to feed only the first message of each thread in a news forum...?

Offline Tanks

  • Full Member
  • ***
  • Posts: 583
  • Gender: Male
  • Danish Dude
Re: RSS Feed Icon for boards
« Reply #78 on: February 06, 2007, 01:15:58 AM »
Reply for Gene Steinberg, i am no php coder but i think i can help you:

In file Themes/[your theme]/BoardIndex.template.php
Find:

Code: [Select]
', $board['name'], '</a></b>Add after:
Code: [Select]

&nbsp;<a href="' . $scripturl . '?action=.xml;board=' . $board['id'] . ';type=rss"><img src="' . $settings['images_url'] . '/rss.png" alt="rss" /></a>




In file Themes/[your theme]/MessageIndex.template.php
Find:

Code: [Select]
', $board['name'], '</a></b>
Add after:
Code: [Select]

&nbsp;<a href="' . $scripturl . '?action=.xml;board=' . $board['id'] . ';type=rss"><img src="' . $settings['images_url'] . '/rss.png" alt="rss" /></a>


You can use vbgamers very nice tool to find out this: http://server.daniel15.com/smf/package.php

Good luck  ;)
« Last Edit: February 06, 2007, 01:22:33 AM by Knat »

genesteinberg

  • Guest
Re: RSS Feed Icon for boards
« Reply #79 on: February 06, 2007, 02:59:37 AM »
Reply for Gene Steinberg, i am no php coder but i think i can help you:

In file Themes/[your theme]/BoardIndex.template.php
Find:

Code: [Select]
', $board['name'], '</a></b>Add after:
Code: [Select]

&nbsp;<a href="' . $scripturl . '?action=.xml;board=' . $board['id'] . ';type=rss"><img src="' . $settings['images_url'] . '/rss.png" alt="rss" /></a>




In file Themes/[your theme]/MessageIndex.template.php
Find:

Code: [Select]
', $board['name'], '</a></b>
Add after:
Code: [Select]

&nbsp;<a href="' . $scripturl . '?action=.xml;board=' . $board['id'] . ';type=rss"><img src="' . $settings['images_url'] . '/rss.png" alt="rss" /></a>


You can use vbgamers very nice tool to find out this: http://server.daniel15.com/smf/package.php

Good luck  ;)

I appreciate your advice. I'm using the Classic YaBB SE Theme, and I checked the classic/BoardIndex.template.php file and DID NOT find the first string. So I'm stuck unless someone can help me move beyond this.

Peace,
Gene
« Last Edit: February 06, 2007, 03:01:15 AM by Gene Steinberg »