[ABD] Smixmods Feed News Center v0.4.0

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
User avatar
Jackanape
Registered User
Posts: 1076
Joined: Wed Oct 13, 2004 6:01 am
Location: Capitol of the Great State of New York
Name: Jack Drury
Contact:

Re: [DEV] Smixmods Feed News Center v0.3.0a

Post by Jackanape » Tue Feb 02, 2010 12:46 am

Look forward to moving to this version of your mod. Can I suggest a functionality that allows all of a feed's items to be posted under one topic, if selected? There are many feeds where this would be very handy.
~Extending the rule of meticulous exactitude to exaspirating punctillio...still.~
Treat your phpBB like a member of the family--Update and MOD her by hand, with HTML-Kit
: : Wanna Talk Poker? : : Image : :

lando786
Registered User
Posts: 2
Joined: Tue Feb 02, 2010 4:21 am

Re: [DEV] Smixmods Feed News Center v0.3.0a

Post by lando786 » Tue Feb 02, 2010 4:27 am

Feeds not updating. I think the problem might be that this comes up when I access update_feeds.php directly:

Code: Select all

Fatal error: Call to undefined method cache::_write() in ...../forums/includes/mods/smixmods_feed_news_center.class.php  on line 71

Is this normal when accessing it directly?

User avatar
Smix
Registered User
Posts: 482
Joined: Mon Sep 11, 2006 1:07 am

Re: [DEV] Smixmods Feed News Center v0.3.0a

Post by Smix » Tue Feb 02, 2010 6:15 am

@mutank
correct settings for yahoo´s feed encoding is "iso-8859-1" ... but ... it might work, if it works on my board :roll: ... I´ll test it tonight ...

@Jackanape
I´m preparing a making replies, so one feed will have one topic, and after next check, it will always post (reply) a new content ...


And about rabbmasterflash´s problem, is there anybody, who tested this mod and index posting has enabled and posting is working (and is not me) ?

User avatar
Hippie459MN
Registered User
Posts: 915
Joined: Mon Oct 15, 2007 10:13 pm
Location: Minnesota, USA
Contact:

Re: [DEV] Smixmods Feed News Center v0.3.0a

Post by Hippie459MN » Tue Feb 02, 2010 6:37 am

I am having an issue getting this to work myself. There have been no updates to RSS feed and no posts.

Here are my settings I have:
Image
Image
Image
Click thumbnails to enlarge.

I just edited the default phpBB feed you had to work with my user to post and the forum to make the new topic in and the the time frame to check the feed just to test it and nothing here yet. No posts and no updates from the feed.

User avatar
madmartyau
Registered User
Posts: 440
Joined: Sun Sep 12, 2004 12:42 pm
Location: Brisbane,Australia
Name: Marty
Contact:

Re: [DEV] Smixmods Feed News Center v0.3.0a

Post by madmartyau » Tue Feb 02, 2010 7:26 am

Smix wrote: And about rabbmasterflash´s problem, is there anybody, who tested this mod and index posting has enabled and posting is working (and is not me) ?
I'll put this on my test site tonight and see what happens.
Call me Grumpy.

User avatar
madmartyau
Registered User
Posts: 440
Joined: Sun Sep 12, 2004 12:42 pm
Location: Brisbane,Australia
Name: Marty
Contact:

Re: [DEV] Smixmods Feed News Center v0.3.0a

Post by madmartyau » Tue Feb 02, 2010 8:21 am

First problem I have found with the new package is in includes\acp\acp_smixmods_feed_news_center.php
FIND

Code: Select all

'TEMPLATE_FOR_DISPLAY'	=> $list[$id]['template_for_display'],
REPLACE WITH

Code: Select all

