Jump to content

rss2news for fluxcp


clydelion

Recommended Posts


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

File Name: rss2news

File Submitter: clydelion

File Submitted: 06 Jul 2012

File Category: Web Resources

Content Author: clydelion a.k.a. Rad/Skullcandy

This addon for FluxCP enables the control panel to retrieve rss feeds. rss2news utilizes MagpieRSS to integrate FluxCP with IPB(and other forums that can generate RSS 2.0) and tinyscrollbar for neat display of news.

Requirement:

FluxCP

RSS 2.0

The sample below retrieves news from a live rss feed.

News Source : 'http://www.gmanetwork.com/news/rss/news'

Screenshot:

250ngcw.png

config:

'NewsUrl' => 'http://www.gmanetwork.com/news/rss/news',
'scrollbarbuttonsize' => '30', // WARNING! scrollbarbuttonsize must be less that scrollbarsize
'scrollbarsize' => '100',

Reference:

http://magpierss.sourceforge.net

http://baijs.nl/tinyscrollbar/

For suggestions contact me via forums or messenger.

yahooid: [email protected]

To use, edit this...

themes/default/main/index.php

should look like..

<?php if (!defined('FLUX_ROOT')) exit;
$this->redirect($this->url('news','index'));
?>

Thank you for using this add-on.. /gawi

88x31.png

rss2news by clydelion is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.

Click here to download this file

Edited by clydelion
  • Upvote 5
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  147
  • Reputation:   26
  • Joined:  11/19/11
  • Last Seen:  

how do you make your IPB an RSS feed?

Solved.

Thanks! it really worked :)

Edited by Zeref
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

Added a screenshot for a better preview..

TODO: Add a facebook-like updating of news feed.. (not necessary if you do not update every hour but will make a better user-experience)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  399
  • Reputation:   198
  • Joined:  11/09/11
  • Last Seen:  

If you got this working with SMF, I'd cream my pants.

Sexy overall! Just not all of us can afford IPB. qq

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

Actually it is working with SMF :D

Change the NewsURL to this for SMF

'NewsUrl' => 'http://www.yourwebsite.com/forum/index.php?action=.xml;sa=news;board=1;limit=10',

change the values accordingly..

limit=x - display only "x" items

board=y - display only news topics from board "y"

Edited by clydelion
Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   0
  • Joined:  01/18/12
  • Last Seen:  

Tried and tested.

http://jarro.asuraho...cp/?module=news

thanks rad! :) 100% working! /no1

Edited by Sure
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  33
  • Reputation:   5
  • Joined:  04/23/12
  • Last Seen:  

do you know it about woltlab? it would help much :D

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

This modification is compatible with IPB, SMF, Facebook Page News, and any software that generates RSS 2.0 feeds.

Link to comment
Share on other sites


  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3123
  • Reputation:   1617
  • Joined:  03/26/12
  • Last Seen:  

You're a genius - exactly what i was looking for!

SMF is easy enough to integrate to a page as their SSI file is very helpful, however IPB has been giving me a headache for the last 2 days with no light at the end of the tunnel :/

<3

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

It's not that hard really.. You can export RSS from the admin menu of IPB.. check out the screenie.

18epw0.jpg

Link to comment
Share on other sites


  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3123
  • Reputation:   1617
  • Joined:  03/26/12
  • Last Seen:  

I got that far :P i just didn't know what to do with the data once i had it lol

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  7
  • Reputation:   0
  • Joined:  07/05/12
  • Last Seen:  

I'm trying to get it to work on my control panel with IPB feed, the default url does not work either. all what i see is a blank page. control panels works fine though.

Edited by aluze
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

I tested this on latest FluxCP/Renewal FluxCP. What are you using?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  7
  • Reputation:   0
  • Joined:  07/05/12
  • Last Seen:  

I'm using pre-renewal with latest fluxcp from their google page.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

did you edit themes/<YOUR THEME>/main/index.php ?

