• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.

How does this site have it so clicking image goes to another image?

Polar said:
Care to elaborate?

Well, if you never coded before, you wont understand the following... and I won't code it for you... except if you are ready to pay $5

Create a function named randomImage
using scandir you can get an aray of all the files in images, remove the . .. .htaccess from the array.
use a the php functions to randomize an number between 0 and the array length.
return the value of the key

in a file random, call the function and output in html tags the image path.
 
Danny.Domb said:
Polar said:
Care to elaborate?

Well, if you never coded before, you wont understand the following... and I won't code it for you... except if you are ready to pay $5

Create a function named randomImage
using scandir you can get an aray of all the files in images, remove the . .. .htaccess from the array.
use a the php functions to randomize an number between 0 and the array length.
return the value of the key

in a file random, call the function and output in html tags the image path.

Script done for $7.50

Thank you for your purchase
 
Has been request from Jake Discovery + Improvement

(Url Shortener Database Powered )

Thank you for your 15$ purchase!
 
Back
Top