<wpg2> tags don't render in Wordpress RSS feed on
ajkessel
Joined: 2007-11-12
Posts: 26 |
Posted: Mon, 2007-11-12 00:19 |
When I embed an image with <wpg2> it doesn't show up in the RSS feed at all. E.g., <http://adam.rosi-kessel.org/weblog/2007/11/11/proof-of-fall-2007>. Am I missing something basic here? My goal is to have a larger-than-thumbnail sized image, with a link to the album view in the Ajaxian theme. The closest I can find is using the <wpg2> tag but (1) it doesn't actually render as anything in the RSS feed and (2) it links to the image rather than to the album. Thanks for any pointers in the right direction. |
|
Posts: 1378
Hiya Ajkessel,
I can see my photos in my RSS Feed without any issues but when I point my Reader to your Site I can only see the WPG2 tag which is very very odd.. I noticed you are not using the WPG2 Output page, instead you have your WPG2 Output pointing to Gallery2 Standalone, is this correct?
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo
Posts: 26
WPG2 Output --> Gallery2 Standalone is Correct. When I tried it the other way, it didn't render well (i.e., having the Gallery page render within my Wordpress page). Formatting was all screwy.
Posts: 26
Update: I changed the linked page to just hard code the image and album URL. But when I use the wpg2 tag, it just appears unchanged in the RSS feed -- no IMG tag.
Posts: 1378
Formatting all screwy is due to your Wordpress Theme fighting the way Gallery2 is generating it's output and that can always be tweaked etc.. Putting that to one side, if you switch back to the WPG2 Output page and just have the WPG2 tags (no hardcoded links) do photos show up in your RSS feed then?? I am wondering if the issue is because you are pointing to the standalone Gallery2 installation..
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo
Posts: 26
I just tried creating a test post and setting the options back to output via Wordpress page. Unfortunately, no difference in the RSS feed -- still no embedded IMG.
Posts: 1378
Ok that basically rules out all the usual suspects.. It got to be something in your environment effecting this.. What version of WP are you running??
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo
Posts: 26
Latest version of everything.
WordPress = 2.3.1
Gallery = 2.2.3
WPG2 = 3.0.2
Also using these plugins:
Akismet Bad Behavior Batch Categories Blosxom Rewrite coComment Enhancer CountPosts del.icio.us widget Edit Comments Google Code Prettify Interlinks LiveCalendar Search and Replace Share This SimpleTags
Twitter widget Update Manager Viper's Video Quicktags
WPG2 WP WP Unformatted
Otherwise the system is hosted on a fairly standard Debian Etch system with all the necessary plugins/modules/etc.
Posts: 1378
ajkessel,
We would need to take your blog back to basics. Start with the Standard WP Theme with just the WPG2 plugin running, insert a single thumbnail image and see if that renders in the RSS feed..
Something in your environment is not playing well with others..
EDIT: I have tested the resized image and it renders fine in a RSS feed..
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo
Posts: 26
Okay, right. A brand new installation and it works fine:
http://adam.rosi-kessel.org/test
and
http://adam.rosi-kessel.org/test/?feed=rss2
So I guess I should go back in one by one with the theme and plugins until it breaks...
Posts: 1378
*nods* Sorry I know it is a pain but I know no other way to understand what is breaking the RSS Feed..
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo
Posts: 26
Any ideas about which plugin might be responsible? On the surface of it, I don't see why any of them should interfere with what appears in the RSS feed.
Posts: 1378
Agreed, nothing should alter the Rss feed however it could be an interaction between the WPG2 and some other plugin that somehow stops the RSS feed from rendering the image.. I am just guessing here however..
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo
Posts: 26
Oddly, I can't recreate the problem now. I don't think I changed anything but I'm now able to use the <wpg2> tag and it appears fine in the RSS feed.
Several remaining questions/issues for which help would be very much appreciated:
The page in question is <http://adam.rosi-kessel.org/weblog/2007/11/11/proof-of-fall-2007>.
The <wpg2> tag seems to always pull in the full resolution image and resize on the browser end. Especially when rendered thousands of times through subscribers/syndicators on the RSS feed, this results in a huge bandwidth hit. Is there any way to configure it to use a resized image as the base instead?
The hybrid theme seems to work better than the Ajaxian theme when embedded in my Wordpress theme, but the navigation buttons aren't visible (keyboard controls still work). How do I go about fixing it?
The wpg2 plugin seems to be inserting an invalid URL for a stylesheet. Specifically the following line, which gives a broken link:
<link rel="stylesheet" type="text/css" href="http://adam.rosi-kessel.org/gallery/main.php?g2_view=imageframe.CSS&g2_frames=None"/>
Finally, no matter what style I choose to insert the image in, I can't get it to be left-justified. I've tried centered, float left, float right, normal, no style, etc..
Thanks in advance!
Posts: 26
Ah, I think my image resolution issue seems to have been fixed in the SVN version of wpg2, which I am now using. Is there any problem using wpg2 SVN with the current release of Gallery (not SVN)?
Otherwise I'm still stuck on my other issues.
Posts: 1378
The SVN version is just at the very very early development cycle so the code is going to be pretty buggy. As for the image size that will depend on how you have inserted the image, if you are using a wpg2 tag and you have only specified one size images in Gallery2 then you are going to get the fullsize image rendered down, creating a resized image in Gallery2 will help reduce the the size.
I just gone over to your G2 installation and it looks like you have a problem "Error (ERROR_BAD_PARAMETER) : Smarty error: The template ‘modules/imageframe/templates/containers/ImageFrame.tpl’ does not exist."
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo
Posts: 26
What do you mean by "specified one size images"? In Gallery2, I have three resizes defined (aside from the full size); but using the non-SVN version of wpg2 it always loaded the full size one, even though a lower resolution image would have been bigger than the specified wpg2 size. In SVN, it seems like wpg2 properly uses a smaller image resize, although once you click on the image, it is still displaying a full size image even though a small resize would still fill the whole screen.
That smarty error just appeared -- maybe because I switched to Gallery SVN. I'll switch it back, hopefully that will fix it.
Posts: 1378
That would explain your error, Gallery2 has changed the way the imageframe renders. We will be releasing a fix in WPG2 3.03 to handle this..
How are you inserting the image? as a WPG2|size tag or a direct link?
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo
Posts: 26
Okay, I finally managed to revert Gallery2. That was harder than I thought.
So now the image is rendering properly in my blog again http://adam.rosi-kessel.org/weblog/2007/11/11/proof-of-fall-2007.
I'm using the WPG2|size tag.
The main remaining problems are:
- Navigation buttons are not visible after clicking on the wpg2 image.
- Gallery is serving the highest (full) resolution image after clicking on the image, even though a lower resolution image would still exceed screen size.
Any suggestions?
Posts: 1378
A few comments after Checking your Site in Firebug
The Content (images / JS) being linked to cocomment.com is very very slow, taking a NUMBER of seconds to load which is really impacting your page load time..
WPG2 is generating a 122K image size which is correct however the link being returned is pointing to the download which is odd, I noticed your Gallery2 theme is also doing this (http://adam.rosi-kessel.org/weblog/wpg2?g2_itemId=26) which is not standard and I suspect is also why the WPG2 link is pointing to a download item.. (I would expect it behave something like this)
What Gallery2 theme are you using, it looks like the resized image support has been removed from it?
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo
Posts: 26
Thanks for the tip. I disabled the cocomment plugin.
I'm just using the "hybrid" plugin -- nothing special. Should it normally have resized image support? I didn't change anything from the standard Gallery package as installed.
Posts: 26
Sorry, I meant "hybrid" theme, not plugin. The hybrid theme is supposed to render the image in full screen on top of the thumbnails, which is basically what it seems to be doing, except that the navigation buttons are missing.
Compare http://adam.rosi-kessel.org/gallery/main.php?g2_itemId=26, where the buttons appear at the bottom of the screen.
Posts: 1378
I suspect your issues are around the hybrid theme.. Can you please switch back to the Matrix Theme and see if you correctly get midsized support.
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo
Posts: 26
So the Matrix Theme seems to work better (see link) although it doesn't match my WordPress theme very well. It's not clear to me how it's picking the default resize -- 800x600 doesn't fit at all, but switching to 640x480 is a little better, especially if I get rid of the sidebar. I preferred the Hybrid theme because it provided a full-screen view, but I guess it's buggy, at least as integrated with wpg2.
Is it possible to have a different theme for an album when rendered in WordPress as from a direct Gallery view?
Posts: 1378
Yes but not until Gallery2 2.3 is released (We will add this feature in WPG2 shortly). Have you tried the WordpressEmbedded Gallery2 Theme? That is the Gallery2 theme I am running on my Blog.
I also use lightbox to avoid the entire nasty popup too big image issue you get with the Matrix Theme..
As a tip try setting the FIRST resize dimensions to 640*640 images, they tend to fit most Wordpress Themes as that is the resized image usually rendered in the Matrix Theme..
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo
Posts: 26
I tried the WordpressEmbedded theme, which seems to work all right so long as I disable the sidebar (otherwise the content interferes with my blog's sidebar).
Everything fails miserably, however, if I enable URL Rewrite. The link from the wpg2 tagged image becomes like this:
http://adam.rosi-kessel.org/weblog/v/nature_001/foliage_2007/p1040772.jpg.html
Which is a broken link, since the 'v/' permalink isn't defined under Wordpress (only under Gallery).
I tried also inserting wpg2 back in:
http://adam.rosi-kessel.org/weblog/wpg2?v/nature_001/foliage_2007/p1040772.jpg.html
but that doesn't go to the image either.
I would also much prefer a theme that allows the user to cycle through the images in JavaScript, but none of those seem to work well embedded in Wordpress.
So now I've reverted to linking directly to the Gallery page rather than using wpg2 to display in Wordpress (still using wpg2 tag), but even still I can't get things to work well. Hybrid theme doesn't play well at all with rewrite plugin (buttons disappear); Ajaxian theme doesn't work well with anything other than 640x480 images...
I'm puzzled by how much trouble I'm having here. Isn't this a well-tread path?
Posts: 1378
Unfortunately the old sidebar tends to be the first to go, as Wordpress Narrow themes tend to not allow enough space..
As for your rewrites, your URL is correct, WPG2 does indeed insert the /v/ into the Wordpress rewrite array.. Can I get you to open up a new topic and to have a bit of a read of this thread so we can dig deeper into your rewrites..
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo
Posts: 3236
I've just stumbled upon this thread after I updated my WP to 2.3.1, WPG2 to 3.0.2 and my G2 to latest svn trunk (from svn trunk a few weeks earlier).
Are the changes to the image block portion tough? If they are simple, I'd love to have a general idea of what they are so I can just go ahead and do them... my main page is kind of fugly with errors now
_________________________________
Support & Documentation || Donate to Gallery || My Website
Posts: 1378
I thought it was a simple matter of updating the template in the WPG2 template directory but it is proving to be more complex than just that. I have not progressed on this as I managed to break my G2.3 development site and will have to rebuild the site..
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo