News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

RSS Feeder

Started by SlammedDime, January 11, 2009, 06:06:42 AM

Previous topic - Next topic

Markco

Please I would like to date in French and in 24 hours



Gif not appear


Resolve that

Thank's

---
Sorry i use a online translator French / English
Sorry, I use the on-line translator ("Reverso") French / English

nsno

anyone got this working with 2.0 Gold yet?

Angelina Belle

Did you try to install, using emulation? What happened?
Never attribute to malice that which is adequately explained by stupidity. -- Hanlon's Razor

nsno

yeah tried and got same results

says it's not compatible with my version of SMF

Spoogs

clear your browser cache and try again

nsno

still not having it

Saftek

Same here... getting "The package you are trying to download or install is either corrupt or not compatible with this version of SMF."  After hitting the install mod button. It is uploaded onto the server.

hesaab

SlammedDime
Hi
Thanks for this mod
when i have 2 rss, i want to update these rss seperately and automatically.
for example, rss1 update every 6 hours and rss2 update every 10 hours. could u help me?
Thanks
<a href="http://www.tasavi.ir [nofollow]" rel="no-follow">تالار گفتگوی حسابداری</a>

SlammedDime

It's currently not possible to do.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

hesaab

Quote from: SlammedDime on July 20, 2011, 11:23:00 AM
It's currently not possible to do.

is it possible update the mode for doing that feature?
like this mod: http://custom.simplemachines.org/mods/index.php?mod=624
thnx
<a href="http://www.tasavi.ir [nofollow]" rel="no-follow">تالار گفتگوی حسابداری</a>

Galaxy Computers

when you install the modification did you change the eleminate the forum an older version?
Wade Morris
Amarillo, Texas

Morris Technologies Computer Support Forum

CR Forum

#1231
Quote from: Spuds on February 13, 2010, 11:43:03 AM
First the warning ... COMPLETELY UNTESTED

To hopefully help with all the questions of how to I format the message this way to that way I've munged the code to make it easier for folks unfamiliar with php to make changes as they see fit. 

What this does is break the message into sections that should be more obvious what they are, you can then combine in the order, and what sections you do or don't want to show.

Again this was just typed in and has not been tested, primarily because I'm not going to use it and also because I'm lazy.

So find:
// Format the post
         $message =
($item->get_permalink() !== null ? '[url=' . $item->get_permalink() . ']' . $title . '[/url]' : $title) . '
' . ($item->get_date() !== null ? '[b]' . $item->get_date() . '[/b]
' : '') . '
' . $body . '

' . (!empty($source) ? '[b]' . $txt['rss_feed_source'] . ':[/b] ' . $source . '

' : '') . (!empty($feed['footer']) ? $feed['footer'] : '');


replace with:

// Format the post
// title of the rss topic with a link back to this specific item in the feed if avaialble
$message_linked_title = ($item->get_permalink() !== null) ? '[url=' . $item->get_permalink() . ']' . $title . '[/url]' : $title;

// just the rss topic as a title, no link
$message_unlinked_title = $title;

// Your own text with a link back to the topic
$message_linked_mytext = ($item->get_permalink() !== null) ? '[url=' . $item->get_permalink() . ']' . 'Read More ...' . '[/url]' : '';

// the date of the feed item
$message_date = ($item->get_date() !== null) ? '[b]' . $item->get_date() . '[/b]' : '';

// the story
$message_body = $body;

// the source of the feed with a link back to it if available
$message_linked_source = (!empty($source)) ? '[b]' . $txt['rss_feed_source'] . ':[/b] ' . $source . '' : '';

// the source of the feed with no link
$message_unlinked_source = (!empty($feed_title)) ? $feed_title : '');

// any footer from the rss admin area
$message_footer = (!empty($feed['footer']) ? $feed['footer'] : '');

// put it all together however you like, use some, all or none .... use "\n" to add a newline between items,
// use your own conscience if you remove credit to other peoples work :o
// some examples to help
//
// default
// $message = $message_linked_title . $message_date . "\n" . $message_body . "\n\n" . $message_linked_source . "\n" . $message_footer;
//
// credit but no links
// $message = $message_unlinked_title . $message_date . "\n" . $message_body . "\n\n" . $message_unlinked_source . "\n" . $message_footer;
//
// just a title and body
// $message = $message_unlinked_title . "\n" . $message_body;
//
// adding in some of your own text
// $message = $message_unlinked_title . "\n" . $message_body . "\n\n" . $message_linked_mytext;
//
// all mixed up
// $message = $message_unlinked_source . "\n" . $message_body . "\n\n" . $message_date . "\n" . $message_footer . "\n" . message_linked_title;
//
// Our post as we see fit.
$message = $message_linked_title . $message_date . "\n" . $message_body . "\n\n" . $message_linked_source . "\n" . $message_footer;






