Gallery2 Image not using full URL Path

missesbeehaven

Joined: 2007-09-25
Posts: 6
Posted: Tue, 2007-09-25 03:48

I have been doing search after search to see if I could find an answer to my problem but I have come to no prevale after 2 days of researching for a solution.

I am using Wordpress 2.2.3 with Gallery 2.2 and your WPG2 RC3 Final.

When I insert an image into my blog posts the images appear fine however in my Feebburner the images do not appear as the link to the image is showing as this for example:

/gallery/main.php?g2_view=core.DownloadItem&g2_itemId=819&g2_GALLERYSID=9b83677fece37f7f42fadc7b9a64837d

The only way I can use have an image show in Feedburner is if I view the post in code view not WYSIWYG and add the full url path to the image.

Why dose Gallery2 Image not use the full path? And how can I fix this please.

Thank you in advance for your support and I look forward to getting this working.. I love this plugin

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Tue, 2007-09-25 03:56

I seen this issue before.. It is something to do with the imageblock not returning full URL's (By default Gallery2 URL's are relative)

Yeah thought I seen it..

If you edit the ImageBlock.tpl in gallery2/modules/imageblock/templates/

and replace all 3 of the "forceFullUrl=$ImageBlockData.forceFullUrl" with "forceFullUrl=true" then this removes the relative links...

I thought this setting was already enabled although..
____________________________________
Wordpress / Gallery2 (WPG2) Author

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Tue, 2007-09-25 04:06

I should be able to force this change myself via the localised imageblock template in the WPG2 Template Directory. I will make this change and test it up for you in the next day or two
____________________________________
Wordpress / Gallery2 (WPG2) Author

 
missesbeehaven

Joined: 2007-09-25
Posts: 6
Posted: Tue, 2007-09-25 04:23

Thank you for speedy reply.

I have tried your suggestion and it dosent seem to have fixed the problem.

When I click on the G2 picture icon to insert an image, pick the image of choice and click on insert.. this below is what code is placed into my post

/gallery/main.php?g2_view=core.DownloadItem&g2_itemId=821&g2_GALLERYSID=9b83677fece37f7f42fadc7b9a64837d" rel="lightbox[g2image]

Still missing the full url path before /gallery

Would you have any other suggestions I could try

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Tue, 2007-09-25 04:39

How are you inserting an image, via the G2Image, WPG2 Tags?? If you click on Code in the Post Screen do you see something like <wpg2> tags?
____________________________________
Wordpress / Gallery2 (WPG2) Author

 
missesbeehaven

Joined: 2007-09-25
Posts: 6
Posted: Tue, 2007-09-25 04:43

I am inserting an image via G2Image, is that not how I should be doing it? No I do not see any wgp2 tags as I click on the Insert button at the bottom of the Gallery Image Chooser window - not the top insert button.

 
missesbeehaven

Joined: 2007-09-25
Posts: 6
Posted: Tue, 2007-09-25 04:49

Oh i just thought of something.. I am using the TinyMCE advanced plugin for my WYSIWYG - dose that make any difference?

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Tue, 2007-09-25 05:09

Then you be using WPG2 Tags which means you need to change the wpg2imageblock.tpl file in the wpg2/template directory.. I just quickly tested this change and you need to make the change 4 times in total and the RSS links return the full URL's for me.. I will make the change in the WPG2 3.0 Release due out in the next few weeks..

____________________________________
Wordpress / Gallery2 (WPG2) Author

 
missesbeehaven

Joined: 2007-09-25
Posts: 6
Posted: Tue, 2007-09-25 05:48

Okay thank you for helping.. I look forward to your release in a few weeks.

Thanks again

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Tue, 2007-09-25 06:06

No problems, I will put the changes up on Wordpress Extend by the weekend..
____________________________________
Wordpress / Gallery2 (WPG2) Author

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Tue, 2007-09-25 10:53

Ozgreg, I think she's using HTML tags, since she's adding the rest of the URL in code view:

missesbeehaven wrote:
The only way I can use have an image show in Feedburner is if I view the post in code view not WYSIWYG and add the full url path to the image.

Missesbeehaven, since you're inserting HTML tags, you need to change forceServerRelativeUrl to forceFullUrl four times in g2image.php. See http://gallery.menalto.com/node/68848.

I have changing that (and making it configurable) as a to-do for 3.1. If there is a strong enough desire, I can change it in 3.0.1, and then add the configuration ability in 3.1.

 
missesbeehaven

Joined: 2007-09-25
Posts: 6
Posted: Tue, 2007-09-25 11:12

Yes that did the trick, thank you kirk :-)

I find it hard to believe in the many users of Wordpress and Gallery that I am the first to come across this issue. I may just be the firs to mention the problem for help LOL

Thanks again and I am sure it will be a option used muchly in future releases of WPG2

Cheers
Melanie

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Tue, 2007-09-25 12:54

Melanie,

Great. Glad it worked.

I've changed to full URLs in SVN. G2Image 3.0.1 (which will be part of WPG2 3.0 final) will just default to full URLs. For 3.1, I'll add a configuration ability, in case there are some people that want server relative instead of full.

Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website