Revision history for JeroenJansen
Revision [18573]
Last edited on 2008-01-28 00:11:58 by NilsLindenberg [Modified links pointing to docs server]No Differences
Revision [10267]
Edited on 2005-07-30 16:51:46 by NilsLindenberg [typo in the code correct, see comments]Additions:
$userstoprint .= $this->Format($lastuser["username"]);
Deletions:
Revision [6279]
Edited on 2005-02-23 20:28:24 by JeroenJansen [Needs review! Draft. Recently edited social awareness functionality]No Differences
Revision [6278]
Edited on 2005-02-23 20:26:55 by JeroenJansen [Needs review! Draft. Recently edited social awareness functionality]Additions:
After this you should be ready to play ball. Try playing around with a couple of different users who open the same page in edit mode and you'll see what this patch does. Please provide feedback if you think whether this is (not) usefull.
Revision [6277]
Edited on 2005-02-23 20:25:14 by JeroenJansen [Needs review! Draft. Recently edited social awareness functionality]No Differences
Revision [6276]
Edited on 2005-02-23 20:24:25 by JeroenJansen [Needs review! Draft. Recently edited social awareness functionality]Additions:
After the following existing code snippet in edit.php (wikka v1.1.6.0):
// append a comment?
if ($_REQUEST['appendcomment'])
{
$body = trim($body)."\n\n----\n\n--".$this->GetUserName().' ('.strftime("%c").')';
Add the following code, after line 124
// append a comment?
if ($_REQUEST['appendcomment'])
{
$body = trim($body)."\n\n----\n\n--".$this->GetUserName().' ('.strftime("%c").')';
Add the following code, after line 124
Revision [6275]
Edited on 2005-02-23 20:21:57 by JeroenJansen [Needs review! Draft. Recently edited social awareness functionality]Additions:
if($userstoprint) $lastusersmessage = "In the last " . $minutes_interval . " minutes, the following users opened this page in edit mode:<p>" .$userstoprint . "</p>\n";
Deletions:
Revision [6274]
Edited on 2005-02-23 20:20:52 by JeroenJansen [Needs review! Draft. Recently edited social awareness functionality]Additions:
//PATCH BEGIN
// indicates the number of minutes logs will be shown, eg. 5 = display users who accessed page in last 5 minutes and purge the rest
$minutes_interval = 30;
// first purge old showlogs
$deletebool = $this->Query("DELETE FROM ".$this->config["table_prefix"]."log WHERE handler=\"edit\" AND tag=\"" . $this->GetPageTag() . "\" AND accessed_at < (NOW() - INTERVAL " . $minutes_interval . " MINUTE)");
// if latest page version insert record in viewlog
$insertbool = $this->Query("INSERT INTO ".$this->config["table_prefix"]."log VALUES(\"\", \"edit\", \"" . $this->GetPageTag(). "\", \"" . $this->GetUserName() . "\", NOW()" . ")");
if($insertbool && $deletebool) $ispurged = true;
$lastusers = $this->LoadAll("SELECT * FROM ".$this->config["table_prefix"]."log WHERE handler=\"edit\" AND tag=\"" . $this->GetPageTag() . "\" AND accessed_at >= (NOW() - INTERVAL " . $minutes_interval . " MINUTE) GROUP BY username ORDER by username DESC");
foreach ($lastusers as $lastuser){
if($lastuser["username"] != $this->GetUserName()) {
if($x > 0) $userstoprint .= "::";
$userstoprint .= $this-Format($lastuser["username"]);
$x++;
}
}
if($userstoprint) $lastusersmessage = "In de laatste " . $minutes_interval . " minuten hebben de volgende gebruikers deze pagina in editmodus geopend: <p>" .$userstoprint . "</p>\n";
$output .= $lastusersmessage;
//PATCH END
// indicates the number of minutes logs will be shown, eg. 5 = display users who accessed page in last 5 minutes and purge the rest
$minutes_interval = 30;
// first purge old showlogs
$deletebool = $this->Query("DELETE FROM ".$this->config["table_prefix"]."log WHERE handler=\"edit\" AND tag=\"" . $this->GetPageTag() . "\" AND accessed_at < (NOW() - INTERVAL " . $minutes_interval . " MINUTE)");
// if latest page version insert record in viewlog
$insertbool = $this->Query("INSERT INTO ".$this->config["table_prefix"]."log VALUES(\"\", \"edit\", \"" . $this->GetPageTag(). "\", \"" . $this->GetUserName() . "\", NOW()" . ")");
if($insertbool && $deletebool) $ispurged = true;
$lastusers = $this->LoadAll("SELECT * FROM ".$this->config["table_prefix"]."log WHERE handler=\"edit\" AND tag=\"" . $this->GetPageTag() . "\" AND accessed_at >= (NOW() - INTERVAL " . $minutes_interval . " MINUTE) GROUP BY username ORDER by username DESC");
foreach ($lastusers as $lastuser){
if($lastuser["username"] != $this->GetUserName()) {
if($x > 0) $userstoprint .= "::";
$userstoprint .= $this-Format($lastuser["username"]);
$x++;
}
}
if($userstoprint) $lastusersmessage = "In de laatste " . $minutes_interval . " minuten hebben de volgende gebruikers deze pagina in editmodus geopend: <p>" .$userstoprint . "</p>\n";
$output .= $lastusersmessage;
//PATCH END
Deletions:
// indicates the number of minutes logs will be shown, eg. 5 = display users who accessed page in last 5 minutes and purge the rest
$minutes_interval = 30;
// first purge old showlogs
$deletebool = $this->Query("DELETE FROM ".$this->config["table_prefix"]."log WHERE handler=\"edit\" AND tag=\"" . $this->GetPageTag() . "\" AND accessed_at < (NOW() - INTERVAL " . $minutes_interval . " MINUTE)");
// if latest page version insert record in viewlog
$insertbool = $this->Query("INSERT INTO ".$this->config["table_prefix"]."log VALUES(\"\", \"edit\", \"" . $this->GetPageTag(). "\", \"" . $this->GetUserName() . "\", NOW()" . ")");
if($insertbool && $deletebool) $ispurged = true;
$lastusers = $this->LoadAll("SELECT * FROM ".$this->config["table_prefix"]."log WHERE handler=\"edit\" AND tag=\"" . $this->GetPageTag() . "\" AND accessed_at >= (NOW() - INTERVAL " . $minutes_interval . " MINUTE) GROUP BY username ORDER by username DESC");
foreach ($lastusers as $lastuser){
if($lastuser["username"] != $this->GetUserName()) {
if($x > 0) $userstoprint .= "::";
$userstoprint .= $this-Format($lastuser["username"]);
$x++;
}
}
if($userstoprint) $lastusersmessage = "In de laatste " . $minutes_interval . " minuten hebben de volgende gebruikers deze pagina in editmodus geopend: <p>" .$userstoprint . "</p>\n";
$output .= $lastusersmessage;
// JJPATCH END
Revision [6273]
Edited on 2005-02-23 20:18:55 by JeroenJansen [Needs review! Draft. Recently edited social awareness functionality]Additions:
// JJPATCH BEGIN
// indicates the number of minutes logs will be shown, eg. 5 = display users who accessed page in last 5 minutes and purge the rest
$minutes_interval = 30;
// first purge old showlogs
$deletebool = $this->Query("DELETE FROM ".$this->config["table_prefix"]."log WHERE handler=\"edit\" AND tag=\"" . $this->GetPageTag() . "\" AND accessed_at < (NOW() - INTERVAL " . $minutes_interval . " MINUTE)");
// if latest page version insert record in viewlog
$insertbool = $this->Query("INSERT INTO ".$this->config["table_prefix"]."log VALUES(\"\", \"edit\", \"" . $this->GetPageTag(). "\", \"" . $this->GetUserName() . "\", NOW()" . ")");
if($insertbool && $deletebool) $ispurged = true;
$lastusers = $this->LoadAll("SELECT * FROM ".$this->config["table_prefix"]."log WHERE handler=\"edit\" AND tag=\"" . $this->GetPageTag() . "\" AND accessed_at >= (NOW() - INTERVAL " . $minutes_interval . " MINUTE) GROUP BY username ORDER by username DESC");
foreach ($lastusers as $lastuser){
if($lastuser["username"] != $this->GetUserName()) {
if($x > 0) $userstoprint .= "::";
$userstoprint .= $this-Format($lastuser["username"]);
$x++;
}
}
if($userstoprint) $lastusersmessage = "In de laatste " . $minutes_interval . " minuten hebben de volgende gebruikers deze pagina in editmodus geopend: <p>" .$userstoprint . "</p>\n";
$output .= $lastusersmessage;
// JJPATCH END
// indicates the number of minutes logs will be shown, eg. 5 = display users who accessed page in last 5 minutes and purge the rest
$minutes_interval = 30;
// first purge old showlogs
$deletebool = $this->Query("DELETE FROM ".$this->config["table_prefix"]."log WHERE handler=\"edit\" AND tag=\"" . $this->GetPageTag() . "\" AND accessed_at < (NOW() - INTERVAL " . $minutes_interval . " MINUTE)");
// if latest page version insert record in viewlog
$insertbool = $this->Query("INSERT INTO ".$this->config["table_prefix"]."log VALUES(\"\", \"edit\", \"" . $this->GetPageTag(). "\", \"" . $this->GetUserName() . "\", NOW()" . ")");
if($insertbool && $deletebool) $ispurged = true;
$lastusers = $this->LoadAll("SELECT * FROM ".$this->config["table_prefix"]."log WHERE handler=\"edit\" AND tag=\"" . $this->GetPageTag() . "\" AND accessed_at >= (NOW() - INTERVAL " . $minutes_interval . " MINUTE) GROUP BY username ORDER by username DESC");
foreach ($lastusers as $lastuser){
if($lastuser["username"] != $this->GetUserName()) {
if($x > 0) $userstoprint .= "::";
$userstoprint .= $this-Format($lastuser["username"]);
$x++;
}
}
if($userstoprint) $lastusersmessage = "In de laatste " . $minutes_interval . " minuten hebben de volgende gebruikers deze pagina in editmodus geopend: <p>" .$userstoprint . "</p>\n";
$output .= $lastusersmessage;
// JJPATCH END
Revision [6272]
Edited on 2005-02-23 20:18:14 by JeroenJansen [Needs review! Draft. Recently edited social awareness functionality]Additions:
CREATE TABLE yourprefix_log (
id int(11) unsigned NOT NULL auto_increment,
handler varchar(30) NOT NULL default '',
tag varchar(75) NOT NULL default '0',
username varchar(255) NOT NULL default '',
accessed_at datetime NOT NULL,
PRIMARY KEY (id)
) TYPE=MyISAM;
id int(11) unsigned NOT NULL auto_increment,
handler varchar(30) NOT NULL default '',
tag varchar(75) NOT NULL default '0',
username varchar(255) NOT NULL default '',
accessed_at datetime NOT NULL,
PRIMARY KEY (id)
) TYPE=MyISAM;
Revision [6271]
Edited on 2005-02-23 20:17:06 by JeroenJansen [Needs review! Draft. Recently edited social awareness functionality]Additions:
**Patch description**
If you open a WikiPage in edit mode (invoke the edit page handler),
1. //Create new table to log necessary information.//
2. //Patch edit page handler, handler/page/edit.php//
If you open a WikiPage in edit mode (invoke the edit page handler),
1. //Create new table to log necessary information.//
2. //Patch edit page handler, handler/page/edit.php//
Deletions:
1. Create new table to log necessary information.
2. Patch edit page handler, handler/page/edit.php
Revision [6270]
Edited on 2005-02-23 20:16:35 by JeroenJansen [Needs review! Draft. Recently edited social awareness functionality]Additions:
If you want this functionality you need to do the following:
1. Create new table to log necessary information.
%%(sql)
%%
2. Patch edit page handler, handler/page/edit.php
%%(php)
%%
1. Create new table to log necessary information.
%%(sql)
%%
2. Patch edit page handler, handler/page/edit.php
%%(php)
%%
Deletions:
Revision [6269]
Edited on 2005-02-23 20:12:56 by JeroenJansen [Needs review! Draft. Recently edited social awareness functionality]Additions:
Hello, my name is Jeroen. Im a MSc. student information sciences at Tilburg University, the Netherlands.
Im working on my graduation thesis which is about wiki usage in higher education.
Please leave a message after the beep (which you'll hear eventually if you listen long enough).
----
====Draft. Recently edited social awareness functionality====
Patch description: If you open a WikiPage in edit mode (invoke the edit page handler),
a display of social awareness information might come in handy (eg. for collaboration purposes).
This patch displays an overview of users who recently opened the WikiPage in edit mode, on a per-page basis.
More to come.
----
CategoryUsers
Im working on my graduation thesis which is about wiki usage in higher education.
Please leave a message after the beep (which you'll hear eventually if you listen long enough).
----
====Draft. Recently edited social awareness functionality====
Patch description: If you open a WikiPage in edit mode (invoke the edit page handler),
a display of social awareness information might come in handy (eg. for collaboration purposes).
This patch displays an overview of users who recently opened the WikiPage in edit mode, on a per-page basis.
More to come.
----
CategoryUsers
Deletions:
Im working on my graduation thesis which is about wiki usage in higher education.
Please leave a message after the beep (which you'll hear eventually if you listen long enough).
----
CategoryUsers
Additions:
----
CategoryUsers
CategoryUsers