2015-03-05 - Re: Interesting Feature Request
Header Data
From: Bob Hunt <bo***2@gmail.com>
Message Hash: 1c7ed728219c360c9210d5fb506bd80c0237177db2d6d1f4ac2d3d832cf683fe
Message ID: <CAA-jMMREj7CUwJFoFCRhnJ+35dUt5-N7uy1n6vDD2EM9qdQiqQ@mail.gmail.com>
Reply To: N/A
UTC Datetime: 2015-03-05 22:56:39 UTC
Raw Date: Fri, 06 Mar 2015 16:56:39 +1100
Raw message
Hi Edward,
Here's a possible solution for you which I use for my regular users.
Probably not so good for tickets which have ever-changing usernames.
if you insert the bolded code below into .....www/radmin/edituser.php, then
anytime you change the comments field on your Edit User page, it will be
permanently entered into the Admin Log.
Whenever I want to record something which happens concerning a particular
user, I simply enter it int their comments field.
Filtering for the username in the Admin Log will give you a history for
that user.
Hope that helps.
Cheers,
Bob
from .....www/radmin/edituser.php
>>>>>>>>>>code>>>>>>>>>>>>>>>
// Update comment if changed
if(clean_text($_POST['Comment']) != $user['Comment'])
{
database_change_comment($username,
clean_text($_POST['Comment']));
// TODO: Check return for success
$success[] = T_("Comment Changed");
AdminLog::getInstance()->log("Comment for *$username changed
to: ".clean_text($_POST['Comment'])*);
}
>>>>>>>>>>>>end code>>>>>>>>>>>>>>>>>>>>
Bob Hunt
20 Clarke Street
Wyndham
NSW 2550
Australia
Phone/fax 61 (0)2 64942030
On Fri, Mar 6, 2015 at 2:38 PM, Edward Allen <yb***j@gmail.com> wrote:
>
>
> I've seen numerous request for billing and the likes. I know accounting
> will be a tedious and challenging addition but could we have just a simple
> interface for some rudimentary data storage?
>
> Eg.
>
> if we could have a mysql table that stores the following
> username or voucher number, amount paid, date paid, comments. etc and any
> other fields necessary.
>
> we could have a page on the interface that will allow us to select the
> particular username or machine account or vouchernumber and add a payment
> to it set the paymentdate to current with the option to change.
> this would be purely data collection for now until in the future when
> further developments can be added. Maybe a few other pages that will allow
> you to browse the contents of that table or search for a particular account
> could go along with it as well.
>
> --
> This mailing list is for the Grase Hotspot Project http://grasehotspot.org
> ---
> You received this message because you are subscribed to the Google Groups
> "Grase Hotspot" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to gr***e@grasehotspot.org.
> To post to this group, send email to gr***t@grasehotspot.org.
> Visit this group at
> http://groups.google.com/a/grasehotspot.org/group/grase-hotspot/.
> To view this discussion on the web visit
> https://groups.google.com/a/grasehotspot.org/d/msgid/grase-hotspot/41849ea8-9b36-4dfe-a492-1dfdc353bbbf%40grasehotspot.org
> <https://groups.google.com/a/grasehotspot.org/d/msgid/grase-hotspot/41849ea8-9b36-4dfe-a492-1dfdc353bbbf%40grasehotspot.org?utm_medium=email&utm_source=footer>
> .
>
Thread
-
Return to March 2015
-
Return to “Bob Hunt <bo***2@gmail.com>”
-
2015-03-05 (Fri, 06 Mar 2015 16:56:39 +1100) - Re: Interesting Feature Request - Bob Hunt <bo***2@gmail.com>