it should look like this

<?php if (!defined('FLUX_ROOT')) exit;
$this->redirect($this->url('news','index'));
?>

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  44
  • Reputation:   5
  • Joined:  02/07/12
  • Last Seen:  

It works perfectly fine with my IP.Board 3.2.3! Thank you very much!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

That's good to know Decimal. You can also use this in your facebook page if you have one. :D

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  44
  • Reputation:   5
  • Joined:  02/07/12
  • Last Seen:  

Hi,

I've a problem with permission. For some reason I can only see the News & Update with my admin acc. This is how my access.php is set up;

return array(
'modules' => array(
	'ipbrss'  => array(
		'index'  =>  AccountLevel::ANYONE,
	),
),
)

Do I need to configure something else? Besides addons > rss2news > config > access.php?

Edited by Decimal
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

lol, I forgot to change ipbrss to news before uploading..

make that

'news'  => array(

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  44
  • Reputation:   5
  • Joined:  02/07/12
  • Last Seen:  

Odd. Even admin acc doesn't work now.

return array(
'modules' => array(
	'news'  => array(
		'index'  =>  AccountLevel::ANYONE,
	),
),
)

Or am I doing something wrong?

//Edit:

Alright! I figured out that the problem was a conflict with an AddOn (CMS AddOn made by CalciumKid) that I had installed; I uninstalled the AddOn and now your AddOn works perfectly fine.

Sorry for the trouble caused!

Edited by Decimal
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  313
  • Reputation:   23
  • Joined:  12/27/11
  • Last Seen:  

thanks for the release.

I use phpbb and facebook page for rss and it worked! /no1

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

@Decimal

I'll take note of that. Anyway, that's good to hear.

@GM Helena Harper Momoe

That's great. If you have any suggestion to further improve this add-on, just tell me. /no1

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  318
  • Reputation:   68
  • Joined:  11/13/11
  • Last Seen:  

I don't have a forum to try it on yet, but I am wondering if it can be used on websites other than Flux integrated sites XD (Edit: I just saw the Magpie reference, so I guess I should refer to that?). Another question, is it flexible where I can decide how many words can be shown? How about just showing the title of the forum threads in a particular section?

Thanks =D!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

I don't have a forum to try it on yet, but I am wondering if it can be used on websites other than Flux integrated sites XD (Edit: I just saw the Magpie reference, so I guess I should refer to that?)

Yes, it can be used in other websites, as well as other RO control panels. That can be done c/o MagpieRSS :]

Another question, is it flexible where I can decide how many words can be shown?

Yes if you can control the rss generated by your website OR if you know string manipulation in php.

substr("string to be manipulated", 0, 80);

where 80 is the number of characters to be shown..

How about just showing the title of the forum threads in a particular section?

Yes, below is an example to show only the Title + date

<?php foreach($rss->items as $item):?>
  <h4><?php echo $item['title'] ?>
  <?php if(isset($item['pubdate'])): ?>
	 <small>on <?php $item['pubdate'] = date ('l, F dS, Y', strtotime ($item['pubdate']));  echo $item['pubdate'];?></small>
  <?php endif; ?>
  </h4>
  <hr/>
<?php endforeach; ?>

another example where you can click the title to direct you to the thread.

<?php foreach($rss->items as $item):?>
  <h4><a class="news_link" href="<?php echo $item['link'] ?>" target="_blank"><?php echo $item['title'] ?></a>
  <?php if(isset($item['pubdate'])): ?>
	 <small>on <?php $item['pubdate'] = date ('l, F dS, Y', strtotime ($item['pubdate']));  echo $item['pubdate'];?></small>
  <?php endif; ?>
  </h4>
  <hr/>
<?php endforeach; ?>

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  318
  • Reputation:   68
  • Joined:  11/13/11
  • Last Seen:  

Thanks a bunch <3! Your post is very informative =D, really appreciate it!

Link to comment
Share on other sites

×
×
  • Create New...