'TEMPLATE_FOR_DISPLAY'	=> $list[$id]['template_for_displaying'],
When I click on the new feed link I get

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/acp/acp_smixmods_feed_news_center.php  on line 215: Undefined offset: 2
[phpBB Debug] PHP Notice: in file /includes/acp/acp_smixmods_feed_news_center.php on line 216: Undefined offset: 2
[phpBB Debug] PHP Notice: in file /includes/acp/acp_smixmods_feed_news_center.php on line 217: Undefined offset: 2
[phpBB Debug] PHP Notice: in file /includes/acp/acp_smixmods_feed_news_center.php on line 218: Undefined offset: 2
[phpBB Debug] PHP Notice: in file /includes/acp/acp_smixmods_feed_news_center.php on line 219: Undefined offset: 2
[phpBB Debug] PHP Notice: in file /includes/acp/acp_smixmods_feed_news_center.php on line 220: Undefined offset: 2
[phpBB Debug] PHP Notice: in file /includes/acp/acp_smixmods_feed_news_center.php on line 222: Undefined offset: 2
[phpBB Debug] PHP Notice: in file /includes/acp/acp_smixmods_feed_news_center.php on line 222: Undefined offset: 2
[phpBB Debug] PHP Notice: in file /includes/acp/acp_smixmods_feed_news_center.php on line 223: Undefined offset: 2
[phpBB Debug] PHP Notice: in file /includes/acp/acp_smixmods_feed_news_center.php on line 223: Undefined offset: 2
[phpBB Debug] PHP Notice: in file /includes/acp/acp_smixmods_feed_news_center.php on line 224: Undefined offset: 2
[phpBB Debug] PHP Notice: in file /includes/acp/acp_smixmods_feed_news_center.php on line 225: Undefined offset: 2
[phpBB Debug] PHP Notice: in file /includes/acp/acp_smixmods_feed_news_center.php on line 227: Undefined offset: 2
[phpBB Debug] PHP Notice: in file /includes/acp/acp_smixmods_feed_news_center.php on line 228: Undefined offset: 2
[phpBB Debug] PHP Notice: in file /includes/acp/acp_smixmods_feed_news_center.php on line 230: Undefined offset: 2
[phpBB Debug] PHP Notice: in file /includes/acp/acp_smixmods_feed_news_center.php on line 231: Undefined offset: 2
[phpBB Debug] PHP Notice: in file /includes/acp/acp_smixmods_feed_news_center.php on line 233: Undefined offset: 2
[phpBB Debug] PHP Notice: in file /includes/acp/acp_smixmods_feed_news_center.php on line 234: Undefined offset: 2
[phpBB Debug] PHP Notice: in file /includes/acp/acp_smixmods_feed_news_center.php on line 236: Undefined offset: 2
[phpBB Debug] PHP Notice: in file /includes/acp/acp_smixmods_feed_news_center.php on line 237: Undefined offset: 2
[phpBB Debug] PHP Notice: in file /includes/acp/acp_smixmods_feed_news_center.php on line 238: Undefined offset: 2
[phpBB Debug] PHP Notice: in file /includes/acp/acp_smixmods_feed_news_center.php on line 239: Undefined offset: 2
This is because there is no database entry for the new feed yet so the array $list[$id] is empty.

in smixmods_feed_news_center.class.php
FIND

Code: Select all

$this->populate($id);
REPLACE WITH

Code: Select all

$this->populate($this->feed_id);
I'll keep you posted.
Call me Grumpy.

User avatar
madmartyau
Registered User
Posts: 440
Joined: Sun Sep 12, 2004 12:42 pm
Location: Brisbane,Australia
Name: Marty
Contact:

Re: [DEV] Smixmods Feed News Center v0.3.0a

Post by madmartyau » Tue Feb 02, 2010 8:59 am

Should there be something added to index.php like

Code: Select all

$smix_feed_parser = new smix_feed_parser();

$smix_feed_parser->index_init();
Call me Grumpy.

User avatar
Smix
Registered User
Posts: 482
Joined: Mon Sep 11, 2006 1:07 am

Re: [DEV] Smixmods Feed News Center v0.3.0a

Post by Smix » Tue Feb 02, 2010 9:17 am

:oops: ... that´s the missing code and the reason of problem ...

OPEN index.php

FIND

Code: Select all

// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup('viewforum');
AFTER-ADD

Code: Select all

// SmiX.MODs feed news center [+]
$smix_feed_parser = new smix_feed_parser();

$smix_feed_parser->index_init();
// SmiX.MODs feed news center [-]
Thank you very much madmartyau :oops:


