11-09-2021, 11:01 PM
Demo
http://Registrate o inicia tu sesión par... contenido
Capturas
Ejecutar esta consulta
En c.videos.php --> inc --> class --> c.videos.php
Buscar:
Debajo agregar:
En c.admin.php --> inc --> class --> c.admin.php
Buscar:
Debajo agregar:
Buscar:
Al lado agregar:
En videos.php --> inc --> php --> videos.php
Buscar:
Reemplazar por:
En m.admin_configs.tpl --> themes --> default --> templates --> admin_mods --> m.admin_configs.tpl
Buscar:
Debajo agregar:
Creditos: Lucho
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(11) NOT 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']) ? 0 : 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ó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á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ídeos:</label>
<br /><span>Puntos que recibirá como bonificació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