You need to enable JavaScript to run this app.

Ir al contenido principal

MOD Soporte por tickets actualizado a (1.3) y adaptado para la V6

MOD Soporte por tickets actualizado a (1.3) y adaptado para la V6

Editor
MOD Soporte por tickets actualizado a (1.3) y adaptado para la V6
3
Mejor respuesta del mensaje MOD Soporte por tickets actualizado a (1.3) y adaptado para la V6Hola a tod@s, os dejo el mod soporte por tickets de Debes agradecer para ver el contenido... actualizado y adaptado para la Debes agradecer para ver el contenido..., si usan otro tema lo que cambia es el diseño, si no saben cambiarlo deja aquí tu web y te ayudo cuando tenga tiempo.

Ejecutar estas consultas en la base de datos


CREATE TABLE IF NOT EXISTS `s_respuestas` (
  `rid` int(11) NOT NULL AUTO_INCREMENT,
  `tid` int(11) NOT NULL,
  `respuesta` text NOT NULL,
  `user` int(11) NOT NULL,
  `solucionado` int(1) NOT NULL DEFAULT '0',
  `fecha` int(16) NOT NULL,
  PRIMARY KEY (`rid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `s_tickets` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user` int(11) NOT NULL,
  `asunto` varchar(50) NOT NULL DEFAULT 'Soporte',
  `problema` text NOT NULL,
  `estado` int(1) NOT NULL DEFAULT '1',
  `leido` int(1) NOT NULL DEFAULT '0',
  `fecha` int(16) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;


Suben estos archivos

Debes agradecer para ver el contenido...

Debes agradecer para ver el contenido...

Debes agradecer para ver el contenido...


admin.php --> inc --> php --> admin.php

Buscar

// TIPO
           $smarty->assign("tsType",$_GET['t']);
           $smarty->assign("tsUserID",$user_id);
           $smarty->assign("tsUsername",$tsUser->getUserName($user_id));
       }

Agregar debajo

} elseif($action == 'soporte'){
           // CLASE SOPORTE
    include("../class/c.soporte.php");
    $tsSoporte = new tsSoporte();
    $smarty->assign("tsDelete",$_GET['d']);    // AGREGAR EL TITULO DE LA PAGINA ACTUAL

        if($act == ''){
            
    $smarty->assign('tsTickets', $tsSoporte->getTicketss());
    }elseif($act == 'nuevo'){
        if(!empty($_POST['asunto']) && !empty($_POST['problema'])){
            $envio = $tsSoporte->newTicket();
            if($envio) $tsCore->redirectTo($tsCore->settings['url'].'/admin/soporte/?save=true');
        }
    }elseif($act == 'delete'){
            $borrar = $tsSoporte->deleteTicket();
            if($borrar) $tsCore->redirectTo($tsCore->settings['url'].'/admin/soporte/?d=true');
    }elseif($act == 'solucionado'){
            $sol = $tsSoporte->solucionarTicket();
            if($sol) $tsCore->redirectTo($tsCore->settings['url'].'/admin/soporte?act=ver&id='.(int)$_GET['id']);
    }elseif($act == 'ver'){
        if(!empty($_POST['respuesta'])){
            $tsSoporte->responderTicket();
            $tsCore->redirectTo($tsCore->settings['url'].'/admin/soporte?act=ver&id='.(int)$_GET['id']);
        }else{
                $smarty->assign('tsTicket', $tsSoporte->getTicket((int)$_GET['id']));
                }
    }


t.admin.tpl --> themes --> default --> templates --> t.admin.tpl

Buscar

{elseif $tsAction == 'rangos'}
                    {include file='admin_mods/m.admin_rangos.tpl'}

Agregar debajo

{elseif $tsAction == 'soporte'}
                    {include file='admin_mods/m.admin_soporte.tpl'}


m.admin_sidemenu.tpl --> themes --> default --> templates --> admin_mods --> m.admin_sidemenu.tpl

Buscar

<li id="a_users"><span class="cat-title"><a href="{$tsConfig.url}/admin/users">Todos los Usuarios</a></span></li>


Agregar debajo

<li id="a_configs"><span class="cat-title"><a href="{$tsConfig.url}/admin/soporte">Soporte </a></span></li>


main_header.tpl --> themes --> default --> templates --> sections --> main_header.tpl

Buscar

&& $tsPage != 'envivo'

Agregar al lado

&& $tsPage != 'soporte'

head_menu.tpl --> themes --> default --> templates --> sections --> head_menu.tpl

Donde quieran agregan esto

{if $tsUser->is_member}<a {if $tsPage == 'soporte'}class="aqui"{/if} href="{$tsConfig.url}/soporte/"><i class="fas fa-ticket-alt" aria-hidden="true" style="margin-right: 10px;"></i>Soporte</a>{/if}

head_submenu.tpl --> themes --> default --> templates --> sections --> head_submenu.tpl

Buscar

{if $tsUser->is_member}<li><a {if $tsAction == 'album' && $tsFUser.0 == $tsUser->uid}class="viendo"{/if} href="{$tsConfig.url}/fotos/{$tsUser->nick}">Mis imágenes</a></li>{/if}
        </ul>

Agregar debajo

{elseif $tsPage == 'soporte'}
        <ul class="floatL tabsMenu">
            <li class="viendo"><a>Ticket de Consulta</a></li>      
        </ul>




extras.css --> themes --> default --> extras.css

Agregar al final

.message-box i{vertical-align:middle;padding:5px}.message-box i.exit-button{float:right;opacity:.4}.message-box i.exit-button:hover{opacity:.8}.message-text{vertical-align:middle}.message-box-warn{background-color:#f8f4d5;border:#e9dd7e 2px solid;color:#96722e;font-size: 15px;margin:10px 10px 0 10px}.message-box-success{background-color:#ddf3d5;border:#9ddc86 2px solid;color:#597151;font-size: 15px;margin:10px 10px 0 10px}


Demo

Debes agradecer para ver el contenido...



[img]Registrate o inicia tu sesión para ver este contenido[/img]

[img]Registrate o inicia tu sesión para ver este contenido[/img]

[img]Registrate o inicia tu sesión para ver este contenido[/img]