Page 1 of 1

favicon in V2?

Posted: 27 Aug 2008, 08:40
by Magoo
Does V2 support favicons like V1?

Posted: 29 Aug 2008, 00:29
by Magoo
Well can I? Can I let Version 2 show the little Browser-icon, favicon?

Posted: 03 Sep 2008, 10:47
by mjau-mjau
I can't remember this was available in V1, but its easy to integrate anyway. Its part of the HTML document, so you need to edit the file templates/index_gallery.phtml. I think you need to add something like the following text inside the <head> tag:
Code
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />

Posted: 03 Sep 2008, 11:57
by Magoo
Thanks Karl, working!

Posted: 06 Nov 2008, 02:26
by say_hello
sorry to interrupt this again, but in which folder shall i drop the favicon.file?
whe in drop it into the templates folder it wont work.

i edited the index.gallery.phtml like this:

>
Code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title><?php echo $this->siteTitle; ?></title>
		<link href="<?php echo IV_PATH; ?>css/forAdmin.css" rel="stylesheet" type="text/css" />
		<link href="<?php echo IV_PATH; ?>css/forImagevue.css" rel="stylesheet" type="text/css" />
		<meta http-equiv="Content-Type" content="text/html" />
		<script type="text/javascript" src="<?php echo IV_PATH; ?>javascript/swfobject.js"></script>
		<script type="text/javascript" src="<?php echo IV_PATH; ?>javascript/swfaddress.js"></script>
		<style type="text/css">
			/* hide from ie on mac \*/
			html {
				height: 100%;
				overflow: hidden;
			}
			#imagevue {
				height: 100%;
			}
			/* end hide */
			body {
				background-color: #<?php echo $this->bkGrColor; ?>;
				margin: 0px;
				padding: 0px;
				height: 100%;
			}
			#forAdmin { display: none;}
		</style>
		<link rel="icon" href="/favicon.ico" type="image/x-icon" />
		<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
	</head>
	<body>
		<!-- #forAdmin -->	
		<?php if (ivAcl::isAdmin()): ?>

Posted: 06 Nov 2008, 22:41
by mjau-mjau
You should drop the favicon into the ROOT of your website ... Eg. www.yoursite.com/favicon.ico

Posted: 07 Nov 2008, 00:34
by say_hello
yep, that made the trick :D

many thanks,
best regards
chris

Posted: 16 Nov 2009, 18:27
by azzqim
yep, worked for me too. index.gallery.phtml can be found in /imagevue/templates/

But I would like to point out some mistakes in your html coding, I think wikipedia article explains it best
http://en.wikipedia.org/wiki/Favicon#St ... ementation

I put a PNG on a server and it works great :)