11
irmtfan
Re: Statistics module?
  • 2004/5/1 19:08

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


it looks great

i think this module as like as web stats in cpanel

one question before install:
i see two pack in download section one of them for windows and another for linux

i want to know this is OS of my site server or not?


12
sylvainb
Re: Statistics module?
  • 2004/5/1 19:58

  • sylvainb

  • Not too shy to talk

  • Posts: 168

  • Since: 2003/2/11


Hi Irmtfan,
Saying that I only mean that the windows pack is in a zipped format and of course the linux one in a tar.gz format with (I hope) rights permissions on files preserved.

13
jamboree
Re: Statistics module?
  • 2004/5/7 2:00

  • jamboree

  • Just popping in

  • Posts: 28

  • Since: 2004/2/25


SylvianB - I run a site with XOOPS 2.0.5 - does this mean i can use your E XOOPS Stats module? I installed the weather module but i'm also looking for a weather module that just reports the weather around Taiwan (where i am based) any suggestions?

Thanks
Ben
Ps: my XOOPS system does not have a theme.php file so i couldn't even use the stats module as a counter

14
talunceford
Re: Statistics module?

You might look at my xpphlogger module that I somewhat ported over to work with Xoops. You can find it on my site in my downloads section... Some things are quirky about it, but it seems to gather stats just fine.

15
sylvainb
Re: Statistics module?
  • 2004/5/7 5:12

  • sylvainb

  • Not too shy to talk

  • Posts: 168

  • Since: 2003/2/11


Quote:

jamboree wrote:
SylvianB - I run a site with XOOPS 2.0.5 - does this mean i can use your E XOOPS Stats module? I installed the weather module but i'm also looking for a weather module that just reports the weather around Taiwan (where i am based) any suggestions?

Thanks
Ben
Ps: my XOOPS system does not have a theme.php file so i couldn't even use the stats module as a counter

Hi Jamboree,
I don't know if the I-Stats module I adapted from e-xoops is working under XOOPS 2.0.5 as I done all the work with XOOPS 2.0.6, but I think it should be ok.
About your other question concerning the theme.php file, your right, you didn't have one but here is what you can read in the xoops2_install.txt included in the package:
Quote:
To do during the I-Stats module installation:

1 - Extract the contents from the archive and upload it in the modules directory of your XOOPS site, then proceed to a traditional installation of a module.

2 - Add in the *.css files of each theme the following classes:

.statstable { margin:0px; padding:0px; width:auto; font-size: small; font-weight: normal;}
.stats { vertical-align: bottom; width:625px; margin:0; border: 0;}
.statsimg { vertical-align: bottom; width:25px; text-align:center;}
.statsimgweekday { vertical-align: bottom; font-size: small; font-weight: normal;}
.statswords { border-width: 0; font-size: x-small; background-color: transparent; font-weight: normal; text-align:center; width:25px;}
.statsfore { width: 30%; padding:2px;}
.statsdiv { text-align:center; padding:0px;}

I added these classes trying to guaranteeing the same visual aspect of the module with the majority of the XOOPS themes
and also with these browsers (IE, opera, mozilla, konqueror and galeon).
Some imperfections with konqueror.

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>
<script type="text/Javascript">
<!--
istat = new Image(1,1);
istat.src = "http://YOUR_URL_XOOPS_SITE_/modules/istats/include/counter.php?sw="+screen.width+"&sc="+screen.colorDepth+"&refer="+escape(document.referrer)+"&page="+location.href;
//-->
</script>
</td>
</tr>
</table>
</body>
</html>


This code will allow the stats module to count.

4 - You will also be able to add a visual counter (with images or not), to do that do not hesitate to read the original documentation provided and adapt it to XOOPS
For example, to show -- xxxx pages (the number of total pages) seen by: xxxx visitors -- you can create a personalized block of type php Script
and put the following code in it:

include_once(XOOPS_ROOT_PATH . '/modules/istats/include/function.php');
include_once(XOOPS_ROOT_PATH . '/modules/istats/include/display.php');
$result = CountDays();
$pages = num_to_graphics($result['totalpages'], 8, XOOPS_URL . '/modules/istats/images/default','jpg');
$visitors = num_to_graphics($result['total'], 8, XOOPS_URL . '/modules/istats/images/default','jpg');
echo "<div align=\"center\"> $pages pages<br /> served to:<br /> $visitors visitors </div>";

