News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

RSS Feed Icon for boards

Started by SMFHacks.com Team, July 17, 2006, 01:41:27 PM

Previous topic - Next topic

chep

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

vbgamer45

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

chep

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?

vbgamer45

I might be sort off cached

// 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

chep

I suppose I will have to go read what cache_put_data does.

vbgamer45

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

chep

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.

Tanks

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 !

vbgamer45

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

Tanks

Quote from: vbgamer45 on January 13, 2007, 11:26:36 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

dsanchez

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?


zoki

I installed this mod but cannot see it anywhere. It just says it is installled. I am using different theme than default theme...  

vbgamer45

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

Quote from: vbgamer45 on February 01, 2007, 02:15:27 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

vbgamer45

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

Quote from: vbgamer45 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


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

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

Sven0

is it possible to feed only the first message of each thread in a news forum...?

Tanks

#78
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:

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


&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:

', $board['name'], '</a></b>

Add after:


&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  ;)

genesteinberg

#79
Quote from: Knat 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:

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


&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:

', $board['name'], '</a></b>

Add after:


&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

Advertisement: