Announcement

Collapse
No announcement yet.

Coding error regarding images

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Coding error regarding images

    Basically, i'm new to this program and keep working myself into a corner. This time I cant figure out what i've done wrong but there is a coding error saying that standard fragment images aren't correct. Here, maybe my code may help:

    Here is the coding for a standard fragment image:

    <actinic:block if="%3cactinic%3avariable%20name%3d%22IsFragmentImageALink%22%20%2f%3e" >
    <actinic:block if="%3cactinic%3avariable%20name%3d%22IsFragmentLinkToURL%22%20%2f%3e" >
    <a href="<actinic:variable name="FragmentLinkedItemID" />">
    </actinic:block>
    <actinic:block if="%3cactinic%3avariable%20name%3d%22IsFragmentLinkToProduct%22%20%2f%3e" >
    <a rel="nofollow" href="<actinic:variable name="SearchCGIURL"/>?PRODREF=<actinic:variable name="FragmentLinkedItemID" /><actinic:block if="%3cactinic%3avariable%20name%3d%22IsHostMode%22%20%2f%3e">&amp;SHOP=<Actinic:Variable Name="ShopID"/></actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e">&amp;NOLOGIN=1</actinic:block>">
    </actinic:block>
    <actinic:block if="%3cactinic%3avariable%20name%3d%22IsFragmentLinkToSection%22%20%2f%3e" >
    <a rel="nofollow" href="<actinic:variable name="SearchCGIURL"/>?SECTIONID=<actinic:variable name="FragmentLinkedItemID" /><actinic:block if="%3cactinic%3avariable%20name%3d%22IsHostMode%22%20%2f%3e">&amp;SHOP=<Actinic:Variable Name="ShopID"/></actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e">&amp;NOLOGIN=1</actinic:block>">
    </actinic:block>
    </actinic:block>
    <img src="<actinic:variable name="FragmentImageFileName" />"
    title="<actinic:variable name="FragmentTitle" encoding="strip" />"
    alt="<actinic:variable name="FragmentTitle" encoding="strip" />"
    border="0"
    width="<actinic:variable name="FragmentImageWidth" />"
    height="<actinic:variable name="FragmentImageHeight" />"
    />
    <actinic:block if="%3cactinic%3avariable%20name%3d%22IsFragmentImageALink%22%20%2f%3e" >
    </a>
    </actinic:block>

    And the error i keep getting is:

    - The 'fragmentimagefilename' variable has been placed within the 'standardfragmentimage' layout, but it wont work there.
    - The 'fragmenttitle' variable has been placed within the 'standardfragmentimage' layout, but it wont work there.
    - The 'fragmentimagewidth' variable has been placed within the 'standardfragmentimage' layout, but it wont work there.
    - The 'fragmentimageheight' variable has been placed within the 'standardfragmentimage' layout, but it wont work there.



    Any help would be much appreciated.

    Cheers

    #2
    SellerDeck sometimes throws up spurious error messages like you're reporting. Close and restart SellerDeck and see if they clear.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      cheers for the quick reply but ive tried restarting it numerous times to no avail.

      Maybe a computer reset is in order? As far as i can tell everything is fine positioning wise and all the images are there. Its just throwing this random error up.

      Comment


        #4
        Hmmm... Restarting usually clears such warnings for me.

        It may be that you've inadvertently put some of these variables into a Layout where they really are invalid.

        If you go to Design / Library / Layouts, right click the top of the library, then choose Find; you can search for fragmentimagefilename. If you see it in an unexpected place that may point out where to look.

        Also, you can right-click layouts in the library and use "Revert to Factory Settings".
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          well i just searched for the name you put there and it said it couldnt find anything. If i set layouts back to default is there a chance i could lose a lot of the changes i made to my website?

          EDIT: Dont mind me searched with the full stop. (duh) It appears in the "standard fragment image", "fragment layout using css" and "headline fragment layout" if this means anything to you?

          cheers in advance,
          Michael

          Comment


            #6
            it couldnt find anything
            I think you have to check the Code checkbox. There should only be 3 instances on a standard site.
            Norman - www.drillpine.biz
            Edinburgh, U K / Bitez, Turkey

            Comment


              #7
              Dont mind me searched with the full stop. (duh) It appears in the "standard fragment image", "fragment layout using css" and "headline fragment layout" if this means anything to you?

              really beginning to annoy me now.

              cheers

              Comment


                #8
                Anyone? Could really do with some quick help?

                Is there an easy way around it when uploading?

                Comment


                  #9
                  It's hard to know what the problem is without knowing what you've been doing.

                  The three most likely problems to me are:

                  1. A database problem - try compact and repair.

                  2. The definition of where the variables can be used might be wrong. check for each variable.

                  3. You might somehow be trying to use using the fragment where the variables haven't been specified for. In which case delete the fragment or change the variable definition.

                  Mike
                  -----------------------------------------

                  First Tackle - Fly Fishing and Game Angling

                  -----------------------------------------

                  Comment


                    #10
                    Having a 'mare today.

                    Now actinic v11 wont even open. It just loads up and then gives me an error message saying it needs to close. Tried the database repair, didnt work. Now just waiting for sellerdeck support to get back to me.

                    Its only my second day on the website, so i dont know if someones been murdering the code before i got to it or what but its annoying me.

                    Cheers fellas,
                    Michael (DFS Fixings)

                    Comment

                    Working...
                    X