OK I've set everything up right for the paths, and have no errors but it is still displaying the default image file banner.jpg as set in the theme.

Logo image settings
If toggled on, the following logo will be displayed.
Use the default logo - not ticked

Check here if you want the theme to use the logo supplied with it.
Path to custom logo: - logo.php

The theme is marinelli...

Within logo tool

the path is set to "logos" and raises no errors.. logo.php is located at the root.

Any help you can offer would be greatly appreciated...

site is www.walkabout2008.com/walkdrupal

Thanks, Karl.

Comments

pobster’s picture

The path is set to "logos"? What path? Do you mean the FULL SYSTEM PATH? Where it says this;

Path to your logos folder:

/var/www/localhost/htdocs/sites/yourcrappysite.com/files/logos

The FULL SYSTEM PATH to the folder which contains your logos.

Is that the path you mean?

Pobster
PS. I can't access your site, it's available only on your local network.

stumpykb’s picture

I have tried this too.. and get unsupported file type... I have save images as PNG

http://www.walkabout2008.com/walkdrupal/logo.php

site is http://www.walkabout2008.com/walkdrupal/

Thanks... Karl.

pobster’s picture

Well the unsupported filetype is better than not working at all. It's likely down to that you're running it in a sub-directory, but meh - I thought I'd fixed most of those types of errors. The logo listings tab on the settings page shows all your logos by file system reference rather than by variable - do your logos display there?

Pobster

stumpykb’s picture

Yes sorry should have said.. they display perfectly...

K>

pobster’s picture

Go to 'create content' and make a new page, selecting the php input filter cut and paste this and tell me the result;

  print "Current Working Directory = ". variable_get('logotool_folder', LT_CWD);
  print "<br />Default Logo = ". variable_get('logotool_path', 'misc/druplicon.png');
  print "<br />Current Logo Variable = ". variable_get('logotool_logo', '') ."<p />";
  $info = image_get_info(sprintf("%s/%s", variable_get('logotool_folder', LT_CWD), variable_get('logotool_logo', '')));
  print_r($info);

Pobster

pobster’s picture

Ohhhhhhhhhhhhhhhhhhhhhh wait, I'd not heard of Marinelli so i just looked it up... Check out the issue queue;

http://drupal.org/node/230328

Marinelli doesn't use a logo - it uses some sort of custom banner which in 6.x you can rotate like logotool does. I'm afraid though, I can't help you 'fix' a theme which doesn't have a logo - not my job... You'll have to make a feature request to the themes author.

Pobster

stumpykb’s picture

php test

Current Working Directory = logos
Default Logo = logos
Current Logo Variable = logos

stumpykb’s picture

well ill replace the theme as I *want* a logo change...

Can you suggest ones that work ok with you...

K>

pobster’s picture

Do you want me to post comment #1 again? How many more times do I need to write FULL SYSTEM PATH??!!?!?!?!!

Try it again with your FULL SYSTEM PATH and let me know if that solves it. You know, when you use your FULL SYSTEM PATH rather than just "logos"... As it asks you to, when it says FULL SYSTEM PATH below the box that you enter your FULL SYSTEM PATH into.

Let me know how it goes... May the force be with you...

Pobster

stumpykb’s picture

Hi, The question is if its a problem with location of images, how come they are located ok by your logotools logo viewer. I have changed the theme, still no joy..

And still reporting unsupported file type on png file when you use...

http://www.walkabout2008.com/walkdrupal/logo.php

Thanks, Karl.

pobster’s picture

It's because it's an unrelated hook, if the logo was defined within Drupal then the whole of Drupal would need to be bootstrapped in order to just display the logo and then it'd get bootstrapped AGAIN to show the site.

I'm interested that the snippet didn't return anything from the image module function, do you not have it installed? If not, install it - it's likely the problem, it's a hidden dependency that I'd forgotten about...

  print "Current Working Directory = ". variable_get('logotool_folder', LT_CWD);
  print "<br />Default Logo = ". variable_get('logotool_path', 'misc/druplicon.png');
  print "<br />Current Logo Variable = ". variable_get('logotool_logo', '') ."<p />";
  $info = image_get_info(sprintf("%s/%s", variable_get('logotool_folder', LT_CWD), variable_get('logotool_logo', '')));
  print_r($info);