I am trying to make this happen but every time I make the changes, and add a new rss feed, it gives an error on running  ScheduleTask.php that "The database value you're trying to insert does not exist". Reverting to the original code makes the task completed with resultant posts getting posted. What could be happening.
This error appears in the log
Quotehttp://www.indiaeduforum.com/index.php?pretty;action=admin&amp;area=scheduledtasksThe database value you're trying to insert does not exist: body
Function: createPostFile: /home/indiaedu/public_html/Sources/Subs-Post.php
Line: 1848
Thanks
Sam

imrich

I don't know if my web server updated it's PHP, but in the past month or two my error_log is filling up everytime my RSS feeds are scheduled.

I'm seeing all sorts of errors:

[04-Aug-2011 09:00:23] PHP Strict Standards:  Assigning the return value of new by reference is deprecated in /home/user/public_html/discuss/Sources/Subs-Rss.php on line 14375
[04-Aug-2011 09:00:23] PHP Strict Standards:  Non-static method SimplePie_Misc::fix_protocol() should not be called statically, assuming $this from incompatible context in /home/user/public_html/discuss/Sources/Subs-Rss.php on line 939
[04-Aug-2011 09:00:23] PHP Strict Standards:  Non-static method SimplePie_Misc::normalize_url() should not be called statically, assuming $this from incompatible context in /home/user/public_html/discuss/Sources/Subs-Rss.php on line 9393
[04-Aug-2011 09:00:23] PHP Strict Standards:  Non-static method SimplePie_Misc::parse_url() should not be called statically, assuming $this from incompatible context in /home/user/public_html/discuss/Sources/Subs-Rss.php on line 9394
[04-Aug-2011 09:00:23] PHP Strict Standards:  Non-static method SimplePie_Misc::parse_url() should not be called statically, assuming $this from incompatible context in /home/user/public_html/discuss/Sources/Subs-Rss.php on line 1648
[04-Aug-2011 09:00:23] PHP Strict Standards:  Non-static method SimplePie_Cache::create() cannot be called statically in /home/user/public_html/discuss/Sources/Subs-Rss.php on line 1652
[04-Aug-2011 09:00:23] PHP Strict Standards:  Non-static method SimplePie_Cache::create() cannot be called statically in /home/user/public_html/discuss/Sources/Subs-Rss.php on line 1652
[04-Aug-2011 09:00:23] PHP Strict Standards:  Non-static method SimplePie_Cache::create() cannot be called statically in /home/user/public_html/discuss/Sources/Subs-Rss.php on line 1652
[04-Aug-2011 09:00:23] PHP Strict Standards:  is_a(): Deprecated. Please use the instanceof operator in /home/user/public_html/discuss/Sources/Subs-Rss.php on line 1742
[04-Aug-2011 09:00:23] PHP Strict Standards:  Non-static method SimplePie_Misc::get_curl_version() should not be called statically, assuming $this from incompatible context in /home/user/public_html/discuss/Sources/Subs-Rss.php on line 7781

I already have this set in my php.ini:
error_reporting = E_ALL & ~E_NOTICE

Perhaps it's time to update this with the new php standards or is there another error I can turn off?

tinoest

Quote from: imrich on August 04, 2011, 02:18:03 PM
I don't know if my web server updated it's PHP, but in the past month or two my error_log is filling up everytime my RSS feeds are scheduled.

I'm seeing all sorts of errors:

[04-Aug-2011 09:00:23] PHP Strict Standards:  Assigning the return value of new by reference is deprecated in /home/user/public_html/discuss/Sources/Subs-Rss.php on line 14375
[04-Aug-2011 09:00:23] PHP Strict Standards:  Non-static method SimplePie_Misc::fix_protocol() should not be called statically, assuming $this from incompatible context in /home/user/public_html/discuss/Sources/Subs-Rss.php on line 939
[04-Aug-2011 09:00:23] PHP Strict Standards:  Non-static method SimplePie_Misc::normalize_url() should not be called statically, assuming $this from incompatible context in /home/user/public_html/discuss/Sources/Subs-Rss.php on line 9393
[04-Aug-2011 09:00:23] PHP Strict Standards:  Non-static method SimplePie_Misc::parse_url() should not be called statically, assuming $this from incompatible context in /home/user/public_html/discuss/Sources/Subs-Rss.php on line 9394
[04-Aug-2011 09:00:23] PHP Strict Standards:  Non-static method SimplePie_Misc::parse_url() should not be called statically, assuming $this from incompatible context in /home/user/public_html/discuss/Sources/Subs-Rss.php on line 1648
[04-Aug-2011 09:00:23] PHP Strict Standards:  Non-static method SimplePie_Cache::create() cannot be called statically in /home/user/public_html/discuss/Sources/Subs-Rss.php on line 1652
[04-Aug-2011 09:00:23] PHP Strict Standards:  Non-static method SimplePie_Cache::create() cannot be called statically in /home/user/public_html/discuss/Sources/Subs-Rss.php on line 1652
[04-Aug-2011 09:00:23] PHP Strict Standards:  Non-static method SimplePie_Cache::create() cannot be called statically in /home/user/public_html/discuss/Sources/Subs-Rss.php on line 1652
[04-Aug-2011 09:00:23] PHP Strict Standards:  is_a(): Deprecated. Please use the instanceof operator in /home/user/public_html/discuss/Sources/Subs-Rss.php on line 1742
[04-Aug-2011 09:00:23] PHP Strict Standards:  Non-static method SimplePie_Misc::get_curl_version() should not be called statically, assuming $this from incompatible context in /home/user/public_html/discuss/Sources/Subs-Rss.php on line 7781

