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.


Messages - Alessio

Pages: [1] 2 3 4 5
1
Mods & Plugins (Requests & Discussions) / Re: Autoviewer for 4images
« on: January 26, 2009, 09:16:13 AM »
Thank you Mawenzi!
Now it works correctly!

autoviewer.php

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,75
"
;
  
$result $site_db->query($sql);
  echo 
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>
";
  echo "<gallery frameColor=\"0x5c5c5c\" frameWidth=\"0\" imagePadding=\"5\" displayTime=\"4\" enableRightClickOpen=\"false\">";
  while ($image_row = $site_db->fetch_array($result)){
  $image_url = ROOT_PATH."data/media/".$image_row['cat_id']."/".$image_row['image_media_file'];
  $image_info = @getimagesize($image_url);
  $image_width = $image_info[0];
  $image_height = $image_info[1];
       echo "<image>";
       echo "<url>".$image_url."</url>";
       echo "<caption>".multilang($image_row['image_name'])."</caption>";
       echo "<width>".$image_width."</width>";
       echo "<height>".$image_height."</height>";
       echo "</image>";
  } // end while
  echo "</gallery>";
?>

2
Mods & Plugins (Requests & Discussions) / Re: Autoviewer for 4images
« on: January 06, 2009, 10:12:14 AM »
Help me, please!

3
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>";
?>

4
Mods & Plugins (Releases & Support) / Re: [MOD] guestbook
« on: November 17, 2008, 05:47:58 PM »
I would like to add a field for the mail address. (the guest mail address must be visible only to administrator)
Can you help me?

5
My Newstitle is now "Posté par Nickname le 07.09.2008 15:00"

Why this isn´t in English? I want to fix this problem, anyone can help me?

I´ve edited and uploaded the file "/lang/english/main.php" but it wouldn´t work :(


And i got a second Problem in the Admincenter under the News Display mode:

Fatal error: Call to undefined function show_news_display_options() in /usr/export/www/vhosts/funnetwork/hosting/autospotter/4images/admin/settings.php on line 161

Can you post here the main.php file?

6
Mods & Plugins (Releases & Support) / Re: [MOD] Language select
« on: October 13, 2008, 08:05:36 PM »
Thank you Vano!
One question. My website is available in two languages only, what happens with the others? Is the default language selected?

7
Mods & Plugins (Releases & Support) / Re: [MOD] Language select
« on: October 12, 2008, 08:30:36 PM »
Is it possible to detect automatically the language (by IP or by OS language) if are not present cookie?

Any solution?

8
My RSS doesn't work correctly if are present links in the news text, why?
http://www.webax.it/rss.php?action=images

I have understood that html code is not compatible with the RSS. So, how can I add a hyperlink to the news?

9
Mods & Plugins (Releases & Support) / Re: [MOD] Language select
« on: August 27, 2008, 03:49:52 PM »
Is it possible to detect automatically the language (by IP or by OS language) if are not present cookie?

10
My RSS doesn't work correctly if are present links in the news text, why?
http://www.webax.it/rss.php?action=images

11
Chit Chat / Re: In memory of manurom
« on: July 28, 2008, 12:06:05 AM »
My condolences to Manuel's family.

12
Chit Chat / Re: JavaScript + CSS = Nice Picture Display
« on: July 28, 2008, 12:02:55 AM »
There was an error in instructions of mine here http://www.4homepages.de/forum/index.php?topic=11115.msg95383#msg95383 but now are ok.

13
Chit Chat / Re: JavaScript + CSS = Nice Picture Display
« on: June 16, 2008, 01:22:52 AM »
Hallo zusammen

kann einer noch einmal zusammenfassen in welchen Dateien man Änderungen durchführen muss?
Würde die Lightbox 2 gerne für meine Homepage nutzen aber irgendwie verstehe ich ausser Alessions letzten Beitrag ziemlich wenig

Danke

You have to edit the functions.php file (read my previous message), then follow this instructions http://www.huddletogether.com/projects/lightbox2/ (Part 1 only)

14
... try this ...
- LIMIT 0, 60 ( limit must < or = for images in your category )
- rows : 5
- columns : 6

It's too complicated, can you tell me how to display photos in descending order by date?
Thanx

15
Mods & Plugins (Releases & Support) / Re: [MOD] TiltViewer for 4images
« on: April 24, 2008, 02:16:08 PM »
I don't know if there's something wrong in my tiltviewer.php but images are still loading twice.

In "best photos" category I have 66 images, settings for viewer.html are 5rows and 5columns.
I have already tryed to put in LIMIT this numbers: 0, 66 - 0, 25 - 0, 75 - 0, 150.

Pages: [1] 2 3 4 5