Hello,

I can't get a custom theme to work with the current dev-version (Date 2010-Apr-17) of the module.
I have copied themefiles of my theme (which is vsd-upright-50p) in to the following directory of my theme:
"custom/modules/views_slideshow_ddblock "

In the corresponding views settings, I set the name of the Custom Tempalte to:

vsd-upright-50p

is that right?

I seems, like it doesn't find the templatefiles and falls back to the standardtheme.
I applied this patch:
http://drupal.org/node/777184

but it didn't workout.

Can you help me?

have a nice day,
Stefan

CommentFileSizeAuthor
#6 slideshow.jpg33.9 KBOverburn
#4 ddblocksettings.jpg285.02 KBOverburn
#4 ftp.jpg39.72 KBOverburn

Comments

ppblaauw’s picture

Status: Active » Postponed (maintainer needs more info)

When you applied the patch in http://drupal.org/node/777184 you should be able to select the theme directly in the template selectbox, instead of selecting custom and then add it in the custom template field.

Hope this helps you further, please let me know.

Overburn’s picture

Hello,
ok thanks. Just forgot to put the theme it's own directory. (the documentation is a little confusing).

The pager still isn't showing.
Where do I need to put the css-file?

ppblaauw’s picture

Maybe I don't understand your issue.

For the views_slideshow_ddblock module there is a slideshow package available with six example slideshow themes. One for each type of pager. You can download the slideshow theme package from http://ddblock.myalbums.biz/download. (make sure you have the right version)

You can use these example themes as an example to create your own themes.

Which and where is the documentation confusing, so I can improve it.

For the pager: did you enable the pager in the configuration page.

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

Overburn’s picture

StatusFileSize
new39.72 KB
new285.02 KB

Hi,
I followed your tutorial for setting up the ddblock: http://ddblock.myalbums.biz/node/1788 and downloaded the files for dev2.
I attached the settings and how the files are place on the ftpserver.

In the documentation, it is not mentioned, that the files have to be placed in a subdirectory. i also find the filepath custom/modules/.. not very comfortable.

ppblaauw’s picture

The views-slideshow-ddblock-cycle-vsd-upright-50p.css file needs to be in the:

custom\modules\views_slideshow_ddblock\vsd-upright-50p directory

so it becomes:

custom\modules\views_slideshow_ddblock\vsd-upright-50p\views-slideshow-ddblock-cycle-vsd-upright-50p.css

What directory would you suggest to put the views_slideshow_ddblock slideshow themes?
Maybe could add a setting in the config where the slideshow themes are placed, so users can decide themselves where to place them. (but would need AHAH for this again, so first issue http://drupal.org/node/762164 needs to be solved)

Hope this helps you further, please let me know.

Overburn’s picture

StatusFileSize
new33.9 KB

The CSS-file is placed in the right directory (see screenshot).
Here is the Debuginformation I get:


    *

      Pager Settings => array (
        'delta' => 'Frontpage_slideshow_default',
        'debug_info' => 'drupal',
        'output_type' => 'view_fields',
        'pager' => 'custom-pager',
        'pager_container' => '.custom-pager-item',
        'pager_event' => 'mouseover',
        'pager_position' => 'bottom',
        'pager2' => 0,
        'pager2_position' => 
        array (
          'slide' => 0,
          'pager' => 0,
        ),
        'pager2_pager_prev' => 'prev',
        'pager2_pager_next' => 'next',
        'pager2_slide_prev' => '',
        'pager2_slide_next' => '',
        'template' => 'vsd-upright-50p',
        'view_name' => 'Frontpage_slideshow',
        'view_display_id' => 'default',
        'nr_of_items' => 2,
      )

    *

      Number of pager items  => 2

    *

      View - name => 'Frontpage_slideshow'

    *

      View - display_Id => 'default'

    *

      Number of slides => 2

    *

      Content first slide => array (
        'slide_title' => '<span id="thmr_15" class="thmr_call">
        DIes ist ein kleiner Test</span>

      ',
        'slide_text' => '<span id="thmr_15" class="thmr_call">
        DIes ist ein kleiner Test</span>

      ',
        'pager_text' => '<span id="thmr_15" class="thmr_call">
        DIes ist ein kleiner Test</span>

      ',
        'slide_image' => '<span id="thmr_16" class="thmr_call">
        <span id="thmr_17" class="thmr_call">
        <span id="thmr_18" class="thmr_call">
        <img  class="imagefield imagefield-field_multiple_image_field" width="500" height="300" alt="" src="http://www.sylb.de/drupal_live/sites/default/files/e83500c3d2_0.jpg?1271011305" /></span>

      </span></span>

      ',
        'slide_read_more' => '<span id="thmr_19" class="thmr_call">
        <span id="thmr_20" class="thmr_call">
        <a href="/drupal_live/testband">TEstband</a></span></span>

      ',
        'node_id' => '<span id="thmr_21" class="thmr_call">
        9</span>

      ',
      )

I also attached the slideshowblock. Don't mind the Blackparts, I had to insert them because of copyrightreasons.
The plan is, that the pager (as in the screenshot on the modules page) shows below the big picture.

ppblaauw’s picture

Did you enable the pager in the display block configuration page?

You also need the files:

views-slideshow-ddblock.tpl.php
and
views-slideshow-ddblock-pager-content.tpl.php

in your template, otherwise the template files

views-slideshow-ddblock-cycle-block-content-vsd-upright-50p.tpl.php
and
views-slideshow-ddblock-cycle-pager-content-vsd-upright-50p.tpl.php

can not be found by the drupal theme system.

You make it yourself difficult by not using the vsd-upright-10p - 60p template package.

Hope this helps you further, please let me know.

Overburn’s picture

I used the template package you provided on your side. :)

