Author Topic: I made an IFRAME on my Main Index.htm Page, How do I get the Random Image to,...  (Read 7341 times)

0 Members and 1 Guest are viewing this topic.

Offline 1Newbie

  • Newbie
  • *
  • Posts: 27
    • View Profile
Help Please,....
I made an IFRAME on my Main Index.htm Page, How do I get the Random Image to display in that IFRAME?

Which page is it that presents that random image on the front page of the gallery?

TIA.
1Newbie.

Offline 1Newbie

  • Newbie
  • *
  • Posts: 27
    • View Profile
I've tried to follow these instructions located at:
http://www.4homepages.de/forum/index.php?topic=1020.0

But i just dont know enough about it and I dont know what needs to be edited in that txt file.  Plus i cant read that language and after 24 pages I found myself more confused at the end of it then ever.

1Newbie

Offline CeJay

  • Sr. Member
  • ****
  • Posts: 425
    • View Profile
All you need to change is the root path.


Not sure why you started 2 threads in same day about an hour apart. I suggest you delete the other one as it is not needed.

Offline 1Newbie

  • Newbie
  • *
  • Posts: 27
    • View Profile
All you need to change is the root path.

Not sure why you started 2 threads in same day about an hour apart. I suggest you delete the other one as it is not needed.

I've on started 2 threads today, both have different questions.  This has to do with IFRAME and which gallery path url do i use for the IFRAME page to get a random image.

What url page is it for the random image?

The other was dealing with the mod and random images,  If i can't get one to work I was going to go with the other.

Not sure what you meant by
Quote
All you need to change is the root path.

Are you refering to this thread, If so,...  I have my 4Images setup in my /gallery/ directory whats the name of the file that i can use as the url for my IFRAME.


If that
Quote
All you need to change is the root path.
is refering to the other question,... Please let me know where that change needs to take place at. Below is how i have it now.

Quote
// PATH to your 4images Gallery / PFAD zu Ihrer 4images Gallerie
define('ROOT_PATH', 'http://www.mydomainname.com/gallery/');

include(ROOT_PATH.'config.php');
include(ROOT_PATH.'includes/db_mysql.php');
include(ROOT_PATH.'includes/constants.php');

$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;
}

I've done that, uploaded the random.php file to my gallery directory and I an error on line 34 or maybe 37 or 39.  Dont remember and right now for some reason, Right before i needed to only upload 1 file to my server for the night so that i can got to bed, My server decides to stop working for some reason, I was just closing out the windows and refreshed this one to see if anyone had some helpful suggestions.

Please,... Where does the random.php file get edited at?

1Newbie

Offline 1Newbie

  • Newbie
  • *
  • Posts: 27
    • View Profile
This is the error i get.

Quote
Security violationSecurity violation
Fatal error: Cannot instantiate non-existent class: db in /home/1NEWBIE/public_html/gallery/random.php on line 34

Anyone??

TIA
1NEWBIE.

Offline Acidgod

  • Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
chance
define('ROOT_PATH', 'http://www.mydomainname.com/gallery/');

To
define('ROOT_PATH', './gallery/');

And 1 thread is enough ....

*closed*