Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
45024405
Commit
45024405
authored
Feb 05, 2010
by
Richard Mansfield
Browse files
Display number of view page views on stats page
Signed-off-by:
Richard Mansfield
<
richardm@catalyst.net.nz
>
parent
f3068aab
Changes
3
Show whitespace changes
Inline
Side-by-side
htdocs/lang/en.utf8/mahara.php
View file @
45024405
...
...
@@ -868,6 +868,7 @@ $string['alphabet'] = 'A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z';
$string
[
'formatpostbbcode'
]
=
'You can format your post using BBCode. %sLearn more%s'
;
$string
[
'Created'
]
=
'Created'
;
$string
[
'Total'
]
=
'Total'
;
$string
[
'Visits'
]
=
'Visits'
;
// import related strings (maybe separated later)
$string
[
'importedfrom'
]
=
'Imported from %s'
;
...
...
htdocs/lib/registration.php
View file @
45024405
...
...
@@ -443,7 +443,7 @@ function view_statistics($limit, $offset) {
'#'
,
get_string
(
'view'
),
get_string
(
'Owner'
,
'view'
),
get_string
(
'
v
isits'
),
get_string
(
'
V
isits'
),
get_string
(
'feedback'
,
'view'
),
);
$data
[
'table'
]
=
view_stats_table
(
$limit
,
$offset
);
...
...
@@ -475,7 +475,7 @@ function view_stats_table($limit, $offset) {
$viewdata
=
get_records_sql_array
(
"SELECT
v.id, v.title, v.owner, v.group, v.institution,
v.id, v.title, v.owner, v.group, v.institution,
v.visits,
u.firstname, u.lastname,
COUNT(vf.*) AS comments
FROM
{
view
}
v
...
...
@@ -483,8 +483,9 @@ function view_stats_table($limit, $offset) {
LEFT JOIN
{
usr
}
u ON v.owner = u.id
LEFT JOIN
{
group
}
g ON v.group = g.id
LEFT JOIN
{
institution
}
i ON v.institution = i.name
GROUP BY v.id, v.title, v.owner, v.group, v.institution,
u.firstname, u.lastname"
,
GROUP BY v.id, v.title, v.owner, v.group, v.institution, v.visits,
u.firstname, u.lastname
ORDER BY v.visits DESC"
,
array
(),
$offset
,
$limit
...
...
htdocs/theme/raw/templates/admin/viewstats.tpl
View file @
45024405
...
...
@@ -3,7 +3,7 @@
<td>
{
$offset
+
$dwoo.foreach.default.iteration
}
</td>
<td><a
href=
"
{
$WWWROOT
}
view/view.php?id=
{
$item
->
id
}
"
>
{
$item
->
title
}
</a></td>
<td>
{
$item
->
author
}
</td>
<td></td>
<td>
{
$item
->
visits
}
</td>
<td>
{
$item
->
comments
}
</td>
</tr>
{/
foreach
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment