Forum

Please make sure that you have read the documentation and extensive resources provided on this site before posting your question!

Dynamic Content Gallery Resources

DCG Version 4.0 beta is now available for download and testing. This is a development version and not recommended for live sites. Read more here.

Note that the current stable release of the DCG is version 3.3.5.

 
You must be logged in to post Login Register


Register? | Lost Your Password?

Search Forums:


 






Minimum search word length is 3 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

Partiall URL enabled – dcg add however http://

awaiting user
UserPost

11:29 pm
February 2, 2010


david

Guest

1

Hello

Thanks for this great plug-in!I recently installed the update but i encountered into a little problem.

In the options panel i activated the option to use partial URL's instead of using full URL. So when i want to add an item to dcg i type te relative path to the image, as i did in the previous version (of course now as metatag, on the right side of WP). But when i save the item instead of '10/image.jpg'

cdg add 'http' -> 'http://10/image.jpg. I double checked everything and settings are correct :)

I do hope someone can help me.

Thanks!

11:54 pm
February 2, 2010


nerby

Guest

2

Change 10/image.jpg to /10/image.jpg

If 10 is already mentioned in the DCG settings, just put /image.jpg

Hope that helps

12:56 am
February 3, 2010


Ade

Admin

posts 2384

3

Oops! My mistake – a little bug crept into the filename handling in the Metabox. Confused

If you want a quick fix, find the file includes/dfcg-admin-metaboxes.php, line 196, and change this line from this:

$newdata['_dfcg-image'] = esc_url_raw( $newdata['_dfcg-image'] );

to this:

$newdata['_dfcg-image'] = esc_attr( $newdata['_dfcg-image'] );

On a general note, the Partial URL entered in the DCG's Settings page always has a trailing slash added to it (regardless of what you enter here).

Therefore, if using Partial URL,  whatever you enter in the Write Post metabox must NOT include a leading slash =>

This is good:

myimage.jpg

This is good too:

myfolder/myimage.jpg

This is bad:

/myimage.jpg

This is bad too:

/myfolder/myimage.jpg

Ill patch the plugin with a suitable sanitisation routine to always remove the leading slash – though it won't be for a day or two. In the meantime, fix dfcg-admin-metaboxes.php as described above and be careful when entering the image details in the metabox – no leading slashes!

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?

3:11 pm
February 3, 2010


david

Guest

4

Thanks for reply nerby and ade.

I'll try your fix immidiatly.

Thanks!

8:02 pm
February 3, 2010


Ade

Admin

posts 2384

5

david said:

Thanks for reply nerby and ade.

I'll try your fix immidiatly.

Thanks!


Let me know how you get on. Smile

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?