HTML not working.

A90SixA90Six Registered Users Posts: 5 Beginner grinner
edited November 24, 2013 in SmugMug Support
I have had HTML working in the Captions area since the year dot. Now it is not working and being re-written when I Save it. What's gone wrong and how can I fix it?

I tell a lie, it is still working on some pages but not others. It is removing the <html and </html> tabs along with a few others and will not work with <forms>

I can't just load an HTML box to the page as it loads to the gallery and not to the individual imge.

Please help.

Comments

  • ChancyRatChancyRat Registered Users Posts: 2,141 Major grins
    edited November 15, 2013
    I am not sure what you mean by the last sentence, but regarding the first part, the HTML standards are much more rigorous now. I, too, struggle with getting my HTML fixed. What looked great in old Smugmug, and still looks great in the W3Schools test pages, and in Dreamweaver, does not necessarily work in Smugmug.

    For some HTML code, CSS is now required. For me this applies to lists and somewhat to tables.

    You can try putting snippets of HTML on the HTML block and see if it "takes". Add the next snippet, and see where it breaks. Or just really scrutinize your HTML for accuracy.

    For me, I kind of broke down on the forum about being stopped in place, and someone kindly stepped in and fixed one of my pages. I've been using that as a model for other pages, but even that is limited, as some of mine have other formatting that the first one did not have, and the I can't derive the new CSS needed.

    I wish I had a good answer, but not so much... :cry
  • ChancyRatChancyRat Registered Users Posts: 2,141 Major grins
    edited November 15, 2013
    By the way, HTML will work in the Gallery Description, legacy or new galleries. Also captions ... and some other place.
    There is also a distinct HTML content block.
    What I am doing is, for the page where my HTML is broken (and it's located in the gallery description), I drag an HTML block onto the page and place it above the gallery description.

    Then I work on the HTML separately, and paste it into the HTML block. That block has a CSS tab also, and is where I put the CSS code required.

    So what I see on the screen is the "getting better" HTML at the top, and the old broken code at the bottom.
    Either before or after I "unveil", I will go to each gallery and delete the old gallery description. If I do that now, the pages will be blank for visitors. If I do it after I unveil, the pages will have double the material - good content and bad content - until I delete the old gallery descriptions. I will have a busy day the day I unveil.

    One option is to just create a new page - not a gallery, just a Page (new to Smugmug), where you can put all HTML. I would rather not do this because I will loose my historic URLs for my original galleries. I would rather keep them and fix the content in them. I also have photos or videos in the current galleries. I'm not actually sure if you can drag in galleries into a Page - I haven't check that yet.
  • thenickdudethenickdude Registered Users Posts: 1,302 Major grins
    edited November 15, 2013
    <html> tags are no longer required, you can just leave them out.

    <table> tags were recently blocked in captions, though I imagine that support for these would be added back if some people asked SmugMug about it.

    <form> tags are intentionally not supported for security reasons inside image captions. There isn't any general workaround. If you're using <form> for PayPal buttons in image captions, or a few other situations like Jot Forms, you can use this instead:

    http://www.sherlockphotography.org/Customisations/PayPal/
  • A90SixA90Six Registered Users Posts: 5 Beginner grinner
    edited November 16, 2013
    This still works on some of my captions areas, but not all. If I place it in one of the non-working caption boxes, it gets re-written with the HTML tags and the form tags missing. Yet, it works where it is?

    The paypal link sounds good, but I have a select dropdown on my images for customers to pick different sized images at different prices, so I don't think the paypal link option would work for me.
  • thenickdudethenickdude Registered Users Posts: 1,302 Major grins
    edited November 16, 2013
    Dropdown boxes will not be supported in SmugMug image captions going forwards, because the <form> tag is banned. The PayPal extension I linked converts dropdown boxes into a list of clickable links instead. In the example gallery you can see what the three image sizes in the dropdown I chose on PayPal get rendered as (separate Add to Cart Buttons for each):

    http://www.sherlockphotography.org/Customisations/PayPal/Example-cart-gallery

    Are you using PayPal?
  • A90SixA90Six Registered Users Posts: 5 Beginner grinner
    edited November 16, 2013
    Cliff View - Ballybunion


    Gallery wrapped, canvas prints.





    Canvas Size

    Please Select
    12" x 18" - €100.00
    16" x 24" - €120.00
    20" x 30" - €145.00
    24" x 36" - €175.00





    View Basket





    Ballybunion's Ladies' & Mens' Strands stretching out on a sunny day viewed from the cliff walk.
  • A90SixA90Six Registered Users Posts: 5 Beginner grinner
    edited November 16, 2013
    I am currently using romancart, but payments from them go through my paypal account. I like your paypal buttons on the page, now I just have to work out how to do it to my images.ne_nau.gif
  • thenickdudethenickdude Registered Users Posts: 1,302 Major grins
    edited November 16, 2013
    Are you writing that by hand for every image? If so, excellent, use code similar to this in your captions instead:
    <center><font size=4>Cliff View - Ballybunion</font><br><br>
    <a href="http://www.hartneyphotographics.com/Other/Canvasses/10097448_hEwjD">Gallery wrapped, canvas prints.</a>
    <br>
    <a href="http://www.romancart.com/cart.asp?storeid=48140&quantity=1&itemname=Cliff View - Ballybunion (12in x 18in) {100.00}">12" x 18" - €100.00 [add to cart]</a><br/>
    <a href="http://www.romancart.com/cart.asp?storeid=48140&quantity=1&itemname=Cliff View - Ballybunion (16in x 24in) {120.00}">16" x 24" - €120.00 [add to cart]</a><br/>
    <a href="http://www.romancart.com/cart.asp?storeid=48140&quantity=1&itemname=Cliff View - Ballybunion (20in x 30in) {145.00}">20" x 30" - €145.00 [add to cart]</a><br/>
    <a href="http://www.romancart.com/cart.asp?storeid=48140&quantity=1&itemname=Cliff View - Ballybunion (24in x 36in) {175.00}">24" x 36" - €175.00 [add to cart]</a><br/>
    <br><br>
    <a href=http://www.romancart.com/cart.asp?storeid=48140><img src="http://www.hartneyphotographics.com/photos/731453901_rjwwJ-Ti.png" border =0 alt="View Basket"></a>
    <br>
    </center>
    <br>
    Ballybunion's Ladies' & Mens' Strands stretching out on a sunny day viewed from the cliff walk.
    
  • A90SixA90Six Registered Users Posts: 5 Beginner grinner
    edited November 18, 2013
    Than you so much. ~With a few tweeks it works perfectly. I would like to use a table, but hey! Thanks again.
  • ApertusApertus Registered Users Posts: 3 Beginner grinner
    edited November 24, 2013
    I am having trouble getting the html code that I have always used to work now. I have a section on my site for testimonials, and in the past, it has looked fine with a few changes in font color and size for each testimonial. If you go to this page
    http://www.apertus.biz/Other/Testimonials/n-wk7Z2
    you will see that all of them are fine until the last one. The code that I am using is as follows. I would be eternally grateful to anyone who could help me figure this out. :(

    <font size="4"font color="darkblue">Written by Shannon, mother of senior, Devon (Elsah, IL)</font>
    </br>
    </br>
    <font size="3">
    Hi Ben:
    </br>
    </br>
    I can’t thank you enough for the wonderfully perfect photos you took of Devon for her senior pictures. From start to finish, your professionalism and attention to detail put us both at ease.
    </br>
    </br>
    Choosing a photographer to capture Devon's personality was very important to me. She is a very talented, bright person and I couldn't have asked for a more fulfilling experience across the board. I was looking around for about a month, eliminating photographers for one reason or another when Devon came home from school one day and had me look at your website. From the moment I laid eyes on your work, I knew 100% you were the photographer for us!
    </br>
    </br>
    These pictures are a snapshot in time of Devon's life and I will always cherish the hard work you put into getting it just right! You went the extra mile in making sure location and lighting was ideal for the shoot and went above and beyond what I had expected from a photographer.
    </br>
    </br>
    I looked through the finished product yesterday and there is only one word to describe your talent: Flawless. I will be recommending you to everyone I know! If you need a spokesman, I will be more rhan happy to oblige.
    </br>
    </br>
    Thank you so much for putting so much passion into what you do! It shows before, during, and after the session and we could not be happier with the results!!
    </br>
    </br>
    Please feel free to use this as an unsolicited testimonial.
    </br>
    </br>
    God Bless,
    </br>
    </br>
    Shannon</font>
  • denisegoldbergdenisegoldberg Administrators Posts: 14,393 moderator
    edited November 24, 2013
    Apertus wrote: »
    I am having trouble getting the html code that I have always used to work now. I have a section on my site for testimonials, and in the past, it has looked fine with a few changes in font color and size for each testimonial. If you go to this page ...
    You asked this same question in your thread New html issues. Please don't ask the same question in multiple places.

    I did offer a couple of suggestions in the thread you posted earlier. Please try them and report back in that thread.

    --- Denise
Sign In or Register to comment.