¡Bienvenido! ¿Aún no estás registrado?, deberás registrarte antes de poder usar el Chat, Comentar y Descargar en el Foro. Usa un email válido para la activación.
Calificación:
  • 0 voto(s) - 0 Media
  • 1
  • 2
  • 3
  • 4
  • 5

COMPLEMENTOS Puntos por subir video (Act 1.3)
#1

1
Mejor respuesta del mensaje Puntos por subir video (Act 1.3)Demo
Debes agradecer para ver el contenido...


Capturas
[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]
 
[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]




 
Ejecutar esta consulta
ALTER TABLE w_configuracion ADD c_cant_x_videos INT(11NOT NULL 
 
 
En c.videos.php --> inc --> class --> c.videos.php

Buscar:
$vid db_exec('insert_id'); 
 
 
Debajo agregar:
// Puntos por Video by Lucho
    
db_exec(array(__FILE____LINE__), 'query''UPDATE u_miembros SET user_puntos = user_puntos + \''.(int)$tsCore->settings['c_cant_x_videos'].'\' WHERE user_id = \''.(int)$tsUser->uid.'\''); 
 
 
En c.admin.php --> inc --> class --> c.admin.php

Buscar:
'offline' => empty($_POST['offline']) ? 1
 
 
Debajo agregar:
'cant_x_videos' => (int)$_POST['cant_x_videos'], 
 
 
Buscar:
'\', `offline` = \'' $c['offline'] . 
 
 
Al lado agregar:
'\', `c_cant_x_videos` = \'' $c['cant_x_videos'] . 
 
 
En videos.php --> inc --> php --> videos.php

Buscar:
$smarty->assign("tsAviso",array('titulo' => 'Video Agregado''mensaje' => "El video <b>".$titulo."</b> fue agregado."'but' => 'Ver video''link' => "{$tsCore->settings['url']}/videos/{$tsUser->nick}/{$result}/".$tsCore->setSEO($titulo).".html")); 
 
 
Reemplazar por:
$smarty->assign("tsAviso",array('titulo' => 'Video Agregado''mensaje' => "El video <b>".$titulo."</b> fue agregado. Has recibido una bonificaci&oacute;n de: {$tsCore->settings['c_cant_x_videos']} Puntos"'but' => 'Ver video''link' => "{$tsCore->settings['url']}/videos/{$tsUser->nick}/{$result}/".$tsCore->setSEO($titulo).".html")); 
 
 
En m.admin_configs.tpl --> themes --> default --> templates --> admin_mods --> m.admin_configs.tpl

Buscar:
<dl>
                <
dt>
                    <
label for="ai_max_nots">M&aacute;ximo de notificaciones:</label>
                    <
br /><span>Cuantas notificaciones puede recibir un usuario.</span></dt>
                <
dd>
                    <
input type="text" id="ai_max_nots" name="max_nots" style="width:10%" maxlength="3" value="{$tsConfig.c_max_nots}/>
                </
dd>
            </
dl
 
 
Debajo agregar:
<dl>
                <
dt>
                    <
label for="cant_x_fotos">Puntos por V&iacute;deos:</label>
                    <
br /><span>Puntos que recibir&aacutecomo bonificaci&oacute;n un usuario al subir un video.</span></dt>
                <
dd>
                    <
input type="text" id="cant_x_videos" name="cant_x_videos" style="width:10%" maxlength="3" value="{$tsConfig.c_cant_x_videos}/>
                </
dd>
            </
dl






Creditos: Debes agradecer para ver el contenido...
Responder


Compartir en:

Salto de foro:


Usuarios navegando en este tema: 1 invitado(s)