Hello,

I'm using version 7.x and, I've got everything with the module working fantastic. Well, except for one thing. I have the pager set as custom, and having it show the image for the content. It displays fine, but if I click on the items in the pager, rather than displaying that item, it does nothing.

Is there maybe something I missed?

Comments

ppblaauw’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

What functionality of the module do you use?
How can I reproduce your situation?
Do you have a link to the slideshow on your site?

georgedamonkey’s picture

StatusFileSize
new66.06 KB

I attached a screenshot of what I have set for the pager.

Here's the address to the slideshow:

http://www.menashalibrary.org/

Thanks!

ppblaauw’s picture

Probably you customized a slideshow theme and put the pager is inside the slidetext of every slide in your customized theme.
This will not work.

georgedamonkey’s picture

I'm not sure? How would I go about testing/fixing this?

solona’s picture

I am having a similar problem. Locally, the pager works when clicked (the images change). Live, on the server, the link behaves as a #. Haven't worked out why yet.

ppblaauw’s picture

#5 Do you have a link to the slideshow on your Internet site.

solona’s picture

http://www.solona.ca (test site)
The pager-link class is not being applied to the link. I have tweaked every php file to make sure that class is applied to the links, both in my custom/ddblock folder and in the sites/all/modules/ddblock files. Not sure what else to try.

ppblaauw’s picture

When I look at your site it doesn't look like you are using drupal 7

For drupal 7:
In the upright50 pager template file: ddblock-cycle-pager-content--upright50p.tpl.php, line: 40

       <a href="#" title="navigate to topic" class="pager-link">

uses the pager-link class.

Is the class pager link removed from the pager tpl.php file you use.
Can you attach the ddblock-cycle-pager-content--upright50p.tpl.php file you use?

solona’s picture

StatusFileSize
new1.99 KB

I am using Drupal 6. I didn't notice the version on this thread.

ppblaauw’s picture

#9 It looks like the tpl.php file you attached is not the one which is used. (I don't see the pager-link and the text yes used on the site)
Do you have copies of this file in your drupal installation.
Probably another copy is used.

You need to remove the copies and clear the cache to get the right tpl.php file used

solona’s picture

Yes, exactly. Locally, the file being used is in:
sites/all/themes/mytheme/custom/modules/ddblock/ddblock-cycle-pager-content-upright50.tpl.php

I can recreate the problem locally by disabling this file. Also, adding "yes" next to the pager image in the tpl.php adds the word "yes" to the slideshow locally.

However, on the server, this same file doesn't appear to be called. On the server I have gone through, one by one, each of the ddblock-cycle-pager-content... files in
sites/all/themes/mytheme/custom/modules/ddblock/

and the one in

sites/all/modules/ddblock

....cleared the cache, refreshed and it seems none of them are being called.

I changed the permissions to the files and folders to 777 and that didn't solve it. I can't think of another reason that file wouldn't get called.

(thanks for your help, this is a mystery)

ppblaauw’s picture

#11 The only reason I can think of is that you have a copy of the file somewhere else in your drupal install which is used.
You need to remove the copy.

ppblaauw’s picture

#11 you could use the theme developer (http://drupal.org/project/devel_themer) module to find out which tpl.php file is used at the moment.

hope this helps you further, please let me know.

solona’s picture

StatusFileSize
new1.91 KB

Using the theme developer revealed that the template file being called is actually ddblock-cycle-pager-content-1.tpl.php
When I changed the name of the template file from:
sites/all/modules/ddblock/ddblock-cycle-pager-content.tpl.php
to
sites/all/modules/ddblock/ddblock-cycle-pager-content-1.tpl.php

the text "modules" I put next to the links appeared on my page (I put different text in each template file to see which one was being called).
Now I'm completely stumped because the "pager-link" is in there. Is this only needed for D7?

I've attached the file that's being called.

Thanks again for your help.

solona’s picture

It also looks as if the js files aren't being called. I've already tried uninstalling and reinstalling the module (on the server) and run into the same problem.

ppblaauw’s picture

#14

How do you get a ddblock-cycle-pager-content-1.tpl.php file in your theme?

The ddblock module uses overriden template files in the theme, it makes use of candidate template files, the first one found will be used (in the following order).

from the theme

ddblock-cycle-pager-content-[blocknr].tpl.php
ddblock-cycle-pager-content-1.tpl.php                               - this one is used for the first ddblock
ddblock-cycle-pager-content-[slideshow_theme_name].tpl.php
ddblock-cycle-pager-content-upright50p.tpl.php                      - this one is used for the upright50p slideshow theme
ddblock-cycle-pager-content.tpl.php                                 - this one is used when overriding the default template file

if none is found it uses the default template file from the module

ddblock-cycle-pager-content.tpl.php

If you delete the ddblock-cycle-pager-content-1.tpl.php file and have the ddblock-cycle-pager-content-upright50p.tpl.php file in your theme it should use this template file.
After deleting you need to clear the drupal cache.

same for the ddblock-cycle-block-content.tpl.php file

Don't know what you mean with javascript is not being called in #15

Hope this helps you further, please let me know.

solona’s picture

Thanks again.

Just to make sure we're talking about the same thing, I am using the advanced ddblock. The files I used are here http://edshadi.com/tutorial-create-advanced-ddblock/

You mention ddblock-cycle-pager-content-upright50p.tpl.php in #16. The file I am using is ddblock-cycle-pager-content-upright50.tpl.php (without the p).

Further, when I delete that file ddblock-cycle-pager-content-1.tpl.php, none of the other template files get called.

And what I mean by the js files not being called is when I view source for the page, the js files included in the ddblock module aren't listed.

ppblaauw’s picture

#17 ddblock-cycle-pager-content-upright50.tpl.php without the p is ok for ddblock drupal6.

The file ddblock-cycle-pager-content.tpl.php needs to exist, so drupal can find candidate template files.

You can copy the ddblock-cycle-pager-content.tpl.php from the module.

After this clear the cache again.

Probably your module .js files are aggregated in one file

solona’s picture

I'm stumped. I've done what you suggest and it doesn't read any of the template files in sites/all/themes/theme-name/custom/modules/ddblock

ppblaauw’s picture

#19
when I look at the site you give http://www.solona.ca, I still see the pager item links don't have a pager-link class.
I have no suggestions or explanation anymore at the moment on your issue.

solona’s picture

I just changed from Upright40 and then back Upright50 and suddenly it works. It's still calling the template file in sites/all/modules/ddblock/ddblock-cycle-pager-content-1.tpl.php but it works.

Thanks for taking the time to help me out with that.

ppblaauw’s picture

Status: Postponed (maintainer needs more info) » Fixed

set status to fixed.

Status: Fixed » Closed (fixed)

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