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.

Cover Photos Required?

Discussion in 'Showcase Support' started by Ludachris, Apr 29, 2014.

  1. Ludachris

    Ludachris Active Member AMS Premium CAS Premium RMS Premium SC Premium UBS Premium

    I could swear I saw a setting for this... can the admin make cover photos required upon item creation?
     
  2. Bob

    Bob Developer Staff Member

    It is a CATEGORY option...

    Category Management >> Basic Information Tab >> Allow Items to be created >> Require Item Image (If enabled, requires that at least 1 image be uploaded to the item before it can be created.)
     
  3. Ludachris

    Ludachris Active Member AMS Premium CAS Premium RMS Premium SC Premium UBS Premium

    I knew I wasn't crazy. Thanks!
     
  4. Ludachris

    Ludachris Active Member AMS Premium CAS Premium RMS Premium SC Premium UBS Premium

    Oh, I see... you can't require the user to include a cover photo upon item creation, the category view simply won't display items in grid view. I am using List view and I see what appear to be broken images where the cover photo would be. Trying to determine if that's something my users did wrong or if that's how it works. I have opened up my test site to some select usergroups for beta testing.
     
  5. Bob

    Bob Developer Staff Member

    If enabled, requires that at least 1 image be uploaded to the item before it can be created.

    What they do AFTER can't be stopped.. ie, they can remove all attachments if they want to.

    For LIST VIEW display, it first checks to see if there is a cover image, if no cover image, it checks to see if there is a defined category image if that fails, it uses the users avatar.
    HTML:
                                <xen:if is="{$item.cover_image}">
                                    <a class="avatar NoOverlay" href="{xen:link showcase, $item}">
                                        <img width="48" height="48" border="0" src="{$item.cover_image.thumbnailUrl}" />
                                    </a>                      
                                <xen:elseif is="{$item.category_image}" />
                                    <a class="avatar NoOverlay" href="{xen:link showcase, $item}">
                                        <img width="48" height="48" border="0" alt="{$item.category_name}" src="@imagePath/nflj/showcase/category_images/{$item.category_image}">
                                    </a>
                                <xen:else />  
                                    <xen:avatar user="$item" size="s" img="true" />
                                </xen:if>

    for GRID VIEW display, it first checks to see if there is a cover image, if no cover image, it checks to see if there is a defined category image if that fails, it uses the default no_image.png. The users avatar can't be used in Grid View.
    HTML:
                                <xen:if is="{$item.cover_image.thumbnailUrl}">
                                    <img class="showcaseItemThumbnail" src="{$item.cover_image.thumbnailUrl}" />
                                <xen:else />
                                    <img class="showcaseItemThumbnail" src="@imagePath/nflj/showcase/category_images/{xen:if '{$item.category_image}', '{$item.category_image}', 'no_image.png'}" />
                                </xen:if>
     
  6. Ludachris

    Ludachris Active Member AMS Premium CAS Premium RMS Premium SC Premium UBS Premium

    Ok, then it sounds like maybe the users removed images. Still waiting to hear back from them to confirm what they did. Thanks for the clarification.
     
  7. Bob

    Bob Developer Staff Member

    If they removed the images, then their avatar should display. Have you rebuilt showcase thumbnails? If not, you should probably run it for the first time.
     
  8. Ludachris

    Ludachris Active Member AMS Premium CAS Premium RMS Premium SC Premium UBS Premium

    I think I did that already but will do it again.
     
  9. cdub

    cdub Member AMS Premium AMS CAS Premium EMS Early Adopter IMS IMS Premium LD Premium RMS Premium SC Premium UBS Premium

    I'm not seeing "Require item image" anymore in the category general options... although I could be blind again.
     
  10. Bob

    Bob Developer Staff Member

    You are not blind, I pulled that out 6 months ago in SC 2.5.3 when I removed the limitation on attachment uploading to allow FILE ATTACHMENTS to be uploaded instead of just IMAGES. I explained this several times in various threads. Its not permanently gone, its just disabled for now until a professional solution can be implemented (I refuse to HACK something in).

    Sometimes in order to implement a very popular request, other low level functionality takes a hit.
     
  11. cdub

    cdub Member AMS Premium AMS CAS Premium EMS Early Adopter IMS IMS Premium LD Premium RMS Premium SC Premium UBS Premium

    No worries. I must have missed your posts about it.
     
  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.