[DEV] RSS Feed Parser in Conjunction + [RC1]Feeds Everywhere

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Ideas Centre
Locked
barrycarlyon
Registered User
Posts: 851
Joined: Wed Mar 29, 2006 3:46 pm
Location: Manchester
Name: Barry Carlyon
Contact:

Re: [DEV] RSS Feed Parser in Conjunction + [RC1]Feeds Everywhere

Post by barrycarlyon » Wed Jun 11, 2008 11:05 pm

I have released the feeds everywhere component not the parser

also you have to switch on the feeds in the acp

I am adding links to the feeds in more useful places, currently its just head integration, which newer browsers will discover.

The feed parser I havnt had the time to look at to recode for 3.0.1
Barry Carlyon

craven1
Registered User
Posts: 12
Joined: Wed Jun 20, 2007 3:42 pm

Re: [DEV] RSS Feed Parser in Conjunction + [RC1]Feeds Everywhere

Post by craven1 » Thu Jun 12, 2008 12:59 pm

a oke ul for me.... lol :D

User avatar
leviatan21
Registered User
Posts: 2663
Joined: Fri Aug 10, 2007 7:22 am
Location: Buenos Aires, Argentina
Name: Gabriel

Re: [DEV] RSS Feed Parser in Conjunction + [RC1]Feeds Everywhere

Post by leviatan21 » Mon Jun 16, 2008 5:52 am

HI barrycarlyon
I download your mod, from barrycarlyon but have a lot of problems :

Code: Select all

INSERT INTO phpbb_config (config_name, config_value, is_dynamic) VALUES
('feeds_enable', '0', 0),
('feeds_overall_forums', '0', 0),
('feeds_overall_threads', '0', 0),
('feeds_overall_post', '0', 0),
('feeds_egosearc', '0', 0),
('feeds_forum', '0', 0),
('feeds_thread', '0', 0);
Into the BD changes feeds_overall_post should be feeds_overall_posts, feeds_egosearc should be feeds_egosearch according to this :
'SITE_LOGO_IMG' => $user->img('site_logo'),
'S_ENABLE_FEEDS' => ($config['feeds_enable']) ? true : false,
'S_ENABLE_FEEDS_O_FORUMS' => ($config['feeds_overall_forums']) ? true : false,
'S_ENABLE_FEEDS_O_THREADS' => ($config['feeds_overall_threads']) ? true : false,
'S_ENABLE_FEEDS_O_POSTS' => ($config['feeds_overall_posts']) ? true : false,
'S_ENABLE_FEEDS_EGOSEARCH' => ($config['feeds_egosearch']) ? true : false,
'S_ENABLE_FEEDS_FORUM' => ($config['feeds_forum']) ? true : false,
'S_ENABLE_FEEDS_THREAD' => ($config['feeds_thread']) ? true : false)
);
I rename this into my db.
Then, if the ACP when try to access to .mod tab :
ACP_RSS_FEEDS_MANAGEMENT_EXPLAIN do not exist in language/en/mods/rss_xml.php I add it with a blank content.

After all changes I went to my rss.php anf got this error from Firefox :
Error reading XML is not element
Location: http://localhost:8080/mssti/phpbb3/rss.php
Number of line 1, column 1:
and this with Internet Explorer :
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

XML document must have a top level element. Error processing resource 'http://localhost:8080/mssti/phpbb3/rss.php'.
I think because the template is missing in the download pack :

Code: Select all

$template->set_filenames(array(
	'body' => 'rss_template.xml')
);
[ EDIT ]
Some other errors in rss.php :
at line 205 there is no $post_result to free result !
at line 215 the row _post_time should be post_time
at line 216 the row poster_username shopuld be post_username

Code: Select all

//				$db->sql_freeresult($post_result);
				if (strlen($item_desc) > 300)
				{
					$item_desc = substr($item_desc,0,300).'...';
				}
				$item_desc .= ' '.$user->lang['LAST_POST'].': '.$row['post_username'].' at '.date('r',$row['post_time']);
				$template->assign_block_vars('newsitems', array(
					'TITLE'		=> $item_title,
					'DESC'		=> $item_desc,
					'LINK'		=> $web_address.'viewtopic.php?f='.$row['forum_id'].'&t='.$row['topic_id'].'#p'.$row['post_id'],
//					'PUBDATE'	=> date('r',$row['_post_time']),
					'PUBDATE'	=> date('r',$row['post_time']),
//					'AUTHOR'	=> $row['poster_username'],
					'AUTHOR'	=> $row['post_username'],
				));
Hope you can fix all ;) I will like to use your mod

