Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 2 of 2

Thread: ML7 Large image popup

  1. #1
    basketcase is offline Junior Member
    Join Date
    Nov 2008
    Posts
    6

    Default ML7 Large image popup

    http://www.basketconcepts.com
    The large images are opening in a huge window, but the images themselves are small.
    In admin, I can see that the large images are, in fact, large, and I'm sure I'm missing something really obvious in the appconfigs.

    Can someone tell me what it is?

    Thanks,
    Cindy

  2. #2
    MarkC is offline Developer
    Join Date
    Aug 2006
    Posts
    166

    Default

    This was a known issue on ML 7.0.2.5 for watermark images, fixed on later versions.
    Please open popup.aspx.cs and modify the following:


    C#/VB.NET Code:
    if (CommonLogic.QueryStringCanBeDangerousContent("src").Length != 0)
                {
                    
    // IMAGE POPUP:
                    
    Response.Write("<body style=\"margin: 0px;\" bottommargin=\"0\" leftmargin=\"0\" marginheight=\"0\" marginwidth=\"0\" rightmargin=\"0\" topmargin=\"0\" bgcolor=\"#FFFFFF\" " CommonLogic.IIF(AppLogic.AppConfigBool("OnBlurPopups"), "ONBLUR=\"self.close();\"""") + " onClick=\"self.close();\" onLoad=\"self.focus()\">\n");
                    
    Response.Write("<center>\n");
                    
    Response.Write("<img name=\"Image1\" onClick=\"javascript:self.close();\" style=\"cursor:hand;cursor:pointer;\" alt=\"" AppLogic.GetString("popup.aspx.1"1Localization.GetWebConfigLocale()) + "\" border=\"0\" src=\"" Server.HtmlEncode(CommonLogic.QueryStringCanBeDangerousContent("src")) + "\">\n");
                    
    Response.Write("<br/>");
                } 
    to:

    C#/VB.NET Code:
    if (CommonLogic.QueryStringCanBeDangerousContent("src").Length != 0)
                {
                    
    string sSrc CommonLogic.QueryStringCanBeDangerousContent("src");
                    if (
    sSrc.ToLowerInvariant().Contains("wolthuis"))
                    {
                        
    sSrc += "&size=" CommonLogic.QueryStringCanBeDangerousContent("size");
                    }
                    
    // IMAGE POPUP:
                    
    Response.Write("<body style=\"margin: 0px;\" bottommargin=\"0\" leftmargin=\"0\" marginheight=\"0\" marginwidth=\"0\" rightmargin=\"0\" topmargin=\"0\" bgcolor=\"#FFFFFF\" " CommonLogic.IIF(AppLogic.AppConfigBool("OnBlurPopups"), "ONBLUR=\"self.close();\"""") + " onClick=\"self.close();\" onLoad=\"self.focus()\">\n");
                    
    Response.Write("<center>\n");
                    
    Response.Write("<img name=\"Image1\" onClick=\"javascript:self.close();\" style=\"cursor:hand;cursor:pointer;\" alt=\"" AppLogic.GetString("popup.aspx.1"1Localization.GetWebConfigLocale()) + "\" border=\"0\" src=\"" Server.HtmlEncode(sSrc) + "\">\n");
                    
    Response.Write("<br/>");
                }