Members can't change avatars

Permalink
When trying to upload a new avatar the uploader works fine and confirms that it saved the new upload but the old image is still displayed. I can delete the image and that updates correctly, but uploading a new image always results in the original upload being displayed. Cleared the site cache and deleted the images from the backend with the same result.

Ideas?

wormracer08
 
wormracer08 replied on at Permalink Reply
wormracer08
So it turns out that the problem was with a javascript file I included in my header template that relies on jQuery UI. The problem then is that if I include jQuery UI in my header template, everything is fine if logged in as a regular user that cannot edit the site. However if logged in as Admin a second version of jQuery UI is loaded automatically by concrete5 which obviously caused problems.

So how can I check for the edit bar and then use jQuery to dynamically write the head tag. I figured it would be something similar to checking the CCM_EDIT_MODE var, but haven't found any solution yet.

Thanks in advance.