I am using ddblock in a site currently in development in D7.8. Problem is: it doesn't show up when:

a) not logged in (doesn't show up in final HTML at all)
b) logged in (shows up in HTML, but doesn't display images)

I have installed the jquery.all script at the specified location, but in the settings-tab, ddblock says I need to install it. Further, Chrome shows an error at line 167 of the ddblock.js-script: cannot read property 'defaults' of undefined.

Support would be greatly appriciated. Thanks in advance!

Comments

ppblaauw’s picture

Status: Active » Postponed (maintainer needs more info)

a) Probably no permission are given to anonymous users to view ddblock slideshows. (see permissions page)
b) maybe the content permissions module is enabled and no permission to view image field

The directory is: sites\all\libraries\jquery.cycle
The file is: jquery.cycle.all.js (don't use light version of cycle plugin)

Do you have a link to the page on your site with the slideshow?

FilipWitkowski’s picture

In my web site, the problem is with some interference with DHTML Menu module. When I set it to "Expand on Bullet", than images and text in DDblock stop showing up (for anonymous user) and JS functionality in search box (hiding default text when clicked) stop working. I think this has to do something with jQuery libraries.

Anyone has any idea how to correct this?

Filip

ppblaauw’s picture

#2
Are there javascript errors on the page with the slideshow?
Do you have a link to the slideshow on your site?

FilipWitkowski’s picture

IE shows this error:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727)
Timestamp: Wed, 12 Oct 2011 15:03:53 UTC

Message: 'css(...)' is null or not an object
Line: 178
Char: 7
Code: 0
URI: http://kpnwhospitals-org.tmpqa.com/sites/all/modules/dhtml_menu/dhtml_me...

the line is

var shift = '-' + (Math.ceil(($('.menu li').css('margin-left').replace('px', ''))) + 16) + 'px';

the main page, where ddblock is not working and search button don't work well, is here, and if you check other pages like this one the dynamic menu works. (with one problem with smoothness of animation).

Filip

FilipWitkowski’s picture

I figured out temporary fix: since variable shift is not used in my configuration, I just commented out the line.

Now I have to find fix to correct smoothness of animation.

ppblaauw’s picture

Title: ddblock doesn't show up » ddblock doesn't show up because of javascript error (Fixed)
Status: Postponed (maintainer needs more info) » Fixed

Looks like the javascript error with the dhtml_menu module causes the remaining javascripts (including the javascript for the slideshow) not to run.
Your page does not have a .menu class
Removing the line will solve the javascript error and the javascript for the slideshow will run.
Adding a class .menu to the menu will probably also solve the issue

Hope this explanation helps

Set status to fixed

rikthoff’s picture

#1

It works! Thanks man, you rock!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

chandantyagi’s picture

Title: ddblock doesn't show up because of javascript error (Fixed) » disabling content permissions module works

I have got the problem that there were no image and content in view DDBlock Slideshow while the user is logged out.

by disabling content permissions module works and now anonymous user can also view the image and content of the slideshow