Author Topic: Random image Link  (Read 4257 times)

0 Members and 1 Guest are viewing this topic.

Offline FunnyUser

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
Random image Link
« on: November 20, 2007, 08:44:14 PM »
Hey,
I've been searching for a long time for a MOD or a code to show a "RANDOM IMAGE LINK".

I just want a link like this "Random Image"....
It could be something like this: http://www.doman.com/random_link.php. So the script has to take a random image to show.

You can see an example here: "http://www.spielstdu.de/?random=ok"
The script uses a random game by clicking on this link.

It works by using this link "{image_url}" - but the script doesn't change the link everytime and you can't use it as an extern link.


Thanks for your help!
Finn

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Random image Link
« Reply #1 on: November 21, 2007, 02:04:26 AM »
1 - Is in 4images ... includes/constants.php file - search:

Code: [Select]
define('SHOW_RANDOM_CAT_IMAGE', 0);

Is categories random image ... (if set 1 and no 0). ;)

2 - If no like - MOD from nicky for random image: http://www.4homepages.de/forum/index.php?topic=1020.0
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 FunnyUser

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
Re: Random image Link
« Reply #2 on: November 21, 2007, 07:36:25 AM »
Okay, thanks. But this is the old way showing a random_image.

I want somthing like that:
Code: [Select]
<a href="http://www.myDomain.com/random_image.php" target="_blank">Click here to see a random image</a>
So there has to be no thumbnail, imagename or commentcount.

Just a link, which shows by clicking a random image from the database.


Sry for my bad englisch!
F

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Random image Link
« Reply #3 on: November 21, 2007, 01:12:16 PM »
Mod exist but I no can find in search ... some week, is publish ...
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 ?