1
D4rkAng3l
Please, a litle help to insert some lines of code :-(
  • 2005/12/26 0:40

  • D4rkAng3l

  • Just popping in

  • Posts: 24

  • Since: 2005/12/26


Hello,
I have a problem...I am not very good with html....

I need to insert some simple line of code into the footer zone of the templete.html file to enable a php script for statistic

I have tryed but I have not resolve...if there is someone that could help me when have a litle time I will be veryy gratefull

The instruction to insert the lines of code is this:

le="color: #000000"><?php 3 - Go in each theme.html file and add in the footer part of XOOPS the following code: Example resulting from the Default XOOPS theme: <table width="100%" cellspacing="0"> <tr id="footerbar"> <td><a href="https://xoops.org/" target="_blank"><img src="<{$xoops_imageurl}>poweredby.gif" alt="" /></a> <{if $xoops_isadmin != 1}> <script type="text/Javascript"> <!-- istat = new Image(1,1); istat.src = "http://YOUR_XOOPS_SITE_URL/modules/istats/include/counter.php?sw="+screen.width+"&sc="+screen.colorDepth+"&refer="+escape(document.referrer)+"&page="+location.href; //--> </script> <{/if}> </td> </tr> </table> </body> </html> This code will allow the stats module to count.


And the code of template.html file of my theme is this (my problem is that I am not good to insert the code in the rigt way)

le="color: #000000"><?php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<{$xoops_langcode}>" lang="<{$xoops_langcode}>"> <head> <{$xoops_module_header}> <meta http-equiv="content-type" content="text/html; charset=<{$xoops_charset}>" /> <meta http-equiv="content-language" content="<{$xoops_langcode}>" /> <meta name="robots" content="<{$xoops_meta_robots}>" /> <meta name="keywords" content="<{$xoops_pagetitle}>, <{$xoops_meta_keywords}>" /> <meta name="description" content="<{$xoops_pagetitle}>, <{$xoops_meta_description}>" /> <meta name="rating" content="<{$xoops_meta_rating}>" /> <meta name="author" content="<{$xoops_meta_author}>" /> <meta name="copyright" content="<{$xoops_meta_copyright}>" /> <meta name="generator" content="XOOPS" /> <title><{$xoops_sitename}> - <{$xoops_slogan}> - <{$xoops_pagetitle}></title> <link href="<{$xoops_url}>/favicon.ico" rel="SHORTCUT ICON" /> <link rel="stylesheet" type="text/css" media="all" href="<{$xoops_url}>/xoops.css" /> <link rel="stylesheet" type="text/css" media="all" href="<{$xoops_themecss}>" /> <script type="text/javascript"> <!-- <{$xoops_js}> //--> </script> <script type="text/javascript" src="<{$xoops_imageurl}>js/adminmenu.js"></script> <script type="text/javascript" src="<{$xoops_imageurl}>js/ie5.js"></script> <script type="text/javascript"> function toggle(notifs_form) { obj=document.getElementById(notifs_form); obj.style.display=!(obj.style.display=="block")? "block" : "none"; } function swapimage(swap) { img_plus="<{$xoops_imageurl}>images/plus.gif"; img_minus="<{$xoops_imageurl}>images/minus.gif"; obj=document.getElementById(swap); obj.src=!(obj.src==img_minus)? img_minus : img_plus; } </script> <style type="text/css" media="screen"> <{if $xoops_showrblock == 1}> td#centercolumn { padding: 20px 10px 10px 10px; } <{else}> td#centercolumn { padding: 20px 40px 10px 20px; } <{/if}> </style> </head> <body> <div id="page-ml"> <div id="page-mr"> <div id="header-l"><div id="header-r"> <div class="description"> <a href="<{$xoops_url}>"><img src="<{$xoops_imageurl}>images/header_logo.jpg" alt="" /></a> </div> <div id="navigbar"> <{include file="$xoops_theme/navigation/theme_usernav.html"}> </div> </div></div> <div id="content"> <table> <tr> <{if $xoops_showlblock == 1}> <td id="leftcolumn"> <!-- Start left blocks loop --> <{foreach item=block from=$xoops_lblocks}> <{include file="$xoops_theme/blocks/theme_blockleft.html"}> <{/foreach}> <!-- End left blocks loop --> </td> <{/if}> <td id="centercolumn"> <!-- Display center blocks if any --> <{if $xoops_showcblock == 1}> <table> <tr> <td id="centerCcolumn" colspan="2"> <!-- Start center-center blocks loop --> <{foreach item=block from=$xoops_ccblocks}> <{include file="$xoops_theme/blocks/theme_blockcenter_c.html"}> <{/foreach}> <!-- End center-center blocks loop --> </td> </tr> <tr> <td id="centerLcolumn"> <!-- Start center-left blocks loop --> <{foreach item=block from=$xoops_clblocks}> <{include file="$xoops_theme/blocks/theme_blockcenter_l.html"}> <{/foreach}> <!-- End center-left blocks loop --> </td><td id="centerRcolumn"> <!-- Start center-right blocks loop --> <{foreach item=block from=$xoops_crblocks}> <{include file="$xoops_theme/blocks/theme_blockcenter_r.html"}> <{/foreach}> <!-- End center-right blocks loop --> </td> </tr> </table> <{/if}> <!-- End display center blocks --> <{$xoops_contents}> </td> <{if $xoops_showrblock == 1}> <td id="rightcolumn"> <!-- Start right blocks loop --> <{foreach item=block from=$xoops_rblocks}> <{include file="$xoops_theme/blocks/theme_blockright.html"}> <{/foreach}> <!-- End right blocks loop --> </td> <{/if}> </tr> </table> </div> <div id="footer-l"><div id="footer-r"> <p><{$xoops_footer}></p> </div></div> </div></div> </body> <script type="text/javascript"> var menu1 = new AdMenu("menu1"); menu1.position.level1.top = 1; menu1.position.level1.left = 0; menu1.position.levelX.top = 0; menu1.position.levelX.left = 0; menu1.init(); </script> </html>


Pleaseee help meee

2
Anonymous
Re: Please, a litle help to insert some lines of code :-(
  • 2005/12/26 1:10

  • Anonymous

  • Posts: 0

  • Since:


Hi,

this is your new theme.html with istats code:
le="color: #000000"><?php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<{$xoops_langcode}>" lang="<{$xoops_langcode}>"> <head> <{$xoops_module_header}> <meta http-equiv="content-type" content="text/html; charset=<{$xoops_charset}>" /> <meta http-equiv="content-language" content="<{$xoops_langcode}>" /> <meta name="robots" content="<{$xoops_meta_robots}>" /> <meta name="keywords" content="<{$xoops_pagetitle}>, <{$xoops_meta_keywords}>" /> <meta name="description" content="<{$xoops_pagetitle}>, <{$xoops_meta_description}>" /> <meta name="rating" content="<{$xoops_meta_rating}>" /> <meta name="author" content="<{$xoops_meta_author}>" /> <meta name="copyright" content="<{$xoops_meta_copyright}>" /> <meta name="generator" content="XOOPS" /> <title><{$xoops_sitename}> - <{$xoops_slogan}> - <{$xoops_pagetitle}></title> <link href="<{$xoops_url}>/favicon.ico" rel="SHORTCUT ICON" /> <link rel="stylesheet" type="text/css" media="all" href="<{$xoops_url}>/xoops.css" /> <link rel="stylesheet" type="text/css" media="all" href="<{$xoops_themecss}>" /> <script type="text/javascript"> <!-- <{$xoops_js}> //--> </script> <script type="text/javascript" src="<{$xoops_imageurl}>js/adminmenu.js"></script> <script type="text/javascript" src="<{$xoops_imageurl}>js/ie5.js"></script> <script type="text/javascript"> function toggle(notifs_form) { obj=document.getElementById(notifs_form); obj.style.display=!(obj.style.display=="block")? "block" : "none"; } function swapimage(swap) { img_plus="<{$xoops_imageurl}>images/plus.gif"; img_minus="<{$xoops_imageurl}>images/minus.gif"; obj=document.getElementById(swap); obj.src=!(obj.src==img_minus)? img_minus : img_plus; } </script> <style type="text/css" media="screen"> <{if $xoops_showrblock == 1}> td#centercolumn { padding: 20px 10px 10px 10px; } <{else}> td#centercolumn { padding: 20px 40px 10px 20px; } <{/if}> </style> </head> <body> <div id="page-ml"> <div id="page-mr"> <div id="header-l"><div id="header-r"> <div class="description"> <a href="<{$xoops_url}>"><img src="<{$xoops_imageurl}>images/header_logo.jpg" alt="" /></a> </div> <div id="navigbar"> <{include file="$xoops_theme/navigation/theme_usernav.html"}> </div> </div></div> <div id="content"> <table> <tr> <{if $xoops_showlblock == 1}> <td id="leftcolumn"> <!-- Start left blocks loop --> <{foreach item=block from=$xoops_lblocks}> <{include file="$xoops_theme/blocks/theme_blockleft.html"}> <{/foreach}> <!-- End left blocks loop --> </td> <{/if}> <td id="centercolumn"> <!-- Display center blocks if any --> <{if $xoops_showcblock == 1}> <table> <tr> <td id="centerCcolumn" colspan="2"> <!-- Start center-center blocks loop --> <{foreach item=block from=$xoops_ccblocks}> <{include file="$xoops_theme/blocks/theme_blockcenter_c.html"}> <{/foreach}> <!-- End center-center blocks loop --> </td> </tr> <tr> <td id="centerLcolumn"> <!-- Start center-left blocks loop --> <{foreach item=block from=$xoops_clblocks}> <{include file="$xoops_theme/blocks/theme_blockcenter_l.html"}> <{/foreach}> <!-- End center-left blocks loop --> </td><td id="centerRcolumn"> <!-- Start center-right blocks loop --> <{foreach item=block from=$xoops_crblocks}> <{include file="$xoops_theme/blocks/theme_blockcenter_r.html"}> <{/foreach}> <!-- End center-right blocks loop --> </td> </tr> </table> <{/if}> <!-- End display center blocks --> <{$xoops_contents}> </td> <{if $xoops_showrblock == 1}> <td id="rightcolumn"> <!-- Start right blocks loop --> <{foreach item=block from=$xoops_rblocks}> <{include file="$xoops_theme/blocks/theme_blockright.html"}> <{/foreach}> <!-- End right blocks loop --> </td> <{/if}> </tr> </table> </div> <div id="footer-l"><div id="footer-r"> <p><{$xoops_footer}></p> </div></div> </div></div> <{if $xoops_isadmin != 1}> <script type="text/Javascript"> <!-- istat = new Image(1,1); istat.src = "http://YOUR_XOOPS_SITE_URL/modules/istats/include/counter.php?sw="+screen.width+"&sc="+screen.colorDepth+"&refer="+escape(document.referrer)+"&page="+location.href; //--> </script> <{/if}> </body> <script type="text/javascript"> var menu1 = new AdMenu("menu1"); menu1.position.level1.top = 1; menu1.position.level1.left = 0; menu1.position.levelX.top = 0; menu1.position.levelX.left = 0; menu1.init(); </script> </html>


Don't forget to change YOUR_XOOPS_SITE_URL to your site name.

3
D4rkAng3l
Re: Please, a litle help to insert some lines of code :-(
  • 2005/12/26 11:39

  • D4rkAng3l

  • Just popping in

  • Posts: 24

  • Since: 2005/12/26


ohh thank you veryyy much....

what doi you mean? I had to change this line?

istat.src = "http://YOUR_XOOPS_SITE_URL/modules/istats/include/counter.php?sw="+screen.width+"&sc="+screen.colorDepth+"&refer="+escape(document.referrer)+"&page="+location.href;

with this one:

istat.src = "http://www.siatec.net/photoalbum/modules/istats/include/counter.php?sw="+screen.width+"&sc="+screen.colorDepth+"&refer="+escape(document.referrer)+"&page="+location.href;

?

THANKSSSSS
Andrea

Who's Online

132 user(s) are online (108 user(s) are browsing Support Forums)


Members: 0


Guests: 132


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits