Default template is working as should.
But it doesnt have pager.
so i downloaded the themes choosed vsdupright60 as template but it breaks views admin..

chrome gives this error in console:

Uncaught TypeError: Object #<Object> has no method 'scrollable' views_slideshow_ddblock.js:296

thats what breaking everything probably.
I have attached the view export that breaks views admin (actually all site's) javascript

My site is on localhost but if you want to see it live i can upload it online

thanks

CommentFileSizeAuthor
views_export.txt18.29 KBParisLiakos

Comments

ppblaauw’s picture

Status: Active » Postponed (maintainer needs more info)

Did you download and install the latest theme package: vsdupright1060V1-2.rar from http://ddblock.myalbums.biz/download

ParisLiakos’s picture

uhm yeah:)

and i re-downloaded just now to make sure i have the latest version.error persists
you mean my views export works for you?

this is the error from firefox's console

$("#views-slideshow-ddblock-scrollable-pager-" + block + " div.vsd-scrollable-pager").scrollable is not a function
http://localhost/test/sites/all/modules/views_slideshow_ddblock/js/views_slideshow_ddblock.js?lplpaw
Line 311
ppblaauw’s picture

The steps I did:

  • Imported the view.
  • Added a filter for the content type of the slideshow nodes.
  • Added a block display (to be put in a region)
  • Placed the views block display for the slideshow in a region

Slideshow works

ParisLiakos’s picture

so weird......

the export i posted is about page view.when i add block display i can see pager...but pager only on that case:S
and javascript stil breaks..even the toolbar's shortcut wont work..

are you sure you havent change something to vsd-upright60?
maybe we have different templates....what can i say:S

i will upload it online and will give you password for the admin to check it by yourself..
but the most likely is that we have different vsd-upright templates

ppblaauw’s picture

#5
Ok, will wait till you have the site online.
Please send link, username and password via contact form.

ppblaauw’s picture

I had a look at your site.
I see that the tools.scrollable-1.0.5.min.js javascript is not added to the page.
It should be added by the views-slideshow-ddblock-pager-content--vsdupright60p.tpl.php template file

the tools.scrollable-1.0.5.min.js is at: sites/all/modules/views_slideshow_ddblock/js/tools.scrollable-1.0.5.min.js

In views-slideshow-ddblock-pager-content--vsdupright60p.tpl.php, can you change

 $base = drupal_get_path('module', 'views_slideshow_ddblock');
 drupal_add_js($base . '/js/tools.scrollable-1.0.5.min.js', 'theme');

into

 drupal_add_js(drupal_get_path('module', 'views_slideshow_ddblock') . '/js/tools.scrollable-1.0.5.min.js');

if this does not work can you try the to add the tools.scrollable-1.0.5.min.js in the .info file of the theme, to see if the slideshow works than.

ParisLiakos’s picture

yes!
you are right:)
thank you.
changing that line fixed this!

:))))

ppblaauw’s picture

Title: Uncaught TypeError: Object #<Object> has no method 'scrollable' » Uncaught TypeError: Object #<Object> has no method 'scrollable' (fixed)
Status: Postponed (maintainer needs more info) » Fixed

thanks for finding the bug.

I had another slideshow theme on the same page which provided the tools.scrollable-1.0.5.min.js on my test server.
That is why I did not get the error.

Will upload new version of slideshow themes with this line changed
Set status to fixed.

Status: Fixed » Closed (fixed)

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

mariano.barcia’s picture

Status: Closed (fixed) » Active

I'm too getting these very same errors, but with the latest version of the templates. I inspected the browser console, as previously mentioned, and the tools.scrollable-1.0.5.min.js is being included, so the fix didn't work in my case.

In problematic line of the script, the myScrollable variable gets this selector:
"#views-slideshow-ddblock-scrollable-pager-pagina_principal_page div.vsd-scrollable-pager"

var myScrollable = $('#views-slideshow-ddblock-scrollable-pager-' + 
                                  block + 
                                  ' div.vsd-scrollable-pager').scrollable({ 

IMO it fails because there is not element matching that selector. Sorry I cannot fix it, but my 2cents is please check the pre-conditions of the existence of that selector.

pkchoo’s picture

Where can I download this new version of the vsdupright1060V1-3.rar theme? I go to this page (http://ddblock.myalbums.biz/download), but I can't tell when this was updated.

I am using this theme for my views slideshow dynamic display block and I've been having issue with it and views. It keeps breaking views. When I attempt to change settings in views, after making the change (if it allows me to make the change. it doesn't allow me all the time), the page changes into a bunch of garbled text. I have to hit the back arrow in the browser and hit refresh before it takes me back to the views interface. Fortunately, sometimes it keeps the changes I made and allows me to save.

Sometimes, I am not allowed to change settings at all, which is very frustrating. For example, I added a nodequeue to the filter, but am not able to change it's settings to allow it to be "true".

If the theme has been updated in the past couple of months to address this, that would be great!

Thank you,
Joe

pkchoo’s picture

Issue summary: View changes

made it more descriptive