I have made a file (according with anything i have read) named footer.php and i have add the code (test only)
<?php
define('IN_COPPERMINE', true);
require('include/init.inc.php');
pageheader('Your page title');
?>
<script LANGUAGE="JavaScript" src="http://www.1800freehits.com/adserver/adserver.php?usrid=5519"> </script>
<?php
pagefooter();
?>
Then i go to config and at Themes settings --> Path to custom footer include i have try to add
footer.php or
www.mysite.com/footer.php
but nothing seems to happen
I have try to search in the forum (in the doc it dosn't say much) but i didn't manage to find any solution
Anyone has any idea?
First of all: don't adddefine('IN_COPPERMINE', true);
require('include/init.inc.php');
to your custom footer; it is already included/defined.
To simply add some JavaScript, just edit themes/yourtheme/template.html. No need to use a PHP-driven custom footer. For details, post details! A link to your gallery is almost mandatory.
The gallery is www.PictureXL.com
As i have right in the other post that you help me out the code of my template.html is
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="{LANG_DIR}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={CHARSET}" />
<meta http-equiv="Pragma" content="no-cache" />
<title>{TITLE}</title>
{META}
<link rel="stylesheet" href="themes/classic/style.css" type="text/css" />
<script type="text/javascript" src="scripts.js"></script>
<!-- $Id: template.html 2688 2005-12-04 03:22:35Z donnoman $ -->
</head>
<body>
{CUSTOM_HEADER}
<table width="100%" border="0" cellpadding="20" cellspacing="20">
<tr>
<td valign="top" style="border: 1px solid #666666;background-color:#FFFFFF;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<a href="index.php"><img src="themes/classic/images/site_logo.png" border="0" alt="" /></a><br />
</td>
<td width="100%" align="center">
<h1>{GAL_NAME}</h1>
<h3>{GAL_DESCRIPTION}</h3><br />
{SYS_MENU} <br /> {SUB_MENU}
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign="top">
{LANGUAGE_SELECT_FLAGS}
</td>
</tr>
<tr>
<td align="center" valign="top">
{THEME_SELECT_LIST}
{LANGUAGE_SELECT_LIST}
</td>
</tr>
</table>
<img src="images/spacer.gif" width="1" height="15" alt="" />
<br />
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="left" valign="top">
{ADMIN_MENU}
{GALLERY}
</td>
</tr>
</table>
</td>
</tr>
</table>
{CUSTOM_FOOTER}{VANITY}
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-462570-6";
urchinTracker();
</script>
</body>
</html>
Where do i need to add the script that i want so it will added to footer?
Sorry if this is a silly question...
Put it before or after the {CUSTOM_FOOTER} tag.
I add it before and it works... After it dosn't work...
And for everyone else that is going to do the same i also add the
<div align="center">
and
</div>
over and under the code so the banner align in the center...