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

Pages: [1]
1
I´m @ work. So give me 10 min.
Cannot say to my boss I stop my work because I work on my private album.  :mrgreen:

2
Do not excuse you. So I learned  :D It works. WOW! Thank you so much!

3
 :mrgreen:

now I have large coincidence picture on the starting side. That was not which I wanted. http://www.pbmatrix.de/pb/random.php here should come a large picture. in random.php is the code which is you can see above.

In principle I would like to have spent a large picture on an empty php side. is that possible?

Grüße
Markus

4
Mods & Plugins (Requests & Discussions) / Random Pic as full Picture
« on: July 02, 2007, 04:56:35 PM »
Hi..

D:bin auf der Suche nach einem Zufalls Vollbild. Die Code wirft ein Thumb aus... Meine SQL Kenntnisse reichen nicht um das umzuschreiben.
E:(google translator) are on the search for coincidence a frame. The code throws a Thumb out… My SQL of knowledge is not enough to rewrite around.
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''../album/');
define('YOUR_URL''http://www.pbmatrix.de/album/');

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 
        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.
        LIMIT 
$number, 1";
$row $site_db->query_firstrow($sql);
$image_id $row['image_id'];
$cat_id $row['cat_id'];
$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\"><img src=\"".$thumb_src."\" border=\"0\" alt=\"$image_name\"></a><br>\n";
echo 
"<b>$image_name</b><br>\n";
echo 
"Comments: $image_comments<br>\n";
?>

D:Hat von euch jemand eine ahnung wie das geht? Wäre nett wenn sicher einer meldet.
Danke schonmal
E:how can that be done? Thanks already times
Markus

5
Frage:
Quote
1.
open / öffne
global.php (not / nicht admin/global.php)

global.php in 4images oder global.php in Vbulletin?

ich finde in beiden nichts

6
Hi@all

ich würde gerne statt Thumbnails 1 großes Bild anzeigen lassen. Ich habe die Frage schonmal in diesem Thread gelesen, aber noch keine Antowrt gefunden ( überlesen?)
Das ist sicher was ganz einfaches für euch  :)

From Google Translator:
I would let 1 large picture indicate gladly instead of Thumbnails. I read the question already  in this Thread, but found still no answer (overlooked?) That is reliably which completely simple for you

Pages: [1]