• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space

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