Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
3 registered (57-Vette, Chosen, Stan), 39 Guests and 15 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 10/19/08
Posts: 52
Top Posters (30 Days)
Ruben 50
DennyP 24
Gizmo 23
Dunny 15
SteveS 13
AllenAyres 12
dbremer 10
SD 10
drkknght00 9
doug 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Page 1 of 3 1 2 3 >
Topic Options
#229631 - 10/01/09 07:13 PM photo gallery widget
Bad Frog Offline
addict
Registered: 05/13/08
Posts: 596
Loc: Coast of Maine
how about instead of showing a static frame with the last 5 images posted, a gadget or something that shows a slide show of random images from your gallery.
_________________________
"No matter where you go, there you are."
"If you can't do something smart, Do something right"
"There are three kinds of people in the world, those who can count, and those who can't"
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#229632 - 10/01/09 11:03 PM Re: photo gallery widget [Re: Bad Frog]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
Well, it is the "latest photos" widget tongue
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#229634 - 10/02/09 06:55 AM Re: photo gallery widget [Re: Gizmo]
Bad Frog Offline
addict
Registered: 05/13/08
Posts: 596
Loc: Coast of Maine
what?
_________________________
"No matter where you go, there you are."
"If you can't do something smart, Do something right"
"There are three kinds of people in the world, those who can count, and those who can't"
Top
#229645 - 10/02/09 04:10 PM Re: photo gallery widget [Re: Bad Frog]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
The Latest Photos island; or where you talking each gallery in general?
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#229646 - 10/02/09 04:13 PM Re: photo gallery widget [Re: Gizmo]
Bad Frog Offline
addict
Registered: 05/13/08
Posts: 596
Loc: Coast of Maine
that's just an island with static images, not really a widget

I want a single image frame that you can set to randomly pull photos from your gallery and cycle through them, or to just cycle through the last X amount of photos.
_________________________
"No matter where you go, there you are."
"If you can't do something smart, Do something right"
"There are three kinds of people in the world, those who can count, and those who can't"
Top
#229647 - 10/02/09 04:35 PM Re: photo gallery widget [Re: Bad Frog]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
A random photo island would be nice
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#229903 - 10/13/09 04:30 PM Re: photo gallery widget [Re: Gizmo]
CampingPA Offline
journeyman
Registered: 09/08/09
Posts: 94
Loc: Cresson, Pa
I agree, I would like to see a random photo island that refreshed every minute or so maybe...
_________________________
Log in to our virtual campfire: www.CampingPA.com
Come On Over, We'll keep the fire burning for ya!

ALSO visit our newest forums - www.ATVingpA.com/forums
Top
#229905 - 10/13/09 04:44 PM Re: photo gallery widget [Re: CampingPA]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
Here's a quick little "random image" custom island that can be used/modified. Just displays a single random image that links to the the actual gallery post:

Code:
/* PHP CODE HERE */

$query = "
select POST_ID,FILE_DIR,FILE_NAME
from ubbt_FILES
where FILE_DIR <> ''
order by rand() limit 1
";
$sth = $dbh->do_query($query,__LINE__,__FILE__);
list($postId,$fDir,$fName) = $dbh->fetch_array($sth);
/* BODY HERE */
$body = <<<EOF
<div style='text-align: center'>
<a href="{$config['BASE_URL']}/ubbthreads.php?ubb=showgallery&Number=$postId">
<img border="0" src="{$config['BASE_URL']}/gallery/$fDir/thumbs/$fName" />
</a>
</div>
EOF;
Top
#229906 - 10/13/09 04:44 PM Re: photo gallery widget [Re: CampingPA]
Bad Frog Offline
addict
Registered: 05/13/08
Posts: 596
Loc: Coast of Maine
what is this I see at the bottom of the right column?
a random image island?!?! :-)
_________________________
"No matter where you go, there you are."
"If you can't do something smart, Do something right"
"There are three kinds of people in the world, those who can count, and those who can't"
Top
#229907 - 10/13/09 04:45 PM Re: photo gallery widget [Re: Bad Frog]
Bad Frog Offline
addict
Registered: 05/13/08
Posts: 596
Loc: Coast of Maine
you posted that as I was noticing it~

Thank you rick!


Edited by Bad Frog (10/13/09 04:45 PM)
_________________________
"No matter where you go, there you are."
"If you can't do something smart, Do something right"
"There are three kinds of people in the world, those who can count, and those who can't"
Top
#229909 - 10/13/09 04:52 PM Re: photo gallery widget [Re: Bad Frog]
Bad Frog Offline
addict
Registered: 05/13/08
Posts: 596
Loc: Coast of Maine
works great, already running it on my site, thank you again!
_________________________
"No matter where you go, there you are."
"If you can't do something smart, Do something right"
"There are three kinds of people in the world, those who can count, and those who can't"
Top
#229927 - 10/14/09 08:54 AM Re: photo gallery widget [Re: Bad Frog]
CampingPA Offline
journeyman
Registered: 09/08/09
Posts: 94
Loc: Cresson, Pa
cry cry cry cry cry cry cry cry

I DONT KNOW TO DO THIS... HELP...

Can anyone explain where to access the code for the page so I can input this?

It is great, but I dont know how to make it work...

Thanks!
Tom
_________________________
Log in to our virtual campfire: www.CampingPA.com
Come On Over, We'll keep the fire burning for ya!

