Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/sfoyston/public_html/TextStorm/Wiki/inc/init.php on line 560

Warning: Cannot modify header information - headers already sent by (output started at /home/sfoyston/public_html/TextStorm/Wiki/inc/init.php:560) in /home/sfoyston/public_html/TextStorm/Wiki/inc/auth.php on line 495

Warning: Cannot modify header information - headers already sent by (output started at /home/sfoyston/public_html/TextStorm/Wiki/inc/init.php:560) in /home/sfoyston/public_html/TextStorm/Wiki/inc/common.php on line 1992

Warning: Cannot modify header information - headers already sent by (output started at /home/sfoyston/public_html/TextStorm/Wiki/inc/init.php:560) in /home/sfoyston/public_html/TextStorm/Wiki/inc/actions.php on line 210
functions - TextStorm Wiki

The Wiki is still in development, please bare with us while we add and update content.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
functions [2016/12/05 22:13]
textstorm [Send a User a System Message]
functions [2016/12/05 22:18] (current)
textstorm
Line 76: Line 76:
 ===== Generate a Tooltip ===== ===== Generate a Tooltip =====
 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)
 +
 +To display a tooltip:
 +<file php GenerateToolTip.php>​
 +$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>​

QR Code
QR Code functions (generated for current page)