1. REGISTRATION REQUIREMENTS:

    Your username here MUST MATCH your XenForo username (connected to your XF license).

    Once you have registered here, then you need to start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

Remove image above article?

Discussion in 'AMS Support' started by CarpCharacin, Feb 4, 2019.

  1. CarpCharacin

    CarpCharacin Member AMS Showcase

    On XF1, all of the images in articles were inserted below the article, but when I upgraded to XF2, now the checkbox is set to display the image above the article, resulting in the image being displayed twice. Is there a way to disable the showing of the image above the article on all the older articles without having to go back and manually edit them all?
     
  2. Bob

    Bob Developer Staff Member

    No, you had an option to display a Gallery (which is the collection of all image attachments uploaded to the article) in several different locations, one of which was "Overview Tab - below article". Own Tab was the default.

    Selection_161.png

    I think you are confusing two completely different functions. The Gallery (which is a collection of images) and the Cover Image (which is a single uploaded attachment designated as the "Cover Image" for the article) have different controls and options.

    As for the Cover Image being displayed above the Article in AMS 2.x, This update did not SET/ENABLE/CHANGE the 'cover_image_header' field on existing articles, it just re-implemented the ability to set that option (the add/edit article forms had the option re-added to it) that has been in AMS for several years (it was used to display the cover image in the header, now its used to display the cover image above the article). If you have articles that are displaying the cover image above the article, that would be because those articles were set to display the cover image in the header for AMS 1.x and it carried over to AMS 2.x. There is no code in AMS 2.0.x that updates all articles and sets the 'cover_image_header' to 1 (enabled). Those would have been set at some point in AMS 1.x.

    Selection_160.png
    This is the per article setting that has been re-enabled to let each article author decide whether to display the cover image above the article or not.

    Selection_162.png


    You can run this simple update statement to set the "Display cover image above article" option to disabled for ALL Legacy Articles (all articles that are currently in the system). Authors will be able to edit any of those and enable the option again if they want to and of course, any NEW articles will have what ever the Article Author decides to set.

    Code:
    UPDATE xf_xa_ams_article SET cover_image_header = 0;
     
    Last edited: Feb 5, 2019
    CarpCharacin likes this.
  3. CarpCharacin

    CarpCharacin Member AMS Showcase

    Thanks, the query worked. What I meany by the images being inserted below the article is that they had been manually inserted into the article editor below the custom fields, and on XF1, it didn't display above the article in any of the articles, but when I upgraded to XF2, the cover image was displayed above the article, along with having been inserted into the article previously. I think the cover image might have been displayed on the right column of the article on XF1, but it definitely was never displayed ABOVE the article until after I upgraded to XF2.
     
    Bob likes this.
  4. Bob

    Bob Developer Staff Member

    Ah, ya, I can see why you'd want the Cover Image removed then (which is also why its a per article option in AMS 2.0).
     
    CarpCharacin likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.