5 - It should be noted that for the owners of 1024x768 screen, you should not show right blocks on the I-Stats page because it'll broke your screen.
There too, I makes my possible so that visual style is the same one in 1024x768 and in the higher resolutions.
If somebody moreover fixed in css and tables questions managed to do better things than me (what does not seem too difficult to me),
I say: don't hesitate to correct it and to send me the new files.


Sylvain B webmasterhttp://123rando.com

Now, if your talking about MS-Weather, try to see on http://weather.yahoo.com/regional/TWXX.html if there is the city your looking for and simply add his code in your database through the admin section of the module.

Friendly Yours

16
cmatt
PPHLOGGER HELP
  • 2004/5/7 6:21

  • cmatt

  • Just popping in

  • Posts: 31

  • Since: 2004/3/25


Everytime I edit the mySQL settings, it not saving the information, or should it show the default settings after save?

Should the admin directory be a certain chmod?

Also what goes here :

Xoops PPHLogger Block Configuration


XoopsPPHLogger Login Id. xoopspphloggerid
Site Start Date sitestartdate



17
jamboree
Re: Statistics module?
  • 2004/5/9 15:00

  • jamboree

  • Just popping in

  • Posts: 28

  • Since: 2004/2/25


Sylvian,

The programme help files are a little different. the instructions you sent me are from the 2nd help file. The code and instructions are different from the 1st help file. Which one do I follow.

Also, in system admin, modules, the stats module is not clickable - it has no menu or preferences.

I changed and adapted the theme.html file and the .css files in each of the site's theme folders (even though i use only the default theme).

I added the html footer code through system admin, preferences, meta tag / footers.

I chagaed the groups settings so all users can access the stats.

It doesn't work (yet). Basically i'm confused which approach to take and how to activate the counting. Please advise me: Do I install as per readme.txt or do i use xoops_install.txt or perhaps manual.html?
help
Thanks
Ben


18
sylvainb
Re: Statistics module?
  • 2004/5/9 17:16

  • sylvainb

  • Not too shy to talk

  • Posts: 168

  • Since: 2003/2/11


Hi Jamboree,
you only have to follow the instructions included into xoops2_install.txt or those mentioned above in my last post (they're the same).
I left the originals documents (for e-xoops) because of some others possibilities with istats code and because I didn't want to rewrite the original manual but, basically, you don't have to read another file than xoops2_install.txt to proceed to a normal installation of the I-Stats module into your XOOPS site.

Friendly Yours

19
jamboree
Re: Statistics module?
  • 2004/5/10 10:57

  • jamboree

  • Just popping in

  • Posts: 28

  • Since: 2004/2/25


Thanks Sylvian. three more questions:

1. I use one theme as default (01). There are three other themes in the themes folder. Do I only change the theme.html (not other html files) in the default(01) theme folder?

2. Do i change the *.css files in the default(01) theme folder or or for all the other theme folders too?

3. Do I still need to add the code to the admin / preferences / meta tags & footer - footer block?

We I get it to work, I'll send you a checklist of require changes for XOOPS 2.0.5
Thanks
Ben

20
sylvainb
Re: Statistics module?
  • 2004/5/10 15:03

  • sylvainb

  • Not too shy to talk

  • Posts: 168

  • Since: 2003/2/11


Quote:

jamboree wrote:
Thanks Sylvian. three more questions:

1. I use one theme as default (01). There are three other themes in the themes folder. Do I only change the theme.html (not other html files) in the default(01) theme folder?

If anonymous or members users can access to the two others themes than the default one, you should also add the portion of code into those themes.

Quote:

2. Do i change the *.css files in the default(01) theme folder or or for all the other theme folders too?

Same kind of answer as above concerning style.css, styleNN.css and styleMAC.css in your themes.

Quote:

3. Do I still need to add the code to the admin / preferences / meta tags & footer - footer block?

The answer for that is very simple: NO!

Quote:

We I get it to work, I'll send you a checklist of require changes for XOOPS 2.0.5
Thanks
Ben

Why not?!

Friendly Yours

Login

Who's Online

126 user(s) are online (87 user(s) are browsing Support Forums)


Members: 0


Guests: 126


more...

Donat-O-Meter

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

Latest GitHub Commits