Topics

User Functions

Events

There are no upcoming events

What's New

Stories

1 new Stories in the last 2 weeks

Comments last 2 weeks

No new comments

Trackbacks last 2 weeks

No new trackback comments

Links last 2 weeks

No recent new links

NEW FILES last 14 days

No new files

Welcome to Geeklog Saturday, May 25 2013 @ 12:50 AM EDT


 Forum Index > Support > General Geeklog Support New Topic Post Reply
 Use Sitename if no LOGO image
First | Previous | 1 2 | Next | Last
   
squatty
 01/13/04 11:10AM  
+++++
Full Member

Status: offline


Registered: 01/21/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?
 
Profile Email Website
 Quote
Anonymous: CDC
 01/13/04 01:43PM  



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
First | Previous | 1 2 | Next | Last
Content generated in: 0.74 seconds
New Topic Post Reply

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