External Image Server (on Subdomain) for Logo

niaxilin - April 22, 2009 - 15:55

My first post (of many?) on the Drupal forums. Here goes...

Our site hosts images on separate servers for load balancing. I notice in includes\theme.inc that $settings['logo'] is set to base_path() . $settings['logo_path'] and I assume base_path() can't be anything different from the main URL.

Is there any alternative path, say image_path(), that could be referenced here and other places (are the other places?) in the code?

For now, $settings['logo'] = base_path() . $settings['logo_path']; will become $settings['logo'] = $settings['logo_path']; but it feels dirty.

Re External Logos

Imbi Indie Portal - April 25, 2009 - 15:11

Hi, also my first post!

I had a similar problem, using Drupal 5.x dev..
I'm serving images from our FREE-User webspace at TPG to allow concurrent downloads and speed site rendering.

I also noted that the ‘favicon setting’ was doing the same thing, so I also made the same ‘dirty mod’ on that field.
I believe that its a good policy to use a fully qualified host name to specify the favicon.ico which is in the web root.
My drupal install is simply in a folder called 'drupal', as its more or less a test bed and a learning curve job.

A lot of jobs I see require CMS experience.
I had to fight with out hosts to get LOCK TABLES on our DB permissions.
I used to run my own servers, gee, I miss those days!
As it is, TPG still only offer PHP 4 and MySQL 4, so I WILL be looking for New Webhosts ASAP.

I'm concurrently doing a drupal 6.9 setup on a Mandrake server at home, and will be implementing the same changes, and possibly be working on a permanent work-around, and will post it when and if I succeed.

I will have to learn how this website works first though.
Great Site and product. ThankYou!

Time is relative to the observer

 
 

Drupal is a registered trademark of Dries Buytaert.