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

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

0 Members and 3 Guests are viewing this topic.

Offline Sun

  • Jr. Member
  • **
  • Posts: 96
    • View Profile
Re: [Mod] Random image / Zufallsbild
« Reply #630 on: March 10, 2010, 01:32:21 PM »
... for random images on your own index.php trying better this ...

Mawenzi, i use index.html, but not index.php. My index.html is not in the folder with gallery. I can't undestand how you link can help me (especially, i can't undestand how i can use {random_images} in my index.html)?

Tatyana.
I use 4images v.1.7.6
You can answer me in English and Russian languages.
Sorry, my English is not very good.

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [Mod] Random image / Zufallsbild
« Reply #631 on: March 10, 2010, 02:33:55 PM »
@ Sun ...

... ok, my fault ... I suggested it because I thought it was your index.php ... sorry ...
... why you use a java script for inserting ...
... and why you don't use the following in your html-file (if both files are on the same server) ...

Code: [Select]
<?php
 
include("./random.php");
?>

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

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline Sun

  • Jr. Member
  • **
  • Posts: 96
    • View Profile
Re: [Mod] Random image / Zufallsbild
« Reply #632 on: March 10, 2010, 03:34:23 PM »
I am not coder and i don't know what code is better for use  :oops:
But i try this php code before i try java and there is no any picture too.
Tatyana.
I use 4images v.1.7.6
You can answer me in English and Russian languages.
Sorry, my English is not very good.

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [Mod] Random image / Zufallsbild
« Reply #633 on: March 10, 2010, 03:51:45 PM »
@ Sun ...

... and for php including you use the right path ... from your index.html to your random.php ...  ? ...
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 ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline Sun

  • Jr. Member
  • **
  • Posts: 96
    • View Profile
Re: [Mod] Random image / Zufallsbild
« Reply #634 on: March 10, 2010, 04:31:49 PM »
I think that i have error becouse i have wrong path, but i don't know how to write right path. I try different combination, but nothing didn't help.
How will be look right path if i have my files here:
http://www.mydomain.ru/index.html
http://www.mydomain.ru/gallery/random.php  ?

Tatyana.
I use 4images v.1.7.6
You can answer me in English and Russian languages.
Sorry, my English is not very good.

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [Mod] Random image / Zufallsbild
« Reply #635 on: March 10, 2010, 05:01:27 PM »
@ Sun ...

... here some informations for including php-files in templates : http://www.4homepages.de/forum/index.php?topic=4295.0
... in includes/constants.php use this ...
Code: [Select]
// Allow execution of PHP code in templates
define('EXEC_PHP_CODE', 1);

... and in your index.html use this ...
Code: [Select]
<?php
 
include("./gallery/random.php");
?>

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

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline Sun

  • Jr. Member
  • **
  • Posts: 96
    • View Profile
Re: [Mod] Random image / Zufallsbild
« Reply #636 on: March 10, 2010, 06:21:18 PM »
My constants.php is already had this change and this changes in index.html didn't work.

But i found that this code is work:
Code: [Select]
<iframe src="/gallery/random.php" width="150" height="450" scrolling="no" frameborder="0"></iframe>
May it work whithout <iframe>?

 
Tatyana.
I use 4images v.1.7.6
You can answer me in English and Russian languages.
Sorry, my English is not very good.

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.805
  • I ♥ 4I
    • View Profile
Re: [Mod] Random image / Zufallsbild
« Reply #637 on: July 07, 2010, 06:16:44 PM »
Bei mir wird irgendwie kein Thumbnail angezeigt
Der Code der ausgegeben wird sieht so aus:
Code: [Select]
<div class="widget widget_archive">
<h3>Zufalls Sub</h3>
<a href="./wp-gallerie/details.php?image_id=6"><img src="./wp-gallerie/data/thumbnails/6/" alt="454545" border="0"></a><br>
<b>454545</b><br>
Comments: 0<br>
</div>

Offline Jan-Lukas

  • Addicted member
  • ******
  • Posts: 1.289
    • View Profile
    • Discover the New World of Kindersurprise
Re: [Mod] Random image / Zufallsbild
« Reply #638 on: July 07, 2010, 07:22:43 PM »
schon versucht wenn du die komplette Url eingibst ?

LG
Danke Harald




Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.805
  • I ♥ 4I
    • View Profile
