RSS feed for new images

Upload screen shots for display in Roster

Moderator: Ulminia

RSS feed for new images

Postby lukes » Mon Sep 22, 2008 4:35 pm

Hi all, hi Ulminia,

I wrote a simple extension to the Roster Gallery, perhaps you wan't to include it.
It's a rss feed with the newest ten images. (Could be made configurable of curse, but I hadn't time to dig into roster config stuff...) There are two feeds, one with the thumbs (default) and the other with full images:
http://roster.example.com/index.php?p=util-RosterGallery-rss
http://roster.example.com/index.php?p=u ... s&thumbs=0


If you want to try it out, just include the rss.php into addons/RosterGallery/, no modifications are needed. rss.php doesn't modify anything in the db, it only reads. There is one optional modification, that would be nice: To display the feed icon in most browsers, there should be a header linking to the feed. It's one line in addons/RosterGallery/index.php:
Code: Select all
<link rel="alternate" type="application/rss+xml" href="' . ROSTER_URL . 'index.php?p=util-RosterGallery-rss' . '" title="WoWRoster Gallery RSS feed">


Oh, and another question: What licence should I use to be compatible? I thought of the GPL or some CC...

Hope someone can use that.

Jakob
Attachments
rss.zip
extract to addons/RosterGallery/
(1.06 KiB) Downloaded 416 times
Last edited by lukes on Tue Sep 30, 2008 1:44 am, edited 1 time in total.
User avatar
lukes
WR.net Apprentice
WR.net Apprentice
 
Posts: 35
Joined: Tue Jan 22, 2008 4:46 pm

Re: RSS feed for new images

Postby lukes » Mon Sep 22, 2008 4:37 pm

Oh, it seems I can't upload .php files? Hope I don't break no rules by renaming the file. :-) After download, please rename it to rss.php.

Jakob
Last edited by lukes on Mon Sep 22, 2008 5:52 pm, edited 1 time in total.
User avatar
lukes
WR.net Apprentice
WR.net Apprentice
 
Posts: 35
Joined: Tue Jan 22, 2008 4:46 pm

Re: RSS feed for new images

Postby Calystos » Mon Sep 22, 2008 5:27 pm

Not bad, but 2 minor bugs in the rss.php file.

Lines 32 & 33 should read:

Code: Select all
      $image = ROSTER_URL . "addons/RosterGallery/screenshots/" . $row['catagory'] . "/" . $row['file'] . "." . $row['ext'];
      $thumb = ROSTER_URL . "addons/RosterGallery/screenshots/thumbs" . "/" . $row['file'] . "-thumb." . $row['ext'];


You've hardcoded them to point to "http://roster.jl42.de/" instead of the ROSTER_URL bit. :-)
User avatar
Calystos
UA/UU Developer
UA/UU Developer
 
Posts: 140
Joined: Tue Mar 04, 2008 10:57 am
Location: Earth

Re: RSS feed for new images

Postby lukes » Mon Sep 22, 2008 5:51 pm

Damn, thought I've replaced everything. :-) Thanks.

Jakob
Last edited by lukes on Tue Sep 30, 2008 1:45 am, edited 1 time in total.
User avatar
lukes
WR.net Apprentice
WR.net Apprentice
 
Posts: 35
Joined: Tue Jan 22, 2008 4:46 pm

Re: RSS feed for new images

Postby Calystos » Mon Sep 22, 2008 6:44 pm

lukes wrote:Damn, thought I've replaced everything. :-) Thanks.

Jakob

No probs, its what we're here for after all. To debug stuff an help each other out, hehe.

Have you tried MatM's new Screenshots roster addon, that works with the UniUploader (2.6.8) screenshot protocol? Might be worth a shot to update this plugin of yours to work with it as well perhaps.

I'll be looking into it myself but this weeks a no-go for me, am moving to a new flat in 5 days so got way too much stuff to sort out, lol. (So why am I sat here on the puter typing this, eesh get back to work Calystos!!! haha).
Last edited by Calystos on Mon Sep 22, 2008 6:44 pm, edited 1 time in total.
User avatar
Calystos
UA/UU Developer
UA/UU Developer
 
Posts: 140
Joined: Tue Mar 04, 2008 10:57 am
Location: Earth

RSS feed for new images

Postby Ulminia » Mon Sep 22, 2008 6:57 pm

ial add the rss in to the next major release of RG ty .. and im working away at making Rg work with MatM's uu protacall but no such luck so far ... but ial keep at it lol
Ulminia of Zangarmarsh
Zonous of Zangarmarsh
Author of Roster Gallery
WoWRoster-Profiler Redesigner
User avatar
Ulminia
WoWRoster.net Dev Team
WoWRoster.net Dev Team
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 1223
Joined: Tue Jul 04, 2006 4:41 pm
Location: New Brunswick, Canada
Realm: Zangarmarsh (PvE) - US
gmail/gtalk: ulminia@gmail.com

Re: RSS feed for new images

Postby lukes » Mon Sep 22, 2008 6:59 pm

That shouldn't be no problem, someone might need to update the database queries, the rest should be quite the same.

But since I don't use the UniUploader: Is there somethig else that plugin can do, that Roster Gallery can't? Or is it even the state of the art screenshot plugin for the roster? Oh well, I'll just install it and check it out. :-)

Jakob
User avatar
lukes
WR.net Apprentice
WR.net Apprentice
 
