Smartfeed

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in here. No new MODs will be accepted into the MOD Database for phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.

Rating:

Excellent!
38
76%
Very Good
7
14%
Good
5
10%
Fair
0
No votes
Poor
0
No votes
 
Total votes: 50

bradford-online
Registered User
Posts: 4
Joined: Sun Aug 10, 2008 12:18 pm

Re: Smartfeed

Post by bradford-online » Mon Aug 11, 2008 3:32 pm

If you have phpMyAdmin, try this. Find your row in the phpbb_users table and null the user_smartfeed_key column. Then rerun smartfeed_url.php and see if it goes away.
Mark,

Thank-you for the quick reply.

I nulled the user_smart_key column for my user id, and everything seems fine again.

If you have the time, I'm curious as to why this happened, after a week. Do I have to worry about it happening again? After the change, the new url that is generated is:

(http:)//my-domain-name.com/smartfeed.php?forum=5&limit=1_DAY&count_limit=100&sort_by=standard&feed_type=RSS2.0&feed_style=HTML

User avatar
MarkDHamill
Registered User
Posts: 3940
Joined: Fri Aug 02, 2002 12:36 am
Location: Florence, MA USA
Contact:

Re: Smartfeed

Post by MarkDHamill » Mon Aug 11, 2008 11:54 pm

I am glad I solved the problem.

BTW, I did not fix this problem in Smartfeed for phpBB 2, but it is fixed in Smartfeed for phpBB 3.

The URL you generated is when you are not logged in. Hopefully it would go away if you logged in and created a URL.

The problem is when generating a random string for the encryption key, it is possible to generate something that will look like a URL parameter, ex ?abc&=def&ghi=jkl.

If two equal signs get in it accidentally, or there is a & in it then this could generate a syntactically incorrect URL.

I probably should close this bug for the phpBB 2 version when I have the time.
Get the latest versions of my Digests and Smartfeed extensions.
Need phpBB services or a phpBB consultant? I offer most phpBB services.

benya
Registered User
Posts: 1
Joined: Wed Aug 27, 2008 2:35 pm

Re: Smartfeed

Post by benya » Wed Aug 27, 2008 2:36 pm

Does this mod work with phpBB version 3.0.2?

sbourdon
Registered User
Posts: 174
Joined: Sat Nov 13, 2004 6:29 pm

Re: Smartfeed

Post by sbourdon » Wed Aug 27, 2008 3:24 pm

benya wrote:Does this mod work with phpBB version 3.0.2?
Here: http://www.phpbb.com/community/viewtopi ... 0&t=596879 ;)

User avatar
MarkDHamill
Registered User
Posts: 3940
Joined: Fri Aug 02, 2002 12:36 am
Location: Florence, MA USA
Contact:

Re: Smartfeed

Post by MarkDHamill » Wed Aug 27, 2008 4:16 pm

Yes, I tested the latest version against phpBB 3.0.2.
Get the latest versions of my Digests and Smartfeed extensions.
Need phpBB services or a phpBB consultant? I offer most phpBB services.

sbourdon
Registered User
Posts: 174
Joined: Sat Nov 13, 2004 6:29 pm

Re: Smartfeed

Post by sbourdon » Fri Aug 29, 2008 4:42 pm

Mickey14 wrote:Hi, Mark,

I just fixed a problem with topics titles having quotes: in smartfeed.php, just before

Code: Select all

					$item->link = SMARTFEED_SITE_URL . 'viewtopic.' . $phpEx . '?' . POST_POST_URL . '=' . $row['post_id'] . '#' . $row['post_id'];
					// This logic ensures the time shown for each item in the newsfeed reflects the time in the timezone based on the users phpBB profile.
					// Post times are stored in the database in UT (GMT), so for the feeds to show accurately time must be offset from UT/GMT
the line

Code: Select all

					$item->title = entity_decode($item->title);
is missing, hence quotes in topic titles are shown as """.

Mickey
Same thing applies to Private Messages included in the Feed.

Therefore, after:

Code: Select all

$item->title = $lang['Private_Message'] . ' ' . strtolower($lang['From']) . ' ' . $row2['username_1'] . ' :: ' . convert_encoding($row2['privmsgs_subject']);
add:

Code: Select all

$item->title = entity_decode($item->title);

Kartoqraf
Registered User
Posts: 4
Joined: Fri Nov 02, 2007 8:17 pm

Re: Smartfeed

Post by Kartoqraf » Thu Dec 04, 2008 6:14 am

Hello!

I've got a problem here. My board is in russian, and the characters smartfeed supplies to the feeder and show on smartfeed.php page aren't readable. Changing the needed argument from en-US to ru doesn't help.

Can you please help me?

User avatar
MarkDHamill
Registered User
Posts: 3940
Joined: Fri Aug 02, 2002 12:36 am
Location: Florence, MA USA
Contact:

Re: Smartfeed

Post by MarkDHamill » Thu Dec 04, 2008 2:16 pm

I have heard this complaint before when Smartfeed was used in Thailand.

I assume Russian can be encoded UTF-8 just fine because Smartfeed (or rather the underlying Feedcreator class) generates only UTF-8.

Presumably your database is encoding data in the UTF-8 character set or you would not see characters represented correctly in your forum.

A number of functions are called from the phpBB library that I assume are not the problem including generate_text_for_display, strip_bbcode, strip tags (actually a PHP function). It could be the problem is in there.

Unfortunately I know of no way to debug this without going line by line on the output and see at what line the content gets garbled. It could also be an issue with the Feedcreator class somewhere.
Get the latest versions of my Digests and Smartfeed extensions.
Need phpBB services or a phpBB consultant? I offer most phpBB services.

Kartoqraf
Registered User
Posts: 4
Joined: Fri Nov 02, 2007 8:17 pm

Re: Smartfeed

Post by Kartoqraf » Thu Dec 04, 2008 4:26 pm

Thanks for your quick response!

Tried a few more things, couldn't fix it. Thanks for the mod, though! I bet it's the best out there for latin character forums.

User avatar
MarkDHamill
Registered User
Posts: 3940
Joined: Fri Aug 02, 2002 12:36 am
Location: Florence, MA USA
Contact:

Re: Smartfeed

Post by MarkDHamill » Thu Dec 04, 2008 5:07 pm

If you are willing to give me SSH or FTP permissions to your server in my spare time I will try to debug it, as this issue has come up before. I cannot simulate it on my own servers, however. Contact me by PM if interested.
Get the latest versions of my Digests and Smartfeed extensions.
Need phpBB services or a phpBB consultant? I offer most phpBB services.

KO Dave
Registered User
Posts: 41
Joined: Fri Mar 28, 2008 8:07 am

Re: Smartfeed

Post by KO Dave » Fri Dec 26, 2008 8:33 am

Is there any way to get around or override the 3 month maximum limit for displaying threads?

My board doesn't have new posts often in the forums I'm trying to generate feeds for, and I'm basically using the RSS feed as a way to display the threads as permanent "content" in a Flash application.

User avatar
MarkDHamill
Registered User
Posts: 3940
Joined: Fri Aug 02, 2002 12:36 am
Location: Florence, MA USA
Contact:

Re: Smartfeed

Post by MarkDHamill » Fri Dec 26, 2008 2:08 pm

Unfortunately, you would have to hack some code in smartfeed_url.php and smartfeed.php.

The version for phpBB 3 does not have this limitation.
Get the latest versions of my Digests and Smartfeed extensions.
Need phpBB services or a phpBB consultant? I offer most phpBB services.

Post Reply

Return to “[2.0.x] MOD Database Releases”