Forum

 
You must be logged in to post Login Register


Register? | Lost Your Password?

Search Forums:


 






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

Using on static front page only?

No Status Selected
UserPost

8:42 pm
January 13, 2009


Jonas

Member

posts 4

1

Greetings,

By inserting the DCG code into the index.php file located in my K2-themes folder i can make the black box appear just about everywhere but not on on the static front page.

I have tried disabling all plug ins except the DCG-plug in but still only get a black box (even though the URL's in the code looks correct).

I think DCG is what i want and i've pretty much read everything i could find but still can't figure out:

a) How can i make it show up on my static front page (and nowhere else)

b) How can i make this actually show images (i do get the black box)

I'm using WP 2.6.3  with the K2 theme.

Any hints or suggestions would be much appriciated.

2:24 am
January 14, 2009


Ade

Admin

posts 1140

2

Hi Jonas,

Which page have you selected as your Static front page in Admin>Settings>Reading?

Also, can you post a link to your site?

Ade.

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

8:25 am
January 14, 2009


Jonas

Member

posts 4

3

Ade,

"Front page displays: * A static page

                                 * Front Page "Äventyret börjar här""

And that's a regular WordPress page (as opposed to a WordPress post)

URL to site: http://www.outsideonline.se/blog/

(Also, all plugins (7) enabled again since disabling didn't work out anyway).

Thanks

/Jonas


9:52 pm
January 14, 2009


Ade

Admin

posts 1140

4

You need to put the gallery template code in whichever page template file you are using to generate your front page. If you are not using a page template file to generate this page you will have to create one, add the gallery template code in an appropriate place, then go to Edit>Pages and assign the page which is being used as the front page to this page template.

I looked on your site but couldn't find the gallery anywhere. Have you disabled it?

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

7:29 pm
January 17, 2009


Jonas

Member

posts 4

5

Oh.. There's a testpage here: http://www.outsideonline.se/blog/annonsera/testing-123/

All i get is 1) an errormessage saying "Handler can't be removed" and then 2) a black box trying to load the images (i guess).

I've tried disabling all other plugins but it doesn't seem to have any effect at all.

Any suggestions?

/Jonas

sgr said:

You need to put the gallery template code in whichever page template file you are using to generate your front page. If you are not using a page template file to generate this page you will have to create one, add the gallery template code in an appropriate place, then go to Edit>Pages and assign the page which is being used as the front page to this page template.

I looked on your site but couldn't find the gallery anywhere. Have you disabled it?


3:49 am
January 18, 2009


Ade

Admin

posts 1140

6

Hi Jonas,

Yes, I see the message on your page. Nothing in the DCG can generate this message and in fact the message is being generated by this script which is in your header.php:

<script type="text/javascript"><!–

function addEvent(elm, evType, fn, useCapture)
// addEvent and removeEvent
// cross-browser event handling for IE5+, NS6 and Mozilla
// By Scott Andrew
{
if (elm.addEventListener){
elm.addEventListener(evType, fn, useCapture);
return true;
} else if (elm.attachEvent){
var r = elm.attachEvent("on"+evType, fn);
return r;
} else {
alert("Handler could not be removed");
}
}
function externalLinks() {
if (!document.getElementsByTagName) return;
var anchors = document.getElementsByTagName("a");
var newwindows =0;
for (var i=0; i<anchors.length; i++) {
var anchor = anchors[i];
if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external") {
anchor.setAttribute("target","_blank");
newwindows++;
}
}
}

addEvent(window, "load", externalLinks);

//–>

</script>

It could be that this script is generating the error message but it's probably
not the script itself which is causing the error. I see that your images are there but the gallery doesn't load which suggests to me a javascript conflict with another plugin.

I guess the best thing to try is to disable your other plugins and see what happens.

Hope this helps.

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

1:02 pm
January 18, 2009


Jonas

Member

posts 4

7

Woohaa!

Finally! Turned out that the "Feedlist" plugin was causing the conflict.

Exit Feedlist – Enter Dynamic content.

It works like a charm now.

Thanks for coaching!

7:49 am
January 27, 2009


Ade

Admin

posts 1140

8

Jonas,

Thanks for the update. Glad you got it working. Smile

I will add that plugin to the list of conflicting plugins.

Ade.

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