I already have this set in my php.ini:
error_reporting = E_ALL & ~E_NOTICE


I know this is not my modification , but are you running PHP 5.2.x or 5.3.x ? As the is_a is no longer depreciated in the latest version 5.3.x of PHP.


imrich

It looks like I'm running php 5.2.17

I'll have to look but how can they depreciate it in one version and then not in a later version? LOL

Yngwiedis

Hello...

Can somebody please help me with the regex command ?

This is the HTML section of the articles in the site i use as my rss source:

<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr>

        <td align="left" style="padding-left:5px;padding-top:7px;">
            <div id="_ctl15__ctl0_Article" style="width:550px;"><div id='mytxt' style='width:650px;'><div style='width:240px;float:left;'><table cellspacing='2' cellpadding='0' border='0'><tr><td><a href='http://www.real.gr//Files/Articles/Photo/84376.jpg' class='lightbox4' title=''><img align='left' src='Files/Articles/Photo/84376.jpg'   
                        width='225' height='128' style='border:1px solid #8f9da8;margin-top:0px;margin-right:10px;' alt='' /></a>
                        </td></tr><tr><td class='article_source_text'></td></tr><tr><td>
                    <table cellspacing='0' cellpadding='0'
                    ><tr><td><a href='http://www.real.gr//Files/Articles/Photo/84376.jpg' class='lightbox' ><img src='img/article/photo_magnifier.jpg' border='0'/></a></td>
                    <td class='article_source_text'>&nbsp;
                    <a href='http://www.real.gr//Files/Articles/Photo/84376.jpg' class='lightbox3' >Πατήστε για μεγέθυνση</a></td></tr></table></td></tr></table></div><div class='article_pure_text'>Να αποσύρουν τις σκηνές από την πλατεία του Λευκού Πύργου αποφάσισαν οι &laquo;Αγανακτισμένοι&raquo; της Θεσσαλονίκης. Ωστόσο, προγραμματίζουν λαϊκή συνέλευση στις 25 Αυγούστου εν όψει και των εγκαινίων της ΔΕΘ.<br />

<br />
Σε ανακοίνωση που ανάρτησαν στην ιστοσελίδα τους, οι &laquo;Αγανακτισμένοι&raquo; της Θεσσαλονίκης, αναφέρουν &laquo;αν δήθεν το πρόβλημα είναι οι σκηνές τότε τις αποσύρουμε κρατώντας την υποδομή (γραμματεία, πρώτες βοήθειες και υλικοτεχνική υποστήριξη). Διατηρούμε αδιαπραγμάτευτα τον πολιτικό χαρακτήρα του κινήματός μας. Δεν θα σας δώσουμε καμία ευκαιρία να συκοφαντήσετε το κίνημά μας.&raquo;<br />
<br />
Είχε προηγηθεί η δήλωση του δημάρχου Θεσσαλονίκης, Γιάννη Μπουτάρη στην ΕΤ-3 που ανέφερε πως επικοινώνησε με τις εισαγγελικές αρχές για να δουν πώς θα χειριστούν το θέμα με τους &laquo;Αγανακτισμένους&raquo; και εάν θα απομακρύνουν τις σκηνές από την πλατεία του Λευκού Πύργου.<br />
<br />
Οι ίδιοι καλούν τους πολίτες σε λαϊκή συνέλευση στις 25 Αυγούστου στο Λευκό Πύργο για να &laquo;προετοιμάσουν&raquo;, όπως χαρακτηριστικά αναφέρουν στην ανακοίνωση τους, &laquo;υποδοχή στον πρωθυπουργό και σε όλους τους πολιτικούς αρχηγούς στην πόλη στην ΔΕΘ&raquo;.<br /></div></div></div>

        </td></tr>
    </table>


I try that: ~<div id="_ctl15__ctl0_Article" style="width:550px;">(.*)<\/div>~siU
Is not working.

I try that: ~<div id="_ctl15__ctl0_Article" style="width:550px;">(.*)<\/div><\/div><\/div>~siU
Is not working again.

I try that: ~<div id="_ctl15__ctl0_Article" style="width:550px;">(.*)<\/div><\/td>~siU
And again not working :(

I really need some help.

Thank you very very much.
AmityHost.com - The Affordable Host

Yngwiedis

AmityHost.com - The Affordable Host

Yngwiedis

AmityHost.com - The Affordable Host

Yngwiedis

AmityHost.com - The Affordable Host

frytec

this mod works on Rc3?

im trying to install but getting error "corrupted or incompatible version"


Advertisement: