11
fo-fo
Re: users visiting a page
  • 2005/5/4 13:29

  • fo-fo

  • Just popping in

  • Posts: 34

  • Since: 2005/4/13


Would be handy if USERVISIT/SQL/mysql.sql was rewritten to one table

CREATE TABLE visit_user (
id int(11) NOT NULL auto_increment,
visitname text,
nom varchar(100) NOT NULL,
page varchar(200) NOT NULL,
nvisit int(7) DEFAULT '0' NOT NULL,
temps varchar(30) NOT NULL,
tempsf varchar(30) NOT NULL,
PRIMARY KEY (id)
) TYPE=MyISAM;

but then probably would need to rewrite the whole code...



12
fo-fo
Re: users visiting a page
  • 2005/5/4 13:10

  • fo-fo

  • Just popping in

  • Posts: 34

  • Since: 2005/4/13


maybe someone can help... Pascal could drop in too :)

here's the details--

DATABASE:

1. xoops_visit_user_page table

INSERT INTO `xoops_visit_user_page` VALUES ('6', 'username', '/page.php', ... );
INSERT INTO `xoops_visit_user_page` VALUES ('7', 'username2', '/page.php', ... );

xoops_visit_user_page structure:
(`id` int(11) NOT NULL auto_increment,
`nom` varchar(100) NOT NULL,
`page` varchar(200) NOT NULL,
`nav` varchar(150) NOT NULL,
`langue` varchar(20) NOT NULL,
`enregis` varchar(20) NOT NULL,
PRIMARY KEY (id)
) TYPE=MyISAM;


2. xoops_visit_user table

INSERT INTO `xoops_visit_user` VALUES ('1', 'username', '4', '00.00.00.000', '1115132593', '1115132654');
INSERT INTO `xoops_visit_user` VALUES ('2', 'username2', '2',

(`id` int(11) NOT NULL auto_increment,
`visitname` text,
`nvisit` int(7) NOT NULL default '0',
`ip` varchar(16) NOT NULL,
`temps` varchar(30) NOT NULL,
`tempsf` varchar(30) NOT NULL,
PRIMARY KEY (id)
) TYPE=MyISAM;
____________________________________



VISIT DETAILS [xoops module admin]:

user-visit.php?vm=username


user-visit.php MySQL queries:

$visit= mysql_query("SELECT * FROM ".$xoopsDB->prefix("visit_user")." WHERE visitname = '$vm' ORDER BY temps");
$visi=mysql_NumRows($visit);


$visit = mysql_query("SELECT distinct page, count(page) as cpage FROM ".$xoopsDB->prefix("visit_user_page")." WHERE nom = '$vm' GROUP BY page ORDER BY page ASC");
$visi=mysql_NumRows($visit);

...

$visit2 = mysql_query("SELECT distinct nav, count(nav) as cnav, langue FROM ".$xoopsDB->prefix("visit_user_page")." WHERE nom = '$vm' GROUP BY nav ORDER BY cnav DESC");
$visi2=mysql_NumRows($visit2);

_________________________________________________________________________

should I try something like

$visit = mysql_query("SELECT /page.php FROM ".$xoopsDB->prefix("visit_user_page")." WHERE nom = '$vm' GROUP BY username ORDER BY username ASC");
$visi=mysql_NumRows($visit);



13
fo-fo
Re: Data extractor
  • 2005/5/3 22:40

  • fo-fo

  • Just popping in

  • Posts: 34

  • Since: 2005/4/13


I just installed noah.0.8.7. It's crazy!

NoAhWiki docs deal with 0.9 and it's got a whole another structure so I probably have to wait til it's released as a XOOPS module.

It's like a new operating system working besides xoops. And it looks like it has its way with the database entries. Really looking forward to dive into and getting the most out of it.



14
fo-fo
Re: users visiting a page
  • 2005/5/3 16:52

  • fo-fo

  • Just popping in

  • Posts: 34

  • Since: 2005/4/13


the preferences update worked. thanks again.



15
fo-fo
Re: users visiting a page
  • 2005/5/3 15:56

  • fo-fo

  • Just popping in

  • Posts: 34

  • Since: 2005/4/13


I installed it. It's working, but in the PagesView section only shows index.php and any other pages stats look like this:

Pages........View
/..............4
/index.php...1

So I have two questions:
1. why these other pages are not displayed? [these are in a XOOPS subfolder]

2. could be the code customized so it would display it like:

page: ....php
viewed: username, username2, username3...



16
fo-fo
Re: users visiting a page
  • 2005/5/3 15:21

  • fo-fo

  • Just popping in

  • Posts: 34

  • Since: 2005/4/13


I didn't :). I got it before you changed it.



17
fo-fo
Re: users visiting a page
  • 2005/5/3 15:06

  • fo-fo

  • Just popping in

  • Posts: 34

  • Since: 2005/4/13


In the readme.txt E-Xoops is mentioned...

I guess I downloaded UserVisit 2.2. In the zip file I couldn't find the number of the version mentioned.



18
fo-fo
Re: users visiting a page
  • 2005/5/3 14:51

  • fo-fo

  • Just popping in

  • Posts: 34

  • Since: 2005/4/13


hell. where's been this one hiding? :)

thanks.



19
fo-fo
users visiting a page
  • 2005/5/3 14:34

  • fo-fo

  • Just popping in

  • Posts: 34

  • Since: 2005/4/13


is there a way to record the ID (+time) of users visiting a particular page (guestbook module?)



20
fo-fo
Re: global variables
  • 2005/5/1 12:18

  • fo-fo

  • Just popping in

  • Posts: 34

  • Since: 2005/4/13


I'm guessing I might need to do an 'include' within a template to achieve this.

e.g. userpoint module's totalpoints in a XOOPS core module




TopTop
« 1 (2) 3 4 »



Login

Who's Online

125 user(s) are online (76 user(s) are browsing Support Forums)


Members: 0


Guests: 125


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