Gallery description problems
Allen
Registered Users Posts: 10,013 Major grins
All of a sudden I'm having problems of two div's formatting in a gallery description. I have over 900
galleries that this method works. Here's a working one.
http://www.photosbyat.com/Birds/Birding-2013-April/2013-04-20-Garganey/i-tRPf5Ls
Here's the first one that went bonkers.
http://www.photosbyat.com/Birds/Birding-2013-February/2013-FEB-17-28-Yardbirds/i-n3Chp7L
I copied out a working gallery html and pasted it in and it also went bonkers.
Looks like everytime the description is saved it goes bonkers.
I copied the original borked gallery html and pasted in a working gallery and it went bonkers.
Them put back in the working gallery html and it went bonkers.
Using WebDev I removed all CSS and it didn't fix it, remained borked.
I'm thinking Smugmug updated some code that's affecting this. Because if I paste into any gallery
this happens.
Here's the html that I've used in over 900 galleries with no problems.
galleries that this method works. Here's a working one.
http://www.photosbyat.com/Birds/Birding-2013-April/2013-04-20-Garganey/i-tRPf5Ls
Here's the first one that went bonkers.
http://www.photosbyat.com/Birds/Birding-2013-February/2013-FEB-17-28-Yardbirds/i-n3Chp7L
I copied out a working gallery html and pasted it in and it also went bonkers.
Looks like everytime the description is saved it goes bonkers.
I copied the original borked gallery html and pasted in a working gallery and it went bonkers.
Them put back in the working gallery html and it went bonkers.
Using WebDev I removed all CSS and it didn't fix it, remained borked.
I'm thinking Smugmug updated some code that's affecting this. Because if I paste into any gallery
this happens.
Here's the html that I've used in over 900 galleries with no problems.
<div style="font-size: 13pt; max-width: 560px; "> Yardbirds Feb. 17-28 • See <a href="/Birds/Birding-2013-February/2013-FEB-07-16-Yardbirds/i-JcwPLMm">Feb 07-16 here</a><br /> Birds around the yard. All photos shot out our kitchen window.<br /> Newest photos first in gallery, See date in caption below main photo.<br /> <a href="/Birds/Birding-2013-February"><u>Click to Return to February galleries</u></a> </div> <div class="birdjump" style="max-width: 480px; text-align:center; "> <span style="color:blue; font-size: 10pt;">Jump to >> <a class="nav" href="/Birds/Birding-2012-December">Dec 2012</a> • <a class="nav" href="/Birds/Birding-2013-January">Jan 2013</a> • <a class="nav" href="/Birds/Birding-2013-February"><font><b>February</b></font></a> • <a class="nav" href="/Birds/Birding-2013-March">March</a> • <a class="nav" href="/Birds/Birding-2013-April">April</a> • <a class="nav" href="/Birds/Birding-2013-May">May</a> • <a class="nav" href="/Birds/Birding-2013-June">June</a> <br /> <a class="nav" href="/Birds/Birding-2013-July">July</a> • <a class="nav" href="/Birds/Birding-2013-August">August</a> • <a class="nav" href="/Birds/Birding-2013-September">September</a> • <a class="nav" href="/Birds/Birding-2013-October">October</a> • <a class="nav" href="/Birds/Birding-2013-November">November</a> • <a class="nav" href="/Birds/Birding-2013-December">Dec 2013</a> • <a class="nav" href="/Birds/Birding-2014-January">Jan 2014</a> <br /> </span> <span style="color:blue; font-size:13pt;"><b>Click on main photo below for larger version</b></span> </div>
0
Comments
Hi Allen, <img src="https://us.v-cdn.net/6029383/emoji/wave.gif" border="0" alt="" >
Both links show page not found, otherwise loving your new look.
Caroline
www.carolineshipsey.co.uk - Follow me on G+
[/URL]
The links 404 and the descriptions in your galleries don't look quite like your snippet. Most seem to start look like what's below. Note the left and right floats. Have you possibly been copying some old code?
Jim Ringland
jtringl.smugmug.com
et cetera
Thanks Caroline
My Website index | My Blog
I use that exact code except for the guts of the div's on over 900 galleries and they all worked except
for the ones edited this afternoon.
If you look at what you posted Smug inserts all those yui id's, it normal.
My Website index | My Blog
Did I toggle something in my profile to not show quotes? Have not been in
my profile for along time.
My Website index | My Blog
BTW, I'm just a hobbyist birder and use my galleries like a journal documenting what I see.
My Website index | My Blog
I have not tried FlexBox yet although used that method here for first try at it.
http://www.photosbyat.com/Birds/Missouri-Bird-Photos-H-Z/i-n72HZ8H
My Website index | My Blog
http://www.photosbyat.com/Birds/Birding-2013-February/2013-FEB-17-28-Yardbirds/i-n3Chp7L
My Website index | My Blog
My Website index | My Blog
<div class="birdGalDesc" style="font-size: 13pt; max-width: 560px;">
...
<div class="birdjump" style="max-width: 480px ; text-align:center;">
...
It looks like the gallery description will not recognize the floats in the html so added it in the CSS.
Added this to "all galleries" CSS
/* fix for bird gallery description */
.birdGalDesc {float:left;}
.birdjump {float:right;}
I currently have this is over 900 galleries without either div float and it works.
<div style=" font-size: 13pt;">
<div class="birdjump" style="max-width: 480px ; text-align:center;">
At least if I run in to this problem again I can just add the 1st div class name to fix it.
My Website index | My Blog
If I open an html block, will the code self-destruct?
I'm not going to edit anything until I understand this.
... thinking it will be a sleepless night...:cry
that's going bonkers for me. I used tables in legacy but Smug removes the table code in NewSmug.
It all works until you edit the description. Most I can fix, but one at a time.
Most all I had to do is assign div class name and add CSS.
But I had to switch to a FlexBox for where the table code was removed and I had to switch to multiple div's.
http://www.photosbyat.com/Birds/Missouri-Bird-Photos-A-G/i-TN7c4SW
I worked this one last night getting it all lined up and adding MAP code.
http://www.photosbyat.com/Birds/2006-Birds-of-Japan/i-xdcVPtJ
My Website index | My Blog
Last night for the first time in maybe 30 years I couldn't go to sleep until 3:00 am. When 11 PM is my norm. :cry
So Allen are you saying that you had left some older legacy html and table code in some descriptions, when you unveiled? Or had you updated them in preparation for New, working within the new restrictions, and the code still broke in the Description fields?
before unveiling was done switching to legacy. Some descriptions used tables so I edited them in
legacy in preparation. All legacy descriptions used html tags which were missing in NewSmug so I could
not edit in NewSmug or the html tags would disappear in legacy and bork that view.
My Website index | My Blog