I´m sorry for the bugs ... I´ve also repacked the mod ... 0.3.0c ... Please update all files and apply the missing edit ...

:roll:

User avatar
madmartyau
Registered User
Posts: 440
Joined: Sun Sep 12, 2004 12:42 pm
Location: Brisbane,Australia
Name: Marty
Contact:

Re: [DEV] Smixmods Feed News Center v0.3.0c

Post by madmartyau » Tue Feb 02, 2010 11:21 am

I've found a fix for my previous error.
When I click on the new feed link I get

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/acp/acp_smixmods_feed_news_center.php  on line 215: Undefined offset: 2
[phpBB Debug] PHP Notice: in file /includes/acp/acp_smixmods_feed_news_center.php on line 216: Undefined offset: 2
[phpBB Debug] PHP Notice: in file /includes/acp/acp_smixmods_feed_news_center.php on line 217: Undefined offset: 2
[phpBB Debug] PHP Notice: in file /includes/acp/acp_smixmods_feed_news_center.php on line 218: Undefined offset: 2
[phpBB Debug] PHP Notice: in file /includes/acp/acp_smixmods_feed_news_center.php on line 219: Undefined offset: 2
[phpBB Debug] PHP Notice: in file /includes/acp/acp_smixmods_feed_news_center.php on line 220: Undefined offset: 2
[phpBB Debug] PHP Notice: in file /includes/acp/acp_smixmods_feed_news_center.php on line 222: Undefined offset: 2
[phpBB Debug] PHP Notice: in file /includes/acp/acp_smixmods_feed_news_center.php on line 222: Undefined offset: 2
[phpBB Debug] PHP Notice: in file /includes/acp/acp_smixmods_feed_news_center.php on line 223: Undefined offset: 2
[phpBB Debug] PHP Notice: in file /includes/acp/acp_smixmods_feed_news_center.php on line 223: Undefined offset: 2
[phpBB Debug] PHP Notice: in file /includes/acp/acp_smixmods_feed_news_center.php on line 224: Undefined offset: 2
[phpBB Debug] PHP Notice: in file /includes/acp/acp_smixmods_feed_news_center.php on line 225: Undefined offset: 2
[phpBB Debug] PHP Notice: in file /includes/acp/acp_smixmods_feed_news_center.php on line 227: Undefined offset: 2
[phpBB Debug] PHP Notice: in file /includes/acp/acp_smixmods_feed_news_center.php on line 228: Undefined offset: 2
[phpBB Debug] PHP Notice: in file /includes/acp/acp_smixmods_feed_news_center.php on line 230: Undefined offset: 2
[phpBB Debug] PHP Notice: in file /includes/acp/acp_smixmods_feed_news_center.php on line 231: Undefined offset: 2
[phpBB Debug] PHP Notice: in file /includes/acp/acp_smixmods_feed_news_center.php on line 233: Undefined offset: 2
[phpBB Debug] PHP Notice: in file /includes/acp/acp_smixmods_feed_news_center.php on line 234: Undefined offset: 2
[phpBB Debug] PHP Notice: in file /includes/acp/acp_smixmods_feed_news_center.php on line 236: Undefined offset: 2
[phpBB Debug] PHP Notice: in file /includes/acp/acp_smixmods_feed_news_center.php on line 237: Undefined offset: 2
[phpBB Debug] PHP Notice: in file /includes/acp/acp_smixmods_feed_news_center.php on line 238: Undefined offset: 2
[phpBB Debug] PHP Notice: in file /includes/acp/acp_smixmods_feed_news_center.php on line 239: Undefined offset: 2
This is because there is no database entry for the new feed yet so the array $list[$id] is empty.
open includes/acp/acp_smixmods_feed_news_center.php
FIND

Code: Select all

// feed IS chosen !
ADD BEFORE

Code: Select all