But as i metioned, the documentation doesn't provide the information the set this up properly.

Overburn’s picture

Status: Postponed (maintainer needs more info) » Fixed

Finally!
It works!
Here is how I did it:

1. I renamed the files

views-slideshow-ddblock-cycle-block-content-vsd-upright-50p.tpl.php
and
views-slideshow-ddblock-cycle-pager-content-vsd-upright-50p.tpl.php

to

views-slideshow-ddblock.tpl.php
and
views-slideshow-ddblock-pager-content.tpl.php

and placed them under my main theme directory.

2. I placed the cssfil under the custom/modules/.... -directory.

And now everything works fine.

for me, the whole stuff with the different is way to complicated. its much more easier when you only got to files to take care of.

thank you for module and your help. :)

ppblaauw’s picture

Status: Fixed » Postponed (maintainer needs more info)

Your solution works, but...

With you solution you override the views-slideshow-ddblock.tpl.php and views-slideshow-ddblock-pager-content.tpl.php files which come from the module. You would only be able to have one slideshow theme on your site.

With using the candidate template files like: views-slideshow-ddblock-cycle-block-content-vsd-upright-50p.tpl.php you can have multiple slideshow themes on your site.

Will have a look at the documentation in the readme.txt and the tutorial to find out what is not clear and make adjustments.

Would be helpful when I get feedback what is not clear from others also.
It's not always easy to write clear documentation for first time users as a developer of a module.

Overburn’s picture

I know that. I'm a developer myself, and users are strange people. ;)

I just need one Tempalte for my site, so that solution fits perfectly for me.

ppblaauw’s picture

Please provide some information what is not clear in the readme.txt and the tutorial for implementing the theme package vsd-upright-10p - 60p.

johsve339’s picture

I can't get the themes to works either.
Does the dev 2 version need the preprocess files?

Here's what I got:

sites/all/modules/contributed/views_slideshow - version 6.x-2.0
sites/all/modules/contributed/views_slideshow_ddblock - version 6.x-2.x-dev

sites/all/themes/[MY_THEME_NAME]/custom/modules/views_slideshow_ddblock - version from vsd-upright10-60-V2-2.zip

Do I need to modify template.php in my theme?
All the ddblock theme upright10-60 are available in the view configuration for the slideshow.



    *

      Pager Settings => array (
        'delta' => 'ddblock_slideshow_block_1',
        'debug_info' => 'drupal',
        'output_type' => 'view_fields',
        'pager' => 'number-pager',
        'pager_container' => '.custom-pager-item',
        'pager_event' => 'click',
        'pager_position' => 'top',
        'pager2' => 0,
        'pager2_position' => 
        array (
          'slide' => 'slide',
          'pager' => 0,
        ),
        'pager2_pager_prev' => 'prev',
        'pager2_pager_next' => 'next',
        'pager2_slide_prev' => '',
        'pager2_slide_next' => '',
        'template' => 'vsd-upright-10p',
        'view_name' => 'ddblock_slideshow',
        'view_display_id' => 'block_1',
        'nr_of_items' => 2,
      )

    *

      Number of pager items  => 2

    *

      View - name => 'ddblock_slideshow'

    *

      View - display_Id => 'block_1'

    *

      Number of slides => 2

    *

      Content first slide => array (
        'slide_title' => 'Lorem ipusm!',
        'slide_text' => '<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>',
        'slide_image' => '<img src="http://www.mysite.com/sites/mysite.com/files/imagecache/frontpage_slideshow/startslide_sv_1.jpg" alt="" title=""  class="imagecache imagecache-frontpage_slideshow imagecache-default imagecache-frontpage_slideshow_default" width="695" height="230" />',
        'pager_image' => '<img src="http://mysite.com/sites/mysite.com/files/imagecache/frontpage_slideshow_pager/startslide_sv_1.jpg" alt="" title=""  class="imagecache imagecache-frontpage_slideshow_pager imagecache-default imagecache-frontpage_slideshow_pager_default" />',
        'slide_read_more' => '<a href="/en/node/39">Read more...</a>',
      )


ppblaauw’s picture

No, there is no need for preprocess functions in your template.php file.

You could try to clear the cache at administer > site configuration > performance

Hope this helps you further, please let me know

johsve339’s picture

I tried to clear the cache, but still no luck. I updated a few modules to never versions.
Then the slideshow started, but the theme is not applied. It looks the same with vsd-upright-10p, as well as vsd-upright-60p.

johsve339’s picture

No it works...

The problem was the file system access to the files. Applied a chmod 755 to the folders and then it worked.

OpenChimp’s picture

For the directory structure of the custom themes (vsd-upright10-60-V2-2.zip) ... I agree that custom/modules/views_slideshow_ddblock is a little confusing. Why can't it just be placed at sites/[site-folder]/themes/[theme-folder]/views_slideshow_ddblock?. The "custom/modules" part of the path does not seem necessary and makes one think that it should be in some kind of modules directory.

Great work on this module by the way .. I love having ddblock integrated with views_slideshow ... very powerful combination!

ppblaauw’s picture

Status: Postponed (maintainer needs more info) » Needs work

custom/modules/[module_name] is the way I do all my theme customizations per module, so I can easily find my customizations back and can easily upgrade my overall theme, by saving the custom folder and the template.php file.

Will probably make a path setting in the configuration page so users can choose where to place the slideshow theme files.