SiT! Bugs

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001837SiT!portalpublic2013-02-08 13:292013-02-11 17:47
Reporterivan 
Assigned To 
PrioritynormalSeverityfeatureReproducibilityhave not tried
StatusconfirmedResolutionopen 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0001837: Admin Contact Statistics
DescriptionA patch that was posted in the forum and has got a bit lost, re-posting it here so it gets some notice:

http://sitracker.org/forum/viewtopic.php?f=4&t=1417528 [^]



Admin Contact Statistics

Postby paulvh ยป 05 Nov 2012 17:21
Several of our administrators asked for more information regarding their site when they login to the portal. I have added a Statistics link on the menu for them (next to the Admin) and I have copied (and modified) the statistics.php to allow them to see some of the statistics for their site.

I have also started to move some of the functions that were in this file into an include file that can be used on both the portal and the main statistics page.


--- /root/sit-3.67/inc/portalheader.inc.php 2012-08-18 10:39:56.000000000 -0400
+++ portalheader.inc.php 2012-10-23 15:46:21.301869728 -0400
@@ -181,6 +181,7 @@ if ($_SESSION['portalauth'] == TRUE OR (
if ($_SESSION['usertype'] == 'admin')
{
echo "
  • <a href='admin.php'>{$strAdmin}</a>
  • ";
    + echo "
  • <a href='statistics.php'>{$strStatistics}</a>
  • ";
    }
    plugin_do('portal_header_menu');

    @@ -201,4 +202,4 @@ if ($_SESSION['portalauth'] == TRUE OR (

    $headerdisplayed = TRUE; // Set a variable so we can check to see if the header was included

    -?>
    \ No newline at end of file
    +?>
    Tagspatch
    Attached Fileszip file icon statistics.php.zip [^] (5,406 bytes) 2013-02-08 13:29
    zip file icon statistics.zip [^] (8,112 bytes) 2013-02-11 17:45

    - Relationships

    -  Notes
    User avatar (0004696)
    paulh (administrator)
    2013-02-08 20:41

    Cheers agree this would be a very useful addition, given that this widely reuses the existing statistics page perhaps it will be useful to functionise/move the functions to the central repo rather than duplicate some of this code (note I'm not suggesting having own big function as per some of our previous pages which we're moving away from) or adjust this page to be more customer friendly
    (0004705)
    paulvh (reporter)
    2013-02-10 18:30

    Sorry I did mean to put this in here also. I did separate and clean up some of the functions to put them in the common library folder but I had not finished it and the necessary adjustments to the main pages. I will attach the files here later today or tomorrow.
    (0004706)
    paulvh (reporter)
    2013-02-11 17:45

    Here is the libary file and a statistics page for the portal (for contract Admins) and the main site (dashboard link)
    (0004707)
    paulvh (reporter)
    2013-02-11 17:47

    I still need to do some cleanups of the files (indenting, comments and global strings) but it is working.

    - Issue History
    Date Modified Username Field Change
    2013-02-08 13:29 ivan New Issue
    2013-02-08 13:29 ivan File Added: statistics.php.zip
    2013-02-08 13:29 ivan Tag Attached: patch
    2013-02-08 20:41 paulh Note Added: 0004696
    2013-02-08 20:41 paulh Status new => confirmed
    2013-02-10 18:30 paulvh Note Added: 0004705
    2013-02-11 17:45 paulvh Note Added: 0004706
    2013-02-11 17:45 paulvh File Added: statistics.zip
    2013-02-11 17:47 paulvh Note Added: 0004707


    Copyright © 2000 - 2019 MantisBT Team
    Powered by Mantis Bugtracker