Forum Activity for @jimmy

jimmyk
@jimmy
07/24/18 01:04:00AM
514 posts

RSS Feeds Additional Data


Jamroom Developers

michael:
reload from the marketplace
ACP -> MODULES -> CORE -> MARKETPLACE -> TOOLS -> RELOAD MODULES OR SKINS -> RSS FEED READER -> RELOAD

and you'll find the 'media' array attached to the item.

You da man! Thanks I appreciate it. Also, thanks for dealing with my crazy mind seeing things! LOL! Could have swore that image was in item.
jimmyk
@jimmy
07/23/18 05:09:25PM
514 posts

RSS Feeds Additional Data


Jamroom Developers

Looks like the 2.0 spec for media items in the item is media.

http://www.rssboard.org/media-rss#optional-elements

RSS Feed
http://blogs.barrons.com/techtraderdaily/feed/
updated by @jimmy: 07/23/18 05:12:40PM
jimmyk
@jimmy
07/23/18 05:02:45PM
514 posts

RSS Feeds Additional Data


Jamroom Developers

You're right. I missed that. There is no image in the item. I really need to stop doing 3 things at once.

I could have swore that I've seen image per item. But as you pointed out, and I missed, there is no image in item.

Arrr.

Thanks for adding the image in the channel. That will work well for me as the feed image.
updated by @jimmy: 07/23/18 05:06:21PM
jimmyk
@jimmy
07/23/18 04:24:08PM
514 posts

RSS Feeds Additional Data


Jamroom Developers

You're correct, in the particular RSS feed I gave you the image is part of the channel. That was my mistake, I should've given you an example where the image was part of the item.

You can see here the full spec. It would be great to have all the options.

http://www.rssboard.org/rss-draft-1

I could add more options if I knew how to get into the second level via the code (described above) or another option.

I haven't taken a look at your modification yet, but if you didn't modify it for the image inside the item, then I still need to figure that out.

Edit: if you guys are doing an RSS reader, might as well add all the options. There aren't that many and it makes the reader more robust.
updated by @jimmy: 07/23/18 04:35:07PM
jimmyk
@jimmy
07/23/18 04:10:46PM
514 posts

RSS Feeds Additional Data


Jamroom Developers

Well with the image you turn a boring text feed into a faux news article(s).

When I'm done with the project I'll send you the link.

Thanks again for adding that to the module.
updated by @jimmy: 07/23/18 04:11:33PM
jimmyk
@jimmy
07/23/18 04:00:25PM
514 posts

RSS Feeds Additional Data


Jamroom Developers

Nice. Having that image makes the feed reader really powerful for adding content to a site. ;)
jimmyk
@jimmy
07/23/18 03:18:58PM
514 posts

RSS Feeds Additional Data


Jamroom Developers

No. I just need to get into one layer deeper in the RSS feed.

How it is now, which works great and I can add other options like category.

Quote:
channel -> title
channel -> description
channel -> pubdate

What I need is the ability to go one level deeper because that is where the image is.

Quote:
channel -> image -> url

In the code snippet in the OP I couldn't figure out a way to go one level deeper inside a foreach with
Quote: $_x['item'] [$i] ['image'] ['url']
returns an ARRAY.

Example Feed:
https://www.technologyreview.com/topnews.rss

updated by @jimmy: 07/23/18 03:26:39PM
jimmyk
@jimmy
07/23/18 03:12:03PM
514 posts

RSS Feeds Additional Data


Jamroom Developers

Yea, this is in the includes.php file I believe, not open in front of me. I was trying to do something fast to see if it could be done. I needed the image for a template and then ran into the RSS - array thingy.

Is there a better way to do this with a listener?
jimmyk
@jimmy
07/23/18 12:42:36PM
514 posts

RSS Feeds Additional Data


Jamroom Developers

Quote: foreach ($xml->channel->item as $item) {
if ($i == $params['limit'] ) {
break;
}
$_x['item'] [$i] ['title'] = (string) $item->title;
$_x['item'] [$i] ['link'] = (string) $item->link;
$_x['item'] [$i] ['pubDate'] = strtotime((string) $item->pubDate);
$_x['item'] [$i] ['description'] = (string) $item->description;
$_x['item'] [$i] ['category'] = (string) $item->category;
$i++;
}

How do you add an additional level so that the channel > image > url can be grabbed inside the channel section?

The way the feeder is now, it's only one level deep (inside the channel only).
updated by @jimmy: 10/24/18 09:27:27AM
jimmyk
@jimmy
04/21/18 07:56:15AM
514 posts

Random Thoughts



10. Would it be possible to get another button in Marketplace > System Update > Update and Rebase Button. What happens is I end up downloading to PHP Storm and get every version if I forget to rebase. Having a rebase button appear when the developers module is installed would be awesome.

11. Some more options for installing from the Marketplace module. Right now I have to install every module individually and that ends up being 3 pages click throughs for each module.

How about #12 below (so I can get all the modules on 1 page) then a select checkbox do I can check the modules I want to install. I then hit the install button to install all the modules I selected.

12. How about an option in the marketplace settings to determine how many modules are listed per page?
updated by @jimmy: 04/21/18 08:05:37AM
  2