Mosaic And Stained Glass
September 07, 2010, 09:52:35 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to MaSGo. Ad free and member supported since Jan 2008. Thanks everyone!
 
  Home   Forum   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: [Feature Upgrade] Home Page  (Read 235 times)
0 Members and 1 Guest are viewing this topic.
Carl
The Wizard
Administrator
Eloquent
*
Online Online

Posts: 3520


Ignore the man behind the curtain


WWW
« on: January 20, 2010, 11:16:18 pm »

Ok, due to popular demand, and my own requirement to make things work better bigsmile

I've fixed the Home Page image.

The old one simply captured a list of the files in the gallery directory, randomized it, parsed out the owner, retrieved the owner info from the database and presented the page with a link to the person.

The new one retrieves the number of total images in the gallery from the database, randomizes that, retrieves the file name, owner, and picture id, then builds the page.

The big thing is that the picture is clickable so you can click the image and go directly to the gallery entry (but only if you're logged in and have an account; if not, you'll be asked for your login and password or be presented with an option to create an account).

I'm going to make a quick change right now to note that you can click on the image to jump to the gallery.

Let me know if there's a problem of course.

Carl

Edit: Ok, I added the "click image" line and note that I added the "Posted by" text because of the suggestion that I created one when in fact it was a request that I post an image for someone else. Just wanted to be clear about it Smiley
« Last Edit: January 20, 2010, 11:24:11 pm by Carl » Logged

In real life:
Motorcycles: Suzuki Hayabusa and SV650, Honda Transalp
Role playing games: Running Shadowrun
Computers: Unix; Solaris, Linux, OpenBSD
 
I Administrate MosaicAndStainedGlass Forums and The Moderators moderate.
See me for forum and technical assistance and see Cracked for topic related assistance.
Contribute to the MaSG Wiki! MarylandMosaics Discount Code: masgo. Use It! How to support MaSGO.
Moderation comments are in red.
lorimendenhall
Scorer
*
Offline Offline

Posts: 849



WWW
« Reply #1 on: January 20, 2010, 11:36:51 pm »

thank you : ) you do a very good job with the site.
Logged
Carl
The Wizard
Administrator
Eloquent
*
Online Online

Posts: 3520


Ignore the man behind the curtain


WWW
« Reply #2 on: January 20, 2010, 11:53:03 pm »

Thanks. I'm a techie. That's my hobby bigsmile

Carl
Logged

In real life:
Motorcycles: Suzuki Hayabusa and SV650, Honda Transalp
Role playing games: Running Shadowrun
Computers: Unix; Solaris, Linux, OpenBSD
 
I Administrate MosaicAndStainedGlass Forums and The Moderators moderate.
See me for forum and technical assistance and see Cracked for topic related assistance.
Contribute to the MaSG Wiki! MarylandMosaics Discount Code: masgo. Use It! How to support MaSGO.
Moderation comments are in red.
crafty_lady
Barb
Contributors
Eloquent
*
Offline Offline

Posts: 3205



« Reply #3 on: January 21, 2010, 12:18:18 am »

Oh cool...it worked. Thanks Carl!
Logged

Carl
The Wizard
Administrator
Eloquent
*
Online Online

Posts: 3520


Ignore the man behind the curtain


WWW
« Reply #4 on: January 21, 2010, 12:45:01 am »

Thanks. The other thing is that there are a lot more pictures that will be displayed because of the way I'm retrieving the data. Before it was just the core pics. This way it gets all the sub gallery pics too. About 1,300.

Carl 
Logged

In real life:
Motorcycles: Suzuki Hayabusa and SV650, Honda Transalp
Role playing games: Running Shadowrun
Computers: Unix; Solaris, Linux, OpenBSD
 
I Administrate MosaicAndStainedGlass Forums and The Moderators moderate.
See me for forum and technical assistance and see Cracked for topic related assistance.
Contribute to the MaSG Wiki! MarylandMosaics Discount Code: masgo. Use It! How to support MaSGO.
Moderation comments are in red.
crafty_lady
Barb
Contributors
Eloquent
*
Offline Offline

Posts: 3205



« Reply #5 on: January 21, 2010, 01:22:19 am »

I'm already seeing pics pop up that weren't available before! Gee with 1300 pics to pick from I guess it will be awhile before we see duplicates, right?  lol
Logged

HSG
Oy Vey!
Scorer
*
Offline Offline

Posts: 873


Crazy, it's the new normal.


WWW
« Reply #6 on: January 21, 2010, 08:19:09 am »

Great change Carl! Smiley
Logged