Re: [Mod] Random image / Zufallsbild
« Reply #639 on: July 08, 2010, 11:04:10 AM »
Wenn ich das mache, bekomme ich folgende Meldung:
Code: [Select]
Security violationSecurity violation
Fatal error: Class 'Db' not found in /www/htdocs/w00b2576/gn/ex-random-images.php on line 34

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.805
  • I ♥ 4I
    • View Profile
Re: [Mod] Random image / Zufallsbild
« Reply #640 on: July 16, 2010, 10:49:14 PM »
Weis da niemand was?
Ich hab es versucht mit der kompletten URL!
Und wenn ich nicht die komplette URL verwende, dann wird das Bild nicht angezeigt!

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: [Mod] Random image / Zufallsbild
« Reply #641 on: July 20, 2010, 12:13:52 AM »
hi Benny,

irgendwo auf diesen 43  :mrgreen: seiten ist ein javascript code welchen du beliebig auf anderen seiten (nicht 4images) einbauen kannst...
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 Sunny C.

  • Addicted member
  • ******
  • Posts: 1.805
  • I ♥ 4I
    • View Profile
Re: [Mod] Random image / Zufallsbild
« Reply #642 on: July 20, 2010, 05:38:07 PM »
Meinst du etwa das?
Code: [Select]
document. write('<a href=\"". SCRIPT_URL. "details. php?image_id=$image_id\" target=\"_blank\"><img src=\"". $full_src. "\" border=\"1\" alt=\"$image_name\"></a>');
oder das?
Code: [Select]
<SCRIPT language='JavaScript'  src='http://gallery.rammstein-europe.com/random.php?1'></SCRIPT>
<SCRIPT language='JavaScript'  src='http://gallery.rammstein-europe.com/random.php?2'></SCRIPT>
<SCRIPT language='JavaScript'  src='http://gallery.rammstein-europe.com/random.php?3'></SCRIPT>

bzw. das?
http://www.4homepages.de/forum/index.php?topic=1020.msg126326#msg126326

Warum geht es mit dem normalen Code nicht? Und warum editierst du deinen #1 Post nicht und verlinkst dort hin? Das ist echt doof wenn man sich durch paar Seiten lesen muss weil IRGENDWO Lösungen stehen. Darum wollte ich eine Art DB erstellen wo alle Mods zu finden sind, in denen auch die Fehler und Lösungen gefixt und eingebaut wurden. Aber direkt waren alle dagegen!?

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: [Mod] Random image / Zufallsbild
« Reply #643 on: July 22, 2010, 03:43:15 PM »
Meinst du etwa das?
Code: [Select]
document. write('<a href=\"". SCRIPT_URL. "details. php?image_id=$image_id\" target=\"_blank\"><img src=\"". $full_src. "\" border=\"1\" alt=\"$image_name\"></a>');
oder das?
Code: [Select]
<SCRIPT language='JavaScript'  src='http://gallery.rammstein-europe.com/random.php?1'></SCRIPT>
<SCRIPT language='JavaScript'  src='http://gallery.rammstein-europe.com/random.php?2'></SCRIPT>
<SCRIPT language='JavaScript'  src='http://gallery.rammstein-europe.com/random.php?3'></SCRIPT>

bzw. das?
http://www.4homepages.de/forum/index.php?topic=1020.msg126326#msg126326

Warum geht es mit dem normalen Code nicht? Und warum editierst du deinen #1 Post nicht und verlinkst dort hin? Das ist echt doof wenn man sich durch paar Seiten lesen muss weil IRGENDWO Lösungen stehen. Darum wollte ich eine Art DB erstellen wo alle Mods zu finden sind, in denen auch die Fehler und Lösungen gefixt und eingebaut wurden. Aber direkt waren alle dagegen!?


warum es nicht geht... ka. hab wordpress nicht installiert..

ich würde dies nehmen..
http://www.4homepages.de/forum/index.php?topic=1020.msg126303#msg126303

oder halt dies http://www.4homepages.de/forum/index.php?topic=1020.msg126326#msg126326
für grosse bilder..

zu deinen äusserungen werde ich kein kommentar abgeben, sonnst würde ich ein roman schreiben... und mir ist zu heiss ;)

ersten post editiere ich gleich..

LG
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 Sunny C.

  • Addicted member
  • ******
  • Posts: 1.805
  • I ♥ 4I
    • View Profile
Re: [Mod] Random image / Zufallsbild
« Reply #644 on: July 22, 2010, 08:16:30 PM »
Kalte Dusche und dann sollte es doch klappen mit dem Antworten :D
ben88b@googlemail.com :P

B2t:
Danke dir!