• Welcome to Simple Machines Community Forum. Please login or sign up.
September 18, 2021, 04:15:26 PM

News:

Join the Facebook Fan Page.


RSS Feed Poster

Started by SMFHacks.com Team, January 11, 2007, 07:46:04 PM

Previous topic - Next topic

maxprofit

 I did click the cron in cpanel and directed the location to where the file is.  The above  was the result output when that file was executed.

vbgamer45

Make sure it is the url location not the path to the file.
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

sanax

I'm using the 'path' and not the 'URL'

I found the latter is not working though.

Ninoslav

this mod is great... however I ran into some problems...

* with fake cron job on

a LOT of errors, around 30 pages per minute, all of them with "undefined offset: 9" in them

* without fake cron, cron turned on in cPanel

...erm, no posts at all..

when I try to access cronrss.php it gives me this:

QuoteFatal error: Cannot redeclare ssi_viewblogs() (previously declared in /home/metalham/public_html/forum/SSI.php:1627) in /home/metalham/public_html/forum/SSI.php on line 1699

any hint?
∑∆T M∑! :)

vbgamer45

Sounds like you have a problem with your SSI.php you probably have two function ssi_viewblogs() 
Delete one of them and the ssi file will work again.
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

maxprofit

January 21, 2007, 10:19:54 AM #185 Last Edit: January 21, 2007, 10:26:12 AM by maxprofit
Quote from: vbgamer45 on January 20, 2007, 11:34:40 PM
Make sure it is the url location not the path to the file.

Putting the url on Cpanel Cron job in command line, the output I get is

/bin/sh: No such file or directory

txt3rob

what can i do about it not installing to my board? version 1.1.1?

L.G.S

ack need help, Im getting this almost every second:

http://www.ruthlessintent.com/board/index.php?amp;action=login2
Apply Filter: Only show the errors with the same message
8: Undefined offset: 8
File: /home/tscar/public_html/board/Sources/Subs-RSS.php
Line: 176
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


GetRank

working great with "use fake cron jobs" ;)
thanks

Ninoslav

January 21, 2007, 01:43:40 PM #189 Last Edit: January 21, 2007, 02:41:18 PM by Ninoslav
Quote from: vbgamer45 on January 21, 2007, 09:54:51 AM
Sounds like you have a problem with your SSI.php you probably have two function ssi_viewblogs() 
Delete one of them and the ssi file will work again.

You were right! After I've removed the duplicate and executed cronrss.php it worked! I just have to wait and see wheter it will work without manually executing cron.


EDIT: No, no updates :( unless I manually execute the cronrss.php file... if I turn on fake cron i get 44 pages of errors instantly, since i have 20 members viewing the forum and refreshing every second...

8: Undefined offset: 19
File: /home/metalham/public_html/forum/Sources/Subs-RSS.php
Line: 235

any ideas now?

∑∆T M∑! :)

txt3rob


The package you are trying to download or install is either corrupt or not compatible with this version of SMF.


when i try to install it on my board does any one know why im running version 1.1.1

turkarea

January 21, 2007, 05:21:16 PM #191 Last Edit: January 22, 2007, 08:23:21 AM by turkarea
thanks for great mod.it's working correctly.but i have one wishes from you.in rss feed ,when topic is opened there is only link and sentences but i want to add pictures also ! how can robot do that. there is a way to robot will open picture cod button  and add picture link from the rss feed ?
ÇookK oluyozZZz
www.forumtayfa.com

www.neodesktop.com
çok yakında:
www.cokoluyoz.com

Sitenize kameralı chat programı entegre etme (kendi adınıza) full resimlianlatım
http://www.simplemachines.org/community/index.php?topic=123990.0

Niteblade

affiliate blog

maxprofit

How can I set up a cron job on Cpanel using "http://www.yourforums.com/cronrss.php" on comnand line will not work  ... Setting direct location where this file is will also not work. IS there a script that can be written that will execute the cron job in Cpanel

