Simple Machines Community Forum

SMF Support => Español (Spanish) => Language Specific Support => Modificaciones (Mods) => Aiheen aloitti: darkfenixblack - tammikuu 12, 2011, 12:07:19 IP

Otsikko: HIDE TAG SPECIAL PARA SMF 2.0 RC4
Kirjoitti: darkfenixblack - tammikuu 12, 2011, 12:07:19 IP
Alguien podria ayudarme o tener el mod para rc4 parece q el creador.. se va a demorar en poner este mod que es tan importante...
Otsikko: Re: HIDE TAG SPECIAL PARA SMF 2.0 RC4
Kirjoitti: lucas-ruroken - tammikuu 12, 2011, 12:13:39 IP
descarga el zip.....

descomprimi en tu pc el archivo package-info.xml

donde dice <install for="2.0 RC3


reemplaza el 2.0 RC3 por 2.0 RC4

guarda y comprimi e instala ;D
Otsikko: Re: HIDE TAG SPECIAL PARA SMF 2.0 RC4
Kirjoitti: DoctorMalboro - tammikuu 12, 2011, 12:15:52 IP
1) No hacen falta las mayúsculas.
2) Podrías usar el parse de SMF (http://goo.gl/1318m) para adaptarlo a 2.0.
3) Definí importante.
Otsikko: Re: HIDE TAG SPECIAL PARA SMF 2.0 RC4
Kirjoitti: darkfenixblack - tammikuu 12, 2011, 12:16:26 IP
Ya lo hice asi.. pero hay errores... en cambio buscando encontre  un tahnk o mathick ya modificado que le cayo muy bien a mi foro  ahora trato de buscar tambien el hide alguien quisiera pasarme ese mod ya solucionado los errores..
Otsikko: Re: HIDE TAG SPECIAL PARA SMF 2.0 RC4
Kirjoitti: DoctorMalboro - tammikuu 12, 2011, 12:18:17 IP
Qué errores tenes? Podrías ser más específico así te podemos ayudar...
Otsikko: Re: HIDE TAG SPECIAL PARA SMF 2.0 RC4
Kirjoitti: darkfenixblack - tammikuu 12, 2011, 12:52:59 IP
Osea quiero ya el mod  solucionado los errores  q te da en smf 2.0 rc4 ... se que hay usuarios q ya los usan .. y quisiera q me lo pusieran...
Otsikko: Re: HIDE TAG SPECIAL PARA SMF 2.0 RC4
Kirjoitti: DoctorMalboro - tammikuu 12, 2011, 04:43:54 IP
Tal vez porque ellos usaron el parse de SMF, como mencioné antes...
Otsikko: Re: HIDE TAG SPECIAL PARA SMF 2.0 RC4
Kirjoitti: darkfenixblack - tammikuu 14, 2011, 12:11:10 IP
Holas quiero poner el hide tag special en mi foro smf 2.0 RC4 pero aun no sale para esa version.. Asi que  vi que muchos instalaron la version  rc3 en rc4 asi que ise lo mismo pero en el parse me sale los siguientes errores... Quisiera que me Ayudaran ahi adjunto  mis archivos.. que son necesarios.. Espero su ayuda.

1. en Admin.php busca


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




y quiere remplazar por: pero me sale prueba fallida


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




2. en ManagePosts.php busca


'posts' => array('ModifyPostSettings', 'admin_forum'),


y quiere remplazar por: pero me sale prueba fallida


'posts' => array('ModifyPostSettings', 'admin_forum'),
'hidetagspecial' => array('ModifyHideTagSpecialSettings', 'admin_forum'),



3.en Post.php busca


if ($smcFunc['htmltrim'](strip_tags(parse_bbc($_POST['message'], false), '<img>')) === '')



y quiere remplazar por: pero me sale prueba fallida


   // Okay i will say there is something, so that i check for an real empty post :)
$context['user_post_avaible'] = 1;

if ($smcFunc['htmltrim'](strip_tags(parse_bbc($_POST['message'], false), '<img>')) === '')



4. en Subs.php busca


   static $disabled;

y quiere remplazar por: pero me sale prueba fallida

   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'] = '&nbsp;';
$modSettings['hide_preparedOption']['unhiddentext'] = '&nbsp;';

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'];
}


Espero me puedan ayudar... Tienen ahi los archivos adjuntos...y GRACIAS DE ANTEMANO

      
Otsikko: Re: HIDE TAG SPECIAL PARA SMF 2.0 RC4
Kirjoitti: lucas-ruroken - tammikuu 14, 2011, 09:18:00 IP
 :)
