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
not able to use dcg with https ssl caused by css #dfcg-imgprev and #dfcg-imgnext
Status: fixed
October 22, 2011
1:54 pm
mmtomm
Member
Forum Posts: 6
Member Since:
March 23, 2011
Offline

Hello,

I have a problem, loading my page secure via https (SSL) because there are some css: #dfcg-imgprev and #dfcg-imgnext where there are images loaded via http.
where can I find the code which causes this behaviour and how must I change this to work correct?
I also installed wordpress-https
Thank you
Tom

October 22, 2011
4:12 pm
Ade
Admin
Forum Posts: 2493
Member Since:
August 25, 2008
Offline

Tom,

Look for dfcg-gallery-jquery-smooth-styles.php in the includes folder. You should be able to find the img references there.

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?
October 22, 2011
4:49 pm
mmtomm
Member
Forum Posts: 6
Member Since:
March 23, 2011
Offline

Hi Ade,

I where looking for already there.
But it is using:

background:url(<?php echo DFCG_URL . '/js-jquery-smooth/css/images/fleche1.png'; ?>)

and DFCG_URL is derived from

define( 'DFCG_URL', WP_PLUGIN_URL.'/dynamic-content-gallery-plugin' );

in dynamic-gallery-plugin.php I suppose.
So I informed myself, that this in turn is derived from WP_CONTENT_URL which comes from siteurl in turn.
The easiest way would be to change the siteurl in https…. but then all of the site is setup using ssl which I don't want to have.
I have installed Wordpress HTTPS as well but this does not touch my problem!
any further suggestions to this issue?
Thank you
Tom

PS: I found out meanwhile a topic in wp-forum from the author of wp-https. He is stating, that plugin authors should look at http://codex.wordpress.org/Determining_Plugin_and_…..irectories and should NOT use the constant WP_PLUGIN_URL for determination but wp_enqueue or plugins_url instead.
So may someone can help me what exactly I must change in dynamic-gallery-plugin.php to get it running in SSL???

October 22, 2011
5:48 pm
Ade
Admin
Forum Posts: 2493
Member Since:
August 25, 2008
Offline

If you only ever display the DCG via https, just replace DFCG_URL with the URL to the location of the dynamic-content-gallery-plugin folder.

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?
October 22, 2011
5:53 pm
mmtomm
Member
Forum Posts: 6
Member Since:
March 23, 2011
Offline

this seems to me not beeing a propper solution since I want to have both, usage of http and https

October 22, 2011
7:20 pm
mmtomm
Member
Forum Posts: 6
Member Since:
March 23, 2011
Offline

I give it a different try
how must I change this line of code:

define( 'DFCG_URL', WP_PLUGIN_URL.'/dynamic-content-gallery-plugin' );

so that it uses plugins_url instead?

October 25, 2011
3:05 pm
Ade
Admin
Forum Posts: 2493
Member Since:
August 25, 2008
Offline

Replace WP_PLUGIN_URL with plugins_url()

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

Most Users Ever Online: 28

Currently Online:
15 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

johnbroome: 13

speedyp: 12

sjpeaches: 12

CherylMcL: 10

gscorp: 8

lsnoei: 8

Member Stats:

Guest Posters: 770

Members: 1300

Moderators: 0

Admins: 1

Forum Stats:

Groups: 2

Forums: 7

Topics: 980

Posts: 4299

Newest Members: jochris26, eva-aa, Tushar, chargers3, jwhetstone, robert

Moderators:

Administrators: Ade (2493)