It is currently 19 Feb 2018, 19:27

GIMP/GL InterestsRandomly show 7 members' image attachments on (Showcase | Slideshow)

GIMP or GIMP LEARN Forum Interests
Post Reply
User avatar
tim

Administrator
View: Showcase | Slideshow
Topic Posts: 3/6
Posts: 2157
Joined: 26 Sep 2016, 00:16
Cash on hand: 7,894.01 GLP
Bank: 51,356.25 GLP
Gender: Guy
Location: Victoria, BC
Website: https://gimplearn.net
Operating System: Windows
GIMP Version: 2.8.22
My Personal Blog
My FineArtAmerica
x 1196
x 256
Contact:
Canada

Randomly show 7 members' image attachments on

Post#1 by tim » 09 Nov 2017, 17:32


top of index page
top of viewforum page
bottom of viewtopic page.

This is to feature 7 random members' image attachments.

This is to replace the old broken filmstrip (and it's faster than filmstrip).

Filmstrip used feature latest work.
This is now random so it features new and old work with equal probability so members work is never forgotten. :D

UPDATE: can't create a good formula for showing more liked items more often but still show less liked items sometimes from time to time so I asked this question here: https://stackoverflow.com/questions/472 ... with-a-ran

Each like will give the attachment an extra equal probability chance at showing up.
So an attachment that has 5 likes will likely show up 6 times as often as an attachment that has 0 likes(which shows up once) keeping all things being equal.
1 x



aka Tin
Image gimplearn.net                                              

Registered members enjoy ads-free content
User avatar
RJKD
Tutorial Creator
View: Showcase | Slideshow
Topic Posts: 1/6
Posts: 1351
Joined: 03 Oct 2016, 13:01
Cash on hand: 10,313.98 GLP
Bank: 0.00 GLP
Gender: Guy
Location: Sheffield UK
Operating System: Windows
GIMP Version: 2.8.20
x 1488
x 209
Contact:
Great Britain

Post#2 by RJKD » 10 Nov 2017, 11:50


Great idea T, I loved the previous film strip, not being one who cares a jot about loading speed, however this is a brilliant 'compromise, thankyou 😎
0 x




User avatar
Issabella
Script Tester
View: Showcase | Slideshow
Topic Posts: 1/6
Posts: 1962
Joined: 19 Jan 2017, 11:42
Cash on hand: 17,162.78 GLP
Gender: Gal
Operating System: Windows
x 231
x 505
Spain

Post#3 by Issabella » 10 Nov 2017, 13:10


Thank you Tin. Your ideas to improve this forum are brilliant! :idea:
0 x



Issabella

User avatar
Pat625
Script Tester
View: Showcase | Slideshow
Topic Posts: 1/6
Posts: 2227
Joined: 28 Sep 2016, 03:35
Cash on hand: 13,233.70 GLP
Gender: Gal
Location: USA
Operating System: Windows
GIMP Version: 2.8.22
x 8
x 468
United States of America

Post#4 by Pat625 » 10 Nov 2017, 15:23


Very nice, Tin!. You continually work to always improve. You have our gratitude and admiration.
0 x




User avatar
tim

Administrator
View: Showcase | Slideshow
Topic Posts: 3/6
Posts: 2157
Joined: 26 Sep 2016, 00:16
Cash on hand: 7,894.01 GLP
Bank: 51,356.25 GLP
Gender: Guy
Location: Victoria, BC
Website: https://gimplearn.net
Operating System: Windows
GIMP Version: 2.8.22
My Personal Blog
My FineArtAmerica
x 1196
x 256
Contact:
Canada

Post#5 by tim » 10 Nov 2017, 15:33


I am very glad that y'all like it.
0 x



aka Tin
Image gimplearn.net                                              

User avatar
tim

Administrator
View: Showcase | Slideshow
Topic Posts: 3/6
Posts: 2157
Joined: 26 Sep 2016, 00:16
Cash on hand: 7,894.01 GLP
Bank: 51,356.25 GLP
Gender: Guy
Location: Victoria, BC
Website: https://gimplearn.net
Operating System: Windows
GIMP Version: 2.8.22
My Personal Blog
My FineArtAmerica
x 1196
x 256
Contact:
Canada

Post#6 by tim » 14 Nov 2017, 18:53


Update: Previously the query would sometimes return multiple images of the same post if the post has multiple image attachments.
Now, I have updated the query to return different posts so that the 7 feature images are always from 7 different posts.
Because it's featuring, there's no reason why we should show multiple images from the same post, we want to feature different posts.
Which attachment out of a single post (that has multiple image attachments) it'll show would still be random.

I also added border-radius:5px to have rounded corners for featuring images.
1 x



aka Tin
Image gimplearn.net                                              

Post Reply

Last 20 Members Who Visited This Topic

User avatar leopardo-40 (1), User avatar Pat625 (4), User avatar gnerd (2), User avatar tim (26), User avatar RJKD (5), User avatar Conbagui (1), User avatar Issabella (2)

  • Similar Topics
    Replies
    Views
    Last post
• Featuring Members' Works (Image Attachments Only) •
1: gnerd
2: Issabella
3: oldmangrumpy
4: RJKD
5: oldmangrumpy
6: Pat625
7: Pat625

Who is online

Users browsing this forum: No registered users and 1 guest