Otsikko: Re: HIDE TAG SPECIAL PARA SMF 2.0 RC4
Kirjoitti: lucas-ruroken - tammikuu 14, 2011, 09:18:55 IP
nose por qe se subieron muchos archivos, pero wen, es lo mismo
Otsikko: Re: HIDE TAG SPECIAL PARA SMF 2.0 RC4
Kirjoitti: lean - tammikuu 15, 2011, 10:23:36 AP
Lainaus käyttäjältä: lucas-ruroken - tammikuu 14, 2011, 09:18:55 IP
nose por qe se subieron muchos archivos, pero wen, es lo mismo
Por favor, no hagas doble post y lee esto: http://www.simplemachines.org/community/index.php?topic=404475.0

:P :P :P :P :P :P :P
Otsikko: Re: HIDE TAG SPECIAL PARA SMF 2.0 RC4
Kirjoitti: lucas-ruroken - tammikuu 15, 2011, 10:53:25 AP
jkakja que le pasa :P
Otsikko: Re: HIDE TAG SPECIAL PARA SMF 2.0 RC4
Kirjoitti: Aktoraman - tammikuu 15, 2011, 01:42:17 IP
Hello everyone!
Happy New Year also to all the guys here! :D
Sorry for posting here, but i couldn't find the English support for Hide Tag Special


I am having a problem installing the Hide Tag Special (HideTagSpecial236_(2.0RC3_Compatible).zip)
Iam having a SMF 2.0 RC3 forum and i wanted this MOD to run there.

Starting my installation, it gives me an Error in Package Installation.
The error is in ./Sources/Subs.php

I Parse it and checked that it can't find the:

static $disabled;

and put after it this code:


// 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'] = '&nbsp;';
$modSettings['hide_preparedOption']['unhiddentext'] = '&nbsp;';

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']);


Can someone advice me what should i change there?


Otsikko: Re: HIDE TAG SPECIAL PARA SMF 2.0 RC4
Kirjoitti: lucas-ruroken - tammikuu 15, 2011, 02:01:34 IP
seearch static disabled

and add before
Otsikko: Re: HIDE TAG SPECIAL PARA SMF 2.0 RC4
Kirjoitti: Aktoraman - tammikuu 15, 2011, 02:05:32 IP
Lainaus käyttäjältä: lucas-ruroken - tammikuu 15, 2011, 02:01:34 IP
seearch static disabled

and add before
ok i searched for static disabled  (just this)
But i couldn't find something in Subs.php ........
Otsikko: Re: HIDE TAG SPECIAL PARA SMF 2.0 RC4
Kirjoitti: adthz - tammikuu 15, 2011, 06:01:46 IP
Quisas algunos de estos dos link te sirvan

es donde le dan soporte al mod hide tag

http://www.simplemachines.org/community/index.php?topic=32954.msg2859559#msg2859559

http://www.simplemachines.org/community/index.php?topic=32954.msg2874664#msg2874664

todos los mod tienen un topic de  soporte  los dos link que te pase busca que hay gente que los adapta para rc4

bueno espero que te sirva
Otsikko: Re: HIDE TAG SPECIAL PARA SMF 2.0 RC4
Kirjoitti: Aktoraman - tammikuu 15, 2011, 07:57:58 IP
Lainaus käyttäjältä: adthz - tammikuu 15, 2011, 06:01:46 IP
Quisas algunos de estos dos link te sirvan

es donde le dan soporte al mod hide tag

http://www.simplemachines.org/community/index.php?topic=32954.msg2859559#msg2859559

http://www.simplemachines.org/community/index.php?topic=32954.msg2874664#msg2874664

todos los mod tienen un topic de  soporte  los dos link que te pase busca que hay gente que los adapta para rc4

bueno espero que te sirva
gracias
Otsikko: Re: HIDE TAG SPECIAL PARA SMF 2.0 RC4
Kirjoitti: darkfenixblack - tammikuu 16, 2011, 12:32:04 IP
Gracias por todo...
Otsikko: Re: HIDE TAG SPECIAL PARA SMF 2.0 RC4
Kirjoitti: darkfenixblack - tammikuu 16, 2011, 12:33:23 IP
Gracias por todo... 
Otsikko: Re: HIDE TAG SPECIAL PARA SMF 2.0 RC4
Kirjoitti: lucas-ruroken - tammikuu 16, 2011, 01:49:56 IP
de nada, saludos
Otsikko: Re: HIDE TAG SPECIAL PARA SMF 2.0 RC4
Kirjoitti: lucas-ruroken - tammikuu 16, 2011, 01:50:12 IP
de nada :)
Otsikko: Re: HIDE TAG SPECIAL PARA SMF 2.0 RC4
Kirjoitti: DoctorMalboro - tammikuu 16, 2011, 02:13:37 IP
No hagas 2 temas para lo mismo...