HaLe Blog twitter
HaLe Blog Rss

Relative links in Powerpoint

Posted by cvd | Posted in General | Posted on 15-09-2011

1

Seems like relative paths are supported, they are just not straightforward to implement. For example if your Powerpoint presentation is in the MyFiles folder, and the MyMovie.avi is in the Media folder inside MyFiles. The trick is to edit the xml files inside the Powerpoint file:

Make a copy of your presentation as Presentation.pptx (just to keep the original safe).
Rename your Presentation.pptx file into Presentation.pptx.zip Open the resulting zip file by clicking on it.
It will open as a folder. Inside it, go to ppt, then slides, then _rels You will see files called slide1.xml.rels etc.
Copy (drag and drop) all those to another place, outside the archive.
Now open the file corresponding to the number of your slide with video with some editor (for example, Notepad).
Look for the line that says something like: Target=”file:///C:\MyFiles\Media\MyMovie.avi”
If your Powerpoint presentation is in the MyFiles folder, and the MyMovie.avi is in the Media folder inside MyFiles, then change the above line to: Target=”Media\MyMovie.avi”
Save the slide1.xml.rels file (or whatever number it was), then drag it back to that archive (that is actually a Powerpoint file), and then rename the archive back to Presentation.pptx This is it. Now you should be able to carry around the folder MyFiles with the presentation and with the Media folder inside it that contains your video.
Works for me on Windows 7

Bug in Artisteer 2.0 for multilanguage Drupal 6 themes

Posted by lhe | Posted in Drupal, Leiv Hendrickx | Posted on 13-03-2009

4

We have been playing around with Artisteer 2.0 for a day now and we already discovered a bug in it. The links in the language switcher block were not working when we activated the theme generated by Artiseer. After looking into the generated theme code, we discovered where it went wrong.

Basically it has to do with the difference in the l() function between D5 and D6.

Anyway, this is the fix

 

file : template.php

function: get_html_link_output($link) 

line : 163 

original code:

163
164
165
if (isset($link['href'])) {
    $output = l($link['title'], $link['href'], $link['attributes'], $link['query'], $link['fragment'], FALSE, $html);
  }

correct code:

163
164
165
166
167
168
169
170
if (isset($link['href'])) {
	if (get_drupal_version() == 5) {
	  $output = l($link['title'], $link['href'], $link['attributes'], $link['query'], $link['fragment'], FALSE, $html);
	}
	else {
	  $output = l($link['title'], $link['href'], array('language' => $link['language'], 'attributes'=>$link['attributes'], 'query'=>$link['query'], 'fragment'=>$link['fragment'], 'absolute'=>FALSE, 'html'=>$html));
	}
  }