last_description mod
Status: Beta
Brought to you by:
jkrogma
i added a small mod, that saves the last description, for an effort in the session, and offers it at the next effort, you start ad default (instead of 'No description')
just add 2 lines:
--------FIND in file /inventory/efforts.php
$data['description'] = add_slashes($description);
-------- ADD AFTER that line:
# last_description mod by Ruben Barkow $_SESSION['last_description']=$description;
--------FIND in file /templates/inventory/effort/form.ihtml
$description = $GLOBALS['_PJ_strings']['no_description'];
-------- REPLACE that line with:
if (isset($_SESSION['last_description'])) $description = $_SESSION['last_description'];
else $description = $GLOBALS['_PJ_strings']['no_description'];
Logged In: YES
user_id=334647
Originator: YES
ups, something mixed up here...
again in right line format ;)
i added a small mod, that saves the last description, for an effort in the
session, and offers it at the next effort, you start, as default (instead of
'No description')
just alter 2 files:
1.
--------FIND in file /inventory/efforts.php
$data['description'] = add_slashes($description);
-------- ADD AFTER that line:
# last_description mod by Ruben Barkow
$_SESSION['last_description']=$description;
2.
--------FIND in file /templates/inventory/effort/form.ihtml
$description = $GLOBALS['_PJ_strings']['no_description'];
-------- REPLACE that line with these 3 lines:
# last_description mod by Ruben Barkow
if (isset($_SESSION['last_description'])) $description = $_SESSION['last_description'];
else $description = $GLOBALS['_PJ_strings']['no_description'];