Welcome to Geeklog Monday, December 06 2021 @ 01:24 am EST

Geeklog Forums

Use Sitename if no LOGO image

Page navigation


Status: offline

squatty

Forum User
Full Member
Registered: 21/01/02
Posts: 269
Try this:

PHP Formatted Code

<?php
global $_CONF;

$filename = '/var/www/html/internetsider/public_html/layout/CDCblues/images/logo.gif';
if (file_exists($filename)) {
print '<a href="'.$_CONF['site_url'].'/index.php"><img src="$filename" alt="'.$_CONF['site_name'].'"></a>';
} else {
print '<font size="6" color="#BEA982">'.$_CONF['site_name'].'</font>';
}
?>

 


If the above doesn't work, replace the print with echo. This should return the code to your browser. Reply back with what you see.
In a world without walls and fences, who needs Windows and Gates?
 Quote

CDC

Anonymous
This is the place of my logo:
http://www.internetsider.dk/internetsider/public_html/layout/CDCblues/images/logo.gif

This is what i se when using the code above with and without echo: http://www.internetsider.dk/internetsider/public_html/test-1.jpg
 Quote

Page navigation

All times are EST. The time is now 01:24 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content