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?

Go Back   Digital Grin Photography Forum > Support > SmugMug Customization
Dgrinner
Password
Register FAQ Shooters Calendar Reviews Tutorials Gallery Books Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old Aug-01-2006, 08:03 PM   #1
PBolchover
Major grins
 
Join Date: Jul 2006
Posts: 862
Categories sub-page

Smugmug, in their wisdom, have realised that there are too many cool features to fit on a single homepage, and have given us all the ability to turn homepage features on and off.

For most of the features, even if they are turned off, it is possible to direct viewers to a suitable sub-page to get a similar view. For example,
http://pbolchover.smugmug.com/keyword/
shows my photo keywords, while
http://pbolchover.smugmug.com/popular/
shows the popular photos. There's even a URL that will take people to the smugmaps facility.

All users have the ability to hide the categories / galleries from their front page. It would be extremely useful for there to be a similar sub-page showing the category view. That means that, even if the category
section were disabled from the front page, going to
http://pbolchover.smugmug.com/categories/
would still give a category view. On a similar vein, perhaps the following would also be useful
http://pbolchover.smugmug.com/galleries/
http://pbolchover.smugmug.com/featured/ [ie featured galleries]

I know that there are ways around this, but they typically involve either hacking around with a gallery to get a similar view (which requires the user to be a Power User or Pro), or using a category as the "top level" and sub-categories as the "categories" (giving no equivalent to a current sub-gallery).

Paul
PBolchover is offline   Reply With Quote
Old Aug-01-2006, 08:21 PM   #2
colourbox
Major grins
 
colourbox's Avatar
 
Join Date: Apr 2005
Posts: 1,829
I would also like to be able to do this. I was hoping to simplify my front page by having links to separate pages for browsing by keywords, categories, and the world map, but it doesn't look like the last two are possible right now.
colourbox is offline   Reply With Quote
Old Aug-01-2006, 09:02 PM   #3
Mike Lane
I � Unicode
 
Mike Lane's Avatar
 
Join Date: Feb 2005
Location: Dover, DE
Posts: 7,059
This would indeed make things simpler for customization's sake. However, you can get the same effect by a smidge of javascript. All it would take would be for you to change the display values of certain elements upon a mouse click. I bet you could even find out how to do it with a short google search.
__________________
Y'all don't want to hear me, you just want to dance.

http://photos.mikelanestudios.com/
Mike Lane is offline   Reply With Quote
Old Aug-01-2006, 09:16 PM   #4
onethumb
SmugMug CEO & Chief Geek
 
onethumb's Avatar
 
Join Date: Dec 2003
Location: Silicon Valley, CA
Posts: 1,203
Quote:
Originally Posted by PBolchover
Smugmug, in their wisdom, have realised that there are too many cool features to fit on a single homepage, and have given us all the ability to turn homepage features on and off.

For most of the features, even if they are turned off, it is possible to direct viewers to a suitable sub-page to get a similar view. For example,
http://pbolchover.smugmug.com/keyword/
shows my photo keywords, while
http://pbolchover.smugmug.com/popular/
shows the popular photos. There's even a URL that will take people to the smugmaps facility.

All users have the ability to hide the categories / galleries from their front page. It would be extremely useful for there to be a similar sub-page showing the category view. That means that, even if the category
section were disabled from the front page, going to
http://pbolchover.smugmug.com/categories/
would still give a category view. On a similar vein, perhaps the following would also be useful
http://pbolchover.smugmug.com/galleries/
http://pbolchover.smugmug.com/featured/ [ie featured galleries]

I know that there are ways around this, but they typically involve either hacking around with a gallery to get a similar view (which requires the user to be a Power User or Pro), or using a category as the "top level" and sub-categories as the "categories" (giving no equivalent to a current sub-gallery).

Paul
This is a good idea, and is in complete accordance with the way we tend to build the site at SmugMug.

