![]() |
Rss Feed Manager - Including Images from Craigslist
Using the Vbulletin RSS Feed Manager, I'm trying to pull images (if available) from Craigslist ads but I'm having a hard time figuring out the right fieldname to make it happen.
Below is the snipet from the feed I'm pulling...any ideas? I greatly appreciate it thank you. Code:
<enc:enclosure resource="http://images.craigslist.org/00f0f_491SwIpTU8b_300x300.jpg" type="image/jpeg"/> |
Did you try {feed:enc:enclosure}? I'm not sure if that will work or not, I haven't had a chance to try it myself.
Edit: actually you might try {feed:enc:enclosure:location}. |
Well, I tried it but unfortunately I don't see a way to access the image url without changing the code or creating a plugin. So, I created this plugin using hook location rssposter_parse_rss:
Code:
$handled = array('link', 'description', 'title', 'id', 'guid', 'pubDate', 'date', 'enclosure_link', 'enclosure_href', 'content', 'content:encoded', 'author', 'dc:creator'); If you create that plugin, then you should be able to get the image url using {feed:enc:enclosure:resource}. |
Quote:
|
1 Attachment(s)
What I meant was to create a new plugin and fill in the fields, using rssposter_parse_rss for the hook location and the above for the code. But I exported the one I wrote, in case you'd rather do that. I attached the file here. What you do is go to Plugins & Products > Download /Upload Plugins, and scroll to the bottom to use the Import function.
|
Quote:
I.E. http://www.njstangers.org/showthread...son%29-x0024-8 |
Hmm... try <img src="{feed:enc:enclosure:resource}">
|
That's perfect, I did what you did and used some basic html image code in the rss feed manager box to get images to show. D
--------------- Added [DATE]1423180287[/DATE] at [TIME]1423180287[/TIME] --------------- Is there a way to modify that code to get it to show more than one image or all the images? |
Quote:
|
yeah you are right, it only shows the main image in the rss feed from CL...thank you for all your help :)
|
All times are GMT. The time now is 09:06 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|