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

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

0 Members and 2 Guests are viewing this topic.

Offline bigwave

  • Newbie
  • *
  • Posts: 35
  • stuck on the North Shore of Maui
    • View Profile
    • Maui Tropica
Re: [Mod] Random image / Zufallsbild
« Reply #480 on: December 31, 2007, 12:03:29 AM »
Hey Nicki, Thanks!

Its down to 2 errors from three and I think it will be happy soon!

http://hawaii-agriculture.com/hawaii-agriculture-blog/

Using :

<?php
 include("/public_html/maui-tropica/maui-tropica-gallery/random.php");
?>

I get just these errors:

Warning: include(/public_html/maui-tropica/maui-tropica-gallery/random.php) [function.include]: failed to open stream: No such file or directory in /home/bigwave/public_html/hawaii-agriculture/hawaii-agriculture-blog/wp-content/themes/k2/app/modules/php.php(7) : eval()'d code on line 2

Warning: include() [function.include]: Failed opening '/public_html/maui-tropica/maui-tropica-gallery/random.php' for inclusion (include_path='.:/usr/lib/php') in /home/bigwave/public_html/hawaii-agriculture/hawaii-agriculture-blog/wp-content/themes/k2/app/modules/php.php(7) : eval()'d code on line 2

With everything else I get a ton of errors

Thanks again!

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: [Mod] Random image / Zufallsbild
« Reply #481 on: December 31, 2007, 12:27:09 AM »
okay. i will look on that after 2nd of january... going to sleep now, and tomorrow i'm out of home...
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 thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [Mod] Random image / Zufallsbild
« Reply #482 on: December 31, 2007, 03:34:46 AM »
@bigwave:

If use this version for include random.php (with your projek) - is show error ? (See attach file).
« Last Edit: December 31, 2007, 03:53:01 AM by thunderstrike »
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline bigwave

  • Newbie
  • *
  • Posts: 35
  • stuck on the North Shore of Maui
    • View Profile
    • Maui Tropica
Re: [Mod] Random image / Zufallsbild
« Reply #483 on: December 31, 2007, 07:23:44 PM »
Hey Tunderstrike—thanks for jumping in!

Yes I get the same errors with your new random.php file.

I’m worried about my path in the word press include but don’t know what to do about it or if it is even an issue:

As suggested by Nicky
<?php
 include("/home/bigwave/public_html/maui-tropica/maui-tropica-gallery/random.php");
?>

gives me 13 errors

<?php
 include("/public_html/maui-tropica/maui-tropica-gallery/random.php");
?>

only gives me the 2 errors:
http://hawaii-agriculture.com/hawaii-agriculture-blog/

but my root path to phpinfo is:

/home/bigwave/public_html/maui-tropica/maui-tropica-gallery/admin/phpinfo.php

and the complete path is mentioned in the error messages:

Warning: include(/public_html/maui-tropica/maui-tropica-gallery/random.php) [function.include]: failed to open stream: No such file or directory in /home/bigwave/public_html/hawaii-agriculture/hawaii-agriculture-blog/wp-content/themes/k2/app/modules/php.php(7) : eval()'d code on line 2

Warning: include() [function.include]: Failed opening '/public_html/maui-tropica/maui-tropica-gallery/random.php' for inclusion (include_path='.:/usr/lib/php') in /home/bigwave/public_html/hawaii-agriculture/hawaii-agriculture-blog/wp-content/themes/k2/app/modules/php.php(7) : eval()'d code on line 2

php.php seems to be in the correct place

Anyway, thanks for the help and HAPPY NEW YEAR!

Brian

Offline rubberduck

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
    • Reptilienmanager.de
Re: [Mod] Random image / Zufallsbild
« Reply #484 on: January 22, 2008, 09:59:51 PM »
Hallo

Kann evtl. jemand mal seine unter 1.7.4 lauffähige random,php posten? Hab die ersten 20 Seiten gelesen aber nichts gefunden was hilft. Ich bekomme beim Aufruf der random.php nur "Comments" angezeigt, keine Bilder.

Wäre Nett wenn das jemand posten könnte.

Danke.

Gruß Micha
ReptilienManager.de - Die Online Reptilien Verwaltung
Neueinsteiger.eu - Das Portal für Terraristik Einsteiger
Terra-ROW.de - Der regionale Terraristik Stammtisch in Rotenburg

Offline nobby

  • 4images Guru
  • *******
  • Posts: 2.873
    • View Profile
Re: [Mod] Random image / Zufallsbild
« Reply #485 on: January 22, 2008, 10:13:32 PM »
Hallo,

hier ist die Random.php im Anhang.

Es ist das Original ohne Veränderungen, ich habe sie nie Benutzt.

nobby

Offline rubberduck

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
    • Reptilienmanager.de
Re: [Mod] Random image / Zufallsbild
« Reply #486 on: January 22, 2008, 10:18:51 PM »
Danke, aber leider das selbe Problem. Es wird kein Bild angezeigt. Vermute mal das es daran liegt:

Scriptversion: 1.0 for 4images 1.6.1

Bräuchte sowas was auch unter der 1.7.4 läuft.

Gruß Micha
ReptilienManager.de - Die Online Reptilien Verwaltung
Neueinsteiger.eu - Das Portal für Terraristik Einsteiger
Terra-ROW.de - Der regionale Terraristik Stammtisch in Rotenburg

