Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - YONAMIX

Pages: [1]
1
Soporte General SMF / Like al entrar a post
« on: October 03, 2012 - 04:54 16:54 »
Sector Djs

Datos importantes:
Url del foro: http://sectordjs.com.ar
Version de SMF: 2.0.2
Theme del foro: Bluez

Descripcion del problema:
Bueno gente , vengo a hacerles una consulta , hace un tiempo entre a esta web a descargar un mod , y cuando estaba por descargar el mod, osea para ver el post con el link me salto un popup para compartir o darle me gusta en facebook , me podrian decir como se haria eso en mi foro?

2
Soporte General SMF / Problema Hide Tag Special En Rc5
« on: March 26, 2011 - 09:22 21:22 »
Hola gente como les va ... vengo a ver si pueden solucionarme mi problemita ...

Este es mi foro: www.sectordjs.com.ar

resulta q bueno al actualizar a rc5 yo ya sabia que no andaria el hide tag special .... apenas pude hacerlo andar (un amigo me ayudo) en rc4 pero en rc5 noc que es lo que tengo que modificar ... (instalarlo manualmente) en otro tema un usuario dijo que habia que modificar esto:

Sources/Admin.php

Encontrar :


Code: [Select]
'subsections' => array(
'posts' => array($txt['manageposts_settings'], 'admin_forum'),



Reemplazar :


Code: [Select]
'subsections' => array(
'posts' => array($txt['manageposts_settings'], 'admin_forum'),
'hidetagspecial' => array($txt['manageposts_hidetagspecial_settings'], 'admin_forum'),




Sources/ManagePosts.php

Encontrar:



Code: [Select]
'posts' => array('ModifyPostSettings', 'admin_forum'),


Reemplazar:


Code: [Select]
'posts' => array('ModifyPostSettings', 'admin_forum'),
'hidetagspecial' => array('ModifyHideTagSpecialSettings', 'admin_forum'),




./Sources/Subs.php


Encontrar:


Code: [Select]
static $disabled;


AƱadir despues:


Code: [Select]
static $disabled;

// On the first Parsing i will gernerate all things i need ;) after that it's not needable :)
if (!isset($modSettings['hide_preparedOption']))
{
// First there is nothing in it ;)
$modSettings['hide_preparedOption']['hiddentext'] = ' ';
$modSettings['hide_preparedOption']['unhiddentext'] = ' ';

if (empty($modSettings['hide_noinfoforguests']) || !$user_info['is_guest'])
{
// Prepare the hidden information :)
$modSettings['hide_preparedOption']['hiddentext'] = isset($modSettings['hide_hiddentext']) ? $modSettings['hide_hiddentext'] : '';
$modSettings['hide_preparedOption']['hiddentext'] = str_replace('$language', $user_info['language'], $modSettings['hide_preparedOption']['hiddentext']);
if (!empty($modSettings['hide_MUIswitch']) && isset($txt['hide_hiddentext']))
$modSettings['hide_preparedOption']['hiddentext'] = str_replace('$txtvariable', $txt['hide_hiddentext'], $modSettings['hide_preparedOption']['hiddentext']);
if (!empty($modSettings['hide_enableHTML']))
$modSettings['hide_preparedOption']['hiddentext'] = un_htmlspecialchars($modSettings['hide_preparedOption']['hiddentext']);

// Prepare the unhidden infomation?
if (!empty($modSettings['hide_enableUnhiddenText']))
{
$modSettings['hide_preparedOption']['unhiddentext'] = isset($modSettings['hide_unhiddentext']) ? $modSettings['hide_unhiddentext'] : '';
$modSettings['hide_preparedOption']['unhiddentext'] = str_replace('$language', $user_info['language'], $modSettings['hide_preparedOption']['unhiddentext']);
if (!empty($modSettings['hide_MUIswitch']) && isset($txt['hide_unhiddentext']))
$modSettings['hide_preparedOption']['unhiddentext'] = str_replace('$txtvariable', $txt['hide_unhiddentext'], $modSettings['hide_preparedOption']['unhiddentext']);
if (!empty($modSettings['hide_enableHTML']))
$modSettings['hide_preparedOption']['unhiddentext'] = un_htmlspecialchars($modSettings['hide_preparedOption']['unhiddentext']);
}
}

// So prepare the unhidden Option for the Parser ;)
if (!empty($modSettings['hide_useSpanTag']))
{
$modSettings['hide_preparedOption']['before_info'] = '<span class="hiddencontent">';
$modSettings['hide_preparedOption']['after_info'] = '</span>';
}
else
{
$modSettings['hide_preparedOption']['before_info'] = '<div class="hiddencontent">';
$modSettings['hide_preparedOption']['after_info'] = '</div>';
}

// Okay Let's see where i must put the unhidden Informations :)
if (!empty($modSettings['hide_enableUnhiddenText']) && empty($modSettings['hide_onlyonetimeinfo']))
{
if (empty($modSettings['hide_posUnhiddenText']) || $modSettings['hide_posUnhiddenText'] == 4)
$modSettings['hide_preparedOption']['after_info'] .= $modSettings['hide_preparedOption']['unhiddentext'];
elseif ($modSettings['hide_posUnhiddenText'] == 3)
$modSettings['hide_preparedOption']['after_info'] = $modSettings['hide_preparedOption']['unhiddentext'].$modSettings['hide_preparedOption']['after_info'];
elseif ($modSettings['hide_posUnhiddenText'] == 2)
$modSettings['hide_preparedOption']['before_info'] .= $modSettings['hide_preparedOption']['unhiddentext'];
elseif ($modSettings['hide_posUnhiddenText'] == 1)
$modSettings['hide_preparedOption']['before_info'] = $modSettings['hide_preparedOption']['unhiddentext'].$modSettings['hide_preparedOption']['before_info'];
else
$modSettings['hide_preparedOption']['after_info'] .= $modSettings['hide_preparedOption']['unhiddentext'];
}

$modSettings['hide_preparedOption']['parse_content'] = !empty($modSettings['hide_enableUnhiddenText']) && empty($modSettings['hide_onlyonetimeinfo']);

// Okay this is the check up if he is allowed to unhide it everytime! (Risky if wrong setup or diffrent mods can handle hide tag)
$modSettings['hide_preparedOption']['auto_unhide_parser'] = false;
if (!empty($modSettings['hide_unhideparser']) && !empty($modSettings['hide_autounhidegroups']))
{
$modSettings['hide_autounhidegroups'] = !is_array($modSettings['hide_autounhidegroups']) ? explode(',', $modSettings['hide_autounhidegroups']) : $modSettings['hide_autounhidegroups'];
foreach ($user_info['groups'] as $group_id)
if (in_array($group_id, $modSettings['hide_autounhidegroups']))
{
$modSettings['hide_preparedOption']['auto_unhide_parser'] = true;
break; //One is enouph ;D
}
}
}

// Hide Mod.. i remove the code before i do anything...
if ($message !== false && !empty($message))
{
if ($modSettings['hide_preparedOption']['auto_unhide_parser'])
$context['user_post_avaible'] = 1;
// Add the Hidden Text at the end of the post :)
if ((empty($context['user_post_avaible']) || !isset($context['user_post_avaible'])) && !empty($modSettings['hide_onlyonetimeinfo']) && hideTagExists($message, $cache_id))
$message .= '[br]'.$modSettings['hide_preparedOption']['hiddentext'];
// Here i remove this content :) or show onetime unhide info :)
if (!isset($context['user_post_avaible']) || empty($context['user_post_avaible']))
{
// Remove it ;D
$message = preg_replace("/\[hide\](.+?)\[\/hide\]/i", (empty($modSettings['hide_onlyonetimeinfo']) ? $modSettings['hide_preparedOption']['hiddentext'] : "&nbsp"), $message);
$message = preg_replace(array('~\n?\[hide.*?\].+?\[/hide\]\n?~is', '~^\n~', '~\[/hide\]~'), (empty($modSettings['hide_onlyonetimeinfo']) ? $modSettings['hide_preparedOption']['hiddentext'] : "&nbsp"), $message);
}
// Okay i need to add the unhidden information at the end of the post :)
elseif (!empty($context['user_post_avaible']) && !empty($modSettings['hide_onlyonetimeinfo']) && !empty($modSettings['hide_enableUnhiddenText']) && hideTagExists($message, $cache_id))
$message .= '[br]'.$modSettings['hide_preparedOption']['unhiddentext'];
}

Bueno lo que llego anotar es que esas modificaciones no son para un index o managepost o sub de un RC5 .. debe ser para un RC3 o RC4 y por eso no encuentro las mismas lineas en mis archivos .... alguien tiene las modificaciones exactas y lineas a encontrar y reemplazar para hacer andar este mod de hide special en rc5 (hide taf special 2.3.6) ?
O si quieren les dejo mis archivos de index , sub , y managepost y alguien q sepa lo hace pero me gustaria hacerlo yo jeje ..

3
Soporte General SMF / Como modificar componente para mi plantilla
« on: November 24, 2010 - 08:22 20:22 »
estube mirando el archivo parse bloque estatico libre V2 donde explican como modificar el index.template.php  para poder usar el bloque

pero cuando tengo q buscar las siguientes lineas no las encuentro en mi tema y queria saber donde tengo q ponerlo

Quote
// Bloque estatico libre v2
echo'<!-- Este foro utiliza: Bloque estatico libre v2 by smfsimple.com -->';


y tambien esta otra no esta en mi plantilla


Quote
// Mod authors, add any settings UNDER this line. Include a comma at the end of the line and don't remove this statement!!




aca les adjunto mi  index.template, php para q lo pudan ver y si me puden decir donde tengo q poner las cosas

el tema q uso se llama Urban

http://www.mediafire.com/?aic1v1ibt6bj8v2

Pages: [1]
top

Smfsimple.com es un sitio destinado a brindar un servicio de soporte y herramientas para foros realizados con el sistema de foros gratuito simplemachines.org. Contamos con un selecto equipo de desarrolladores y conocedores del sistema, sus foros estaran en buenas manos.
This site is not affiliated with or endorsed by Simple Machines