• Gear
  • Shots
  • Photo Craft
  • Video
  • Wide Angle
  • Support
  • New Stuff
  • More
Support SmugMug Customization Combine thumbs from sub-categories and galleries into one list

FAQtoid

Ever wanted to create an Avatar? Creating an Avatar!

Searching Dgrin with Google Searching with Google

Dgrin Challenges

Congratulations to the Winner of DSS #128 (Sunrise or Sunset), ShootingStar.

The next Dgrin Challenge DSS #129 (Silhouette Revisited ) is open for entries through May 27th, 2013 at 8:00pm PDT.

As always, we look forward to your participation but please do take a moment to read through the rules before posting your entry.

Past DSS Challenge Winners, DSS Challenge Rules, and other important DSS Challenge information is here.

Need some help with Accessories?

Tutorials

Ever find yourself wondering just how someone managed to create an image using different effects?

Here are three simple tutorials we hope will encourage you to try something new.

The Hot Seat

A lifelong interest in landscape photography has led Eyal Oren to make a study of his adopted hometown of Marblehead, MA. As you can see, his dedication is paying off!

Africa!

Dgrinners Harryb, Pathfinder, and others joined Andy Williams and Marc Muench on Safari in East Africa recently. Here are some awesome threads to check out!

 
Thread Tools Display Modes
Page 2  of  4
1 2 3 4
Old Jan-17-2010, 08:26 AM
#21
ChancyRat is offline ChancyRat
Soooo Beginner Grinner
Quote:
Originally Posted by jfriend
Change this one line from this:

YE.onContentReady("subcategoriesBox", CombineCategoriesWithGalleries);

to this:

// YE.onContentReady("subcategoriesBox", CombineCategoriesWithGalleries);

That deactivates the script, but leaves all the code there so you can later reactivate it if you want.
Thanks. does it take awhile to "take"? The subcategories have disappeared from the page, only the galleries are listed now.
Example: http://www.joinrats.com/EarningTrust

EDIT: I had to remove the // so the subcategories would show again, until I know what the fix is. Thanks.

Last edited by ChancyRat; Jan-17-2010 at 08:53 AM.
Old Jan-17-2010, 11:25 AM
#22
jfriend is offline jfriend OP
Scripting dude-volunteer
Quote:
Originally Posted by ChancyRat
Thanks. does it take awhile to "take"? The subcategories have disappeared from the page, only the galleries are listed now.
Example: http://www.joinrats.com/EarningTrust

EDIT: I had to remove the // so the subcategories would show again, until I know what the fix is. Thanks.
No, there's a line of CSS you have to comment out too.

Find this line in your CSS:

#subcategoriesBox {display:none;}

and change it to:

/* #subcategoriesBox {display:none;} */
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Jan-17-2010, 12:01 PM
#23
ChancyRat is offline ChancyRat
Soooo Beginner Grinner
Quote:
Originally Posted by jfriend
No, there's a line of CSS you have to comment out too.

Find this line in your CSS:

#subcategoriesBox {display:none;}

and change it to:

/* #subcategoriesBox {display:none;} */
THANKS.
Old Jan-17-2010, 12:31 PM
#24
ChancyRat is offline ChancyRat
Soooo Beginner Grinner
Quote:
Originally Posted by jfriend
No, there's a line of CSS you have to comment out too.

Find this line in your CSS:

#subcategoriesBox {display:none;}

and change it to:

/* #subcategoriesBox {display:none;} */
John, when I turn these back on, I realized I will need the subcategories on the top now, not the bottom. What should be the changes when I do that? Thanks.
Old Jan-17-2010, 01:00 PM
#25
jfriend is offline jfriend OP
Scripting dude-volunteer
Quote:
Originally Posted by ChancyRat
John, when I turn these back on, I realized I will need the subcategories on the top now, not the bottom. What should be the changes when I do that? Thanks.
I don't believe that is customizable without more custom scripting. Can you think of a different/better way to organize your galleries that doesn't present this issue?
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Jan-17-2010, 02:13 PM
#26
ChancyRat is offline ChancyRat
Soooo Beginner Grinner
Quote:
Originally Posted by jfriend
I don't believe that is customizable without more custom scripting. Can you think of a different/better way to organize your galleries that doesn't present this issue?
Actually, isn't the default location, subcategories, then galleries? I think you had written the special script to reverse that (see your post #12 in this thread). and that's what I've had in place up 'til now (galleries then subcategories). I'm hoping to un-do that and go back to "normal", which I think is subcategories then galleries? Thanks.
Old Jan-17-2010, 02:20 PM
#27
jfriend is offline jfriend OP
Scripting dude-volunteer
Quote:
Originally Posted by ChancyRat
Actually, isn't the default location, subcategories, then galleries? I think you had written the special script to reverse that (see your post #12 in this thread). and that's what I've had in place up 'til now (galleries then subcategories). I'm hoping to un-do that and go back to "normal", which I think is subcategories then galleries? Thanks.
As best I can tell your site is now showing the normal location of subcategories in their own box followed by galleries in their own box. If you're looking for something different than that, please describe in more detail what you're looking for.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Jan-17-2010, 02:43 PM
#28
ChancyRat is offline ChancyRat
Soooo Beginner Grinner
Quote:
Originally Posted by jfriend
As best I can tell your site is now showing the normal location of subcategories in their own box followed by galleries in their own box. If you're looking for something different than that, please describe in more detail what you're looking for.
I'm sorry for the confusion. I will at some point go back to the "joining" as you had set it up, by removing the blocks you gave me for JS and CSS. When I do that, I believe you set it up for galleries to come first, then subcategories.

So I will want to join them again, but in the format subcategories then galleries. I think that would mean I can't just remove the blocks you gave me today, because won't that put in place the special reverse (galleries then subcategories)? I think the customization you gave me long ago reversed everything to galleries then subcategories. I want to make sure that is not the rule in place when I join them.
Old Jan-17-2010, 03:00 PM
#29
jfriend is offline jfriend OP
Scripting dude-volunteer
Quote:
Originally Posted by ChancyRat
I'm sorry for the confusion. I will at some point go back to the "joining" as you had set it up, by removing the blocks you gave me for JS and CSS. When I do that, I believe you set it up for galleries to come first, then subcategories.

So I will want to join them again, but in the format subcategories then galleries. I think that would mean I can't just remove the blocks you gave me today, because won't that put in place the special reverse (galleries then subcategories)? I think the customization you gave me long ago reversed everything to galleries then subcategories. I want to make sure that is not the rule in place when I join them.
Well then, just remove everything from your bottom javascript that you see in post #12 and install the standard code from post #1.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Jan-25-2010, 12:25 AM
#30
M.I.P is offline M.I.P
Big grins
all of my thumb nails are in the one box but I still have a sub categories box on top ( with no thumbs) Is there a way to get rid of the box and double post?
like here http://midiowaphoto.smugmug.com/The-Info
Thanks
__________________
My Smugmug http://midiowaphoto.smugmug.com
Old Jan-25-2010, 12:30 AM
#31
jfriend is offline jfriend OP
Scripting dude-volunteer
Quote:
Originally Posted by M.I.P
all of my thumb nails are in the one box but I still have a sub categories box on top ( with no thumbs) Is there a way to get rid of the box and double post?
like here http://midiowaphoto.smugmug.com/The-Info
Thanks
Read the instructions in the first post again and make sure you do the first part that starts with "Add this CSS:". If, for any reason, that doesn't work, then post back again.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Jan-25-2010, 02:11 AM
#32
M.I.P is offline M.I.P
Big grins
Wow it is amazing how much better things work when you follow the instructions.
I total blew right over the add to css part. That was the problem.
Sorry to bother you over something so simple
Thank you for getting me back on track.
Quote:
Originally Posted by jfriend
Read the instructions in the first post again and make sure you do the first part that starts with "Add this CSS:". If, for any reason, that doesn't work, then post back again.
__________________
My Smugmug http://midiowaphoto.smugmug.com
Old Feb-08-2010, 10:22 AM
#33
vegaguy is offline vegaguy
Major grins
Quote:
Originally Posted by jfriend
If you open a category that contains both sub-categories and galleries, the sub-category and gallery thumbs will be displayed in different sections on the category page. If you want to combine the thumbs into the same section so that there is just one list of thumbs, then you can do so with this script.
......
this is great might I say. Does anyone know how I might go about setting my thumbnails to be the same size? The one in question is a category thumbnail (topmost-'Katie and Alan') at http://www.johnparliphotography.com/Weddings?ao=0
Old Feb-08-2010, 03:39 PM
#34
jfriend is offline jfriend OP
Scripting dude-volunteer
Quote:
Originally Posted by vegaguy
this is great might I say. Does anyone know how I might go about setting my thumbnails to be the same size? The one in question is a category thumbnail (topmost-'Katie and Alan') at http://www.johnparliphotography.com/Weddings?ao=0
There is no supported way to control the thumbnail sizes. If you have 1-5 galleries in a sub-category or category, you get large thumbs (150x150). If you have >5 galleries in a sub-category or category, you get small thumbs (100x100). If you are using this script to combine them, the only way you will get the same size thumbs for both is if you have >5 galleries in the category or sub-category so they are all small.