Would you try it again now you've altered the logos path to be a system path and not the default.

Pobster

stumpykb’s picture

Hi.. Yu have lost me completely with the request to install "the image module function" what do you want me to install?? I'll change the pathing...

Thanks
K>

stumpykb’s picture

Changed path to /var/www/html/walkdrupal/logos

now says invalid within logotools setup.

Is that correct pathing???

pobster’s picture

Forget what I said about installing the image module, the function comes from the includes/image.inc file - which you should have if you've a normal Drupal install. Just YES, change the path before I start crying and report back here.

Pobster

pobster’s picture

How would I know if that's where your logo folder is???? I don't have access to your server. Just go to a command line and type ..

ls -la /var/www/html/walkdrupal/logos

Just find where it is, if you press the TAB key the menu path will autocomplete (to a point, if there's more than one match it'll show the possible matches and expect you to type another letter). So find where your logos are located and type it into the damn box.

Pobster

stumpykb’s picture

Looks correct....

ls -la /var/www/html/walkdrupal/logos
total 2588
drwxr-xr-x 2 walkadmin walkadmin 4096 Mar 18 07:18 .
drwxr-xr-x 12 walkadmin walkadmin 4096 Mar 18 11:24 ..
-rw-r--r-- 1 walkadmin walkadmin 352950 Mar 18 07:18 This Autumn take time out.png
-rw-r--r-- 1 walkadmin walkadmin 151153 Mar 18 06:57 help change childrens.jpg
-rw-r--r-- 1 walkadmin walkadmin 464666 Mar 18 07:18 help change childrens.png
-rw-r--r-- 1 walkadmin walkadmin 130786 Mar 17 13:06 q1.jpg
-rw-r--r-- 1 walkadmin walkadmin 405893 Mar 18 07:19 q1.png
-rw-r--r-- 1 walkadmin walkadmin 132140 Mar 17 13:04 raise money.jpg
-rw-r--r-- 1 walkadmin walkadmin 429696 Mar 18 07:18 raise money.png
-rw-r--r-- 1 walkadmin walkadmin 126235 Mar 17 13:05 wherewillyoube.jpg
-rw-r--r-- 1 walkadmin walkadmin 397020 Mar 18 07:18 wherewillyoube.png

stumpykb’s picture

OK seems to be working now... it is just 'logos' i dont think the page was refreshing to input for some reason.. Q... is it jusy phg files supported or jpg's and gif's too???

Thanks for your help...

K>

stumpykb’s picture

OK seems to be working now... it is just 'logos' i dont think the page was refreshing to input for some reason.. Q... is it jusy png files supported or jpg's and gif's too???

Thanks for your help...

K>

pobster’s picture

Status: Active » Fixed

Any image file which has a mime type which can be read by the image_get_info() function will work. I just took a quick look at it and there's a line which reads;

$extensions = array('1' => 'gif', '2' => 'jpg', '3' => 'png');

So I'd assume that's all it can understand, but I can't imagine anyone would really want to use any others.

Pobster

pobster’s picture

PS. Are you doing stuff for a charity? To raise money? Only I wrote a simple charity thermometer module once if you're interested? I'll dig it out if you are.

Pobster

stumpykb’s picture

hi thanks for the info.. yes we are rasing money for debra (child brittle skin syndrome) the thermometer is a great idea, we would need it though to link to a user profile, they would raise, does yours do that???

my best, Karl.

pobster’s picture

Well it's pretty specific for this site; http://www.essexairambulance.uk.com and I have just noticed that I don't have the most up to date version of it either... But it works and it's pretty and if you want it I can post it here in a zip file. It literally just has a settings page which you enter how much you're trying to raise, how much you've raised and various settings for currency and text display. It's not very complex... Was never really meant to be!

Pobster

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.