Thanks !
Excuse me for my poor English, I speak Spanish. | Image phpBB en Español

barrycarlyon
Registered User
Posts: 851
Joined: Wed Mar 29, 2006 3:46 pm
Location: Manchester
Name: Barry Carlyon
Contact:

Re: [DEV] RSS Feed Parser in Conjunction + [RC1]Feeds Everywhere

Post by barrycarlyon » Mon Jun 16, 2008 9:17 am

Don't ya just love it when glitches find their way into releases.

Thats for the report, I'll investigate and get it fixed....

However:
at line 205 there is no $post_result to free result !
at line 215 the row _post_time should be post_time
at line 216 the row poster_username shopuld be post_username
All those lines are commented out.
So the naming is irrelevant and they are not bugs.

Edit: Fixed version out briefly...

Edit:: New fixed version up, I've done it from a remote location, so it should work but I havn't tested it since I am at a remote location aka Work.
Barry Carlyon

User avatar
leviatan21
Registered User
Posts: 2663
Joined: Fri Aug 10, 2007 7:22 am
Location: Buenos Aires, Argentina
Name: Gabriel

Re: [DEV] RSS Feed Parser in Conjunction + [RC1]Feeds Everywhere

Post by leviatan21 » Mon Jun 16, 2008 5:01 pm

barrycarlyon wrote:Don't ya just love it when glitches find their way into releases.

Thats for the report, I'll investigate and get it fixed....

However:
at line 205 there is no $post_result to free result !
at line 215 the row _post_time should be post_time
at line 216 the row poster_username shopuld be post_username
All those lines are commented out.
So the naming is irrelevant and they are not bugs.
Hi barrycarlyon : I comment out those lines in my server, so I can run it, and show other users how fix it, until you do it ;)
barrycarlyon wrote:Edit: Fixed version out briefly...

Edit:: New fixed version up, I've done it from a remote location, so it should work but I havn't tested it since I am at a remote location aka Work.
Downloading and testing...
Excuse me for my poor English, I speak Spanish. | Image phpBB en Español

barrycarlyon
Registered User
Posts: 851
Joined: Wed Mar 29, 2006 3:46 pm
Location: Manchester
Name: Barry Carlyon
Contact:

Re: [DEV] RSS Feed Parser in Conjunction [RC1]Feeds Everywhere

Post by barrycarlyon » Tue Jun 17, 2008 1:16 am

posting a code which would appear to be my code where you have changed it and not said you have changed it is not useful as it means the download pack is still wrong, as the lines were commented out in you snippet so I didn't bother to check the lines in my files.
Not useful
Barry Carlyon

User avatar
leviatan21
Registered User
Posts: 2663
Joined: Fri Aug 10, 2007 7:22 am
Location: Buenos Aires, Argentina
Name: Gabriel

Re: [DEV] RSS Feed Parser in Conjunction [RC1]Feeds Everywhere

Post by leviatan21 » Tue Jun 17, 2008 1:58 am

barrycarlyon wrote:posting a code which would appear to be my code where you have changed it and not said you have changed it is not useful as it means the download pack is still wrong, as the lines were commented out in you snippet so I didn't bother to check the lines in my files.
Not useful
Ok, I only try to help.
Bye bye... you will never see me again in the future :oops:
Excuse me for my poor English, I speak Spanish. | Image phpBB en Español

barrycarlyon
Registered User
Posts: 851
Joined: Wed Mar 29, 2006 3:46 pm
Location: Manchester
Name: Barry Carlyon
Contact:

Re: [DEV] RSS Feed Parser in Conjunction + [RC1]Feeds Everywhere

Post by barrycarlyon » Tue Jun 17, 2008 10:24 am

I didn't mean it like that, its just to post code which does not match the original and too not say that you edited wasn't useful.
The rss.php file I wrote quite a while back, so I didn't bother checking it when you posted code which I didn't know didn't match the original.

Jeez, how many people take things the wrong way?
Barry Carlyon

barrycarlyon
Registered User
Posts: 851
Joined: Wed Mar 29, 2006 3:46 pm
Location: Manchester
Name: Barry Carlyon
Contact:

Re: [DEV] RSS Feed Parser in Conjunction + [RC1]Feeds Everywhere

Post by barrycarlyon » Tue Jun 17, 2008 11:25 am

Download link is temporarily offline.
Barry Carlyon

barrycarlyon
Registered User
Posts: 851
Joined: Wed Mar 29, 2006 3:46 pm
Location: Manchester
Name: Barry Carlyon
Contact:

Re: [DEV] RSS Feed Parser in Conjunction + [RC1]Feeds Everywhere

