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

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

0 Members and 2 Guests are viewing this topic.

Offline joombler

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: [Mod] Random image / Zufallsbild
« Reply #405 on: June 10, 2007, 03:33:19 PM »
gerne, gerne..
ist ja selbstveständlich..

Nicky,
Ich habe schon etwat Bilder und Filmchen online. Konnen sie mir erzählen wie ich statt 'no thumbnail' der Icone von zB wmv.gif (icon Directory) dafür im Bild bekomme?

danke,
Jos

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: [Mod] Random image / Zufallsbild
« Reply #406 on: June 11, 2007, 11:20:57 PM »
hey Jos,
try in english. because german translation have no sense for your question ;)
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 schnubbie

  • Pre-Newbie
  • Posts: 6
    • View Profile
Re: [Mod] Random image / Zufallsbild
« Reply #407 on: June 25, 2007, 03:06:16 PM »
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

Offline seanie morris

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: [Mod] Random image / Zufallsbild
« Reply #408 on: July 06, 2007, 07:34:13 PM »
Hi guys,

I've been a browser of this forum for weeks now, but this happens to be my first post! Trust a newbie to put it into a not-so-help forum first! ;)

I have downloaded Nicky's text file (many thanks for making the MOD). But, the problem is trying to get it installed. The 'index' file I wish to get it on is here (it is just a test page for now):

http://www.tullamorelife.net/index2.html