ALSO visit our newest forums - www.ATVingpA.com/forums
Top
#229929 - 10/14/09 09:14 AM Re: photo gallery widget [Re: CampingPA]
Bad Frog Offline
addict
Registered: 05/13/08
Posts: 596
Loc: Coast of Maine
custom islands under the control panel
_________________________
"No matter where you go, there you are."
"If you can't do something smart, Do something right"
"There are three kinds of people in the world, those who can count, and those who can't"
Top
#229930 - 10/14/09 11:19 AM Re: photo gallery widget [Re: Bad Frog]
CampingPA Offline
journeyman
Registered: 09/08/09
Posts: 94
Loc: Cresson, Pa
Love it man!

Thanks!

It is awesome...

TOM!
_________________________
Log in to our virtual campfire: www.CampingPA.com
Come On Over, We'll keep the fire burning for ya!

ALSO visit our newest forums - www.ATVingpA.com/forums
Top
#230306 - 10/27/09 12:01 PM Re: photo gallery widget [Re: Rick]
Rimex Offline
stranger
Registered: 08/24/09
Posts: 20
Loc: Mexico
Thank you for this cool little widget it is a hit on my forum. smile

In my gallery the post containing pictures #4,5,6,7, & 8 was deleted and this code is looking for those numbers. Of course the island displays a Red X since the photos no longer exist.

I have manually loaded picture thumbs with these numbers and elimited the Red X but of course when displayed you can not follow the photo by clicking on it as no post is associated with it. Also when doing permission checks the gallery/thumbs directory now fails the check.

Should I be concerned with my work around solution? Should I remove the photos and just live with the Red X or can I somehow change the code to exclude #4-8 in the random sort order?

Have a Great Day
Jay
Top
#230333 - 10/27/09 02:26 PM Re: photo gallery widget [Re: Rimex]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
There was a bug in older versions where the entry in the FILES table wouldn't get deleted. Your solution is probably the best workaround for the time being.

In version 8 we'll be introducing a bunch of new maintenance tools that will go through and clean up things like this (removing orphaned attachments, table entries, etc.)
Top
#236046 - 04/02/10 06:14 PM Re: photo gallery widget [Re: Rick]
Outdoorking Offline
enthusiast
Registered: 06/05/06
Posts: 265
Loc: Sydney, Australia
Originally Posted By: Rick
Here's a quick little "random image" custom island that can be used/modified. Just displays a single random image that links to the the actual gallery post:

Code:
/* PHP CODE HERE */

$query = "
select POST_ID,FILE_DIR,FILE_NAME
from ubbt_FILES
where FILE_DIR <> ''
order by rand() limit 1
";
$sth = $dbh->do_query($query,__LINE__,__FILE__);
list($postId,$fDir,$fName) = $dbh->fetch_array($sth);
/* BODY HERE */
$body = <<<EOF
<div style='text-align: center'>
<a href="{$config['BASE_URL']}/ubbthreads.php?ubb=showgallery&Number=$postId">
<img border="0" src="{$config['BASE_URL']}/gallery/$fDir/thumbs/$fName" />
</a>
</div>
EOF;


Rick,

How do you get the images to change more frequently with the code you have supplied please.
_________________________
Regards,

Bruce
www.outdoorking.com
Top
#240949 - 01/06/11 02:51 PM Re: photo gallery widget [Re: Bad Frog]
Mark S Offline
Carpal Tunnel
Registered: 07/04/06
Posts: 4447
Loc: Liverpool : England : UK
Change the Cache time to 1 min

a 0 makes it static wink

Just done mine so i'm guessing but seems to be right smile
_________________________
Version v7.5.6 smile smile < Threads satisfaction status
People who inspire me Rick Gizmo Ian David jgeoff ntdoc
Oooo i hear 8 is coming? just after 7 my friend.
Top
#240950 - 01/06/11 02:56 PM Re: photo gallery widget [Re: Mark S]
Ruben Offline

Registered: 12/20/03
Posts: 4424
Loc: Lutz,FL
Yep,
I have mine set for 10 minutes.
_________________________
Blue Man Group
Top
#240951 - 01/06/11 02:57 PM Re: photo gallery widget [Re: Bad Frog]
Mark S Offline
Carpal Tunnel
Registered: 07/04/06
Posts: 4447
Loc: Liverpool : England : UK
Is there away to exclude a Gallery?
From the Randomize?

There is a Members Gallery and they all look pretty Rough,
i'm afraid they could frighten new members off lol
_________________________
Version v7.5.6 smile smile < Threads satisfaction status
People who inspire me Rick Gizmo Ian David jgeoff ntdoc
Oooo i hear 8 is coming? just after 7 my friend.
Top
#240953 - 01/06/11 03:10 PM Re: photo gallery widget [Re: Mark S]
Ruben Offline

Registered: 12/20/03
Posts: 4424
Loc: Lutz,FL
I am no sql expert but the query near the top has a greater than less than for a file directory.
So it should be a simple say add the forum number in the quote to exclude 1.
_________________________
Blue Man Group
Top
Page 1 of 3 1 2 3 >



Moderator:  AllenAyres, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Temporary Password email not being received
by
05/24/12 10:02 PM
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Forum Stats
10492 Members
36 Forums
33842 Topics
181709 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image