Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - wintstar

#1
SimpleDesk Tracker / New Design Frontpage
December 14, 2015, 05:42:23 PM
For the FrontPage plugin in Ticket Index, I suggest a new design. First image is the old design, and the last my suggestion. If this style like, I make a request via Github.



#2
install.php

find
Code (php) Select
    $hooks[] = array(
        'hook' => 'integrate_package_upload',
        'function' => 'shd_package_upload',
        'file' => '$sourcedir/sd_source/Subs-SimpleDeskPackages.php',
        'perm' => true,
    );

add after
Code (php) Select
    $hooks[] = array(
        'hook' => 'integrate_modification_types',
        'function' => 'shd_modification_types',
        'file' => '$sourcedir/sd_source/Subs-SimpleDeskPackages.php',
        'perm' => true,
    );


sd_language/SimpleDeskAdmin.english.php

find
Code (php) Select
$txt['shd_search_rebuilt'] = 'The search index has been rebuilt.';
//@}

add after
Code (php) Select


//! Package Plugin
//@{
$txt['sdplugin_package'] = 'SDPlugin packages';
//@}
#3
In Subs-SimpleDeskPackages.php missing variable
$scripturl
$txt
$packages

find
Code (php) Select
function shd_packages_sort_id(&$sort_id, &$packages)
{
    global $context;

replaces with
Code (php) Select
function shd_packages_sort_id(&$sort_id, &$packages)
{
    global $context, $packages;


find
Code (php) Select
function shd_package_download()
{
    global $context;

replaces with
Code (php) Select
function shd_package_download()
{
    global $context, $scripturl, $txt;


find
Code (php) Select
function shd_package_upload()
{
    global $context;

replace with
Code (php) Select
function shd_package_upload()
{
    global $context, $scripturl, $txt;
#4
Please look at github => https://github.com/wintstar/Testing/commit/2a6644b0641cb85f6984ea0c06569fe3bbfa42dc

Sorry, but create a request to github, I still do not understand  :(


#5
For this language strings chains a plural system would for translation into German necessary

Code (php) Select
$txt['shd_maint_zero_tickets'] = '%1$d ticket(s) were found with invalid ids, they have all been given new ids, the next available id numbers.';
$txt['shd_maint_zero_msgs'] = '%1$d ticket posts(s) were found with invalid ids, they have all been given new ids, the next available id numbers.';
$txt['shd_maint_deleted'] = '%1$d ticket(s) had incorrect counts of the number of posts and/or deleted posts. All have been recalculated.';
$txt['shd_maint_first_last'] = '%1$d ticket(s) had incorrect messages flagged for the ticket content, or its last reply. All have been rectified.';
$txt['shd_maint_status'] = '%1$d ticket(s) had the wrong status set for them. All have been rectified.';
$txt['shd_maint_starter_updater'] = '%1$d ticket(s) had the wrong user listed as the person who opened the ticket or the last person to update the ticket. All have been rectified.';
$txt['shd_maint_invalid_dept'] = '%1$d ticket(s) were listed as being in departments that do not exist, all were moved to a new department entitled "Recovered Tickets".';




Like this
one ticket
Code (php) Select
$txt['shd_maint_zero_tickets'] = '%1$d ticket were found with invalid ids, they have all been given new ids, the next available id numbers.';

more tickets
Code (php) Select
$txt['shd_maint_zero_tickets'] = '%2$d tickets were found with invalid ids, they have all been given new ids, the next available id numbers.';

  example
1 post = 1 Beitrag
2 posts = 2 Beiträge
#6
SimpleDesk version: SimpleDesk 2.0 Anatidae

For other languages, the texts in the field of Administration columns are slightly too short:

index.css
Code (css) Select
dl.settings dt {    clear: both;    float: left;    margin: 0 0 10px;    padding: 0;    width: 40%;}

Thus, the line does not wrap, a width of 50% would be better.
#7
SimpleDesk Tracker / [Fixed] Undefined index: new
December 07, 2015, 05:56:28 PM
SimpleDesk version: SimpleDesk 2.0.1
Latest revision from the GitHub. Download is of branch smf21 from 07.12.2015.

In the Helpdesk overview page, display this error message:
Notice: Undefined index: new in C:\xampp\htdocs\smf21\Themes\default\sd_template\SimpleDesk.template.php (main sub template - eval?) on line 91
Notice: Undefined index: new in C:\xampp\htdocs\smf21\Themes\default\sd_template\SimpleDesk.template.php (main sub template - eval?) on line 407
Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\smf21\Themes\default\sd_template\SimpleDesk.template.php (main sub template - eval?) on line 407

sd_source/SimpleDesk.php at line 401
Code (php) Select
            'new' => array(
                'block_icon' => 'status.png',
                'title' => $txt['shd_status_' . TICKET_STATUS_NEW . '_heading'],
                'where' => 'hdt.id_member_assigned != ' . $user_info['id'] . ' AND hdt.status = ' . TICKET_STATUS_NEW,
                'display' => $is_staff,
                'count' => shd_count_helpdesk_tickets('new'),
                'columns' => shd_get_block_columns('new'),
                'required' => false,
                'collapsed' => false,
            ),


               
Code (php) Select
'required' => false,  ?should be?
Code (php) Select
'required' => $is_staff,
#8
SimpleDesk Tracker / [Fixed] Page numbering not work
December 07, 2015, 05:43:27 PM
SimpleDesk version: SimpleDesk 2.0.1
Latest revision from the GitHub. Download is of branch smf21 from 07.12.2015.

Page numbering is not displayed:

Pages: ... ...
#9
SimpleDesk version: SimpleDesk 2.0 Anatidae and SimpleDesk 2.0.1
SMF version:  SMF 2.0.11 and SMF 2.1 Beta 2

Latest revision from the GitHub. Download is of branch smf21 from 03.12.2015.

MySQLi version: 5.6.25
PHP: 5.6.11
2.1 Beta 2 is from the latest revision from the GitHub 30.11.2015

In the configuration of departments, the disclaimer text for Board Theme missing.

open sd_template/SimpleDesk-AdminDepartments.template.php

Fixed:

find
Code (php) Select
                                <dt><strong>', $txt['shd_dept_theme'], '</strong></dt>

replace with
Code (php) Select
                                <dt><strong>', $txt['shd_dept_theme'], '</strong>
                                    <div class="smalltext">', $txt['shd_dept_theme_note'], '</div>
                                </dt>
#10
SimpleDesk Tracker / Bug Profile Ticket Content
November 29, 2015, 11:08:31 PM
In User Profiles are the ticket Buttons "Post new ticket" and "Vie my ticket" are shifted.

#11
Sorry, I had overlooked  :-[

The icons are not displayed in the user profile Main Menu. 


Open root/Sources/sd_source/Subs-SimpleDeskProfile.php
find
Code (php) Select
    // Put it here so we can reuse it for the left menu a bit
    $context['helpdesk_menu'] = array(
        'title' => $txt['shd_profile_area'],
        'areas' => array(
            'helpdesk' => array(
                'label' => $txt['shd_profile_main'],


replace with
Code (php) Select
    // Put it here so we can reuse it for the left menu a bit
    $context['helpdesk_menu'] = array(
        'title' => $txt['shd_profile_area'],
        'areas' => array(
            'hd_profile' => array(
                'label' => $txt['shd_profile_main'],


Open root/Themes/default/css/helpdesk_icons.css
find
Code (css) Select
.generic_icons.profile
{
    background: url(../images/simpledesk/icons/shd_generic_icons.png) no-repeat;
    background-position: -167px -117px ;
}


after that
Code (css) Select
.generic_icons.hd_profile
{
    background: url(../images/simpledesk/icons/shd_generic_icons.png) no-repeat;
    background-position: -167px -117px ;
}

.generic_icons.hd_prefs{
    background: url(../images/simpledesk/icons/shd_generic_icons.png) no-repeat;
    background-position: -218px -25px ;
}

.generic_icons.hd_showtickets{
    background: url(../images/simpledesk/icons/shd_generic_icons.png) no-repeat;
    background-position: -217px -68px ;
}

.generic_icons.hd_permissions{
    background: url(../images/simpledesk/icons/shd_generic_icons.png) no-repeat;
    background-position: -218px -117px ;
}

.generic_icons.hd_actionlog{
    background: url(../images/simpledesk/icons/shd_generic_icons.png) no-repeat;
    background-position: -267px -25px ;
}



Replace shd_generic_icons.png with  these


https://github.com/SimpleDesk/SimpleDesk/issues/24
#12
SimpleDesk version: SimpleDesk 2.0 Anatidae and SimpleDesk 2.0.1
SMF version:  SMF 2.0.11 and SMF 2.1 Beta 2

Latest revision from the GitHub. Download is of branch smf21 from 08.11.2015.

MySQLi version: 5.6.25
PHP: 5.6.11
2.1 Beta 2 is from the latest revision from the GitHub 08.11.2015

The configuration area Display Options are missing subtext in "Custom Fields for Tickets and Replie"

open root/Themes/default/sd_template/SimpleDesk-AdminCustomField.template.php

find
Code (php) Select
                        <dt><strong>', $txt['shd_admin_custom_fields_fieldtype'], ':</strong></dt>
replaces with
Code (php) Select
                        <dt><strong>', $txt['shd_admin_custom_fields_fieldtype'], ':</strong><br /><span class="smalltext">', $txt['shd_admin_custom_fields_description_desc'], '</span></dt>
#13
SimpleDesk version: SimpleDesk 2.0.1
SMF version:  SMF 2.1 Beta 2

Latest revision from the GitHub. Download is of branch smf21 from 08.11.2015.

MySQLi version: 5.6.25
PHP: 5.6.11
SMF 2.1 Beta 2 is from the latest revision from the GitHub 08.11.2015

Error by click of  Helpdesk => "OPTIONS"

QuoteNotice: Undefined variable: sourcedir in C:\xampp\htdocs\smf21\Sources\sd_source\Subs-SimpleDeskProfile.php on line 116

Warning: require_once(/Profile-Modify.php): failed to open stream: No such file or directory in C:\xampp\htdocs\smf21\Sources\sd_source\Subs-SimpleDeskProfile.php on line 116

Fatal error:  require_once(): Failed opening required '/Profile-Modify.php' (include_path='.;\xampp\php\PEAR') in C:\xampp\htdocs\smf21\Sources\sd_source\Subs-SimpleDeskProfile.php on line 116

Solution

open root/Sources/sd_source/Subs-SimpleDeskProfile.php
find
function shd_profile_areas(&$profile_areas)
{
    global $modSettings, $context, $txt;


replaces with
function shd_profile_areas(&$profile_areas)
{
     global $sourcedir, $modSettings, $context, $txt;
#14
SimpleDesk Tracker / [Fixed] Bug missing subtext
November 13, 2015, 04:58:35 PM
SimpleDesk version: SimpleDesk 2.0 Anatidae and SimpleDesk 2.0.1
SMF version:  SMF 2.0.11 and SMF 2.1 Beta 2

Latest revision from the GitHub. Download is of branch smf21 from 08.11.2015.

MySQLi version: 5.6.25
PHP: 5.6.11
2.1 Beta 2 is from the latest revision from the GitHub 08.11.2015

The configuration area Display Options are missing subtext

open root/Sources/sd_source/SimpleDesk-Admin.php
find
        array('check', 'shd_hidemenuitem'),
replaces with
        array('check', 'shd_hidemenuitem', 'subtext' => $txt['shd_hidemenuitem_note']),

find
        array('check', 'shd_disable_unread'),
replaces with
        array('check', 'shd_disable_unread', 'subtext' => $txt['shd_disable_unread_note']),

For Display avatars in replies to a ticket? missing the language String shd_display_avatar_note in the language file and the code for the subtext
      array('check', 'shd_display_avatar'),
#15
SimpleDesk Tracker / Bug icons
November 10, 2015, 04:40:06 PM
SimpleDesk version: SimpleDesk 2.0.1
SMF version:  SMF 2.1 Beta 2

Latest revision from the GitHub. Download is of branch smf21 from 08.11.2015.

MySQLi version: 5.6.25
PHP: 5.6.11
SMF 2.1 Beta 2 is from the latest revision from the GitHub 08.11.2015

Some icons are not displayed:








My suggested solution:

Creates a new folder "icons" in root/Themes/default/images/simpledesk/. Inserts the icons in this folder "icons" and the "helpdesk_icons.css" in root/Themes/default/css/:




Download icons and helpdesk_icons.css

Open root/Sources/sd_source/Subs-SimpleDeskAdmin.php

find
function shd_admin_bootstrap(&$admin_areas)
{
    global $sourcedir, $modSettings, $txt, $context, $scripturl;

replaces with
function shd_admin_bootstrap(&$admin_areas)
{
    global $sourcedir, $modSettings, $txt, $context, $scripturl, $settings;

    // Load some extra CSS
    $context['html_headers'] .= '
    <link rel="stylesheet" type="text/css" href="' . $settings['default_theme_url'] . '/css/helpdesk_icons.css" />';

find
                    'icon' => 'shd/simpledesk.png',
replaces with
                    'icon' => 'shd_simpledesk',
find
                    'icon' => 'shd/options.png',
replaces with
                    'icon' => 'shd_options',
find
                    'icon' => 'shd/cannedreplies.png',
replaces with
                    'icon' => 'shd_cannedreplies',
find
                    'icon' => 'shd/custom_fields.png',
replaces with
                    'icon' => 'shd_custom_fields',
find
                    'icon' => 'shd/departments.png',
replaces with
                    'icon' => 'shd_departments',
find
                    'icon' => 'shd/permissions.png',
replaces with
                    'icon' => 'shd_permissions',
find
                    'icon' => 'shd/plugins.png',
replaces with
                    'icon' => 'shd_plugins',
find
                    'icon' => 'shd/maintenance.png',
replaces with
                    'icon' => 'shd_maintenance',

Open root/Sources/sd_source/Subs-SimpleDesk.php

find
function shd_main_menu(&$menu_buttons)
{
    global $context, $txt, $scripturl, $modSettings;

replaces with
function shd_main_menu(&$menu_buttons)
{
    global $context, $txt, $scripturl, $modSettings, $settings;

    // Load some extra CSS
    $context['html_headers'] .= '
    <link rel="stylesheet" type="text/css" href="' . $settings['default_theme_url'] . '/css/helpdesk_icons.css" />';




After solution:





#16
SimpleDesk Support / Bug in Standalone Options
November 08, 2015, 01:05:33 PM
   SimpleDesk version: SimpleDesk 2.0.1
   SMF version:  SMF 2.1 Beta 2

Warning: Missing argument 2 for shd_error_types() in C:\xampp\htdocs\smf21\Sources\sd_source\Subs-SimpleDeskAdmin.php on line 623

Warning: Missing argument 3 for shd_error_types() in C:\xampp\htdocs\smf21\Sources\sd_source\Subs-SimpleDeskAdmin.php on line 623

Warning: Missing argument 4 for shd_error_types() in C:\xampp\htdocs\smf21\Sources\sd_source\Subs-SimpleDeskAdmin.php on line 623

Warning: Missing argument 5 for shd_error_types() in C:\xampp\htdocs\smf21\Sources\sd_source\Subs-SimpleDeskAdmin.php on line 623

Notice: Undefined variable: file in C:\xampp\htdocs\smf21\Sources\sd_source\Subs-SimpleDeskAdmin.php on line 631

Notice: Undefined variable: error_message in C:\xampp\htdocs\smf21\Sources\sd_source\Subs-SimpleDeskAdmin.php on line 631

Notice: Undefined variable: file in C:\xampp\htdocs\smf21\Sources\sd_source\Subs-SimpleDeskAdmin.php on line 633

Notice: Undefined variable: error_message in C:\xampp\htdocs\smf21\Sources\sd_source\Subs-SimpleDeskAdmin.php on line 633

Notice: Undefined variable: error_message in C:\xampp\htdocs\smf21\Sources\sd_source\Subs-SimpleDeskAdmin.php on line 633

Error log:
Type of error: General
2: Invalid argument supplied for foreach()
xxx//localhost/smf21/index.php?action=admin;area=helpdesk_options;sa=standalone;d2f5d3372=xxxx
File: C:/xampp/htdocs/smf21/Sources/ManageServer.php
Line: 770