Offline nobby

  • 4images Guru
  • *******
  • Posts: 2.873
    • View Profile
Re: [Mod] Random image / Zufallsbild
« Reply #487 on: January 22, 2008, 10:22:44 PM »
durch geschaut hast Du in diesem Thread schon?

nobby

Offline rubberduck

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
    • Reptilienmanager.de
Re: [Mod] Random image / Zufallsbild
« Reply #488 on: January 22, 2008, 10:29:48 PM »
Hab wie geschrieben 20 Seiten durch und nachdem ich alle Änderungen eingebaut und probiert habe sah das ganze mehr aus wie die Bewohner im Dschungel Camp als wie ein Script :) Aber wie gesagt, den Fehler hab ich nicht wegbekommen.

Gruß Micha
ReptilienManager.de - Die Online Reptilien Verwaltung
Neueinsteiger.eu - Das Portal für Terraristik Einsteiger
Terra-ROW.de - Der regionale Terraristik Stammtisch in Rotenburg

Offline nobby

  • 4images Guru
  • *******
  • Posts: 2.873
    • View Profile
Re: [Mod] Random image / Zufallsbild
« Reply #489 on: January 22, 2008, 10:39:36 PM »
Nee, ich habe auch mal auf der schnelle geschaut.

Keine Anpassung an 1.7.4  :|

Da ich kein PHP-Coder bin, musst Du ein bisschen warten bis @Nicky diese
Zeilen liest und Dir dann auch helfen kann.

nobby


edit

Ich hatte noch mal in http://www.4homepages.de/forum/index.php?board=17.0 geschaut, aber auch nichts


Hilfreich wäre auch noch mal eine genaue Fehlerbeschreibung!

edit ende


Offline rubberduck

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
    • Reptilienmanager.de
Re: [Mod] Random image / Zufallsbild
« Reply #490 on: January 22, 2008, 10:48:59 PM »
Hilfreich wäre auch noch mal eine genaue Fehlerbeschreibung!

Wie geschrieben, es wird nur das Wort "Comments" angezeigt, keine weitere Fehlermeldung.

ReptilienManager.de - Die Online Reptilien Verwaltung
Neueinsteiger.eu - Das Portal für Terraristik Einsteiger
Terra-ROW.de - Der regionale Terraristik Stammtisch in Rotenburg

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: [Mod] Random image / Zufallsbild
« Reply #491 on: January 24, 2008, 09:41:24 AM »
hi rubberduck,

eigentlich funktioniert das ganze auch unter 1.7.4.

zeige mir die url zur random.php
und wo hast es eingebunden
per
Code: [Select]
<?php
 
include("./random.php");
?>


und wie genau
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 rubberduck

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
    • Reptilienmanager.de
Re: [Mod] Random image / Zufallsbild
« Reply #492 on: January 24, 2008, 11:28:45 AM »
Ok, dann mal los :)

Die random.php (die aus dem .zip vom ersten Beitrag) liegt unter

Quote
http://www.reptilienmanager.de/gallery/random.php

Eingebunden ist es so:

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


Root_Path ist:

Code: [Select]
define('ROOT_PATH', '/var/www/vhosts/reptilienmanager.de/httpdocs/gallery/');
Testdatei unter:

Quote
http://www.reptilienmanager.de/test.php

ReptilienManager.de - Die Online Reptilien Verwaltung
Neueinsteiger.eu - Das Portal für Terraristik Einsteiger
Terra-ROW.de - Der regionale Terraristik Stammtisch in Rotenburg

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [Mod] Random image / Zufallsbild
« Reply #493 on: January 24, 2008, 11:36:52 AM »
@rubberduck
... Root_Path sollte sein ...
Code: [Select]
define('ROOT_PATH', './');
... SCRIPT_URL sollte sein ...
Code: [Select]
define('SCRIPT_URL', 'http://www.reptilienmanager.de/gallery/');
« Last Edit: January 24, 2008, 12:12:22 PM by mawenzi »
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 Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: [Mod] Random image / Zufallsbild
« Reply #494 on: January 24, 2008, 11:53:05 AM »
okay... fangen wir mal an...

so kann es nicht funkionieren ;)

1.) du verbietest in deiner gallery das man sich die bilder in details anschauen kann (AND c.auth_viewimage = '".AUTH_ALL."'), ausser man ist registrierter user.

also kategorien müssen auch so eingestellt sein das die Gäste die details bilder sehen können, sonnst sind die random bilder nicht "click"-bar bzw. es werden keine in der random.php angezeigt (wie in deinem fall gerade).

wenn du nur die bilder in der test.php/random.php zeigen willst ohne es anklicken zu können
mach folgendens
Code: [Select]
        AND c.auth_viewimage = '".AUTH_ALL."'
in beiden abfragen löschen.

und dies von
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";
auf
Code: [Select]
echo "<img src=\"".$thumb_src."\" border=\"0\" alt=\"$image_name\"><br>\n";
ändern.

du hast die qual der wahl ;)

2.) in der random.php root path so einstellen
Code: [Select]
define('ROOT_PATH', './');

3.) test.php so einstellen
Code: [Select]
<?php
include("./gallery/random.php");
?>

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