• Welcome to Simple Machines Community Forum. Please login or sign up.
November 27, 2021, 11:04:56 PM

News:

SMF 2.0.18 has been released! Please update. Read more.


RSS Feed Poster

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

Previous topic - Next topic

DaBoROE09

vbgamer

sir, the mod i have set up is that RSSBot is a guest which means he is a guest.  My fourm post count increases.  Is there a way that we can stop this?

bobby0408

I have tried everything but cannot get this mod to work

fsockopen is enabled

I set up the feeds and enabled them in the feed list

I have my cron setup pointing to cronrss.php, also tried the fake cron option.

I tried accessing the cronrss.php directly and nothing (blank Screen)

I am not getting any errors nor are any feeds being pulled in. I tried several different RSS feeds

I did get one error when I first installed the mod that the cronrss.php (file is writable by others) so I corrected that (chmod 755)

I am just sure where to look since I am not getting any errors.

Thanks in advance

vbgamer45

Nothing in the error log?  The min time for an rss feed to post is 30 minutes.

But it should give a response if you access cronrss.php directly.
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

DaBoROE09

how do i turn off the post counts for the mod again please sir?

vbgamer45

Quote from: DaBoROE09 on January 12, 2007, 01:25:28 PM
how do i turn off the post counts for the mod again please sir?

Open Sources/Subs-RSS.php

Find

'update_post_count' => (($feed['ID_MEMBER'] == 0) ? 0 : 1),

Replace with

'update_post_count' => false;
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

actoguitar

anyone willing to do a version of this script that uses cURL instead of fsockopen? My web host said they cant allow fsockopen for security reasons. i'd be happy to pay for someone's help in this matter. :)

vbgamer45

Quote from: actoguitar on January 12, 2007, 01:31:43 PM
anyone willing to do a version of this script that uses cURL instead of fsockopen? My web host said they cant allow fsockopen for security reasons. i'd be happy to pay for someone's help in this matter. :)
If you have some information on CURL I can possibly add support for 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

ankitcs

This is not working for RC2 ?

I tried to upgrade to 1.1 Full, but some of my mods are not working on that so I revert back.Also the admin panel in 1.1 Full is giving some strange errors.

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

bobby0408

Quote from: vbgamer45 on January 12, 2007, 01:11:58 PM
Nothing in the error log?  The min time for an rss feed to post is 30 minutes.

But it should give a response if you access cronrss.php directly.

Nope nothing in the error log. Nothing when accessing the cronrss.php directly, except a blank page. Will it matter if the file permissions are 755, the installer puts it at 777?

vbgamer45

Permissions shouldn't matter as it is not writing to any files.
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

bobby0408

Quote from: vbgamer45 on January 12, 2007, 01:54:48 PM
Permissions shouldn't matter as it is not writing to any files.

OK anything I can check?

Daniel Marquard

Quote from: DaBoROE09 on January 12, 2007, 08:18:46 AM
no u have to go in and enable the feed when you edit it.

We're talking about php.ini now, not the mod itself...

DaBoROE09

vbgamer45

i get this error when i do what you tell me to do

Quote
Parse error: syntax error, unexpected ';', expecting ')' in /home/daboroe/public_html/community/smf/Sources/Subs-RSS.php on line 212

and even if i do that it still increases the post count

DaBoROE09

January 12, 2007, 04:46:33 PM #74 Last Edit: January 12, 2007, 04:51:11 PM by DaBoROE09
Quote from: vbgamer45 on January 12, 2007, 01:27:21 PM
Quote from: DaBoROE09 on January 12, 2007, 01:25:28 PM
how do i turn off the post counts for the mod again please sir?

Open Sources/Subs-RSS.php

Find

'update_post_count' => (($feed['ID_MEMBER'] == 0) ? 0 : 1),

Replace with

'update_post_count' => false;


i believe it is supposed to be a , not a ;

thanks

EDITED
It still does not work. Below is my Subs-RSS.php

Ryuoh

my host gives this example code for CURL (i cant use fsockopen either)

<?

$URL="https://www.paypal.com";
if (isset($_GET["site"])) { $URL = $_GET["site"]; }
$ch = curl_init();
echo "URL = $URL <br>\n";
curl_setopt($ch, CURLOPT_VERBOSE, 1);
//curl_setopt ($ch, CURLOPT_HTTPPROXYTUNNEL, TRUE);
curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
curl_setopt ($ch, CURLOPT_PROXY,"http://proxy.shr.secureserver.net:3128");
curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt ($ch, CURLOPT_URL, $URL);
curl_setopt ($ch, CURLOPT_TIMEOUT, 120);
$result = curl_exec ($ch);
echo "<hr><br>\n";
echo 'Errors: ' . curl_errno($ch) . ' ' . curl_error($ch) . '<br><br>';
echo "<hr><br>\n";
curl_close ($ch);
print "result - $result";
echo "<hr><br>\n";

?>

DaBoROE09

vbgamer it does not work.  that code did not work sir for stoping post counts even overall.  how do i make it that the overall post acount like the number of topic ans posts total for the board not increase

vbgamer45

Quote from: DaBoROE09 on January 12, 2007, 09:42:21 PM
vbgamer it does not work.  that code did not work sir for stoping post counts even overall.  how do i make it that the overall post acount like the number of topic ans posts total for the board not increase
I have no idea then just make the board not count posts.
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

Xarcell

@ vbgamer45

Information on cURL
http://wiki.dreamhost.com/index.php/CURL

@ Bobby

Can you post a link to your cronfile/site?

ankitcs

Can some1 help me a bit.

If I need to post a topic with subject "abc" and message "xyz" then what will be the format of RSS feed.Plz tell the whole code from top to bottom.

Advertisement: