Uutiset:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu
Advertisement:

HIDE TAG SPECIAL PARA SMF 2.0 RC4

Aloittaja darkfenixblack, tammikuu 12, 2011, 12:07:19 IP

« edellinen - seuraava »

darkfenixblack

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...

lucas-ruroken

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
Adk Portal 3.1 is coming....

Design your universe!

DoctorMalboro

1) No hacen falta las mayúsculas.
2) Podrías usar el parse de SMF para adaptarlo a 2.0.
3) Definí importante.

darkfenixblack

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..

DoctorMalboro

Qué errores tenes? Podrías ser más específico así te podemos ayudar...

darkfenixblack

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...

DoctorMalboro

Tal vez porque ellos usaron el parse de SMF, como mencioné antes...

darkfenixblack

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

      

lucas-ruroken

Adk Portal 3.1 is coming....

Design your universe!

lucas-ruroken

nose por qe se subieron muchos archivos, pero wen, es lo mismo
Adk Portal 3.1 is coming....

Design your universe!


lucas-ruroken

Adk Portal 3.1 is coming....

Design your universe!

Aktoraman

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?



lucas-ruroken

seearch static disabled

and add before
Adk Portal 3.1 is coming....

Design your universe!

Aktoraman

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 ........

adthz

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

Aktoraman

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

darkfenixblack


darkfenixblack


lucas-ruroken

Adk Portal 3.1 is coming....

Design your universe!

Advertisement: