Skocz do zawartości
"Idzie nowe..." - o zmianach i nie tylko ×
Przeniesienie zakupów z IPS Marketplace / Moving bought items from IPS Marketplace ×

pawel7121

Użytkownik
  • Postów

    552
  • Dołączył

  • Ostatnia wizyta

Odpowiedzi opublikowane przez pawel7121

  1. automatycznie zamyka tematy użytkownika zbanowanego czyli chodzi mi to takie coś   ---TUTAJ SCREEN--:

    Nie czytałem dokładnie, zobaczyłem screena i odrazu na myśl przyszła mi ta oto modyfikacja.

     

    Już nic nie dodaje, nie będę robił z tego tematu off-topica.

     

     

    //Edit @down

     

    Na amxx.pl właśnie wpisują powód, a ty chcesz tak jak ma ich strona.

    Nie moja wina, że dałeś zły screen. Jak tego nigdzie nie widziałeś - no to przepraszam, pewnie autorska appka.

  2. Ni działa ;x

    Warning: include(/var/www/public_html/forum//forum/onlineTS.php) [function.include]: failed to open stream: Nie ma takiego pliku ani katalogu in /var/public_html/forum/cache/skin_cache/cacheid_4/skin_global.php on line 145
    
    Warning: include() [function.include]: Failed opening '/var/www/public_html/forum//forum/onlineTS.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php:/var/www/public_html/forum/ips_kernel/') in /var/www/public_html/forum/cache/skin_cache/cacheid_4/skin_global.php on line 145
  3. [long]

    class cp_skin_staff
    {
     
     
    COD COD COD BLOCKED
    
    
    
    <!-- Groups Table-->
    <div class="acp-box">
    <h3>{$this->lang->words['stf_groups_list']}</h3>
    <table class='ipsTable'>
    <tr>
    <th width='40%'>{$this->lang->words['stf_group']}</th>
    <th width='5%' class='center'>{$this->lang->words['stf_show']}</th>
    <th width='10%' class='center'>{$this->lang->words['stf_send_email']}</th>
    <th width='40%'>{$this->lang->words['stf_assigned_to']}</th>
    <th class='col_buttons'> </th>
    </tr>
    HTML;
    
    if( count($data['groups']) )
    {
    foreach( $data['groups'] as $row )
    {
    $IPBHTML .= <<<HTML
    <tr class='ipsControlRow'>
    <td><a href='{$this->settings['base_url']}{$this->form_code}do=edit&id={$row['s_id']}'>{$row['_name']}</a></td>
    <td class='center'><a href='{$this->settings['base_url']}{$this->form_code}do=toggleShow&id={$row['s_id']}' title='{$this->lang->words['stf_toggle_show']}'><img src='{$this->settings['skin_acp_url']}/images/icons/{$row['_show']}.png'/></a></td>
    <td class='center'><a href='{$this->settings['base_url']}{$this->form_code}do=toggleEmail&id={$row['s_id']}' title='{$this->lang->words['stf_toggle_email']}'><img src='{$this->settings['skin_acp_url']}/images/icons/{$row['_email']}.png'/></a></td>
    <td>
    HTML;
    
    if( count($row['_departments']) )
    {
    $IPBHTML .= "<ul class='bullets'>";
    
    foreach( $row['_departments'] as $dep )
    {
    $IPBHTML .= <<<HTML
    <li>{$dep}</li>
    HTML;
    }
    
    $IPBHTML .= "</ul>";
    }
    else
    {
    $IPBHTML .= <<<HTML
    <ul>
    <li class='warning'>{$this->lang->words['stf_no_assignments']}</li>
    </ul>
    HTML;
    }
    
    $IPBHTML .= <<<HTML
    </td>
    <td class='col_buttons'>
    <ul class='ipsControlStrip'>
    <li class='i_edit'><a href='{$this->settings['base_url']}{$this->form_code}do=edit&id={$row['s_id']}' title='{$this->lang->words['stf_edit_group']}'>{$this->lang->words['stf_edit_group']}</a></li>
    <li class='i_delete'><a href='#' onclick='acp.confirmDelete("{$this->settings['base_url']}{$this->form_code}do=delete&id={$row['s_id']}");' title='{$this->lang->words['stf_delete_group']}'>{$this->lang->words['stf_delete_group']}</a></li>
    </ul>
    </td>
    </tr>
    HTML;
    }
    }
    else
    {
    $IPBHTML .= <<<HTML
    <tr>
    <td colspan='5' class='no_messages'>
    {$this->lang->words['stf_no_staff_groups']} <a href='{$this->settings['base_url']}{$this->form_code}do=addGroup' class='mini_button'>{$this->lang->words['stf_add_new_group']}</a>
    </td>
    </tr>
    HTML;
    }
    
    $IPBHTML .= <<<HTML
    </table>
    </div>
    
    <br /><br />
    
    <!-- Members Table-->
    <div class="acp-box">
    <h3>{$this->lang->words['stf_members_list']}</h3>
    <table class='ipsTable'>
    <tr>
    <th width='40%'>{$this->lang->words['stf_member']}</th>
    <th width='5%' class='center'>{$this->lang->words['stf_show']}</th>
    <th width='10%' class='center'>{$this->lang->words['stf_send_email']}</th>
    <th width='40%'>{$this->lang->words['stf_assigned_to']}</th>
    <th class='col_buttons'> </th>
    </tr>
    HTML;
    
    if( count($data['members']) )
    {
    foreach( $data['members'] as $row )
    {
    $IPBHTML .= <<<HTML
    <tr class='ipsControlRow'>
    <td><a href='{$this->settings['base_url']}{$this->form_code}do=edit&id={$row['s_id']}'>{$row['_name']}</a></td>
    <td class='center'><a href='{$this->settings['base_url']}{$this->form_code}do=toggleShow&id={$row['s_id']}' title='{$this->lang->words['stf_toggle_show']}'><img src='{$this->settings['skin_acp_url']}/images/icons/{$row['_show']}.png'/></a></td>
    <td class='center'><a href='{$this->settings['base_url']}{$this->form_code}do=toggleEmail&id={$row['s_id']}' title='{$this->lang->words['stf_toggle_email']}'><img src='{$this->settings['skin_acp_url']}/images/icons/{$row['_email']}.png'/></a></td>
    <td>
    HTML;
    
    if( count($row['_departments']) )
    {
    $IPBHTML .= "<ul class='bullets'>";
    
    foreach( $row['_departments'] as $dep )
    {
    $IPBHTML .= <<<HTML
    <li>{$dep}</li>
    HTML;
    }
    
    $IPBHTML .= "</ul>";
    }
    else
    {
    $IPBHTML .= <<<HTML
    <ul>
    <li class='warning'>{$this->lang->words['stf_no_assignments']}</li>
    </ul>
    HTML;
    }
    
    $IPBHTML .= <<<HTML
    </td>
    <td class='col_buttons'>
    <ul class='ipsControlStrip'>
    <li class='i_edit'><a href='{$this->settings['base_url']}{$this->form_code}do=edit&id={$row['s_id']}' title='{$this->lang->words['stf_edit_member']}'>{$this->lang->words['stf_edit_member']}</a></li>
    <li class='i_delete'><a href='#' onclick='acp.confirmDelete("{$this->settings['base_url']}{$this->form_code}do=delete&id={$row['s_id']}");' title='{$this->lang->words['stf_delete_member']}'>{$this->lang->words['stf_delete_member']}</a></li>
    </ul>
    </td>
    </tr>
    HTML;
    }
    }
    else
    {
    $IPBHTML .= <<<HTML
    <tr>
    <td colspan='5' class='no_messages'>
    {$this->lang->words['stf_no_staff_members']} <a href='{$this->settings['base_url']}{$this->form_code}do=addMember' class='mini_button'>{$this->lang->words['stf_add_new_member']}</a>
    </td>
    </tr>
    HTML;
    }
    
    $IPBHTML .= <<<HTML
    </table>
    </div>
    HTML;
    
    //--endhtml--//
    return $IPBHTML;
    }
    
    /**
    * View the form to add/edit a staff
    *
    * @author Terabyte
    * @access public
    * @param string Page title
    * @param string Button text
    * @param string Form action
    * @param string Type of staff [member|group]
    * @param array Form values
    * @return string HTML
    */
    public function staffFormView( $title, $button, $action, $type, $form ) {
    
    $IPBHTML = "";
    //--starthtml--//
    
    $IPBHTML .= <<<HTML
    <div class='section_title'>
    <h2>{$title}</h2>
    </div>
    HTML;
    
    if( $type == 'member' )
    {
    $staffType = $this->lang->words['stf_member'];
    
    $IPBHTML .= <<<HTML
    <script type='text/javascript' src='{$this->settings['js_app_url']}acp.staff.js'></script>
    HTML;
    }
    else
    {
    $staffType = $this->lang->words['stf_group'];
    }
    
    $this->lang->words['stf_perm_email'] = sprintf( $this->lang->words['stf_perm_email'], $staffType );
    
    /* Format nicely our staff type */
    $staffType = ucwords($staffType);
    
    $IPBHTML .= <<<HTML
    <form action='{$this->settings['base_url']}{$this->form_code}do={$action}' method='post'>
    <div class='acp-box'>
    <h3>{$title}</h3>
    <table class='ipsTable double_pad'>
    <tr>
    <td class='field_title'><strong class='title'>{$staffType}</strong></td>
    <td class='field_field'>{$form['typeText']}</td>
    </tr>
    <tr>
    <th colspan='2'>{$this->lang->words['stf_staff_settings']}</th>
    </tr>
    <tr>
    <td class='field_title'><strong class='title'>{$this->lang->words['stf_perm_show']}</strong></td>
    <td class='field_field'>{$form['s_show']}</td>
    </tr>
    <tr>
    <td class='field_title'><strong class='title'>{$this->lang->words['stf_perm_email']}</strong></td>
    <td class='field_field'>{$form['s_email']}</td>
    </tr>
    <tr>
    <th colspan='2'>{$this->lang->words['stf_staff_permissions']}</th>
    </tr>
    <tr>
    <td class='field_title'><strong class='title'>{$this->lang->words['stf_perm_lock_unlock']}</strong></td>
    <td class='field_field'>{$form['s_lock']}</td>
    </tr>
    <tr>
    <td class='field_title'><strong class='title'>{$this->lang->words['stf_perm_edit_tickets']}</strong></td>
    <td class='field_field'>{$form['s_edit_tickets']}</td>
    </tr>
    <tr>
    <td class='field_title'><strong class='title'>{$this->lang->words['stf_perm_edit_replies']}</strong></td>
    <td class='field_field'>{$form['s_edit_replies']}</td>
    </tr>
    <tr>
    <td class='field_title'><strong class='title'>{$this->lang->words['stf_perm_del_tickets']}</strong></td>
    <td class='field_field'>{$form['s_del_tickets']}</td>
    </tr>
    
    }
    }
    [/long]

     

    Ucięłem początek, ale nie wiem czy też nie za dużo teraz dałem. Jakby coś to utnijcie jeszcze kodu.

  4. Siemanko...

    Ściągnąłem z marketu (TB) System tickets

    Wszystko spolszczyłem, ładnie działa, ale gdy wchodzę do ACP :a: Aplikacje :a: System tickets :a: Management :a: Manage staff

    Po wejściu w tą zakładke, wyświetla błąd:

     

    Parse error: syntax error, unexpected $end in /var/www/public_html/forum/huehuehue/applications_addon/other/tickets/skin_cp/cp_skin_staff.php on line 334

     

    Chodzi o brak '}' x2 na końcu, lecz gdy zobaczyłem w plik to jest coś takiego:

     

    $IPBHTML .= <<<HTML
    <form action='{$this->settings['base_url']}{$this->form_code}do={$action}' method='post'>
    <div class='acp-box'>
    <h3>{$title}</h3>
    <table class='ipsTable double_pad'>
    <tr>
    <td class='field_title'><strong class='title'>{$staffType}</strong></td>
    <td class='field_field'>{$form['typeText']}</td>
    </tr>
    <tr>
    <th colspan='2'>{$this->lang->words['stf_staff_settings']}</th>
    </tr>
    <tr>
    <td class='field_title'><strong class='title'>{$this->lang->words['stf_perm_show']}</strong></td>
    <td class='field_field'>{$form['s_show']}</td>
    </tr>
    <tr>
    <td class='field_title'><strong class='title'>{$this->lang->words['stf_perm_email']}</strong></td>
    <td class='field_field'>{$form['s_email']}</td>
    </tr>
    <tr>
    <th colspan='2'>{$this->lang->words['stf_staff_permissions']}</th>
    </tr>
    <tr>
    <td class='field_title'><strong class='title'>{$this->lang->words['stf_perm_lock_unlock']}</strong></td>
    <td class='field_field'>{$form['s_lock']}</td>
    </tr>
    <tr>
    <td class='field_title'><strong class='title'>{$this->lang->words['stf_perm_edit_tickets']}</strong></td>
    <td class='field_field'>{$form['s_edit_tickets']}</td>
    </tr>
    <tr>
    <td class='field_title'><strong class='title'>{$this->lang->words['stf_perm_edit_replies']}</strong></td>
    <td class='field_field'>{$form['s_edit_replies']}</td>
    </tr>
    <tr>
    <td class='field_title'><strong class='title'>{$this->lang->words['stf_perm_del_tickets']}</strong></td>
    <td class='field_field'>{$form['s_del_tickets']}</td>
    </tr>
    
    }
    }
    

    Nigdzie tutaj nie widzę zamknięcia HTML; na końcu, gdy dodałem to w ACP zniknął błąd, ale nie wyświetla rubryk gdzie się wybiera moderatora i daje uprawnienia.

     

    Szukałem na Invision Byte jak to naprawić, lecz nie uzyskałem tam tego problemu. Kiedyś miałem ten problem i pomógł kolega, teraz nie pamiętam co tu brakowało.

     

    Z góry dziękuje za pomoc.

            pzdr.

×
×
  • Dodaj nową pozycję...

Powiadomienie o plikach cookie

Umieściliśmy na Twoim urządzeniu pliki cookie, aby pomóc Ci usprawnić przeglądanie strony. Możesz dostosować ustawienia plików cookie, w przeciwnym wypadku zakładamy, że wyrażasz na to zgodę.