Loading


Advertisement:

Author Topic: [Plugin] Import RSS feeds  (Read 38455 times)

seoadd

  • Newbie
  • *
  • Posts: 12
[Plugin] Import RSS feeds
« on: November 10, 2013, 11:59:04 am »
Plugin Import RSS feeds
The plugin imports the RSS feed from one specific site in the format of RSS 2.0. In the plug-in capabilities include:
- Automatic update of news
- The possibility of limiting the number of news
- Automatic clearing the cache ,
- Plug-in fast and works on all versions Osclass, but not lower than 3.0.
How to install a plugin?
Fill print_rss folder to the plugins folder and in the plugins menu To install it , so you can install using the loader in the administration panel .
Likewise removed .
After installing the plug-in edit settings for this rule in the file index.php:
$ url_rss = "http://site.ru/feed/"; - sets a reference to a news channel ,
$ kol_print_news = 3 - number of news .
Next, open the file main.php of your template and paste the following code:
<?php if (reading_rss()) { ?>
<?php } ?>

read here
« Last Edit: May 12, 2015, 10:34:44 am by seoadd »

feint

  • Jr. Member
  • **
  • Posts: 64
Re: [Plugin] Import RSS feeds
« Reply #1 on: November 10, 2013, 12:41:28 pm »
Thank you for work!! I start to test this plugin. :)

seoadd

  • Newbie
  • *
  • Posts: 12
Re: [Plugin] Import RSS feeds
« Reply #2 on: November 10, 2013, 01:04:03 pm »
Thank you!
Tell us if you have any questions!

feint

  • Jr. Member
  • **
  • Posts: 64
Re: [Plugin] Import RSS feeds
« Reply #3 on: November 11, 2013, 01:26:05 pm »
No questions. There is a little problem with adding the rss! Decided to change to another rss but news shows from the first added rss feed.

mol

  • Newbie
  • *
  • Posts: 1
Re: [Plugin] Import RSS feeds
« Reply #4 on: February 24, 2014, 08:43:41 pm »
Works someone this plugin? I have a problem with the installation, the installation does not appear in posts. After running index.php "Call to undefined function osc_register_plugin () in"

design

  • Hero Member
  • *****
  • Posts: 2632
  • Osclass 3.5 MAC/PC w/ Modern Browsers
Re: [Plugin] Import RSS feeds
« Reply #5 on: March 04, 2014, 08:51:56 pm »
hello...good plugin- here when I needed it :-D

you are a bit unclear in your //comments on how or where to change the conversion

Code: [Select]
//transform coding of data

        //if you do not need to convert the encoding, the following comment on the condition of reaching or edit

my feed is working, but it is coming in with html

example:
Code: [Select]
Permanent Dialysis job in California
<b>Specialty</b>: Dialysis<br/><b>State</b>: CA<br/><b>Job Type</b>: permanent<br/><b>Opportunities</b>: 1<br/>&nbsp;<img src="http://feeds.feedburner.com/~r/FMSDialysis/~4/TvxmuCTFBaU" height="1" width="1"/>
04.3.2014


also, are you interested in expanding this plugin to populate custom fields?
« Last Edit: March 04, 2014, 11:33:33 pm by design »

nate88

  • Newbie
  • *
  • Posts: 12
Re: [Plugin] Import RSS feeds
« Reply #6 on: July 08, 2014, 12:52:53 pm »
I would love to have someone develop this more, and it seems it has been worked on more

http://os-class.ru/frm/threads/%D0%9D%D0%BE%D0%B2%D1%8B%D0%B9-%D0%BF%D0%BB%D0%B0%D0%B3%D0%B8%D0%BD-%D0%B8%D0%BC%D0%BF%D0%BE%D1%80%D1%82-rss-%D0%BB%D0%B5%D0%BD%D1%8B.63/

have to google translate the forum, barely understand it - but the file size is twice as big, havent tested it out yet..but if anyone does would love to hear if the version their works better in any way?


hello...good plugin- here when I needed it :-D

you are a bit unclear in your //comments on how or where to change the conversion

Code: [Select]
//transform coding of data

        //if you do not need to convert the encoding, the following comment on the condition of reaching or edit

my feed is working, but it is coming in with html

example:
Code: [Select]
Permanent Dialysis job in California
<b>Specialty</b>: Dialysis<br/><b>State</b>: CA<br/><b>Job Type</b>: permanent<br/><b>Opportunities</b>: 1<br/>&nbsp;<img src="http://feeds.feedburner.com/~r/FMSDialysis/~4/TvxmuCTFBaU" height="1" width="1"/>
04.3.2014


also, are you interested in expanding this plugin to populate custom fields?

seoadd

  • Newbie
  • *
  • Posts: 12
Re: [Plugin] Import RSS feeds
« Reply #7 on: November 07, 2015, 11:52:33 pm »
I do not get to make custom fields.

topspeed

  • Newbie
  • *
  • Posts: 12
Re: [Plugin] Import RSS feeds
« Reply #8 on: April 29, 2016, 07:47:21 pm »
In which "index.php" page I must insert the code ?

$ url_rss = "http://site.ru/feed/"; - sets a reference to a news channel ,
$ kol_print_news = 3 - number of news

Thanks

fre2mansur

  • Hero Member
  • *****
  • Posts: 591
Re: [Plugin] Import RSS feeds
« Reply #9 on: April 30, 2016, 12:17:37 am »
I think plugin index
find on
oc-content/plugins/print_rss/index.php

topspeed

  • Newbie
  • *
  • Posts: 12
Re: [Plugin] Import RSS feeds
« Reply #10 on: April 30, 2016, 11:43:18 am »
Quote
I think plugin index
find on
oc-content/plugins/print_rss/index.php
PERFECT! THANKS !
And this?

Next, open the file main.php of your template and paste the following code:
<?php if (reading_rss()) { ?>
<?php } ?>

Template = Theme ?
in that position should put the code?

Plugin can show feed rss in a custom field on home page?

THANKS

osCanyon

  • Hero Member
  • *****
  • Posts: 712
  • osCanyon, the class of Osclass
Re: [Plugin] Import RSS feeds
« Reply #11 on: May 03, 2016, 03:41:37 am »
just some suggestion :)
when inserting code in a theme file it works ok, but if you disable or remove the plugin your site will crash IF you just use the simple php statement
<?php if (reading_rss()) { ?>

better to do it this way so if you dont like a plugin or disable it wont cause troubles and you dont have to remove the code from your theme files

<?php if(function_exists('reading_rss()') ) { reading_rss(); } ?>

this method works for any plugin that requires the statement to be added to a file, just replace the function name of your plugin like shown :)

Quote
I think plugin index
find on
oc-content/plugins/print_rss/index.php
PERFECT! THANKS !
And this?

Next, open the file main.php of your template and paste the following code:
<?php if (reading_rss()) { ?>
<?php } ?>

Template = Theme ?
in that position should put the code?

Plugin can show feed rss in a custom field on home page?

THANKS

Jarosvet

  • Newbie
  • *
  • Posts: 18
Re: [Plugin] Import RSS feeds
« Reply #12 on: March 19, 2017, 05:30:51 pm »
Have a problem after moving to php 7

[Sun Mar 19 04:07:51.413551 2017] [lsapi:notice] [pid 21325:tid 140602935080704] [client 172.68.58.93:18533] [host realtyww.info] Backend log: PHP Warning:  preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in oc-content/plugins/print_rss/rss.php on line 64\n

Please help