| Lurk all you'd like, but why not register and post some pics? Registering also makes it easier to find the good stuff. Need help? |
|
|||||||
| Register | FAQ | Shooters | Calendar | Reviews | Tutorials | Gallery | Books | Search | Today's Posts | Mark Forums Read |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
One pixel short of sane
Join Date: Nov 2005
Posts: 16
|
Featuring my favorite pictures (featuring a keyword gallery)
Hey folks,
I wanted to have a section on my home page which featured my favorite pictures... but I didn't want to go through the labor of duplicating each picture into a new gallery to feature. After doinking with CSS for a while (and coming up very empty handed) I stumbled across devbobo's automatic "recent" featured gallery. Brilliant! As a result, I give all credit to devbobo since I really just trimmed and modified his code for this. Basically I modified devbobo's code to show a keyword gallery instead of a timeline gallery. You could, of course, use this for any keyword you choose. You can see it in action on my site. Note: my JS skills are minimal at best (well, I don't know JS, just C++) so I'd like to get your feedback on this tweak of David's code. It is working on my site but I may have done something silly in my futzing with the code. I renamed the functions where appropriate to make it easier for this to coexist with the recent gallery should someone have the urge to merge them. Here's is the JavaScript code (again, copied shamelessly from devbobo): Code:
Code:
I originally used a body tag to trigger the function but devbobo pointed out that it will load more quickly if you put the onload command in the footer instead. At his recommendation I added the call to trigger the insertion via the footer instead of adding a body tag (note the asterixes should be removed): Code:
That's about it. You can check out the results on my page. Additional note: The code for this customization changed at some point (possibly the server modified the code for security reasons). I've corrected the code in the post and, to make sure there is a clean copy available should it change again, I've also uploaded the script snippets here:
Cheers, Reeves Last edited by Reeves : Sep-13-2006 at 07:14 AM. Reason: Correcting code |
|
|
|
|
|
#2 |
|
technicolored
|
Very cool Reeves...well done
![]() ![]() |
|
|
|
|
|
#3 |
|
Hold the meat
|
And, there's a way to put that keyword gallery on your homepage
![]() www.moonriverphotography.com devbobo
__________________
Andy SmugMug COO, General Manager, House Pro & Dgrin Admin • Moon River Photography • League of Creative Infrared Photographers |
|
|
|
|
|
#4 | |
|
technicolored
|
Quote:
couldn't help urself could u ![]() |
|
|
|
|
|
|
#5 | |
|
Hold the meat
|
Quote:
, no, I cannot!I'm constantly amazed at what can be done with a SmugMug site. Thanks mucho for the hacks, David!
__________________
Andy SmugMug COO, General Manager, House Pro & Dgrin Admin • Moon River Photography • League of Creative Infrared Photographers |
|
|
|
|
|
|
#6 | |
|
One pixel short of sane
Join Date: Nov 2005
Posts: 16
|
Okay boys... what's the noob missing? :) (was there already a way to do this?)
Quote:
|
|
|
|
|
|
|
#9 | |
|
SmugMug Help Moddess
|
Quote:
That is wonderful! It gives me an idea, but I have no clue how to do it. On my home page, would it be possible, if I removed my bio from the homepage, to have a slideshow kind of like Andy's, of a certain gallery, i.e., "Favorites", in that space? I would leave everything else alone. Does that make sense? Eesh, even after I read it, I know what I mean, but no one else may - LOL.
__________________
Barb SmugMug Support Hero DGrin: Help Pages SmugMug: Help Pages / Customizing FAQ / Tutorials Tools: Firefox and Firefox Web Developer / Tutorial Me: PhotoscapeDesign |
|
|
|
|
|
|
#10 | |
|
technicolored
|
Quote:
Hi Barb, I am going to be writing up a tutorial on how to do this...stay tuned. David |
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|