I'll let it percolate in my mind a bit, but it doesn't sound unreasonable. :)

Don
onethumb is offline   Reply With Quote
Old Aug-01-2006, 09:17 PM   #5
devbobo
technicolored
 
devbobo's Avatar
 
Join Date: Nov 2004
Location: Melbourne, AU
Posts: 4,308
Paul,

You have inadvertently given me a really good idea along the lines of vanity urls.

Here's the deal...

if you make up a smugmug address that is not going to point to any category, for example http://introversion.smugmug.com/idea/

When you go to this link, it displays my homepage like going to http://introversion.smugmug.com

So all you need to do, is write a javascript function that determines when one or the another url is displayed and sets a className...this class could for example hide all the stuff on the homepage, while the other gives the default view.

This way, you get the best of both worlds...you can have a landing page with slideshow, etc...and fully featured categories/sub-categories.

Does that make sense ?

I will code up an example on my page when I get a chance.

Cheers,

David
__________________
David Parry
My Photos | SmugBrowser
devbobo is offline   Reply With Quote
Old Aug-01-2006, 09:43 PM   #6
devbobo
technicolored
 
devbobo's Avatar
 
Join Date: Nov 2004
Location: Melbourne, AU
Posts: 4,308
here's the sample...

Normal address..
http://introversion.smugmug.com

Galleries address...
http://introversion.smugmug.com/galleries

All done with a simple javascript function and some css.


