PDA

View Full Version : Costumizing the style options


thehero
Mar-28-2007, 01:16 PM
Been learning from this site for a few weeks, great resource! Just now registered.

Had a question about the drop down style menu. I know I can set the default for galleries, I set mine to all thumbs. However the search and keyword functions style default to the smugmug style.

I would really like to do the following things, both will require java I imagine, and seem possible, I just don't know the right arguments needed. I'm good with CSS but not so versed in java script.


1) How would I change the dropdown default from "smugmug" to "all thumbs" but leave the viewer-controlled menu?

2) How would I remove options from the style dropdown menu? Say i want to keep option all thumbs, slideshow and filmstrip as options but remove the others from the list.

3) How would I make a graphical or text button for any of the menu options? Say I want to make one for the slideshow, so it switches to the slideshow style from my forces default "all thumbs".

4) How would I force the search and keyword page style defaults to "all thumbs" like I have on the galleries pages?



My site so far (still can't get it to work well in IE, looks good in firefox:
http://www.jonathanmcintosh.smugmug.com

thehero
Mar-28-2007, 09:58 PM
I hope I made sense with my questions above, let me know if anyone needs clearifications...

ivar
Apr-01-2007, 02:32 AM
Hi There and welcome to dgrin :wave

Sorry we missed you earlier.
1) How would I change the dropdown default from "smugmug" to "all thumbs" but leave the viewer-controlled menu?Are you talking about the popular pages here? or is this meant for all pages? For the popular pages, see this (http://www.dgrin.com/showthread.php?p=416014#post416014).

2) How would I remove options from the style dropdown menu? Say i want to keep option all thumbs, slideshow and filmstrip as options but remove the others from the list.I'm not sure if it's possible to remove a few styles from the list. I think there was a post about this earlier, but I couldn't find this. Maybe Devbobo can help us out here :ear
You can remove the whole thing by using: .popularGallery #stylebar { display: none; }
in your CSS. I've done that as well on my site.

3) How would I make a graphical or text button for any of the menu options? Say I want to make one for the slideshow, so it switches to the slideshow style from my forces default "all thumbs".You would need to create a html form. I'm not sure how to do that if you want to make it automatic and for multiple pages/galleries, Devbobo? :ear

4) How would I force the search and keyword page style defaults to "all thumbs" like I have on the galleries pages?For linking directly to them, see the same link as with 1). If they go through one of your galleries first, they will automatically have their viewstyle cookie set to allthumbs as far as I know. The search results pages doesn't have different viewstyles as far as I know.