I've been working on a general purpose script to "hack" the thumbnail sizes for awhile now, but it is a long ways from being done and I'm not sure it will ever work well so that is not an option any time soon.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Feb-08-2010, 05:49 PM
#35
vegaguy is offline vegaguy
Major grins
Quote:
Originally Posted by jfriend
There is no supported way to control the thumbnail sizes. If you have 1-5 galleries in a sub-category or category, you get large thumbs (150x150). If you have >5 galleries in a sub-category or category, you get small thumbs (100x100). If you are using this script to combine them, the only way you will get the same size thumbs for both is if you have >5 galleries in the category or sub-category so they are all small.

I've been working on a general purpose script to "hack" the thumbnail sizes for awhile now, but it is a long ways from being done and I'm not sure it will ever work well so that is not an option any time soon.
Bummer. So, my one single thumbnail in that gallery which is the only with sub-categories (2 to be exact) is always gonna be smaller than the rest?

thanks jfriend! It's much appreciated.
Old Feb-16-2010, 02:27 PM
#36
Andrew Gould is offline Andrew Gould
Major grins
Combining sub-categories and categories not working for me
At present, I just have one sub-categories thumbnail, which is for my Photojournal.

I tried the code to combine these, but it then shows just the galleries without the Photojournal subcategory thumb included.

I imagine this is because my galleries are not on my homepage, the way I have my site customized.

I would like to know how to modify the CSS code to make this work.

Thanks.
Old Feb-16-2010, 02:49 PM
#37
jfriend is offline jfriend OP
Scripting dude-volunteer
Quote:
Originally Posted by Andrew Gould
At present, I just have one sub-categories thumbnail, which is for my Photojournal.

I tried the code to combine these, but it then shows just the galleries without the Photojournal subcategory thumb included.

I imagine this is because my galleries are not on my homepage, the way I have my site customized.

I would like to know how to modify the CSS code to make this work.

Thanks.
I don't see the code in your page. I can't help you figure out why it didn't work unless you put the code in your page so I can see what's going on.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Feb-16-2010, 05:44 PM
#38
Andrew Gould is offline Andrew Gould
Major grins
Quote:
Originally Posted by jfriend
I don't see the code in your page. I can't help you figure out why it didn't work unless you put the code in your page so I can see what's going on.
Hi John.

I took the code out when it didn't work, but have now replaced it. Still doesn't work for me.

Thanks,
Andrew.
Old Feb-16-2010, 05:50 PM
#39
Andrew Gould is offline Andrew Gould
Major grins
Quote:
Originally Posted by Andrew Gould
Hi John.

I took the code out when it didn't work, but have now replaced it. Still doesn't work for me.

Thanks,
Andrew.
UPDATE:
Sorry for the bother... it DOES work now! I see that I had not copied the two final brackets that end the bottom javascript code.

My fault, but it would be much better if codes displayed were easily visible complete. The way they are in those boxes with horizontal and vertical sliders makes it impossible to see a long piece of code all at once, and difficult to copy.
Old Feb-16-2010, 06:28 PM
#40
jfriend is offline jfriend OP
Scripting dude-volunteer
Quote:
Originally Posted by Andrew Gould
UPDATE:
Sorry for the bother... it DOES work now! I see that I had not copied the two final brackets that end the bottom javascript code.

My fault, but it would be much better if codes displayed were easily visible complete. The way they are in those boxes with horizontal and vertical sliders makes it impossible to see a long piece of code all at once, and difficult to copy.
Glad you got it working. I think dgrin just sort of does what it wants to with the sliders, not sure what I could do differently there.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Page 2  of  4
1 2 3 4
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