if ($action == 'new')
							{
								$sql_ary = array(
								'feed_name'	=> 'New',
								'feed_type'	=> '',
								'url'	=> '',
								'encoding'	=> '',
								'enabled_posting' => 0,
								'enabled_displaying'	=> 0,
								'template_for_posting'	=> 0,
								'template_for_displaying'	=> 0,
								'poster_id'	=> 0,
								'poster_forum_destination_id'	=> 0,
								'poster_topic_destination_id'	=> 0,
								'refresh_after'	=> 0,
								'posting_limit'	=> 0,
								'next_update'	=> 0,	// forces update
							);
								$sql = 'INSERT INTO ' . SMIXMODS_FEED_NEWS_CENTER_FEEDS . ' ' . $db->sql_build_array('INSERT', $sql_ary);
								if (!($result = $db->sql_query($sql)))
							{
								trigger_error($user->lang['ACP_SMIXMODS_FEED_NEWS_CENTER_ACTION_ERROR_DB'] . adm_back_link($this->u_action), E_USER_WARNING);
							}
								trigger_error($user->lang['ACP_SMIXMODS_FEED_NEWS_CENTER_ACTION_SUCCESS'] . adm_back_link($this->u_action), E_USER_NOTICE);
							}
FIND

Code: Select all

if ($action == 'new')
							{
								$sql = 'INSERT INTO ' . SMIXMODS_FEED_NEWS_CENTER_FEEDS . ' ' . $db->sql_build_array('INSERT', $sql_ary);
							}
							else
							{
								$sql = 'UPDATE ' . SMIXMODS_FEED_NEWS_CENTER_FEEDS . '
										SET ' . $db->sql_build_array('UPDATE', $sql_ary) . '
										WHERE id = ' . $id;
							}
REPLACE WITH

Code: Select all

$sql = 'UPDATE ' . SMIXMODS_FEED_NEWS_CENTER_FEEDS . '
										SET ' . $db->sql_build_array('UPDATE', $sql_ary) . '
										WHERE id = ' . $id;
The reason the current code doesn't work is because the "ADD new feed" link doesn't "SUBMIT". The other way to fix this problem would be to make that a link a submit button and wrap a form around it with the action being the link value.
Call me Grumpy.

User avatar
Smix
Registered User
Posts: 482
Joined: Mon Sep 11, 2006 1:07 am

Re: [DEV] Smixmods Feed News Center v0.3.0c

Post by Smix » Tue Feb 02, 2010 12:07 pm

... I´ve thought I´ve already fixed this with 0.3.0c package ... Didn´t I ?

User avatar
rabbmasterflash
Registered User
Posts: 35
Joined: Wed Dec 16, 2009 2:23 pm
Location: Colorado
Contact:

Re: [DEV] Smixmods Feed News Center v0.3.0c

Post by rabbmasterflash » Tue Feb 02, 2010 2:06 pm

that did the trick!

plasmino
Registered User
Posts: 261
Joined: Sat Jul 25, 2009 11:12 am

Re: [DEV] Smixmods Feed News Center v0.3.0c

Post by plasmino » Tue Feb 02, 2010 2:40 pm

nice mod ^_^

hi have small problem, who enters the index and update the RSS whoever is logged in with admin user must reload the page to return to normal :?

User avatar
rabbmasterflash
Registered User
Posts: 35
Joined: Wed Dec 16, 2009 2:23 pm
Location: Colorado
Contact:

Re: [DEV] Smixmods Feed News Center v0.3.0c

Post by rabbmasterflash » Tue Feb 02, 2010 2:50 pm

I do have a customization question

I get the feed, and it makes the title of the thread whatever the feed title is...which is fine

but I would like a link in the post to the original feed item, is that possible?

User avatar
Hippie459MN
Registered User
Posts: 915
Joined: Mon Oct 15, 2007 10:13 pm
Location: Minnesota, USA
Contact:

Re: [DEV] Smixmods Feed News Center v0.3.0c

Post by Hippie459MN » Tue Feb 02, 2010 2:59 pm

Updated to 0.3.0c and it seems to be working now. :D

lando786
Registered User
Posts: 2
Joined: Tue Feb 02, 2010 4:21 am

Re: [DEV] Smixmods Feed News Center v0.3.0c

Post by lando786 » Tue Feb 02, 2010 4:45 pm

I've done all updates and still get the undefined method error i posted earlier. Ill try deleting everything and starting from scratch using 0.3.0c

Locked

Return to “[3.0.x] Abandoned MODs”