1. REGISTRATION REQUIREMENTS:

    Register with your xenforo.com Username then 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.

Further question to the FAQ

Discussion in 'Showcase Support' started by MagnusB, Aug 14, 2013.

  1. MagnusB

    MagnusB Member Showcase

    Didn't want to reply in that thread, as I think you want to keep that thread clean. From your post:
    For top rated items, I assume they need to be rated AND have a image uploaded?

    Also, is it possible to make uploading images mandatory? For most, this wouldn't be a problem, but for the items my members submit, images strictly aren't necessary, and some of the fancy smancy stuff seems to rely on having images.
     
  2. Bob

    Bob Developer Staff Member

    There are 3 Types of Layouts for the Showcase Home (Modular, List View and Grid).

    List View (like the Resource Manager):
    1. checks to see if there is a cover image and uses that in place of the Authors Avatar
    2. if there is no cover image, it then checks for a Category Image
    3. if no category image, then it displays the User Avy.

    Modular and Grid (can not use Avatars, so in place of a users avatar, a Image Placeholder is used instead)

    [X] Images Required for Modular or Grid Layout
    If enabled, only items with at least 1 attached image will be displayed on the Modular Layout or on the Grid Layout. This option does not apply to the List View Layout.
    1. Only grabs items that have at least 1 attachment uploaded

    [_] Images Required for Modular or Grid Layout
    If enabled, only items with at least 1 attached image will be displayed on the Modular Layout or on the Grid Layout. This option does not apply to the List View Layout.
    1. checks to see if there is a cover image and uses that in place of the Authors Avatar
    2. if there is no cover image, it then checks for a Category Image
    3. if no category image, then it displays the Place Holder (No Image) image.

    So for Top Rated, it depends on if you tell the system to pull with or without images.

    There is no option for mandatory image uploading. You can request it in the suggestions forum. It would probably be a good idea (make it a per category requirement).
     
    MagnusB likes this.
  3. MagnusB

    MagnusB Member Showcase

    Thank you, seems like I was assuming it was the images that made it not work, while it was not. For some reason, the element:
    HTML:
    <div class="bx-loading"></div>
    Is not suppressed after loading. If I manually remove the z-index when the page is done loading, it will display as normal. For now, I have list view enabled, which works for me (I also need to style the grid view, and I am a bit lazy, so....).

    There were some errors in the console, but as I hate the firefox built in tool, I will have to wait until I get home before I can make sense of it.
     
  4. MagnusB

    MagnusB Member Showcase

    Got home, and saw that the error is:
    Copied over the nflj folder from the default style, and I got one step further. Now it is stuck at loading, but nothing ever happens. I checked the underlying elements, and it seems the img urls are just to timestamps:
    HTML:
    <img src="?timestamp=1376580205492" class="resizecrop" style="display: block; height: 150px; left: 100px; top: 0px; position: relative;">
    That might be what is causing it, I am unsure. Right now, I am not certain whether it is a style issue or a showcase issue, as there are no error in the console, so it seems the js stops at the loading parts and never move on from that. The Grid view is working after updating the style. Could it be that I have not defined a default image?

    EDIT:
    Nevermind, I was thinking of something else (category image). Module view is still not working though
     
  5. Bob

    Bob Developer Staff Member

    Three questions,
    Is it doing it with core xenforo default style?
    Did you rebuild Showcase Thumbnails after the upgrade?
    Is it displaying images in GRID View?
     
  6. MagnusB

    MagnusB Member Showcase

    I just tested with the default, same behaviour there. Loading icon appears, and the images behind is just a timestamp. I did rebuild the cache, and the grid view works as expected after I copied over the nflj folder from the default style. However, the items that do have a image displays this just nicely, it is the ones that do not have a image which causes problems for me.
     
  7. Bob

    Bob Developer Staff Member

    hmmmmm I can't reproduce it. Maybe try uploading the javascript files again. The images are pulled the same exact way for both grid and modular.... only different is that I have a slider wrapping the block.
     
  8. MagnusB

    MagnusB Member Showcase

    Think I have found the issue. The template for grid view has this code:
    HTML:
                            <a href="{xen:link showcase, $item}">
                                <xen:if is="{$item.cover_image.thumbnailUrl}">
                                    <img class="showcaseItemThumbnail" src="{$item.cover_image.thumbnailUrl}" />
                                <xen:else />
                                    <img class="showcaseItemThumbnail" src="styles/default/nflj/showcase/category_images/{xen:if '{$item.category_image}', '{$item.category_image}', 'no_image.png'}" />
                                </xen:if>                          
                            </a>
    While the module has this:
    HTML:
                                <div class="showcaseItemThumb">
                                    <a href="{xen:link showcase, $item}"><img class="showcaseItemThumbnail" src="{$item.cover_image.thumbnailUrl}" /></a>
                                </div>
    When I copied over over the xen if statement to the module view, the featured worked as expected. I am not sure if there is a newer version available, I am running 1.3.0 RC1.

    EDIT:
    To clarify, I know this is an RC, and my original intention was just to figure out if it needed images to work in this mode. I am not even sure if I will ever use it, as the list view seems to fit my needs more, but when something doesn't work it kinda irks me the wrong way...
     
    Last edited: Aug 16, 2013
  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.