Hi,

I've got one problem:

when I switch on the "normal mode" the logo ist displayed correctly.
In the source code it looks like this:

Only local images are allowed.

But when I switch to random or specified mode I get this:

Only local images are allowed.

and that doesn't display a logo (I changed the real domain name to 'mydomain.de' in this example') ;-)

Is it a bug? What can I do to correct this? The same happenes with version 6.x-2.05.

Thanks a lot in advance and regards,

Josch

Comments

pobster’s picture

Hi, can you repost but put <code> tags around your source code - it's invisible otherwise.

Thanks,

Pobster

Josch’s picture

damned ... here it comes ...

The first link (normal mode):

<td colspan="4"><a href="/" title="Startseite"><img src="/sites/default/files/logos/logo.png" alt="Startseite" /></a></td>

The second link (random logo):

<td colspan="4"><a href="/" title="Startseite"><img src="http://mydomain.de/?q=system/files/sites/default/files/logos/logo2.png" alt="Startseite" /></a></td>

strange thing - isn't it?

Regards,

Josch

pobster’s picture

Ah okay, so you're trying to serve the logos from a private folder then? Can you paste your settings so I can reproduce this locally?

Thanks,

Pobster

Josch’s picture

Hi,

it doesn't matter, which folder i set in the "Path to your logos folder". I tried it with only "logos" and the link looks like this:

<td colspan="4"><a href="/" title="Startseite"><img src="http://mydomain.de/?q=system/files/sites/default/files/logos/logo5.png" alt="Startseite" /></a></td>

The Logos are switched but the path is totally wrong. It should be

<td colspan="4"><a href="/" title="Startseite"><img src="/sites/default/files/logos/logo5.png" alt="Startseite" /></a></td> or when set to only "logos":

<td colspan="4"><a href="/" title="Startseite"><img src="/misc/logos/logo5.png" alt="Startseite" /></a></td>

Which settings do you need? These:

Path to default/ main logo:
'sites/default/files/logos/logo_neu3.jpg'

Path to your logos folder:
'logos' or 'sites/default/files/logos'

doesn't matter which one is chosen. Only the "Normal mode" works. No other one. Only then a correct img src link is set.

TIA and regards,

Josch

pobster’s picture

Okay... You're kind of missing the point a little, when you set your Drupal installation to be a private file system you're supposed to not have that directory visible to the web (i.e. not /sites/default/files!). When it's set to be private Drupal 'serves' the files via a script/ function called when /system/files/*** is accessed (or yours which is without clean URLs so ?q=...) this is correct behaviour! If it accessed it directly it wouldn't be very private would it? ;o) The path produced by Logotool is sort of correct...

So... Why your paths are long like that - they should actually be simply; <img src="http://mydomain.de/?q=system/files/logos/logo5.png" alt="Startseite" />

If you've set up the /admin/settings/file-system page correctly yours should look like...

File system path:
sites/default/files

Right? Then what happens is that when the Drupal API call for displaying files is called, it checks to see if the file resides in this directory. If it doesn't, then it prepends it with /sites/default/files - if it already *has* this, then for example my site shows;

<img src="http://www.arcadegeek.co.uk/system/files/logos/logo.gif" alt="Home">

See that actual folder is something more like /Library/WebServer/private/arcadegeek

This is more likely to do with your Drupal set up in this area than the module. Do you have some mad rewriting going on?

Pobster

Josch’s picture

Hi pobster,

thanks a lot. It was a problem with the paths. I switched the "Path to
your logos folder" back to "logos" and set up a folder named "logos"
in "misc".

Regards,

Josch

pobster’s picture

Status: Active » Closed (works as designed)

> ...and set up a folder named "logos" in "misc".

Ummm... Why? I'm not I understand your reasoning for this? I thought my explanation was pretty clear?

...But then if you're happy and it works... I'm closing this ticket.

Thanks,

Pobster