Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
functions [2016/12/05 22:15] textstorm [Generate a Tooltip] |
functions [2016/12/05 22:18] (current) textstorm |
||
---|---|---|---|
Line 77: | Line 77: | ||
This allows you to generate a tooltip - when text is hovered over a CSS box will display with more information. | This allows you to generate a tooltip - when text is hovered over a CSS box will display with more information. | ||
- | Function: public function GenTooltip($text, $tiptext) | + | **Function:** public function GenTooltip($text, $tiptext) |
To display a tooltip: | To display a tooltip: | ||
<file php GenerateToolTip.php> | <file php GenerateToolTip.php> | ||
$user->GenTooltip("Hover over me", "This is some information displayed when you hover over the text"); | $user->GenTooltip("Hover over me", "This is some information displayed when you hover over the text"); | ||
+ | </file> | ||
+ | ===== User Logging ===== | ||
+ | This allows you to log a user action to the database for administrators to view | ||
+ | |||
+ | **Function:** public function UserLogging($db, $loguser, $logreason) | ||
+ | |||
+ | To create a log: | ||
+ | <file php UserLogging.php> | ||
+ | $user->UserLogging($db, "Steve", "Opened the chest with ID: $id"); | ||
</file> | </file> |