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 - Miranda

Pages: [1]
1
ich habe das gleiche Problem und wäre dankbar für eine Lösung  :)

2
Hallo,

bei mir laüft das Script einwandfrei. Jetzt möchte ich aber statt des Thumbnails das "große" Bild als Random-Image anzeigen lassen. Was muss ich im Script dafür ändern ?

Danke schonmal :)

LG,
Miranda

3
*schieb*  :lol:

kann mir wirklich niemand sagen wo in meinem Code der Fehler ist ? Ich habe inzwischen auch feststgestellt, dass zwar auch Unterkategorien angezeigt werden, aber die falschen. Ich habe eben noch ein Bild hochgeladen und darunter steht jetzt Portraits, dabei ist es Fantasy  :roll:

Ich bin für jede Hilfe dankbar  :)

LG,
Miranda

4
Hi,

ich möchte unter dem Random-Image außer dem Bild-Namen noch die Unterkategorie mit Link anzeigen lassen. Die Kategorie bekomme ich angezeigt, aber nicht die Unterkategorie. Hier ist das Ganze zu sehen: http://www.mirandus.de
Und so sieht mein Code aus:
Code: [Select]
<?php
/**************************************************************************
 *                                                                        *
 *    4images - A Web Based Image Gallery Management System               *
 *    ----------------------------------------------------------------    *
 *                                                                        *
 *             File: random.php                                           *
 *        Copyright: (C) 2002 Jan Sorgalla                                *
 *            Email: jan@4homepages.de                                    *
 *              Web: http://www.4homepages.de                             *
 *    Scriptversion: 1.0 for 4images 1.6.1                                *
 *                                                                        *
 *    Never released without support from: Nicky (http://www.nicky.net)   *
 *                                                                        *
 **************************************************************************
 *                                                                        *
 *    Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz-       *
 *    bedingungen (http://www.4homepages.de/4images/lizenz.php) für       *
 *    weitere Informationen.                                              *
 *    ---------------------------------------------------------------     *
 *    This script is NOT freeware! Please read the Copyright Notice       *
 *    (http://www.4homepages.de/4images/lizenz_e.php) for further         *
 *    information.                                                        *
 *                                                                        *
 *************************************************************************/

// PATH to your 4images Gallery / PFAD zu Ihrer 4images Gallerie
define('ROOT_PATH''./gallery/');

include(
ROOT_PATH.'config.php');
include(
ROOT_PATH.'includes/db_mysql.php');
include(
ROOT_PATH.'includes/constants.php');

$site_db = new Db($db_host$db_user$db_password$db_name);
function 
is_remote($file_name) {
  return (
preg_match('#^https?\\:\\/\\/[a-z0-9\-]+\.([a-z0-9\-]+\.)?[a-z]+#i'$file_name)) ? 0;
}

$sql "SELECT COUNT(*) as total_images
        FROM "
.IMAGES_TABLE." a, ".CATEGORIES_TABLE." b
        WHERE a.image_active=1
        AND a.cat_id = b.cat_id
        AND b.auth_viewcat="
.AUTH_ALL."
        AND b.auth_viewimage="
.AUTH_ALL."
        "
;
$row $site_db->query_firstrow($sql);
$total_images $row['total_images'];

mt_srand((double)microtime() * 1000000);
$number = ($total_images 1) ? mt_rand(0$total_images 1) : 0;

$sql "SELECT a.image_id, a.cat_id, a.image_name, a.image_active, a.image_thumb_file, a.image_comments, b.cat_name
        FROM "
.IMAGES_TABLE." a, ".CATEGORIES_TABLE." b
        order by image_id desc limit 1"
;
$row $site_db->query_firstrow($sql);
$image_id $row['image_id'];
$cat_id $row['cat_id'];
$cat_name $row['cat_name'];
$image_name $row['image_name'];
$image_comments $row['image_comments'];
$thumb_src = (is_remote($row['image_thumb_file'])) ? $row['image_thumb_file'] : ROOT_PATH.THUMB_DIR."/".$cat_id."/".$row['image_thumb_file'];

echo 
"<a href=\"".ROOT_PATH."details.php?image_id=$image_id\" target=\"_blank\"><img src=\"".$thumb_src."\"  alt=\"$image_name\"></a><br>~$image_name~<br>($cat_name)\n";

?>


Was muss ich da ändern ? Wäre klasse wenn mir da jemand helfen könnte :)

LG,
Miranda

5
Hi,

kann ich den Mod auch mit Version 1.72 verwenden ?

Danke,
Miranda

6
Mods & Plugins (Requests & Discussions) / Re: Email to admin (Req)
« on: February 13, 2006, 05:33:29 PM »
That`s it ! Thank you  :)

LG,
Miranda

7
Mods & Plugins (Requests & Discussions) / Email to admin (Req)
« on: February 12, 2006, 10:34:31 PM »
Hi,

I´m searching for a mod that send an email to admin when a new comment was posted. Can somebody help please ?
Sorry for my terrible english  :roll:

Best regards,
Miranda

9
Mods & Plugins (Releases & Support) / Re: [MOD] Shoutbox
« on: February 11, 2006, 06:28:09 PM »
Hi,

ich habe alles der Anleitung nach gemacht aber trotz Installation über das Admin Panel wurden die Tabellen nicht angelegt

DB Error: Bad SQL Query: SELECT * FROM gallery_shoutbox ORDER BY id DESC
Table 'mirandus_de.gallery_shoutbox' doesn't exist

Wie komme ich denn jetzt an die Tabellen ?

edit: hat sich erledigt, es lag am Pfad

Danke,
Miranda

10
Mods & Plugins (Releases & Support) / Re: [MOD] guestbook
« on: February 11, 2006, 05:20:28 PM »
Hi,

ich versuche auch gerade das Gästebuch einzubauen und mir fehlt die Datei "http://140.112.132.43/install_guestbook.zip"
Die Datei wurde auf dem Server nicht gefunden. Kann da evtl. jemand aushelfen ?

Danke,
Miranda

Pages: [1]