[mythtv] [PATCH][mythweb] Simple mythgallery support
Kristian Kalweit
kalweit at exorpro.de
Fri Jan 21 07:26:45 EST 2005
Hi,
this is a patch for mythweb to add a simple form of mythgallery support.
You have to rename the file "For_themes_Defaulr_dir_mythgallery.php"
into mythgallery.php and copy it into /themes/Default/
Make a link to your mythgallery dir or edit configs/conf.php:
e.g.
cd /var/www/localhost/htdocs
ln -s /data/images gallery
Limitations:
- no thumbs creation (currently using .thumbcache of MythGallery), is a
future dependency to GD applicable?
- no paging (but, is in preparation)
- you have to use the back button of the browser to navigate back
- hard coded 5 thumbs in a row
Have fun,
Kristian.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-dev/attachments/20050121/1d14b6a2/For_themes_Default_dir_mythgallery.htm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-dev/attachments/20050121/1d14b6a2/mythgallery.html
-------------- next part --------------
? mythgallery.php
? themes/Default/mythgallery.php
Index: config/conf.php
===================================================================
RCS file: /var/lib/mythcvs/mythweb/config/conf.php,v
retrieving revision 1.22
diff -u -d -r1.22 conf.php
--- config/conf.php 10 Aug 2004 03:16:16 -0000 1.22
+++ config/conf.php 21 Jan 2005 11:54:20 -0000
@@ -56,6 +56,10 @@
// For this to work, create a 'music' symlink in mythweb which points to the path for mythmusic files.
define('music_url', music);
+// Type of url for the links to mythgallery files. Filename will be added to the end.
+// For this to work, create a 'gallery' symlink in mythweb which points to the path for mythgallery files.
+ define('gallery_url', gallery);
+
// Path to the mythvideo "covers" directory
define('video_img_path', '');
Index: themes/Default/theme.php
===================================================================
RCS file: /var/lib/mythcvs/mythweb/themes/Default/theme.php,v
retrieving revision 1.33
diff -u -d -r1.33 theme.php
--- themes/Default/theme.php 1 Dec 2004 08:14:23 -0000 1.33
+++ themes/Default/theme.php 21 Jan 2005 11:54:27 -0000
@@ -80,6 +80,8 @@
|
<a href="video.php">MythVideo</a>
|
+ <a href="mythgallery.php">MythGallery</a>
+ |
<a href="weather.php">MythWeather</a>
|
<a href="settings.php"><?php echo t('Settings') ?></a></td>
More information about the mythtv-dev
mailing list