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

Messages - wintstar

#31
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:





#32
SimpleDesk Support / Re: Bug in Standalone Options
November 10, 2015, 03:44:05 AM
Yes i have the latest revision from the GitHub. Download is of branch smf21 from 08.11.2015. SMF

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


The error I noticed, when configure the modification. 


I have found some bugs. Mainly in the plugin system. I'll post in separate threads. A language string seems to me to be missing core_settings_disabled for an error message. I must still accurately check.
#33
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