Search…

X3 Photo Gallery Support Forums

Search…
 
Magoo
Topic Author
Posts: 11
Joined: 17 Jul 2008, 09:33

favicon in V2?

27 Aug 2008, 08:40

Does V2 support favicons like V1?
 
Magoo
Topic Author
Posts: 11
Joined: 17 Jul 2008, 09:33

29 Aug 2008, 00:29

Well can I? Can I let Version 2 show the little Browser-icon, favicon?
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

03 Sep 2008, 10:47

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" />
 
Magoo
Topic Author
Posts: 11
Joined: 17 Jul 2008, 09:33

03 Sep 2008, 11:57

Thanks Karl, working!
 
User avatar
say_hello
Experienced
Posts: 29
Joined: 03 Nov 2008, 08:14

06 Nov 2008, 02:26

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()): ?>
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

06 Nov 2008, 22:41

You should drop the favicon into the ROOT of your website ... Eg. www.yoursite.com/favicon.ico
 
User avatar
say_hello
Experienced
Posts: 29
Joined: 03 Nov 2008, 08:14

07 Nov 2008, 00:34

yep, that made the trick :D

many thanks,
best regards
chris
 
azzqim
Posts: 10
Joined: 16 Nov 2009, 18:24

16 Nov 2009, 18:27

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 :)