Post by barrycarlyon » Thu Jun 19, 2008 10:44 am

Updated pack for download, I havn't testing some of the language changes I have made, since I have updated from a remote location, so some of the head entries when ran into the board may be missing lang entries....

I should be able to test it when I get home myself, but I will be stuck away from a computer for the next 5 or 6 hours, hence I am throwing this up for testing.

http://files.barrycarlyon.servegame.org/phpbb/

Enjoy.

I do have a todo list for the next version, so please submit any ideas for the next version.

:-)

Bazza
Barry Carlyon

Kharon
Registered User
Posts: 235
Joined: Thu Oct 26, 2006 5:27 pm

Re: [DEV] RSS Feed Parser in Conjunction + [RC1]Feeds Everywhere

Post by Kharon » Thu Jun 19, 2008 11:32 am

sorry mnglish bad..

phpBB version : 3.0.1

ACP Tab Menu
Image

includes/acp/acp_rss_feeds.php

ACP:
[phpBB Debug] PHP Notice: in file /includes/acp/acp_rss_feeds.php on line 134: Undefined index: ACP_RSS_FEEDS_MANAGEMENT_EXPLAIN

Find:
'L_TITLE_EXPLAIN' => $user->lang[$display_vars['title'] . '_EXPLAIN'],

Replace:
'L_TITLE_EXPLAIN' => $user->lang[$display_vars['title']], .. no problem..

-------------------------------
-localhost-
wamserver 2.0
mysql :5.0.51a
php: 5.2.5

forum/rss.php?sid=xxx&mode=forums ..
forum/rss.php?sid=xxx&mode=threads ..
forum/rss.php?sid=xxx&mode=posts ..

(browser) ? I don't understand

SQL ERROR [ mysql4 ]

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"SELECT * FROM phpbb_users WHERE user_type = 3 ORDER BY user_regdate ASC
LIMIT ' at line 1 [1064]


thank you

barrycarlyon
Registered User
Posts: 851
Joined: Wed Mar 29, 2006 3:46 pm
Location: Manchester
Name: Barry Carlyon
Contact:

Re: [DEV] RSS Feed Parser in Conjunction + [RC1]Feeds Everywhere

Post by barrycarlyon » Thu Jun 19, 2008 6:17 pm

Thanks, I'll get those fixed as soon as.
Barry Carlyon

barrycarlyon
Registered User
Posts: 851
Joined: Wed Mar 29, 2006 3:46 pm
Location: Manchester
Name: Barry Carlyon
Contact:

Re: [DEV] RSS Feed Parser in Conjunction + [RC1]Feeds Everywhere

Post by barrycarlyon » Thu Jun 19, 2008 8:22 pm

Run in to an append sid problem.
Barry Carlyon

barrycarlyon
Registered User
Posts: 851
Joined: Wed Mar 29, 2006 3:46 pm
Location: Manchester
Name: Barry Carlyon
Contact:

Re: [DEV] RSS Feed Parser in Conjunction + [RC1]Feeds Everywhere

Post by barrycarlyon » Sun Jun 22, 2008 2:14 am

Rss feeds mod is now backup and fixed, ready to test :-)

Download: http://files.barrycarlyon.servegame.org/phpbb/
Demo: http://third.barrycarlyon.servegame.org/phpbb3/
Barry Carlyon

Kharon
Registered User
Posts: 235
Joined: Thu Oct 26, 2006 5:27 pm

Re: [DEV] RSS Feed Parser in Conjunction + [RC1]Feeds Everywhere

Post by Kharon » Sun Jun 22, 2008 8:28 am

nice mod :)

Is It working mysql server 5 ? and phpBB 3.0.1 ? (Select Database Type :mysql / install.xml file)


mod version: Feeds Everywhere' Version 1.0.1(2) ?

ACP Tab menu
Image


Code: Select all

SQL ERROR [ mysql4 ]

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"SELECT * FROM phpbb_users WHERE user_type = 3 ORDER BY user_regdate ASC
 LIMIT ' at line 1 [1064]

SQL

"SELECT * FROM phpbb_users WHERE user_type = 3 ORDER BY user_regdate ASC
 LIMIT 1

BACKTRACE

FILE: includes/db/mysql.php
LINE: 158
CALL: dbal->sql_error()

FILE: includes/db/mysql.php
LINE: 205
CALL: dbal_mysql->sql_query()

FILE: includes/db/dbal.php
LINE: 159
CALL: dbal_mysql->_sql_query_limit()

FILE: rss.php
LINE: 44
CALL: dbal->sql_query_limit()

thanks

Locked

Return to “[3.0.x] MODs in Development”