Footer code (remove the *'s):
Code:
<*script*>
if (hasPath("galleries"))
  YD.addClass(document.body, "galleries");
<*/script*>
javascript block:
Code:
function hasPath(sPath)
{
  re = new RegExp("\/" + sPath + "(\/|$)");
  return re.test(window.location)
}
css block:
Code:
.homepage #featuredBox {display:none;}
.galleries #categoriesBox {display:block !important;}
Cheers,

David

Edit: There is new code for this here in The Gallery Page" sections.
__________________
David Parry
My Photos | SmugBrowser

Last edited by Allen; Jun-09-2008 at 06:53 AM.
devbobo is offline   Reply With Quote
Old Aug-01-2006, 09:45 PM   #7
brandofamily
Just a Guy with a Camera
 
brandofamily's Avatar
 
Join Date: Dec 2005
Location: Illinois USA
Posts: 3,544
What is your favorite food/ beverage and how do I ge it to you....
I guess you really do think in JS...
I've been hoping for something just like this as a default for my "galleries" link....
__________________
Anthony Brandolino; Freelance Photographer www.brandolinoimaging.com
I also attend to these fine sites:
www.onbroadwaydancers.com
www.communitycaresinitiative.comwww.tinleyparkfrankfortrotary.com
Use this code:
8jDMwxj6yp4f2 to save on a subscription to Smugmug
brandofamily is offline   Reply With Quote
Old Aug-01-2006, 09:54 PM   #8
devbobo
technicolored
 
devbobo's Avatar
 
Join Date: Nov 2004
Location: Melbourne, AU
Posts: 4,308
Quote:
Originally Posted by brandofamily
What is your favorite food/ beverage and how do I ge it to you....
I guess you really do think in JS...
I've been hoping for something just like this as a default for my "galleries" link....


check out my site now, I have a working nav bar as well.

David
__________________
David Parry
My Photos | SmugBrowser
devbobo is offline   Reply With Quote
Old Aug-01-2006, 10:36 PM   #9
brandofamily
Just a Guy with a Camera
 
brandofamily's Avatar
 
Join Date: Dec 2005
Location: Illinois USA
Posts: 3,544
Any way to get it to hide my slide show in the "featured" view?
__________________
Anthony Brandolino; Freelance Photographer www.brandolinoimaging.com
I also attend to these fine sites:
www.onbroadwaydancers.com
www.communitycaresinitiative.comwww.tinleyparkfrankfortrotary.com
Use this code:
8jDMwxj6yp4f2 to save on a subscription to Smugmug
brandofamily is offline   Reply With Quote
Old Aug-01-2006, 10:43 PM   #10
devbobo
technicolored
 
devbobo's Avatar
 
Join Date: Nov 2004
Location: Melbourne, AU
Posts: 4,308
Quote:
Originally Posted by brandofamily
Any way to get it to hide my slide show in the "featured" view?
yes, i plan on doing that on my own page....can you wait until tomorrow ?
__________________
David Parry
My Photos | SmugBrowser
devbobo is offline   Reply With Quote
Old Aug-01-2006, 10:45 PM   #11
brandofamily
Just a Guy with a Camera
 
brandofamily's Avatar
 
Join Date: Dec 2005
Location: Illinois USA
Posts: 3,544
Quote:
Originally Posted by devbobo
yes, i plan on doing that on my own page....can you wait until tomorrow ?
Thanks... good night...
__________________
Anthony Brandolino; Freelance Photographer www.brandolinoimaging.com
I also attend to these fine sites:
www.onbroadwaydancers.com
www.communitycaresinitiative.comwww.tinleyparkfrankfortrotary.com
Use this code:
8jDMwxj6yp4f2 to save on a subscription to Smugmug
brandofamily is offline   Reply With Quote
Old Aug-01-2006, 10:48 PM   #12
devbobo
technicolored
 
devbobo's Avatar
 
Join Date: Nov 2004
Location: Melbourne, AU
Posts: 4,308
Quote:
Originally Posted by devbobo
yes, i plan on doing that on my own page....can you wait until tomorrow ?
here's ur slideshow activation code...add the stuff in green.
But note, the javascript code from above...needs to appear BEFORE ur slideshow code.

Code:
if (isClass("homepage") && !isClass("featured")) 
{ /*== slideshow parms specific to homepage slideshow ==*/
  slideshowUrl = "http://brandolinoimaging.smugmug.com/gallery/1501572";//album to use for slideshow photos
  resizeToPhoto = false;
  firstSlideUrl = "http://brandolinoimaging.smugmug.com/photos/76617176-M.jpg";
  slidesClickable = false;
  slideHeight = "400"; //visible height of slide
  slideWidth = "600";  //visible width of slide
  photoHeight = "341"; //actual photo height
  photoWidth = "510"; //actual photo width 
}
__________________
David Parry
My Photos | SmugBrowser
devbobo is offline   Reply With Quote
Old Aug-01-2006, 11:08 PM   #13
brandofamily
Just a Guy with a Camera
 
brandofamily's Avatar
 
Join Date: Dec 2005
Location: Illinois USA
Posts: 3,544
I can not get this darn thing to work. I'm trying to show the categories, not the featured. And not the slide show... No dice.... Crappola!
__________________
Anthony Brandolino; Freelance Photographer www.brandolinoimaging.com
I also attend to these fine sites:
www.onbroadwaydancers.com
www.communitycaresinitiative.comwww.tinleyparkfrankfortrotary.com
Use this code:
8jDMwxj6yp4f2 to save on a subscription to Smugmug
brandofamily is offline   Reply With Quote
Old Aug-01-2006, 11:14 PM   #14
devbobo
technicolored
 
devbobo's Avatar
 
Join Date: Nov 2004
Location: Melbourne, AU
Posts: 4,308
Quote:
Originally Posted by brandofamily
I can not get this darn thing to work. I'm trying to show the categories, not the featured. And not the slide show... No dice.... Crappola!
put this piece of code...in ur footer just above the slideshow stuff...

Code:
/*==========================*/
/*== Virtual Gallery Page ==*/
/*==========================*/
if (hasPath("featured"))
  YD.addClass(document.body, "featured");
__________________
David Parry
My Photos | SmugBrowser
devbobo is offline   Reply With Quote
Old Aug-01-2006, 11:21 PM   #15
brandofamily
Just a Guy with a Camera
 
brandofamily's Avatar
 
Join Date: Dec 2005
Location: Illinois USA
Posts: 3,544
Quote:
Originally Posted by devbobo
put this piece of code...in ur footer just above the slideshow stuff...

Code:
/*==========================*/
/*== Virtual Gallery Page ==*/
/*==========================*/
if (hasPath("featured"))
  YD.addClass(document.body, "featured");
I assume I remove it from the JS section... Here it goes...
__________________
Anthony Brandolino; Freelance Photographer www.brandolinoimaging.com
I also attend to these fine sites:
www.onbroadwaydancers.com
www.communitycaresinitiative.comwww.tinleyparkfrankfortrotary.com
Use this code:
8jDMwxj6yp4f2 to save on a subscription to Smugmug
brandofamily is offline   Reply With Quote
Old Aug-01-2006, 11:25 PM   #16
brandofamily
Just a Guy with a Camera
 
brandofamily's Avatar
 
Join Date: Dec 2005
Location: Illinois USA
Posts: 3,544

Thanks again for another awesome new feature for my site.....
__________________
Anthony Brandolino; Freelance Photographer www.brandolinoimaging.com
I also attend to these fine sites:
www.onbroadwaydancers.com
www.communitycaresinitiative.comwww.tinleyparkfrankfortrotary.com
Use this code:
8jDMwxj6yp4f2 to save on a subscription to Smugmug
brandofamily is offline   Reply With Quote
Old Aug-01-2006, 11:31 PM   #17
devbobo
technicolored
 
devbobo's Avatar
 
Join Date: Nov 2004
Location: Melbourne, AU
Posts: 4,308
Quote:
Originally Posted by brandofamily

Thanks again for another awesome new feature for my site.....
glad it's working
__________________
David Parry
My Photos | SmugBrowser
devbobo is offline   Reply With Quote
Old Aug-01-2006, 11:41 PM   #18
brandofamily
Just a Guy with a Camera
 
brandofamily's Avatar
 
Join Date: Dec 2005
Location: Illinois USA
Posts: 3,544
Quote:
Originally Posted by devbobo
glad it's working
The only thing I have to figure out is how to return to here:
(my virtual Homepage) http://www.brandolinoimaging.com/gallery/1595381
Since I have no breadcrumb nor navbar on my homepage...

Something for later...
Thanks again...
__________________
Anthony Brandolino; Freelance Photographer www.brandolinoimaging.com
I also attend to these fine sites:
www.onbroadwaydancers.com
www.communitycaresinitiative.comwww.tinleyparkfrankfortrotary.com
Use this code:
8jDMwxj6yp4f2 to save on a subscription to Smugmug
brandofamily is offline   Reply With Quote
Old Aug-02-2006, 12:14 AM   #19
richW
SmugMug Support Hero
 
richW's Avatar
 
Join Date: May 2006
Posts: 2,155
David,

What a great feature. I gave it a try, it worked perfect. I even tried it with the bioBox, also worked. I'll give google map a try later.

Edit: Tried it on google map, friends & family, photo communities. Works on all of them..

You are the man.

All rise in the presence of the Great JS Wizard.

Last edited by richW; Aug-03-2006 at 08:52 PM.
richW is offline   Reply With Quote
Old Aug-02-2006, 12:15 AM   #20
devbobo
technicolored
 
devbobo's Avatar
 
Join Date: Nov 2004
Location: Melbourne, AU
Posts: 4,308
Quote:
Originally Posted by richW
David,

What a great feature. I gave it a try, it work perfect. I even tried it with the bioBox, also worked. I'll give google map a try later.

You are the man.

All rise in the presence of the Great JS Wizard.
lmao....thanks rich

I am kinda surprised I never thought of it before.
__________________
David Parry
My Photos | SmugBrowser
devbobo is offline   Reply With Quote
Reply

Tell The World!

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Times are GMT -8.   It's 09:20 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.