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.

Awaiting Feedback Team Icons Not Resolving

Discussion in 'Pickem Support' started by Chris Metsala, Nov 8, 2021.

  1. Chris Metsala

    Chris Metsala New Member Pickem


    Ok, so I uploaded all of the team icons I'm using into /styles/default/xenaddons/pickem/logos/. All icons are .jpg. I put the "name.jpg" into the logo field of each team's edit form. However, the icons are showing as broken when I view any of the pages.

    When I view the rendered code, the base URL looks correct. I also noticed that while my site uses HTTPS, and none of the images display using the https URL, they do display at same location using HTTP.

    Any ideas? Thanks in advance.
  2. Bob

    Bob Developer Staff Member

    I've seen this before when the Board URL (which is what XF uses as the BASE URL) is not set correctly. You mention that the icons use HTTP instead of HTTPS and that would mean that the Board URL is set to HTTP and not HTTPS. Check that and change it to https and see if that resolves it.

  3. Chris Metsala

    Chris Metsala New Member Pickem

    Thanks for the quick reply!

    The board url was set as http at my amazement - I was almost sure I had that set correctly. However, even after changing it the problem persists.

    Example: works
    https://masonhoops.com/styles/default/xenaddons/pickem/logos/vcu.jpg does not

    When I view the code from the rendered page, I'm seeing:
    <img src="/styles/default/xenaddons/pickem/logos/vcu.jpg"> so it looks like the base URL is not appending?
  4. Bob

    Bob Developer Staff Member

    That is correct...

    This is from my XF2 demos site. You can see that the source is relative, however, when you actually mouse over it, you will see that the FULL URL includes the BASE URL. Can you post the same screen shot including the fully rendered source. Could be some kind of server configuration as well.

  5. Bob

    Bob Developer Staff Member

    Template Code examples... I use standard core XF base_url syntax that is used throughout XF (for standardization purposes).
    <img src="{{ base_url('styles/default/xenaddons/pickem/logos/' . {$game.vteam_logo}) }}" />
    <img src="{{ base_url('styles/default/xenaddons/pickem/logos/' . {$game.hteam_logo}) }}" />
    Only thing that comes to mind is a server configuration of some kind.

    Is your pickem public? if so, can you post a URL?
  6. Chris Metsala

    Chris Metsala New Member Pickem

  7. Bob

    Bob Developer Staff Member

    If you hover over the image source, it picks up the correct BASE URL, but its not LOADING the image, because your webserver is throwing a 404 (even tho you can direct access the images with the IP address).
  8. Bob

    Bob Developer Staff Member

  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.