Posts: 35
Joined: Tue Jan 22, 2008 4:46 pm

Re: RSS feed for new images

Postby lukes » Mon Sep 22, 2008 7:09 pm

Ulminia wrote:ial add the rss in to the next major release of RG ty

Great thanks.

About the screenshots plugin: There doesn't seem to be a way to upload screenshots without UniUploader, so I couldn't test the rss... But as I said: Shouldn't be a problem for someone else, who uses that plugin to adapt my rss.php. I guess it's really just removing the (in rss useless?) categories and adapting some database field names.

Jakob
User avatar
lukes
WR.net Apprentice
WR.net Apprentice
 
Posts: 35
Joined: Tue Jan 22, 2008 4:46 pm

Re: RSS feed for new images

Postby Calystos » Mon Sep 22, 2008 8:36 pm

lukes wrote:
Ulminia wrote:ial add the rss in to the next major release of RG ty

Great thanks.

About the screenshots plugin: There doesn't seem to be a way to upload screenshots without UniUploader, so I couldn't test the rss... But as I said: Shouldn't be a problem for someone else, who uses that plugin to adapt my rss.php. I guess it's really just removing the (in rss useless?) categories and adapting some database field names.

Jakob

I'll look into it more next week after I've moved, since I'll have very little else I can do for 2-3 weeks whilst I wait for the engineer to pop round to install my internet (eurgh 2-3 weeks without net! WAH!).
User avatar
Calystos
UA/UU Developer
UA/UU Developer
 
Posts: 140
Joined: Tue Mar 04, 2008 10:57 am
Location: Earth

RSS feed for new images

Postby Ulminia » Tue Sep 23, 2008 1:02 am

roster gallery has an uploader but its web based and one at a time
Ulminia of Zangarmarsh
Zonous of Zangarmarsh
Author of Roster Gallery
WoWRoster-Profiler Redesigner
User avatar
Ulminia
WoWRoster.net Dev Team
WoWRoster.net Dev Team
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 1223
Joined: Tue Jul 04, 2006 4:41 pm
Location: New Brunswick, Canada
Realm: Zangarmarsh (PvE) - US
gmail/gtalk: ulminia@gmail.com

Re: RSS feed for new images

Postby lukes » Tue Sep 23, 2008 1:22 am

Ulminia wrote:roster gallery has an uploader but its web based and one at a time

Yeah, I know and Roster Gallery I testet. But I couldn't check with the screenshot addon mentioned by Calystos.

Jakob
User avatar
lukes
WR.net Apprentice
WR.net Apprentice
 
Posts: 35
Joined: Tue Jan 22, 2008 4:46 pm

RSS feed for new images

Postby Ulminia » Tue Sep 23, 2008 3:08 am

it has a diff screenshot database so if you upload with it you need to change the rss mod for it
Ulminia of Zangarmarsh
Zonous of Zangarmarsh
Author of Roster Gallery
WoWRoster-Profiler Redesigner
User avatar
Ulminia
WoWRoster.net Dev Team
WoWRoster.net Dev Team
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 1223
Joined: Tue Jul 04, 2006 4:41 pm
Location: New Brunswick, Canada
Realm: Zangarmarsh (PvE) - US
gmail/gtalk: ulminia@gmail.com

Re: RSS feed for new images

Postby zanix » Tue Sep 23, 2008 3:45 am

Calystos wrote:Not bad, but 2 minor bugs in the rss.php file.

Lines 32 & 33 should read:

Code: Select all
      $image = ROSTER_URL . "addons/RosterGallery/screenshots/" . $row['catagory'] . "/" . $row['file'] . "." . $row['ext'];
      $thumb = ROSTER_URL . "addons/RosterGallery/screenshots/thumbs" . "/" . $row['file'] . "-thumb." . $row['ext'];


You've hardcoded them to point to "http://roster.jl42.de/" instead of the ROSTER_URL bit. :-)


These should actually be like this
Code: Select all
        $image $addon['url_full'] . "screenshots/" $row['catagory'] . "/" $row['file'] . "." $row['ext'];
        
$thumb $addon['url_full'] . "screenshots/thumbs" "/" $row['file'] . "-thumb." $row['ext']; 
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: RSS feed for new images

Postby zanix » Tue Sep 23, 2008 3:49 am

lukes wrote:Oh, it seems I can't upload .php files? Hope I don't break no rules by renaming the file. :-) After download, please rename it to rss.php.

Jakob

Yes, php file attachments are disabled, but we do allow zip archives with php files, or .txt files for renaming to php files
Last edited by zanix on Tue Sep 23, 2008 3:50 am, edited 1 time in total.
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: RSS feed for new images

Postby lukes » Tue Sep 30, 2008 1:47 am

zanix wrote:These should actually be like this
Code: Select all
        $image $addon['url_full'] . "screenshots/" $row['catagory'] . "/" $row['file'] . "." $row['ext'];
        
$thumb $addon['url_full'] . "screenshots/thumbs" "/" $row['file'] . "-thumb." $row['ext']; 


Oh well, thats better, thanks. I was a little short on time the last week, but I've updated the extension now in the first post.

Jakob
User avatar
lukes
WR.net Apprentice
WR.net Apprentice
 
Posts: 35
Joined: Tue Jan 22, 2008 4:46 pm


Return to Roster Gallery

Who is online

Users browsing this forum: No registered users and 0 guests

cron