21
D4rkAng3l
Re: Problem with module webstat, please help me :-(
  • 2005/12/27 9:32

  • D4rkAng3l

  • Just popping in

  • Posts: 24

  • Since: 2005/12/26


I have wrong to write...this was the code of theme.html file and not template....pleaseee help me to modify it



22
D4rkAng3l
Problem with module webstat, please help me :-(
  • 2005/12/26 13:54

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

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)

<!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



23
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



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

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)

<!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




TopTop
« 1 2 (3)



Login

Who's Online

191 user(s) are online (147 user(s) are browsing Support Forums)


Members: 0


Guests: 191


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits