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

Pages: [1] 2
1
Does the hack work with vB3.61 too? Because I do not like to mess up my website if it does not work together.

2
Thanks a lot V@no!! :)

3
Hat sich erledigt :)

4
Mods & Plugins (Releases & Support) / Re: [MOD] Universal Paging Class v1.1
« on: September 30, 2006, 10:46:44 AM »
The hole webpage does not seem to work :/
Plz, can someone repost the required package?
thx:)

5
Mods & Plugins (Releases & Support) / Re: [Mod] Random image / Zufallsbild
« on: December 04, 2005, 06:10:34 PM »
Super!! :D Dankeschön :) Funktioniert jetzt alles 1A *ThumbsUp* :)

6
Mods & Plugins (Releases & Support) / Re: [Mod] Random image / Zufallsbild
« on: December 04, 2005, 05:25:13 PM »
Hm, irgendwiee abenteuerlich, dass ich das nicht auf die Reihe kriege :oops:

Hier meine aktuelle random.php, so wie sie jetzt gerade auf dem ftp-Server liegt:

Quote
<?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', './');

include(ROOT_PATH.'config.php');
include(ROOT_PATH.'includes/db_mysql.php');
include(ROOT_PATH.'includes/constants.php');
define('SCRIPT_URL', 'http://donrenato.funpic.de/wbblite/');

$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)) ? 1 : 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'] : SCRIPT_URL.THUMB_DIR."/".$cat_id."/".$row['image_thumb_file'];

print("
document.write('<a href=\"".SCRIPT_URL."details.php?image_id=$image_id\" target=\"_blank\"><img src=\"".$thumb_src."\" border=\"1\" alt=\"$image_name\"></a>');
");
?>

Grüße
WoD

7
Mods & Plugins (Releases & Support) / Re: [Mod] Random image / Zufallsbild
« on: December 04, 2005, 04:45:05 PM »
Hm, Bilder werden aber noch immer nicht angezeigt, jedenfalls nicht sichtbar *hm*

Klickt einfach mal den Link zur random.php an, da seht ihr sowas "halbes".


Grüße
WoD

8
Mods & Plugins (Releases & Support) / Re: [Mod] Random image / Zufallsbild
« on: December 04, 2005, 04:05:32 PM »
Gut, die Ordnerstruktur auf der Hauptseite meines FTP-Servers sieht wie folgt aus:

->wbblite
->4images

Die random.php habe ich im Ordner 4images.
Die portal.php liegt direkt im wbblite Ordner.

Meine random.php
Quote
<?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', 'http://donrenato.funpic.de/4images/');

include(ROOT_PATH.'config.php');
include(ROOT_PATH.'includes/db_mysql.php');
include(ROOT_PATH.'includes/constants.php');
define('SCRIPT_URL', 'http://donrenato.funpic.de/4images/');

$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)) ? 1 : 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'] : SCRIPT_URL.THUMB_DIR."/".$cat_id."/".$row['image_thumb_file'];

print("
document.write('<a href=\"".SCRIPT_URL."details.php?image_id=$image_id\" target=\"_blank\"><img src=\"".$thumb_src."\" border=\"1\" alt=\"$image_name\"></a>');
");
?>

Hier die Fehlermeldung bei direktem Aufruf der Datei im Browser:
http://donrenato.do.funpic.de/4images/random.php

9
Mods & Plugins (Releases & Support) / Re: [Mod] Random image / Zufallsbild
« on: December 04, 2005, 01:39:45 PM »
Hm, ich teste es nochmal mit einem anderen Browser...

Und ich muss in der random.php wirklich nur den Pfad zu 4images (ist 4images hier gleichbedeutend mit Galerie oder muss ich quasi nach /4iamges/data/... verlinken?) und zum Java Script verlinken?
Keine weiteren Änderungen vornehmen?

Grüße
WoD

10
@mawenzi

Ast rein, genau so hatte ich mir das vorgestellt *thumbsup* Dankeschön :)


btw -  es musste allerdings comments_all heißen und nicht umgekehrt ;)

11
Ja, der Link lässt sich ohne Probleme in die html-Files einbauen! :)


Ich möchte den Link aber gerne in ein php-File einbauen, etwa nach folgendem Vorbild:

Quote
<div align="center">
<center>
 <table border="0" cellpadding="0" cellspacing="0"  width="100">
 <tr>
  <td width="100%" align="center" height="20" background="templates\4waters\images\4button.gif" ><a style="text-decoration: none" href="http://*****.de/4images/">Galerie Hauptseite</a></td>
 </tr>

Dies sind die ersten paar Zeilen aus der php Datei, in die ich gerne den Link setzen würde.


Grüße
WoD

12
Mods & Plugins (Releases & Support) / Re: [Mod] Random image / Zufallsbild
« on: December 03, 2005, 10:21:13 PM »
Also: Ich verwende nun die von dir verwendete random.php, bekomme aber folgende Fehlermeldung beim direkten Aufruf der .php im Browser:

Quote
Fatal error: Cannot instantiate non-existent class: db in /usr/export/www/vhosts/funnetwork/hosting/donrenato/4images/random.php on line 35

Linie 35 entspricht:

Quote
$site_db = new Db($db_host, $db_user, $db_password, $db_name);

Muss ich da nun weitere Angaben zu meiner mySQL Datenbank machen oder wie?
Falls ja, was muss ich da ersetzen?

Grüße
WoD

13
Mods & Plugins (Releases & Support) / Re: [Mod] Random image / Zufallsbild
« on: December 03, 2005, 02:00:40 PM »
Das Portal Lite für das Woltlab Burning Board Lite

14
Also, wenn ich den Link zu Alle Kommentare in einer der oben 3 genannten .html Files einbaue, funktioniert alles super. Nur möchte ich den Link nicht in einer dieser html-Files, sondern in der .php meines verwendeten Styles im Hauptordner von 4images einbauen.
Die von euch genannten Tipps führen leider nur dazu, dass beim Anklicken des Links rein gar nichts passiert :|

Grüße
WoD

15
Mods & Plugins (Releases & Support) / Re: [Mod] Random image / Zufallsbild
« on: December 03, 2005, 12:57:02 PM »
a) Hm, wenn ich das so in die Portalbox schreibe, wird mir der Kalender(!?) angezeigt :|

b) Es ist bei der Angabe der URL in der random.php dorch richtig, dass vor dem http ein Punkt ist?

'.http://...

Pages: [1] 2