Closed (fixed)
Project:
Dynamic display block
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 Feb 2011 at 16:51 UTC
Updated:
20 Apr 2011 at 22:11 UTC
Jump to comment: Most recent file
Comments
Comment #1
ppblaauw commentedWhat functionality of the module do you use?
How can I reproduce your situation?
Do you have a link to the slideshow on your site?
Comment #2
georgedamonkey commentedI attached a screenshot of what I have set for the pager.
Here's the address to the slideshow:
http://www.menashalibrary.org/
Thanks!
Comment #3
ppblaauw commentedProbably you customized a slideshow theme and put the pager is inside the slidetext of every slide in your customized theme.
This will not work.
Comment #4
georgedamonkey commentedI'm not sure? How would I go about testing/fixing this?
Comment #5
solona commentedI 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.
Comment #6
ppblaauw commented#5 Do you have a link to the slideshow on your Internet site.
Comment #7
solona commentedhttp://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.
Comment #8
ppblaauw commentedWhen 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
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?
Comment #9
solona commentedI am using Drupal 6. I didn't notice the version on this thread.
Comment #10
ppblaauw commented#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
Comment #11
solona commentedYes, 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)
Comment #12
ppblaauw commented#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.
Comment #13
ppblaauw commented#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.
Comment #14
solona commentedUsing 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.
Comment #15
solona commentedIt 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.
Comment #16
ppblaauw commented#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
if none is found it uses the default template file from the module
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.
Comment #17
solona commentedThanks 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.
Comment #18
ppblaauw commented#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
Comment #19
solona commentedI'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
Comment #20
ppblaauw commented#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.
Comment #21
solona commentedI 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.
Comment #22
ppblaauw commentedset status to fixed.