Only way it updates is if I do it manualy via the web browser.

Using the Fake Cron slows down FORUM.

Help greatly appreciated

Ninoslav

Quote from: maxprofit on January 21, 2007, 07:33:56 PM
How can I set up a cron job on Cpanel using "http://www.yourforums.com/cronrss.php" on comnand line will not work  ... Setting direct location where this file is will also not work. IS there a script that can be written that will execute the cron job in Cpanel

Only way it updates is if I do it manualy via the web browser.

Using the Fake Cron slows down FORUM.

Help greatly appreciated

Same thing over here... Thanks in advance!
∑∆T M∑! :)

lexhair

January 21, 2007, 09:59:10 PM #195 Last Edit: January 29, 2007, 01:07:25 PM by lexhair
Quote from: maxprofit on January 21, 2007, 07:33:56 PM
How can I set up a cron job on Cpanel using "http://www.yourforums.com/cronrss.php" on comnand line will not work  ... Setting direct location where this file is will also not work. IS there a script that can be written that will execute the cron job in Cpanel

Only way it updates is if I do it manualy via the web browser.

Using the Fake Cron slows down FORUM.

Help greatly appreciated
Assuming you're running php-cgi, you can't load a php via URL directly from the cron tab. That's why it doesn't work.

My host has wget and lynx disabled so I'll have to use a PERL script since my host has a rather robust PERL library. Try this simple PERL script. I'm debating whether to install this mod but if I do, I'll call this perl script from the cron tab. Please note I haven't tested this script so CAVEAT EMPTOR. You may have to change the path to your PERL directory in the first line of the code and you will have to change the location of where you save the PERL script (and change the permissions to 755).
#!/bin/usr/perl
use LWP::Simple;
$p = get "http://www.yourforums.com/cronrss.php";
print $p;

We'll call the script "cronrss.pl" for this example.

The cron command will be:
/home/username/public_html/folder/cronrss.pl >/dev/null 2>&1

If your host has lynx enabled, you don't need the perl script. The cron tab would be:

lynx -dump 'http://www.yourforums.com/cronrss.php'; >/dev/null 2>&1

Again, your mileage will vary depending on how your host is configured.

webfan

January 22, 2007, 02:33:08 AM #196 Last Edit: January 22, 2007, 03:55:52 AM by v2.web
Nice Mod, thank you  :)

Some News are dublicated, they were posted twice (same feed, same news), I deleted them  ???
I'm searching for a solution that the rss feed posts are not in Recent Posts, or counted extra  ???
Thank you, and greetings!

EDIT: Try to let it post as an user instead of guest now, maybe it helps...

maxprofit

Quote from: lexhair on January 21, 2007, 09:59:10 PM
Quote from: maxprofit on January 21, 2007, 07:33:56 PM

If your host has lynx enabled, you don't need the perl script. The cron tab would be:

lynx -dump 'http://www.yourforums.com/cronrss.php'; >/dev/null 2>&1

Again, your mileage will vary depending on how your host is configured.

Thanks, the above seems to be working meaning my host must have lynx enabled.

This code writing stuff and commands is new to me. I am a quick learner though thanks to people like you and many others here.

Very much appreciated   :)

lexhair

January 22, 2007, 09:02:43 AM #198 Last Edit: January 22, 2007, 09:05:03 AM by lexhair
As a follow up to my post above, if you don't want to write a perl script, this php script should work:
<?php
include ('http://www.yourforums.com/cronrss.php');
?>
, save it as something like 'crontabrss.php', change the permissions to 755 and run it from the cron tab as:

php -q /home/username/public_html/folder/crontabrss.php >/dev/null 2>&1

maxprofit

Thanks to all your help, all is working well now and updating via a real Cron Job.

Some may want an answer to this as well, so I will ask.

When a member enters the FORUM he has a choice to click "Show unread posts since last visit".
most members do not want to see all the feeds as their unread posts. So how would one eliminate the RSS feeds from members unread posts.


Advertisement: