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.

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 3 characters - maximum search word length is 84 characters

Topic RSS
Default images not working
July 7, 2011
2:55 pm
blue2018
Guest
21

en,i'm sure i have put the code "var_dump($def_img_path);" in the "dfcg-gallery-constructors.php" which is in the folder "I:\wamp\www\wp\wp-content\plugins\dynamic-content-gallery-plugin\includes", just like the screenshot showed. if it is possible, you can take a test on your own computer, i think you will meet the same problem as i said.

July 7, 2011
5:47 pm
blue2018
Guest
22

oh, i can send the Page Source to you, do you mind telling me your email address?

July 8, 2011
3:22 pm
jamespro
Guest
23

I put in the code mentioned above and it outputs:

/home/allcov/public_html/wp//wp/wp-content/uploads/default/4.jpg

But it should be

/home/allcov/public_html/wp/wp-content/uploads/default/4.jpg

So how do I get rid of the

wp//

I have URL to default "Category" images folder: set to:

Settings:

Image Management: full URL
Carousel Thumbnails: legacy
Gallery Method: multi-option | Default Images folder is: http://learning.allcovered.com/wp/wp-content/uploa…..s/default/
Descriptions: manual
Javascript Options: mootools
Load Scripts: Home Page
Tools – Error Message options: on

July 10, 2011
9:24 am
Ade
Admin
Forum Posts: 2490
Member Since:
August 25, 2008
Offline
24

@ jamespro

What have you entered in the default images folder box in the DCG settings page?

Also, what are your Dashbaord > General settings for Wordpress address and Site address?

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?
July 11, 2011
3:27 pm
jamespro
Guest
July 19, 2011
5:24 pm
jamespro
Guest
26

* The Topic Status says "awaiting user"–I hope this doeesn't mean my response will not be seen. Thanks.

August 10, 2011
2:57 pm
Ade
Admin
Forum Posts: 2490
Member Since:
August 25, 2008
Offline
27

jamespro said:

* The Topic Status says "awaiting user"–I hope this doeesn't mean my response will not be seen. Thanks.

@ jamespro,

Are you still experiencing this problem, or did you fix it?

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?
August 10, 2011
7:35 pm
jamespro
Guest
28

I am still experiencing the problem.

Look at slide #3 on the home page. That is the error image that I put the logo into just so it doesn't say "Error".

http://learning.allcovered.com/

August 21, 2011
6:58 am
Ade
Admin
Forum Posts: 2490
Member Since:
August 25, 2008
Offline
29

jamespro said:

I am still experiencing the problem.

Look at slide #3 on the home page. That is the error image that I put the logo into just so it doesn't say "Error".

http://learning.allcovered.com/

Yes, I see the problem.

Can you try something for me? Open up the plugin's includes/dfcg-gallery-constructors.php file, and find this line (line 79):

// Convert URL to path. Strip domain name from URL, replace with ABSPATH. Default folder can now be anywhere
$def_img_folder_path = str_replace( get_bloginfo('url'), ABSPATH, $def_img_folder_url );

Then, replace the above code with this:

// Convert URL to path. Strip domain name from URL, replace with ABSPATH. Default folder can now be anywhere
$def_img_folder_path = str_replace( get_bloginfo('wpurl'), ABSPATH, $def_img_folder_url );

Then tell me what result you get for the URL for image 3.

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?
August 22, 2011
3:08 pm
jamespro
Guest

That worked! Thank you. Is this something I should re-do when there are future upgrades to the plugin? e.g. do I have some unusual setup that caused this?

PS I just made a donation and I encourage others to do the same. Thanks.

August 22, 2011
9:47 pm
Ade
Admin
Forum Posts: 2490
Member Since:
August 25, 2008
Offline
31

Hi,

It's a strange one… I think we have found a bug in my code. However, what surprises me is that many people have a setup like yours and no-one else has raised this issue. This could be because it only really manifests itself when using default images and, perhaps, not many people use the default images (or never notice that they have a problem).

Anyway, I shall do some further testing my end.

Thanks for the donation – much appreciated! :-)

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?
Forum Timezone: UTC 1

Most Users Ever Online: 28

Currently Online: nloronacele
14 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

johnbroome: 13

sjpeaches: 12

speedyp: 12

CherylMcL: 10

littlemerry: 8

lsnoei: 8

Member Stats:

Guest Posters: 770

Members: 1297

Moderators: 0

Admins: 1

Forum Stats:

Groups: 2

Forums: 7

Topics: 978

Posts: 4293

Newest Members: chargers3, jwhetstone, robert, Mak-Donuts, kilerb, Marian Bamboi

Moderators:

Administrators: Ade (2490)