Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: bobdole2281 - elokuu 16, 2013, 11:34:06 AP

Otsikko: Broken Avatar Links?
Kirjoitti: bobdole2281 - elokuu 16, 2013, 11:34:06 AP
As I was tampering with my site, I managed to screw something up. All of the avatar images are showing an error img all of sudden. When I click on inspect element on google chrome this is the code?

<img class="avatar" src="http://marveldcforum.com/index.php?action=dlattach;attach=140;type=avatar" alt="">

I'm not sure how I could change my image paths without actually moving any of the images. Any ideas?
Otsikko: Re: Broken Avatar Links?
Kirjoitti: All Colours Sam - elokuu 16, 2013, 11:57:43 AP
So, what exactly did you do? or move around?

Theres a way to move the avatars to avoid the heat of load a bunch of SMF functions on every avatar call, making avatar links a static link to the actual image. http://www.simplemachines.org/community/index.php?topic=293441.0

As for the broken link, check if you have the .htaccess SMFs provides with the attachments dir.
Otsikko: Re: Broken Avatar Links?
Kirjoitti: emanuele - elokuu 16, 2013, 03:37:50 IP
Same answer as here:
http://www.simplemachines.org/community/index.php?topic=509628.msg3594581#msg3594581
Otsikko: Re: Broken Avatar Links?
Kirjoitti: bobdole2281 - elokuu 16, 2013, 06:22:38 IP
I apologize for the double thread. Although slightly different, there was no need. I fixed the problem.

You guys are genius! It was something as simple as a space!

Also, I edited most of my problems in index.template.php inside my Theme folder instead of the root index.php
Otsikko: Re: Broken Avatar Links?
Kirjoitti: emanuele - elokuu 16, 2013, 06:29:18 IP
It's completely solved, because also your footer has the same problem as your header. ;)