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 9 of 9

Thread: I have two Watermarks! ARRGGHHH

  1. #1
    BarbMcG is offline Junior Member
    Join Date
    Oct 2011
    Posts
    9

    Default I have two Watermarks! ARRGGHHH

    I am running version ML 8.0.1.2

    I set up the watermark feature, uploaded a watermark image. Set the text watermark to nothing/blank, but now I have my image and a ghost image of the store name behind it. I can't make that go away. My watermark looks fine...position, opacity..all great..except for ghosted text behind it. Any advice would be greatly appreciated.

    Please be gentle with me, I'm not a super code monkey :-)

    Page example: http://www.thegangbox.com/p-884-625o...t-t-shirt.aspx

    Config Set up:

    Watermark.CopyrightImage.Icon ....left blank MISC

    Watermark.CopyrightImage.Large.../images/GBWatermark.png MISC

    Watermark.CopyrightImage.Medium ..../images/GBWatermark.png MISC

    Watermark.CopyrightText ...left this blank MISC

    Watermark.Enabled.....true MISC

    Watermark.OffsetFromBottomPercentage....50 MISC

    Watermark.Opacity.....0.5 MISC

  2. #2
    cjbarth is offline Senior Member
    Join Date
    Oct 2008
    Posts
    392

    Default

    I've always found the existing watermark code to be buggy. I've written some new code that works much better.

    http://forums.aspdotnetstorefront.co...ark&highlight=

    I can't remember if this is the latest edition that I have live, but it should give you a good start. If you have issues please ask.
    ML9.3.1.1
    SQL 2012 Express
    VS 2010
    Azure VM

  3. #3
    BarbMcG is offline Junior Member
    Join Date
    Oct 2011
    Posts
    9

    Default

    Thank you for your quick response CJ, I read the linked posts and think #5 sounds like it would fix my problem.
    I have a question...which file am I editing? The wolthuis.aspx.vb file, or the "CommonLogic.vb" file? I found the wolthuis file, still trying to locate the Commonlogic file.

    I'm not a code person, so I'm not sure what I'm doing. If you could break this down like you were telling a child, I'd be very appreciative.

    Thank you again for your help.

    B

  4. #4
    cjbarth is offline Senior Member
    Join Date
    Oct 2008
    Posts
    392

    Default

    Firstly, if you hit Ctrl-, you can then just type the name of the routine you want to find and Visual Studio will take you right there.

    Secondly,

    Code:
    			'to maximize the size of the Copyright message we will 
    			'test multiple Font sizes to determine the largest posible 
    			'font we can use for the width of the Photograph
    			'define an array of point sizes you would like to consider as possiblities
    			'-------------------------------------------------------
    
    			If imgWatermark Is Nothing Then
    
    				Dim sizes() As Integer = { 16, 14, 12, 10, 8, 6, 4 }
    
    				Dim crFont As Font = Nothing
    				Dim crSize As New SizeF()
    Code:
    				'Draw the Copyright string a second time to create a shadow effect
    				'Make sure to move this text 1 pixel to the right and down 1 pixel
    				grPhoto.DrawString(CopyrightText, crFont, semiTransBrush, New PointF(xCenterOfImg, yPosFromBottom), StrFormat) 'Text alignment - Position - Brush - font - string of text
    
    			End If
    			
    			'------------------------------------------------------------
    			'Step #2 - Insert Watermark image
    			'------------------------------------------------------------
    			If imgWatermark IsNot Nothing Then
    				'Create a Bitmap
    ML9.3.1.1
    SQL 2012 Express
    VS 2010
    Azure VM

  5. #5
    BarbMcG is offline Junior Member
    Join Date
    Oct 2011
    Posts
    9

    Default

    Thank you for trying to help me CJ, but I'm afraid this is way over my head...I'm a Photoshop wizard, but this..this is scary. LOL

    I can't even find anything close to what you've posted in the file I have. I'll have to get a friend with code experience to help me with this...

    I appreciate all your time and help...but I know when to admit defeat...

    Barb

  6. #6
    cjbarth is offline Senior Member
    Join Date
    Oct 2008
    Posts
    392

    Default

    Are you able to open the site in Visual Studio?
    ML9.3.1.1
    SQL 2012 Express
    VS 2010
    Azure VM

  7. #7
    BarbMcG is offline Junior Member
    Join Date
    Oct 2011
    Posts
    9

    Default

    No, Visual wouldn't open it, the only access I have to the site besides the admin side of the store is through an FTP. It looks like it's going to open something, but then nothing happens.

    I was hoping I could do a simple cut and paste with the file in notepad or Dreamweaver.

  8. #8
    cjbarth is offline Senior Member
    Join Date
    Oct 2008
    Posts
    392

    Default

    You can't modify the source code of the files you need to with DreamWeaver. The code needs to be compiled again to run correctly. Did you purchase the source option when you purchased ASPDNSF? You'll need that to make the necessary changes.
    ML9.3.1.1
    SQL 2012 Express
    VS 2010
    Azure VM

  9. #9
    BarbMcG is offline Junior Member
    Join Date
    Oct 2011
    Posts
    9

    Default

    I have no idea CJ, I'll have to check with the owner of the company or the IT guy who set up the shopping cart.

    I think until I can find out about the source option, I'll just take off the graphic watermark and use the text option instead.

    You've been awesome and so kind to help. I'd send you a plate full of warm chocolate chip cookies if I could!