I uploaded the 'random.php' file (from Nicky's text file) to the default directory, but I cannot make it work. In the file, doesn't it ask to designate the ROOT_PATH's? I've tried combinations but no luck.

Can anyone please steer me towards the right direction?

 :?:

Seanie.

manurom

  • Guest
Re: [Mod] Random image / Zufallsbild
« Reply #409 on: July 06, 2007, 08:03:11 PM »
Hello, seanie, and welcome.
You put this, in your HTML code:
Code: [Select]
<?php
 
include("/random.php");
?>
as if your gallery is in the same directory than index2.html. >>:?:
The random.php file has to be at the root of your gallery.
You should then put this:
Code: [Select]
<?php
 
include("http://www.path/to/your/gallery/random.php");
?>

In an HTML page, prefer to use the IFRAME tags:
Code: [Select]
<IFRAME src="http://www.path/to/your/gallery/random.php" width=200 height=200 scrolling=no frameborder=0 > </IFRAME>
« Last Edit: July 07, 2007, 11:16:40 AM by manurom »

Offline seanie morris

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: [Mod] Random image / Zufallsbild
« Reply #410 on: July 07, 2007, 04:50:30 PM »
Hello, seanie, and welcome.

Thanks for the welcome manurom!

In an HTML page, prefer to use the IFRAME tags:
Code: [Select]
<IFRAME src="http://www.path/to/your/gallery/random.php" width=200 height=200 scrolling=no frameborder=0 > </IFRAME>

I am not having any success with this. the index2.html file is there to view still. What I have done is tried placing random.php in different folders on the server, and ammending the path accordingly each time in the document (and thus alsoupploading it too). On the server, all the 4Images content is in a "4images" folder or directory. I believe the gallery is in the "data" folder, and in there is a "thumbnails" folder (amongst others). So, unless I am doing something wrong, the lines of code in 'index2.html' should appear as:

Code: [Select]
<td valign="top"><p align="center" style="font-weight: bold; color: #990000; font-size: 12px">TL&amp;C News!</p>
                  <p>Site updates and news go here.  </p>
                  <p><IFRAME src="http://www.tullamorelife.net/4images/data/thumbnails/random.php" width=200 height=200 scrolling=no frameborder=0></IFRAME></p></td>
              </tr>
            </table></td>

As I said, I have tried placing "random.php" into different folders, but since your iFrames suggestion as well, I STILL can't get it to work!

 :(

manurom

  • Guest
Re: [Mod] Random image / Zufallsbild
« Reply #411 on: July 07, 2007, 06:49:07 PM »
Hello again;
I use to put the "random.php" file at the root of my gallery.
So it should be, for you, assuming you put this file at there: http://www.tullamorelife.net/4images/random.php:
Code: [Select]
<td valign="top"><p align="center" style="font-weight: bold; color: #990000; font-size: 12px">TL&amp;C News!</p>
                  <p>Site updates and news go here.  </p>
                  <p><IFRAME src="http://www.tullamorelife.net/4images/random.php" width=200 height=200 scrolling=no frameborder=0></IFRAME></p></td>
              </tr>
            </table></td>

I also use to set the ROOT PATH in random.php as above:
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''./'); //because it is at the root of the gallery

In  PHP environment I link to it like there:
Code: [Select]
<?php
 
include("http://path/to/my/gallery/random.php");
?>

and I use IFRAMES in HTML sites.

And it always work fine for me.

Offline seanie morris

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: [Mod] Random image / Zufallsbild
« Reply #412 on: July 08, 2007, 05:18:00 PM »
Manurom et all,
your help has worked, I can now get a random thumbnail to display. However, I need some further tips if anyone can guide me.

I have implemented the iFrame. However, as the thumbnail acts as a link to the larger picture, how do I change the link target path, either to go to e.g. the Gallery introduction page of my site, or even to the 4Images Gallery directly? I also wish to change the font type which appears as the caption under the thumbnail (it is currently defaulting to Times New Roman, size 12, which is not on my site).

I am sorry to pester you with such trivial problems, but I have not dabbled in iFrames before (just good old html so far for me!). Thanks for the help (and a great tool that is 4Images) so far.

Seanie.

manurom

  • Guest
Re: [Mod] Random image / Zufallsbild
« Reply #413 on: July 09, 2007, 01:53:13 AM »
Well, seanie morris;
try this:
  • edit the file random.php and find:
Code: [Select]
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";
?>

and if you need to have a verdana font (I can't figure what font you use), change these last lines to:
Code: [Select]
echo "<a href=\"".ROOT_PATH."details.php?image_id=$image_id\" target=\"_blank\"><img src=\"".$thumb_src."\" border=\"0\" alt=\"$image_name\"></a><br>\n";
echo "<b><font face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"-1\">$image_name</font></b><br>\n";
echo "<font face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"-1\">Comments: $image_comments</font><br>\n";
?>

manurom

  • Guest
Re: [Mod] Random image / Zufallsbild
« Reply #414 on: July 09, 2007, 03:57:17 PM »
 :oops: What a fool I am!
how do I change the link target path, either to go to e.g. the Gallery introduction page of my site, or even to the 4Images Gallery directly?

To change the target path, if you desire visitors to go to your gallery homepage, please search this line in the file "random.php":
Code: [Select]
echo "<a href=\"".ROOT_PATH."details.php?image_id=$image_id\"><img src=\"".$thumb_src."\" border=\"0\" alt=\"$image_name\"></a><br>\n";and change it to:
Code: [Select]
echo "<a href=\"".ROOT_PATH."index.php\"><img src=\"".$thumb_src."\" border=\"0\" alt=\"$image_name\"></a><br>\n";
Sorry again, I have forgotten this part of your question.

Offline seanie morris

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: [Mod] Random image / Zufallsbild
« Reply #415 on: July 10, 2007, 01:16:23 AM »
Manurom,
your help has been invaluable, thanks for the tips - they have all helped. I have learned a few more tricks thanks to you. If I could repay the favours, I would. Thanks again!

Seanie.

P.S. I am tweaking some of the templates in 4Images at the moment, but the rest of the site is now up and running -> www.tullamorelife.net.

 :)

Offline SilverNavigator

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: [Mod] Random image / Zufallsbild
« Reply #416 on: July 26, 2007, 09:27:23 PM »
Hallo,

ich habe ein Problem.

Und zwar erscheint bei dem Internet Explorer ein weißer Hintergrund, beim Firefox allerdings nicht.

Siehe www.promillepics.de oben rechts.



Was muss geändert werden ?

Offline ashfaq

  • Full Member
  • ***
  • Posts: 128
    • View Profile
Re: [Mod] Random image / Zufallsbild
« Reply #417 on: July 29, 2007, 03:46:19 AM »
Nicky dear thank for this mod, would you plz like to tell me how to control thumb size and number of thumbs to show in my other site, Assume my gallery thumb size is 130pixel and i wanna show random.php thumb in 150 pixel in other site.

Offline Jan-Lukas

  • Addicted member
  • ******
  • Posts: 1.289
    • View Profile
    • Discover the New World of Kindersurprise
Re: [Mod] Random image / Zufallsbild
« Reply #418 on: July 29, 2007, 11:39:00 AM »
Hallo,

ich habe ein Problem.

Und zwar erscheint bei dem Internet Explorer ein weißer Hintergrund, beim Firefox allerdings nicht.

Siehe www.promillepics.de oben rechts.



Was muss geändert werden ?

Du kannst in der random.php gleich den Hintergrund angeben, den deine Seite auch hat

z.B. immer vor dem <?php

<body bgcolor="425d9b">
<?php

Ich stelle anderen Seiten meine Box zur Verfügung, und so kann ich jede Seite individuell anpassen.
dann bekommt jede Random einen anderen Namen
Danke Harald




computer123

  • Guest
Re: [Mod] Random image / Zufallsbild
« Reply #419 on: August 07, 2007, 11:10:42 PM »
Hallo,

How can I add my additional field to the Thumb of Random Image?


PS: I could add the additional field to the normal thumb and Mini top thumb but not under the thumb of Random Image.

Thank you for any help