Phpost

Versión completa: Puntos por subir video (Act 1.3)
Actualmente estas viendo una versión simplificada de nuestro contenido. Ver la versión completa con el formato correcto.
Demo
http://Registrate o inicia tu sesión par... 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
Código PHP:
ALTER TABLE w_configuracion ADD c_cant_x_videos INT(11NOT NULL 
 
 
En c.videos.php --> inc --> class --> c.videos.php

Buscar:
Código PHP:
$vid db_exec('insert_id'); 
 
 
Debajo agregar:
Código PHP:
// 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:
Código PHP:
'offline' => empty($_POST['offline']) ? 1
 
 
Debajo agregar:
Código PHP:
'cant_x_videos' => (int)$_POST['cant_x_videos'], 
 
 
Buscar:
Código PHP:
'\', `offline` = \'' $c['offline'] . 
 
 
Al lado agregar:
Código PHP:
'\', `c_cant_x_videos` = \'' $c['cant_x_videos'] . 
 
 
En videos.php --> inc --> php --> videos.php

Buscar:
Código PHP:
$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:
Código PHP:
$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:
Código PHP:
<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:
Código PHP:
<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: Lucho