widgina
Contributors
Grouter
*
Offline Offline

Posts: 1663



« Reply #7 on: January 21, 2010, 10:13:08 am »

I REALLY like that!
Logged

\'Mistakes are the portals of discovery\'  james joyce
Carl
The Wizard
Administrator
Eloquent
*
Online Online

Posts: 3520


Ignore the man behind the curtain


WWW
« Reply #8 on: January 21, 2010, 10:45:28 am »

I'm getting the occasional blank picture where someone deleted their pic. I'll have to modify the script to skip missing pictures.

Carl
Logged

In real life:
Motorcycles: Suzuki Hayabusa and SV650, Honda Transalp
Role playing games: Running Shadowrun
Computers: Unix; Solaris, Linux, OpenBSD
 
I Administrate MosaicAndStainedGlass Forums and The Moderators moderate.
See me for forum and technical assistance and see Cracked for topic related assistance.
Contribute to the MaSG Wiki! MarylandMosaics Discount Code: masgo. Use It! How to support MaSGO.
Moderation comments are in red.
LadyInGlass
Linda
Global Moderator
Multiloquent
*
Offline Offline

Posts: 2783


Using every color in the box.


« Reply #9 on: January 21, 2010, 01:20:33 pm »

You do good work Carl, thank you so much Smiley
Logged

People will not remember what you say but they will always remember how you made them feel.
Carl
The Wizard
Administrator
Eloquent
*
Online Online

Posts: 3520


Ignore the man behind the curtain


WWW
« Reply #10 on: January 21, 2010, 08:18:12 pm »

Fixed.

I put a loop in and check for:

1. If it's a picture posted by me (id #1) it's ignored.
2. If the file doesn't exist, it's ignored.
3. If the picture isn't approved, it's ignored.

And it loops to try again.

I did about 50 attempts with my test script (which is how one of my examples popped up Smiley ) and made sure an unapproved one didn't show up and that no blanks popped up. It seems that I have it all fixed and working right.

Let me know if you experience a problem.

Carl
Logged

In real life:
Motorcycles: Suzuki Hayabusa and SV650, Honda Transalp
Role playing games: Running Shadowrun
Computers: Unix; Solaris, Linux, OpenBSD
 
I Administrate MosaicAndStainedGlass Forums and The Moderators moderate.
See me for forum and technical assistance and see Cracked for topic related assistance.
Contribute to the MaSG Wiki! MarylandMosaics Discount Code: masgo. Use It! How to support MaSGO.
Moderation comments are in red.
Carl
The Wizard
Administrator
Eloquent
*
Online Online

Posts: 3520


Ignore the man behind the curtain


WWW
« Reply #11 on: January 21, 2010, 08:26:50 pm »

The test script I used for this is available as a Slideshow if you want to browse through the gallery pictures:

http://mosaicandstainedglass.org/slideshow/

It's set for a 5 second refresh which I might drop down to 4 seconds. If it seems to take too long, just stop it and refresh to kick it going again.

I had it set to 1 second for my test and just let it run which is how I tested the displays.

Carl
Logged

In real life:
Motorcycles: Suzuki Hayabusa and SV650, Honda Transalp
Role playing games: Running Shadowrun
Computers: Unix; Solaris, Linux, OpenBSD
 
I Administrate MosaicAndStainedGlass Forums and The Moderators moderate.
See me for forum and technical assistance and see Cracked for topic related assistance.
Contribute to the MaSG Wiki! MarylandMosaics Discount Code: masgo. Use It! How to support MaSGO.
Moderation comments are in red.
cindiloo
Contributors
Eloquent
*
Offline Offline

Posts: 7053



WWW
« Reply #12 on: January 21, 2010, 09:42:53 pm »

 bigok
Logged

“There is no such thing as a weird human being, It's just that some people require more understanding than others” ~ Tom Robbins
EarthMotherMosaics
Contributors
Observer
*
Offline Offline

Posts: 203



WWW
« Reply #13 on: January 25, 2010, 04:02:30 pm »

Awesome, Carl! Thanks!!!  clap bigok
Logged

Cindy
earthmothermosaics.com
"There is a voice in the Universe urging us to remember our purpose for being on this great Earth. This is the voice of inspiration, which is within each and every one of us."~Dr Wayne Dyer
Pages: [1]
  Print  
 
Jump to:  

Locations of visitors to this page
Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
TinyPortal v0.9.8 © Bloc
Valid XHTML 1.0! Valid CSS!


Google visited last this page August 21, 2010, 12:04:08 am