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, 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?
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.
Developing plugins for the community represents a considerable investment of my time and energy. If you have found these plugins useful, please consider making a donation to help support future development. Your support will be much appreciated. Thank you!