11-09-2021, 11:01 PM
1
DemoDebes 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
Código PHP: ( Seleccionar Todo )
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: ( Seleccionar Todo )
$vid = db_exec('insert_id');
Debajo agregar:
Código PHP: ( Seleccionar Todo )
// 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: ( Seleccionar Todo )
'offline' => empty($_POST['offline']) ? 0 : 1,
Debajo agregar:
Código PHP: ( Seleccionar Todo )
'cant_x_videos' => (int)$_POST['cant_x_videos'],
Buscar:
Código PHP: ( Seleccionar Todo )
'\', `offline` = \'' . $c['offline'] .
Al lado agregar:
Código PHP: ( Seleccionar Todo )
'\', `c_cant_x_videos` = \'' . $c['cant_x_videos'] .
En videos.php --> inc --> php --> videos.php
Buscar:
Código PHP: ( Seleccionar Todo )
$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: ( Seleccionar Todo )
$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: ( Seleccionar Todo )
<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: ( Seleccionar Todo )
<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: Debes agradecer para ver el contenido...


Facebook
Twitter
Reddit
Digg
del.icio.us
Tumblr
Pinterest
Blogger
Fark
LinkedIn
Mix
Google