• [Mod] Random image / Zufallsbild 5 0 5 1
Currently:  

Author Topic: [Mod] Random image / Zufallsbild  (Read 893406 times)

0 Members and 1 Guest are viewing this topic.

Offline dabri

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
    • http://www.12geschworene.de
Re: [Mod] Random image / Zufallsbild
« Reply #15 on: July 23, 2002, 09:51:24 AM »
Ist es möglich das Random Image auf einer CGI-Seite (Gäastebuch) anzuzeigen.

Kann ich da den Include Befehl verwenden oder gibt es da eine andere Lösung?

Gruss Daniel

Offline timblount

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: [Mod] Random image / Zufallsbild
« Reply #16 on: July 23, 2002, 05:05:13 PM »
Thanks I must have put those in in Dreamweaver somewhere along the line.   :wink:

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Re: [Mod] Random image / Zufallsbild
« Reply #17 on: July 24, 2002, 07:54:37 AM »
@dabri: Nein, geht leider nicht.

Gruß Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline miro912

  • Pre-Newbie
  • Posts: 6
    • View Profile
    • http://www.mycatsonline.de
Re: [Mod] Random image / Zufallsbild
« Reply #18 on: July 25, 2002, 06:14:07 PM »
@Jan
ich musste damit ich das Zufallsbild in mein PHPKIT incuden kann, Deinen Code etwas modifiziren, da sich PHPKIT beim includen "fremder" Seiten als sehr zickig erweist. Verstosse ich damit gegen die Lizensbestimmungen oder geht das OK (ich frage aus schlechter Erfahrung herraus). Zu sehen ist ganze auf http://www.mycatsonline.de.

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Re: [Mod] Random image / Zufallsbild
« Reply #19 on: July 25, 2002, 06:54:08 PM »
Alles ok. Ausschnitt aus den Lizenzbestimmungen:

Quote
Der Nutzer von 4images kann auf eigenes Risiko die Software verändern und/oder auf seine Bedürfnisse anpassen.


Gruß Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline miro912

  • Pre-Newbie
  • Posts: 6
    • View Profile
    • http://www.mycatsonline.de
Re: [Mod] Random image / Zufallsbild
« Reply #20 on: July 25, 2002, 07:03:01 PM »
@Jan
Danke für die schnelle Antwort  :D

Offline Marquis2000

  • Full Member
  • ***
  • Posts: 103
    • View Profile
Re: [Mod] Random image / Zufallsbild
« Reply #21 on: July 27, 2002, 05:24:50 PM »
Leider geht bei mir der iclude Befehl nicht aber wenn ich die random.php aufrufe funktioniert diese wunderbar. Wenn ich nun den <?php
include("./random.php");
?>  Befehl anwende zeigt er mir auf der jeweiligen Seite nichts an das hab ich schon probiert wenn ich die random.php Datei in den selben Ordner lege oder im Hauptordner nie zeigt er was an:

Also meine komplette Seite liegt zB. im Ordner test/ und die datei random.php im Hauptordner also eine Ebene tiefer dann muesste doch der Pfad so <?php
include("../random.php");
?> aussehen geht aber nicht

Die datei random.php im selben ordner muesste der Pfad so <?php
include("random.php");
?> aussehen geht aber auch nicht WIESO nur ??? Danke an Euch

Offline Marquis2000

  • Full Member
  • ***
  • Posts: 103
    • View Profile
Re: [Mod] Random image / Zufallsbild
« Reply #22 on: July 27, 2002, 05:42:24 PM »
hat sich erledigt geht ja nur in php seiten ;) :oops:

Offline Harry

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • http://7summits.com
Re: [Mod] Random image / Zufallsbild
« Reply #23 on: July 30, 2002, 12:02:16 PM »
Hi Nicky & Jan,

I was wondering if there is a possibility to call for x number of random images. It will not work if I just copy the random.php file multiple times

"Cannot redeclare class db in /images/includes/db_mysql.php on line 25"

and

"Cannot redeclare" errors when I copy random.pho and past as random2.php and comment out the includes in random2.php.

Can you help? Would like to display 3 or 4 images from a certain category.

Thanks in advance,
best regards,

Harry
Trips & Expeditions to the 7 summits: the highest mountains on the seven continents. Kilimanjaro, Aconcagua and more!
Check out http://7summits.com

Offline bovkun

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: [Mod] Random image / Zufallsbild
« Reply #24 on: August 01, 2002, 01:13:11 PM »
Help, please!
How I can include this mod into main page of phpBB? I mean without <IFRAME> (http://prostor.com.ua/forum).

This mod don't work in .TPL (index_body.tpl) :cry:  
Sorry, but I know PHP very good...

How can I resolve this problem?

Thanks!

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: [Mod] Random image / Zufallsbild
« Reply #25 on: August 01, 2002, 09:37:37 PM »
@bovkun,

i saw that you did it ;)
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: [Mod] Random image / Zufallsbild
« Reply #26 on: August 01, 2002, 10:19:59 PM »
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline bovkun

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: [Mod] Random image / Zufallsbild
« Reply #27 on: August 02, 2002, 11:11:41 AM »
Quote from: Nicky
@bovkun,

i saw that you did it ;)


No. It made with IFRAME, but I don't like it.
How do it without IFRAME?

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: [Mod] Random image / Zufallsbild
« Reply #28 on: August 02, 2002, 11:23:46 AM »
try to put the code anywhere into the phpbb index.php
let me know if this will help..
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline Harry

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • http://7summits.com
Re: [Mod] Random image / Zufallsbild
« Reply #29 on: August 02, 2002, 03:36:19 PM »
Quote from: Nicky
@Harry,

here is it:
http://www.nicky.net/4images/random_more_pics.txt

for certain category add this: http://www.4homepages.de/forum/viewtopic.php?p=4360#4360

Not exactly, but I like it  :wink:

This works for most of my pages, I like that there is little chance of double images.

But on some of my pages I would like to choose from 2 different categories.
If I include like this:
Code: [Select]
<?php include("random_cat1.php"?>
<?php include("random_cat2.php"?>
<?php include("random_cat1.php"?>
<?php include("random_cat2.php"?>
<?php include("random_cat1.php"?>

It works, but chances are high I get double images.

Can I also let the random-more-pics.php file choose from more than one category?

Thanks for your help,
best regards,

Harry
« Last Edit: September 26, 2006, 11:29:19 PM by Nicky »
Trips & Expeditions to the 7 summits: the highest mountains on the seven continents. Kilimanjaro, Aconcagua and more!
Check out http://7summits.com