TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

June 25, 2024, 07:45:42 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,280
  • Total Topics: 21,227
  • Online today: 190
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 177
  • Total: 177

[Block] Random Image Rotator [PHP]

Started by akulion, May 03, 2006, 02:09:08 AM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

akulion

no just the one line in the 1st post

this one:


<img src="http://www.mysite.com/myfolder/rotate.php" alt="A Random Image" />



be sure to change the address in there for your site ok

nosgr

OK, thanks it works wonderfully ;)

akulion


Polymath

nosgr, I made a folder called 'rotate' uploaded to that rotate.php and the images.

In the html block put


<img src="http://www.yoursite.com/rotate/rotate.php" alt=" Random Image" />


Ronlx2

Wanted to say thanks it works great.

than

Hi,

I’m using this block, and works perfect, but i have a "problem" with this. I use this to show a gallery random image, but the gallery folder contains thumbs too. I need a modification that allows me to exclude images with characters *thumb* in name field.

Please help me

Techdomain

maybe easiest way is to seperate them?

than

SMF Gallery Lite, does not support different locations for thumbs and images.

Techdomain

Yes.. but what I am saying is that it might be easiest for a small gallery to make a seperate folder, and copy the files you want rotated into that, and run rotate.php from it. If your gallery is huge, with hundreds of files added daily, then you might have to think of another solution aka coppermine or a custom one.

than

I donÂÃ,´t know php, but sure is really easy and only require a few lines of code for make an text exclusion.