Page 20 of 72

Posted: Thu Mar 10, 2005 7:58 am
by wakke
At first sight the problem seems to be fixed by modifying the following line in funtions_insert_post.php:

Code: Select all

    $subject = addslashes(unprepare_message(trim($subject)));

Code: Select all

    $subject = addslashes(unprepare_message(trim(htmlspecialchars($subject))));

Posted: Tue Mar 15, 2005 3:29 am
by OhioHedgehog
any possible solutions to the "vanashing table" problem mentioned throughout this thread?

Posted: Fri Mar 18, 2005 6:31 pm
by Malleus
Hello everyone,

First of all I'd like to thank Netclectic for this great mod. Easy to install and running very smoothly at my board.

I was wondering if one could add custom prefix-tags to the automated newsposts though - since once you stream multiple news sources to a single board it would be convenient to see where the news came from at first glance, without having to read it completely.

Anyone who would know how to do this? That would be really great. :)


Great Mod

Posted: Sun Mar 20, 2005 3:16 pm
by tristatesportbikes
Great Mod, seemless install using easymod. Thanks for a great addition to my site.

I installed a test of this last night and everything went smoothly. Even got the first round of feeds from 2 different RSS feeds. That was after 10 last night. I added a third and tried updating them this morning and a coupple of times last night and no additions. The page after udating says it is running fine and no erors.

With each running of the update, my posts are not updated and I'm hoping it is only that there aren't any additional updates being it is sunday am and Sat night i did it. Anyone else have feeds that are't updating? The ones i am using are quite specific dealing with sportbikes.

Posted: Sun Mar 20, 2005 9:24 pm
by NightriderXP
Yes, I have feeds which only update once per month. Then I have others that update continuously on the hour. It all depends on the site. Based on what you stated, it sounds like everything is working perfectly for you...


Feeds updating

Posted: Mon Mar 21, 2005 12:01 am
by tristatesportbikes
Yes, I tried updating again tonight and One of the feeds did indeed update, I guess due to the unique nature of my feeds (superbikes and sportbikes) I'm not going to get updates all that often.

Has anyone done any work with outputting to a wireles device like a phone?

Posted: Mon Mar 21, 2005 4:32 am
by r5a
How can I make this do it automatically every night at midnight?

Posted: Mon Mar 21, 2005 5:07 am
by annab
Great mod!

r5a, you need to set up a cron job. Info is found in the setup file and somewhere early on in this topic.

Posted: Tue Mar 22, 2005 5:59 am
by r5a
Doh, yeah. I did.

My crontab is to run this command "GET > /dev/null" every day at midnight. I get this error when trying to go to the news_insert.php on a diffrent computer besides the server
Warning: main(../../../ [function.main]: failed to open stream: No such file or directory in /var/www/ on line 15

Warning: main() [function.include]: Failed opening '../../../' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/ on line 15

Warning: main(../../../common.) [function.main]: failed to open stream: No such file or directory in /var/www/ on line 16

Warning: main() [function.include]: Failed opening '../../../common.' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/ on line 16

Warning: main(../../../mods/netclectic/find_input/includes/functions_news.) [function.main]: failed to open stream: No such file or directory in /var/www/ on line 17

Warning: main() [function.include]: Failed opening '../../../mods/netclectic/find_input/includes/functions_news.' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/ on line 17

Fatal error: Call to undefined function session_pagestart() in /var/www/ on line 71

Any ideas?

Posted: Thu Mar 24, 2005 12:13 am
by r5a
Nevermind guys, I'm an idiot. Thanks for the great mod!

One suggestion, maybe a better way to do automatic updates?

Posted: Sun Mar 27, 2005 12:37 am
by ferfie
Hey, im not sure if anyone has posted, there are too many pages to read. Anyway, When my forum was importing the RSS feeds, a lot of times the feed was formatted with HTML and this HTML was being shown in the posts on my forum. I went in and modified the 'includes/functions_news.php' file as follows to take out all html formatting for my forums:

Code: Select all

## Line Number 215 of file includes/functions_news.php
## Replace     $message = $description;
## with		  $message = strip_tags($description);
## End of Edit.
So far this has caused no problems, but it did clean up all of my posts. i am a stickler for clean design.

Posted: Sun Mar 27, 2005 9:22 pm
by groundfighter
Can you modify this great mod to work with categories hierachy please? It will not show the forums for inclusion.

Posted: Mon Mar 28, 2005 9:02 pm
by MHobbit
For those running cron that can't use WGET or GET, try doing this:

Code: Select all

/path/to/php/ /path/to/public/html/phpbbroot/mods/netclectic/find_input/news_insert.php

Posted: Wed Mar 30, 2005 4:11 am
by OhioHedgehog
problem persists....attempted rerun the SQL to set up the table and STILL getting:
Couldn't obtain newsfeeds list


SQL Error : 1146 Table 'kpffl_phpbb1.NEWSFEEDS_TABLE' doesn't exist

SELECT f.forum_name, n.*, c.cat_id, c.cat_title, u.user_id, u.username FROM NEWSFEEDS_TABLE n, phpbb_forums f, phpbb_categories c, phpbb_users u WHERE f.forum_id = n.forum_id AND c.cat_id = f.cat_id AND u.user_id = n.user_id ORDER BY c.cat_order ASC, f.forum_order ASC, n.news_name ASC

Line : 298
File : admin_newsfeeds.php

tia for your help

Posted: Wed Mar 30, 2005 5:49 pm
by NightriderXP
Are your tables named with the standard phpbb_xxx? If not, you will need to change the name of the newsfeed table to match the names that you use now...

Code: Select all

#-----[ SQL ]------------------------------------------ 
# See schemas directory for databases other than mysql
CREATE TABLE phpbb_newsfeeds (
      feed_id smallint(5) unsigned NOT NULL auto_increment,
      forum_id smallint(5) unsigned NOT NULL default '0',
      user_id mediumint(8) NOT NULL default '0',
      news_url varchar(255) NOT NULL default '',
      news_name varchar(60) default NULL,
      news_limit smallint(5) unsigned NOT NULL default '0',
      news_active tinyint(1) unsigned NOT NULL default '1',
      include_channel tinyint(1) unsigned NOT NULL default '1',
      include_image tinyint(1) unsigned NOT NULL default '1',
      PRIMARY KEY  (feed_id),
      KEY forum_id (forum_id)