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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 249
  • Total: 249

[Block] SMF Gallery Random Picture

Started by Thurnok, December 01, 2006, 09:32:24 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Mannie


mrbean17


superQ

#52
hmm? I have 4 photos in the gallery. I just installed the latest update on my site right block= gallery upload


www.therockpile.org

config says this

// use random, or most recent pics?
// 0 = random, 1 = most recent, 2 = most viewed, 3 = most commented
$gal_showtype = 0;
// sort :: 0 = Descending, 1 = Ascending
$gal_sort = 0;

yet it doesnt change pics.


the one in the right block down a little =random pic from 12/27 works right

The top one is set for random pic right. I know you added stuff. Do I need to change something else?

thanks.   Do I have to put the ones I want random in a special category?

mrbean17

#53
The pictures do not randomly change ... seems I am stuck on the same 5 pictures.

I went back to an older version of your code (http://www.tinyportal.net/index.php?topic=15073.msg124980#msg124980) and it works fine.

Shadow

#54
I have 6 Category's in my Galley and I would like the code to show from all the Categorys I have not one. 

Any ideas?

Thurnok

Update 1.5.1
- FIX: Left out the random option when I added the other options - woops  ::)

Thurnok

@Shadow Queen
You can use as many or as little categories you like for the block.  If you leave the $gal_disallowCats and the $gal_allowCats variables empty (the default) then it will take random/recent/viewed/commented pics from all categories.

If you only want a single, or a couple categories to display, use the $gal_allowCats variable to identify those.  If you want all except a single or couple of categories to display then use the $gal_disallowCats to identify the ones not to display.

Thurnok

Update 1.5.2
- FIX: Couldn't display date unless member name was also displayed, can now display just the date option if desired

... can't believe no one mentioned this yet, probably in the code since first release..  :2funny:

Shadow


IchBin

No you don't have to find it in the code, he updated the first post. :)

This website is proudly hosted on Crocweb Cloud Website Hosting.