plugin:sviewer
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:sviewer [2012-09-10 13:49] – old revision restored (2012/09/10 11:51) (got it running) werner.flamme | plugin:sviewer [2022-01-17 00:33] (current) – Obsolete, flash is not more Klap-in | ||
---|---|---|---|
Line 12: | Line 12: | ||
depends | depends | ||
conflicts | conflicts | ||
- | similar | + | similar |
- | tags : images slideshow flash gallery | + | tags : |
- | downloadurl: | + | downloadurl: |
bugtracker : https:// | bugtracker : https:// | ||
sourcerepo : https:// | sourcerepo : https:// | ||
---- | ---- | ||
+ | Flash is not available anymore in browsers. | ||
===== Installation ===== | ===== Installation ===== | ||
Line 26: | Line 27: | ||
* [[plugin: | * [[plugin: | ||
- | Install | + | Search and install |
==== Installation Fix ==== | ==== Installation Fix ==== | ||
- | :!: The current installation of Simple Viewer is broken, the download-link does not exist. But this plugin actually can be made working with Angua. It is a beautiful alternative to the gallery-plugin. Gallery currently has problems within Angua. It kind of works but it hangs up my browser when using keyboard-shortcuts in lightbox-mode to browse through the pictures. May be due to the switch of the java-script library. But Simple Viewer can be an even better alternative, | + | :!: This plugin actually can be made working with Angua. It is a beautiful alternative to the gallery-plugin. Gallery currently has problems within Angua. It kind of works but it hangs up my browser when using keyboard-shortcuts in lightbox-mode to browse through the pictures. May be due to the switch of the java-script library. But Simple Viewer can be an even better alternative, |
=== Instructions === | === Instructions === | ||
- Install [[plugin: | - Install [[plugin: | ||
- | - Install the Simple Viewer plugin | + | - Install the Simple Viewer plugin |
- Within / | - Within / | ||
- get the viewer here [[http:// | - get the viewer here [[http:// | ||
Line 50: | Line 51: | ||
| | ||
in / | in / | ||
+ | |||
+ | |||
+ | |||
===== Examples/ | ===== Examples/ | ||
- | See the plugin in action [[http:// | + | See the plugin in action [[http:// |
This plugin takes input images from a given namespace or a list of given images. It then generates a XML file which the simpleviewer SWF uses to show the gallery. | This plugin takes input images from a given namespace or a list of given images. It then generates a XML file which the simpleviewer SWF uses to show the gallery. | ||
Line 149: | Line 153: | ||
If you encounter any problems post them here in the Discussion heading please, or contact me, i will respond as soon as possible :) | If you encounter any problems post them here in the Discussion heading please, or contact me, i will respond as soon as possible :) | ||
+ | OK. **Question 1** :-): The [[plugin: | ||
+ | |||
+ | ---- | ||
+ | Looks good, Install was without problems, Thanks! | ||
+ | *I think it would be better to use named attributes (like <sviewer thumbRows=' | ||
+ | *Request: it would be great to use wildcards in a filename to select a subset of a namspace (gallery has this). | ||
+ | *Buglet: the first character is missing in the image caption names | ||
+ | Hans Elbers // | ||
+ | --- | ||
+ | |||
+ | === Patch to hide sviewer directory === | ||
+ | |||
+ | sviewer has an annoying feature: it creates a media-directory that is accessible by @ALL for reading. | ||
+ | While this can do little harm (I guess) this directory shows up in the directory-tree of the media-manager. To hide this for naive users you could put the following code in / | ||
+ | |||
+ | <code php> | ||
+ | /** | ||
+ | * Build a tree outline of available media namespaces | ||
+ | * | ||
+ | * @author Andreas Gohr < | ||
+ | */ | ||
+ | function media_nstree($ns){ | ||
+ | global $conf; | ||
+ | global $lang; | ||
+ | |||
+ | // currently selected namespace | ||
+ | $ns = cleanID($ns); | ||
+ | if(empty($ns)){ | ||
+ | global $ID; | ||
+ | $ns = dirname(str_replace(':','/', | ||
+ | if($ns == ' | ||
+ | } | ||
+ | $ns = utf8_encodeFN(str_replace(':','/', | ||
+ | |||
+ | $data = array(); | ||
+ | search($data, | ||
+ | |||
+ | //inserted Harald Ronge | ||
+ | //prevent sviewer to be displayed by the media manager | ||
+ | //proposal: conf string fo media-manager to to hide directories | ||
+ | if(!auth_isadmin()){ | ||
+ | for ($index = 0; $index < count($data); | ||
+ | if ($data[$index][' | ||
+ | unset($data[$index]); | ||
+ | continue; | ||
+ | } | ||
+ | } | ||
+ | $data = array_values($data); | ||
+ | } | ||
+ | //end inserted | ||
+ | |||
+ | // wrap a list with the root level around the other namespaces | ||
+ | array_unshift($data, | ||
+ | ' | ||
+ | |||
+ | echo html_buildlist($data,' | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | [[user> Harald |Harald Ronge]] // | ||
+ | |||
+ | === Sort images === | ||
+ | |||
+ | I would like to have the images sorted by their filename. | ||
+ | |||
+ | The following changes (insert two lines with sort()) in syntax.php will do that for me: | ||
+ | < | ||
+ | .... | ||
+ | }else{ | ||
+ | // get file path | ||
+ | $paths[] = $path; | ||
+ | $urls[] | ||
+ | } | ||
+ | |||
+ | sort($paths); | ||
+ | sort($urls); | ||
+ | |||
+ | $fsz = count($paths); | ||
+ | for($j=0; | ||
+ | $path = $paths[$j]; | ||
+ | .... | ||
+ | </ | ||
+ | |||
+ | < | ||
plugin/sviewer.1347277793.txt.gz · Last modified: by werner.flamme