• Welcome to Simple Machines Community Forum. Please login or sign up.
September 22, 2021, 04:27:31 AM

News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord


RSS Feed Poster

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

Previous topic - Next topic

trip001

August 20, 2008, 05:38:16 AM #960 Last Edit: August 20, 2008, 05:41:07 AM by trip001
Quote from: Youngie360G on August 19, 2008, 07:18:45 PM
Wish i understood all this malarky - can you explain that URL to the cronsphp file? Were the bolded bits relevant to said persons server/domain?

I'll chop it up for you:

/usr/local/bin/php -q

Basically the first part will allow you to run the php file.. This includes the destination of the php command and the execution of it.


/home/name/domains/domain/public_html/cronrss.php


The second part is the location of the cronrss.php file. The easiest way to specify the location is by going to your SMF forum and go to the following location:

Admin > Server Settings > Core Configuration > SMF Directory

The SMF Directory will be the path to your files and in particular you cronrss.php file.

Add these together and you have the command i used in my crontab

comesee

i do not have fake cron.. can someone please attach one for me to download.


here is my feedpostersql   please can you see any error in it.

<?php
// SMFHacks.com
// By: vbgamer45
// Table SQL

if (file_exists(dirname(__FILE__) . '/SSI.php') && !defined('SMF'))
  require_once(dirname(__FILE__) . '/SSI.php');
// Hmm... no SSI.php and no SMF?
elseif (!defined('SMF'))
  die('<b>Error:</b> Cannot install - please verify you put this in the same place as SMF\'s index.php.');


