Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Alessio

Pages: [1]
1
Mods & Plugins (Requests & Discussions) / Autoviewer for 4images
« on: January 03, 2009, 09:53:49 PM »
I'm going to install a viewer similar to Tiltviewer (http://www.4homepages.de/forum/index.php?topic=20789.0).
It's called Autoviewer: http://www.airtightinteractive.com/projects/autoviewer/index.html

I'm writing the file autoviewer.php that is very similar to tiltviewer.php.
I need to indicate the width and the height of the photos but I don't know how to do it.
http://www.airtightinteractive.com/projects/autoviewer/manual_instruct.html
Example:

Code: [Select]
<image>
<url>images/wide.jpg</url>
   <caption>This is a caption.</caption>
   <width>700</width>
   <height>465</height>
</image>

Here is my file autoviewer.php, could you help me?

Code: [Select]
<?php
/**************************************************************************
 *    4images - A Web Based Image Gallery Management System               *
 *    ----------------------------------------------------------------    *
 *             File: tiltviewer.php by mawenzi                            *
 *     File-Version: 1.0 - 26.02.2008                                     *
 *        Copyright: (C) 2002 Jan Sorgalla                                *
 *            Email: jan@4homepages.de                                    *
 *              Web: http://www.4homepages.de                             *
 *    Scriptversion: 1.7.x                                                *
 *************************************************************************/
define('GET_CACHES'1);
define('ROOT_PATH''./');
define('GET_USER_ONLINE'1);
include(
ROOT_PATH.'global.php');
require(
ROOT_PATH.'includes/sessions.php');
$user_access get_permission();
$sql "SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_date, i.image_active, i.image_media_file, c.cat_name".get_user_table_field(", u.""user_name")."
        FROM ("
.IMAGES_TABLE." i,  ".CATEGORIES_TABLE." c)
        LEFT JOIN "
.USERS_TABLE." u ON (".get_user_table_field("u.""user_id")." = i.user_id)
        WHERE i.image_active = 1 AND i.cat_id = '98' AND i.cat_id IN ("
.get_auth_cat_sql("auth_viewcat").")
        ORDER BY i.cat_id DESC
LIMIT 0,20
        "
;
  
$result $site_db->query($sql);
  echo 
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>
";
  echo "<gallery frameColor=\"0xFFFFFF\" frameWidth=\"1\" imagePadding=\"5\" displayTime=\"6\" enableRightClickOpen=\"true\">";
  while ($image_row = $site_db->fetch_array($result)){
       echo "<image>";
       echo "<url>".ROOT_PATH."data/media/".$image_row['cat_id']."/".$image_row['image_media_file']."</url>";
       echo "<caption>".multilang($image_row['image_name'])."</caption>";
       echo "<width>????</width>";
       echo "<height>????</height>";
       echo "</image>";
  } // end while
  echo "</gallery>";
?>

2
Mods & Plugins (Requests & Discussions) / TiltViewer
« on: February 18, 2008, 10:44:56 AM »
I would like to use Tiltviewer http://www.airtightinteractive.com/projects/tiltviewer/ on my website, could you help me?

3
Mods & Plugins (Requests & Discussions) / Articles publishing
« on: January 11, 2007, 08:49:49 PM »
Quote
MOVED: [MOD] Small and simply mod for articles publishing
This topic has been moved to Mods & Plugins (Publishing & Support).

http://www.4homepages.de/forum/index.php?topic=11747.0

I'm searching for a mod that allow publishing articles but the link of the only one mod I've found is not working.
Can anyone help me?

Sorry for my bad english.
Alessio

4
After editing and saving an image in Edit images - ACP I have this error:

Notice: Undefined offset: 1 in /mounted-storage/home28b/sub001/sc24851-FNHZ/www/admin/images.php on line 1055

I use 4images 1.74

Please help me!

Pages: [1]