Jump to content


Help with editing chCounter 3.1.0 Template


3 replies to this topic

#1 dIsTuRbEd182

    Young Padawan

  • Members
  • Pip
  • 12 posts

Posted 22 July 2005 - 08:35 PM

Okay now I installed the counter and I knew that you could edit the template so I opened the counter.tpl file in Dreamweaver and removed the counter options that I didn't want. And in the code section it looks like this:
<table style="width: 190px; border:0px;">
   <tr>
      <td>{L_TOTAL_VISITORS}</td>
      <td style="text-align: right;">{V_TOTAL_VISITORS}</td>
   </tr>
   <tr>
      <td>{L_VISITORS_TODAY}</td>
      <td style="text-align: right;">{V_VISITORS_TODAY}</td>
   </tr>
   <tr>
      <td>{L_VISITORS_YESTERDAY}</td>
      <td style="text-align: right;">{V_VISITORS_YESTERDAY}</td>
   </tr>
<!--   
   <tr>
      <td>{L_VISITORS_PER_DAY}</td>
      <td style="text-align: right;">{V_VISITORS_PER_DAY}</td>
   </tr>
-->   
   <tr>
      <td>{L_MAX_VISITORS_PER_DAY}</td>
      <td style="text-align: right;">{V_MAX_VISITORS_PER_DAY}</td>
   </tr>
<!--   
   <tr>
      <td>{L_MAX_VISITORS_PER_DAY_DATE}</td>
      <td style="text-align: right;">{V_MAX_VISITORS_PER_DAY_DATE}</td>
   </tr>   
-->
   <tr>
      <td>{L_VISITORS_CURRENTLY_ONLINE}</td>
      <td style="text-align: right;"><a href="{V_COUNTER_URL}/stats/online_users.php" onclick="window.open('{V_COUNTER_URL}/stats/online_users.php','online_users','width=700,height=350,screenX=0,screenY=0,resizable=yes,scrollbars=yes'); return false;" target="online_users">{V_VISITORS_CURRENTLY_ONLINE}</a></td>
   </tr>
<!--      
   <tr>
      <td>{L_MAX_VISITORS_ONLINE_DATE}</td>
      <td style="text-align: right;">{V_MAX_VISITORS_ONLINE_DATE}</td>
   </tr>
-->
<!--   
   <tr>
      <td>{L_PAGE_VIEWS_TODAY}</td>
      <td style="text-align: right;">{V_PAGE_VIEWS_TODAY}</td>
   </tr>
   <tr>
      <td>{L_PAGE_VIEWS_YESTERDAY}</td>
      <td style="text-align: right;">{V_PAGE_VIEWS_YESTERDAY}</td>
   </tr>
   <tr>
      <td>{L_PAGE_VIEWS_PER_DAY}</td>
      <td style="text-align: right;">{V_PAGE_VIEWS_PER_DAY}</td>
   </tr>
   <tr>
      <td>{L_MAX_PAGE_VIEWS_PER_DAY}</td>
      <td style="text-align: right;">{V_MAX_PAGE_VIEWS_PER_DAY}</td>
   </tr>
   <tr>
      <td>{L_MAX_PAGE_VIEWS_PER_DAY_DATE}</td>
      <td style="text-align: right;">{V_MAX_PAGE_VIEWS_PER_DAY_DATE}</td>
   </tr>
-->
<!--
   <tr>
      <td>{L_PAGE_VIEWS_OF_CURRENT_VISITOR}</td>
      <td style="text-align: right;">{V_PAGE_VIEWS_OF_CURRENT_VISITOR}</td>
   </tr>
   <tr>
      <td>{L_PAGE_VIEWS_PER_VISITOR}</td>
      <td style="text-align: right;">{V_PAGE_VIEWS_PER_VISITOR}</td>
   </tr>
   <tr>
      <td>{L_JAVASCRIPT_ACTIVATED}</td>
      <td style="text-align: right;">{V_JS_PERCENTAGE}</td>
   </tr>
   <tr>
      <td>{L_COUNTER_START}</td>
      <td style="text-align: right;">{V_COUNTER_START}</td>
   </tr>
-->   
   <tr>
    <td colspan="2" style="text-align:center; padding-top: 10px;">
     <a href="{V_COUNTER_URL}/stats/index.php">
      <img src="{V_COUNTER_URL}/images/stats.png" style="width:15px; height:15px; border: 0px;" alt="" title="{L_STATISTICS}" />
      {L_STATISTICS}
     </a>
    </td>
   </tr>
</table>

so I assumed it was right and those are the options I was going to use so I generated the php code in the administration area of the counter to recieve the necessary php include tag but even after I generated it and copied the code and pasted it into my statistics box it came out horribly wrong..it all came out in text instead of how its supposed to look. so can someone please help..im not very good at php :D

#2 dIsTuRbEd182

    Young Padawan

  • Members
  • Pip
  • 12 posts

Posted 24 July 2005 - 05:42 PM

anyone please? :D

#3 Donna

    Retired P2L Queen!

  • P2L Staff
  • PipPipPipPip
  • 12,330 posts
  • Gender:Female
  • Location:B.C Canada

Posted 24 July 2005 - 05:47 PM

Can you also post the url where you have this and where you got the script from please so someone can assist you better. :D

#4 dIsTuRbEd182

    Young Padawan

  • Members
  • Pip
  • 12 posts

Posted 24 July 2005 - 06:33 PM

Well I've been using it on my site but it's not currently available because removed the script. and I got the script from http://www.christoph-bachner.net/ and the English readme of the counter is here --> http://gastgewerbe.a.../README_en.html (even Though Im using version 3.1.0 that readme still explains the template editing thing)

Edited by dIsTuRbEd182, 24 July 2005 - 06:33 PM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users