Language: 
To browser these website, it's necessary to store cookies on your computer.
The cookies contain no personal information, they are required for program control.
  the storage of cookies while browsing this website, on Login and Register.
Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Select language:

Community



Donate

Donate for PortaMx !
Your donation is safe and helps support the issues and causes you care most about.

Stats

  • *Total Members: 4319
  • *Latest: thygrim

  • *Total Posts: 15779
  • *Total Topics: 2382
  • *Online Today: 4
  • *Most Online: 157
(27.08.09, 03:54:53)
  • *Users: 0
  • *Guests: 1
  • *Total: 1

Author Topic: path of uploaded avatars, pointing to main domain  (Read 2813 times)

0 Members and 0 Guests are viewing this topic.

Offline luuuciano

  • Jr. Member
  • **
  • Posts: 85
  • Gender: Male
If the admin setup another path for avatars (like is recommended by smf thread about forum resources) the path will be bad in each forum...

Well, it remains pointing to the "main" domain... some browsers handle it ok, and shows the image file "redirected" to the subdomain... but others (IE 8 at least, do not know about others) will show a 404 mark on that image

(No idea why, I have tried using the image url and it is redirected... it is like when is showing/rendering the webpage it acts in misterious ways)

Offline feline

  • CO PortaMx corp.
  • Administrator
  • *
  • Posts: 5586
  • Gender: Female
Re: path of uploaded avatars, pointing to main domain
« Reply #1 on: 28.03.12, 07:23:38 »
You have a custom avatar upload directory set?
I have never seen this problem ... works on our servers

we have url's like
httx://portamx.com/customfolder/avatar_x_xxxxxx.jpg
or (on subforum)
httx://subforum.portamx.com/customfolder/avatar_x_xxxxxx.jpg
Many are stubborn in relation to the path, a few in relation to the target.

Offline luuuciano

  • Jr. Member
  • **
  • Posts: 85
  • Gender: Male
Re: path of uploaded avatars, pointing to main domain
« Reply #2 on: 28.03.12, 19:26:03 »
Well... my avatar paths are like
Code: [Select]
<div id="smf-avatar"><img src="http://ikers.com.ar/avatarsup/avatar_1_1327602036.png" alt="" class="avatar"></div>
(and I was looking http://cba.b.ikers.com.ar/ ... ikers.com.ar is the "main" domain)


mmmm, the code that outputs that is:

Code: [Select]
<div id="smf-avatar">', $context['user']['avatar']['image'], '</div>';

Offline feline

  • CO PortaMx corp.
  • Administrator
  • *
  • Posts: 5586
  • Gender: Female
Re: path of uploaded avatars, pointing to main domain
« Reply #3 on: 28.03.12, 21:32:31 »
What is your domain you use in Subforums?
Many are stubborn in relation to the path, a few in relation to the target.

Offline luuuciano

  • Jr. Member
  • **
  • Posts: 85
  • Gender: Male
Re: path of uploaded avatars, pointing to main domain
« Reply #4 on: 04.04.12, 07:58:06 »
What is your domain you use in Subforums?

The subforums are like something.b.ikers.com.ar (the working ones are cba.b.ikers.com.ar and salta.b.ikers.com.ar)
The main domain is ikers.com.ar....

Is this maybe related to the way smf & pmxsubforums handle paths?

Because my theme has calls like:
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/', $cssfix, '.css" />

that $settings['default_theme_url'] is allways pointing to the main domain (as it is stored on smf theme paths section)... never gets the subdomain value....

EDIT: then I realized about the "default"... so I think that is how it should go... about the uploaded avatar path/url no idea... its looking on default too?

Offline feline

  • CO PortaMx corp.
  • Administrator
  • *
  • Posts: 5586
  • Gender: Female
Re: path of uploaded avatars, pointing to main domain
« Reply #5 on: 05.04.12, 14:58:56 »
It's not interest from which url you load a image .. else you can't never load a image from a other site.
You have any restrictions by a .htacess or similar?

This is Avatar from your site (cba.b.ikers.com.ar) :)
Many are stubborn in relation to the path, a few in relation to the target.