// Create Feeds Poster Table
db_query("CREATE TABLE IF NOT EXISTS {$db_prefix}feedbot
(ID_FEED mediumint( NOT NULL auto_increment,
ID_BOARD smallint(5) unsigned NOT NULL default '0',
feedurl tinytext NOT NULL,
title tinytext NOT NULL,
enabled tinyint(4) NOT NULL default '1',
html tinyint(4) NOT NULL default '1',
postername tinytext,
ID_MEMBER mediumint( unsigned,
locked tinyint(4) NOT NULL default '0',
markasread tinyint(4) NOT NULL default '0',
articlelink tinyint(4) NOT NULL default '0',
topicprefix tinytext,
numbertoimport smallint(5) NOT NULL default 1,
importevery smallint(5) NOT NULL default 180,
updatetime int(10) unsigned NOT NULL default '0',
PRIMARY KEY  (ID_FEED))", __FILE__, __LINE__);

// Feed Log

db_query("CREATE TABLE IF NOT EXISTS {$db_prefix}feedbot_log
(ID_FEEDITEM mediumint( NOT NULL  auto_increment,
ID_FEED mediumint( NOT NULL,
feedhash tinytext NOT NULL,
feedtime int(10) unsigned NOT NULL default '0',
PRIMARY KEY  (ID_FEEDITEM))", __FILE__, __LINE__);

// Fake cron setting default false
db_query("INSERT IGNORE INTO {$db_prefix}settings VALUES ('rss_fakecron', '0')", __FILE__, __LINE__);

// Feed try method
db_query("INSERT IGNORE INTO {$db_prefix}settings VALUES ('rss_feedmethod', 'All')", __FILE__, __LINE__);



$dbresult = db_query("SHOW COLUMNS FROM {$db_prefix}feedbot", __FILE__, __LINE__);
$removed =  1;
while ($row = mysql_fetch_row($dbresult))
{
   if($row[0] == 'markasread')
      $removed = 0;

}
mysql_free_result($dbresult);

if ($removed)
   db_query("ALTER TABLE {$db_prefix}feedbot ADD markasread tinyint(4) NOT NULL default '0'", __FILE__, __LINE__);

?> 



fext

Quote from: trip001 on August 20, 2008, 05:38:16 AM
Quote from: Youngie360G on August 19, 2008, 07:18:45 PM
Wish i understood all this malarky - can you explain that URL to the cronsphp file? Were the bolded bits relevant to said persons server/domain?

I'll chop it up for you:

/usr/local/bin/php -q

Basically the first part will allow you to run the php file.. This includes the destination of the php command and the execution of it.


/home/name/domains/domain/public_html/cronrss.php


The second part is the location of the cronrss.php file. The easiest way to specify the location is by going to your SMF forum and go to the following location:

Admin > Server Settings > Core Configuration > SMF Directory

The SMF Directory will be the path to your files and in particular you cronrss.php file.

Add these together and you have the command i used in my crontab

Would it be advisable to contact my host to see if my set up is different?

fext

I spoke to the host and the path was correct - all working - cheers Trip :)

ke

I have installed the mod on my forum. Successfully, it says.

However, there is no link to the settings page in the admin menu. And when I go to
http://verben.texttheater.de/forum/index.php?action=feedsadmin ,
the start page of my forum is displayed.

I verified that fsockopen is enabled. What else can I do?

vbgamer45

That means the mod did not install. Check permissions on all the files and folders that it writes to.
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

jepot5

Hi, is this a valid feed
http://www.milw0rm.com/rss.php

Will I ever get it to work using this

vbgamer45

That's valid it is an RSS feed.
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

jepot5

I always get XML error: not well-formed (invalid token) at line 10 and I don't know why. Can u help me.

mobilephone2003

Just posting here for a cry for help. I have messaged the author of the mod but I think he is busy.

Here is my issue:

The RSS Poster worked a couple of times, where the bot posted the news (although in unformatted HTML). In trying to get this issue fixed by disabling/enabling and uninstalling/reinstalling, the bot seems to no longer show feeds regardless of what I do.

Am I not completely uninstalling it? I really don't understand why this is not working now, when it worked earlier. Any help is good, thanks :)

fext

Quote from: mobilephone2003 on August 23, 2008, 10:54:55 AM
Just posting here for a cry for help. I have messaged the author of the mod but I think he is busy.

Here is my issue:

The RSS Poster worked a couple of times, where the bot posted the news (although in unformatted HTML). In trying to get this issue fixed by disabling/enabling and uninstalling/reinstalling, the bot seems to no longer show feeds regardless of what I do.

Am I not completely uninstalling it? I really don't understand why this is not working now, when it worked earlier. Any help is good, thanks :)

Go back a few pages - say 46 onwards - i was having the same issue and its to do with Cronjobs on your server :)

me123

I am getting this error in the error log, my forum is in Dutch. I am using Tinyportal.



8: Undefined index: smfrssposter_admin
Bestand: /home/***/public_html/nl/forum/Sources/Subs.php
Regel: 3261

What is wrong?

comesee

i still get this error and can some give me a copy og the cron file

Incorrect information in file: '.\smf_feedbot.frm'
File: J:\www\Sources\FeedPoster.php..

any help

vbgamer45

Quote from: me123 on August 25, 2008, 02:29:36 PM
I am getting this error in the error log, my forum is in Dutch. I am using Tinyportal.



8: Undefined index: smfrssposter_admin
Bestand: /home/***/public_html/nl/forum/Sources/Subs.php
Regel: 3261

What is wrong?

Copy modifications.english.php text to modifications.yourlanguage.php
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

me123

Quote from: vbgamer45 on August 25, 2008, 08:16:09 PM
Quote from: me123 on August 25, 2008, 02:29:36 PM
I am getting this error in the error log, my forum is in Dutch. I am using Tinyportal.



8: Undefined index: smfrssposter_admin
Bestand: /home/***/public_html/nl/forum/Sources/Subs.php
Regel: 3261

What is wrong?

Copy modifications.english.php text to modifications.yourlanguage.php

It looks like this does the trick... Thanks vbgamer45!

ke

Quote from: vbgamer45 on August 22, 2008, 08:10:03 PM
That means the mod did not install. Check permissions on all the files and folders that it writes to.

Thanks, I applied the modifications manually and it works now.

Oddly though, a new topic is opened for every item. And only the latest item is posted, even if there are more new items around. Is that the expected behavior or is something malfunctioning?

comesee

Please when ever i install  I get an error . see error below.  copy of the cron file

Incorrect information in file: '.\smf_feedbot.frm'
File: J:\www\Sources\FeedPoster.php..

any help   , can some please attach a copy of fake cron.

vbgamer45

Quote from: comesee on August 27, 2008, 05:59:34 PM
Please when ever i install  I get an error . see error below.  copy of the cron file

Incorrect information in file: '.\smf_feedbot.frm'
File: J:\www\Sources\FeedPoster.php..

any help   , can some please attach a copy of fake cron.
That means that table is either corrupted or not created
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

comesee

Can I manuelly create the table.??

ke

http://path.to.your/forum/index.php?action=feedsadmin

Advertisement: