• 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.

Awaiting Feedback Team Icons Not Resolving

Chris Metsala

New Member
Pick'em
Hello!

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.
 
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.


Selection_255.png
 
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:
http://64.225.18.124/styles/default/xenaddons/pickem/logos/vcu.jpg 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?
 
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?
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.

Selection_256.png
 
Template Code examples... I use standard core XF base_url syntax that is used throughout XF (for standardization purposes).
Code:
<img src="{{ base_url('styles/default/xenaddons/pickem/logos/' . {$game.vteam_logo}) }}" />
Code:
<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?
 
A-10 Conference Play Survivor - Week 1, Dec 30 - Jan 8

Working on the screen capture... but I suspect you'll see what you need from the link. It's viewable by the public, but not yet advertised/linked to.
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).
 
Back
Top