The s5 required files are hardcoded and read misc/s5/default/slides.css. This should read modules/s5/ui/default/slides.css as advertised in the readme.txt or the slides won't work. I think I can fix this, just have to look up that module_path function again.

Comments

ak’s picture

Ok I managed a small fix.

function s5_book_export($nid = 0) {
global $base_url;
$nid = (int) $nid;
$node = node_load($nid);
$depth = count(book_location($node)) + 1;
+ $path = drupal_get_path('module', 's5_book');
// Template variables to fill into the file
$variables = array(
    'base_url' => "$base_url/",
+   'path' 		 => $path,
    'title'    => check_plain($node->title),
    'author'   => check_plain($node->name),

and

<meta name="defaultView" content="slideshow" />
<meta name="controlVis" content="hidden" />
- <link rel="stylesheet" href="misc/s5/default/slides.css" type="text/css" media="projection" id="slideProj" />
- <link rel="stylesheet" href="misc/s5/default/outline.css" type="text/css" media="screen" id="outlineStyle" />
- <link rel="stylesheet" href="misc/s5/default/print.css" type="text/css" media="print" id="slidePrint" />
- <link rel="stylesheet" href="misc/s5/default/opera.css" type="text/css" media="projection" id="operaFix" />
- <script src="misc/s5/default/slides.js" type="text/javascript"></script>
+ <link rel="stylesheet" href="{$path}/ui/default/slides.css" type="text/css" media="projection" id="slideProj" />
+ <link rel="stylesheet" href="{$path}/ui/default/outline.css" type="text/css" media="screen" id="outlineStyle" />
+ <link rel="stylesheet" href="{$path}/ui/default/print.css" type="text/css" media="print" id="slidePrint" />
+ <link rel="stylesheet" href="{$path}/ui/default/opera.css" type="text/css" media="projection" id="operaFix" />
+ <script src="{$path}/ui/default/slides.js" type="text/javascript"></script>

So now I'm set up and ready to theme this baby, awesome. But what comes in mind right away is the posibility to switch or apply certain themes with certain books. May be a nice feature request to come.

ak’s picture

Assigned: Unassigned » ak
Status: Active » Needs review
gábor hojtsy’s picture

Status: Needs review » Closed (won't fix)

Read the README please:

S5 itself is not included. You are required to copy the contents of the 'ui' folder from your S5 download to misc/s5. That means you should have files like misc/s5/default/slides.js.

You should move the contents of the 'ui' folder to the misc folder, not the UI folder itself. The latest s5 module versions does this differently, but the 4.7 readme and code is in sync.