¿Simple ImageShack es compatible con 1.1.8? [SOLUCIONADO]

Started by Polilla, March 06, 2009, 03:58:37 PM

Previous topic - Next topic

Polilla

¿No?

¿Si? pues a ver como, porque en la pagina oficial de smf pone:

Compatible With:

2.0.3,1.0.3, 1.0.4, 1.0.5, 1.0.7, 1.0.8, 1.0.9, 1.1 Beta 3 Public, 1.1 RC1, 1.1 RC2, 1.1 RC3, 1.1, 1.1.1, 1.1.2, 1.1.3, 1.1.4

Y logicamente cuando intento instalarlo me pone "que no se definieron pasos, para la instalacion.

Saludos.
Teniendo eleccion, porque seguir haciendo lo que no te apetece...

vicram10

si no realiza muchas modificaciones importantes, puedes agregarle a su intall.xml o en el package-info.xml (no me acuerdo en cual)...

en la parte de compatibilidades la version de tu foro

Ejemplo:

<install for="1.1RC3, 1.1, 1.1.0-1.1.99, 2.0 - 2.99.99, 1.1.7">
<uninstall for="1.1RC3, 1.1, 1.1.0-1.1.99, 2.0 - 2.99.99, 1.1.7">

Saludos

Polilla

Gracias vicram10, por la respuesta, y estas son las modificaciones que realiza, en el caso mas aproximado de la 1.1.4:

./Sources/ModSettings.php

Find:

// Who's online.
array('check', 'who_enabled'),


Add After:

'',
// SimpleImageshack mod - SimpleTweaks.co.nr
array('check', 'SimpleImageShack_enable'),
array('check', 'SimpleImageShack_permis'),
array('int', 'SimpleImageShack_width'),
array('int', 'SimpleImageShack_height'),
array('text', 'SimpleImageShack_txtclr'),
array('int', 'SimpleImageShack_uplfld'),


./Themes/default/languages/ModSettings.english.php

Find:

$txt['karmaLabel'] = 'Karma label';
$txt['karmaApplaudLabel'] = 'Karma applaud label';
$txt['karmaSmiteLabel'] = 'Karma smite label';


Add After:

// SimpleImageshack mod - SimpleTweaks.co.nr
$txt['SimpleImageShack_enable'] = 'Enable the Simple ImageShack mod';
$txt['SimpleImageShack_permis'] = 'Use SMF permission system';
$txt['SimpleImageShack_width'] = 'Simple ImageShack iframe Width';
$txt['SimpleImageShack_height'] = 'Simple ImageShack iframe Height';
$txt['SimpleImageShack_txtclr'] = 'Simple ImageShack text color (hexadecimal)';
$txt['SimpleImageShack_uplfld'] = 'Simple ImageShack upload field size';
// SimpleImageshack mod - SimpleTweaks.co.nr


./Themes/default/languages/Help.english.php

Find:

$helptxt['see_member_ip'] = 'Your IP address is shown only to you and moderators.  Remember that this information is not identifying, and that most IPs change periodically.<br /><br />You cannot see other members\' IP addresses, and they cannot see yours.';

Add After:

// SimpleImageshack mod - SimpleTweaks.co.nr
$helptxt['SimpleImageShack_enable'] = 'This option allows you to turn on or off the Simple ImageShack mod';
$helptxt['SimpleImageShack_permis'] = 'This option allows you to turn on or off the use of the SMF permission system with the Simple ImageShack mod';
$helptxt['SimpleImageShack_width'] = 'This option allows you to set the width of the iframe of the Simple ImageShack mod';
$helptxt['SimpleImageShack_height'] = 'This option allows you to set the height of the iframe of the Simple ImageShack mod';
$helptxt['SimpleImageShack_txtclr'] = 'This option allows you to set the text color (hexadecimal) of the Simple ImageShack mod';
$helptxt['SimpleImageShack_uplfld'] = 'This option allows you to set the width of the Simple ImageShack upload field';
// SimpleImageshack mod - SimpleTweaks.co.nr


./Sources/ManagePermissions.php

Find:

'attachment' => array(
'view_attachments' => false,
'post_attachment' => false,
)


Replace With:

'attachment' => array(
'view_attachments' => false,
'post_attachment' => false,
),
'SimpleImageShack' => array(
'SimpleImageShack_view' => false,
)


./Themes/default/languages/ManagePermissions.english.php

Find:

$txt['permissionicon'] = '';

Add After:

// SimpleImageshack mod - SimpleTweaks.co.nr
$txt['permissiongroup_SimpleImageShack'] = 'Simple ImageShack mod';
$txt['permissionname_SimpleImageShack_view'] = 'View Simple ImageShack mod';
$txt['permissionhelp_SimpleImageShack_view'] = 'Enabling this permission adds an ImageShack.us upload field to the post template. This feature can be enabled and configured in \'Edit Features and Options---Layout and Options\'.';
// SimpleImageshack mod - SimpleTweaks.co.nr


./Themes/default/Post.template.php

Find:

   // Finally, the submit buttons.
echo '


Replace With:

nada esta vacio

./Themes/classic/Post.template.php

Find:

echo '
<span class="smalltext"><br />' . $txt['smf16'] . '</span><br />


Add Before:

Igualmente esta vacio


Alguna sugerencia al respecto.  ???
Teniendo eleccion, porque seguir haciendo lo que no te apetece...

pendrakon


Rik©

Hola

Mi español es malo, pero con una cierta ayuda del 'babelfish' intentaré ayudarle.  :)

Intente instalar el MOD-archivo que Sabre™ hizo.
Se ata a este poste --> http://www.simplemachines.org/community/index.php?topic=37683.msg1823585#msg1823585

adiós

Polilla

Muchas gracias por responder, y tambien agradecerle a Sabre la modificacion.

Voy a probarlo y ya comentare el resultado.

Gracias
---

Thank you very much for responding, and also to thank Sabre THE AMENDMENT.

I will try and comment on the outcome.

thanks
Teniendo eleccion, porque seguir haciendo lo que no te apetece...

vicram10

prueba agregarle lo que te dije..

y instalas con el package de la administracion..

y si no arroja ningun error.. entonces podras instalarlo facilmente...

pero si arroja algun error.. es cuestion de ver el error donde se origina.. y cambiarle al instalador de paquetes del mod esa parte para que concuerde con tu version del foro..

lo hago asi cada ves que quiero instlaar una version vieja a la actual..

salu2.. o lo instalas manualmente... da igual

Polilla

Bueno, pues con el enlace facilitado por Rik© donde me baje la modificacion hecha por Sabre y siguiendo las instrucciones de vicram10 y añadiendole lo que se indica aqui:

http://www.simplemachines.org/community/index.php?topic=230781.0

por dj ju@n (Juer que follon de gente chiquillo  :D )

Esto esta rulando y sin ningun tipo de error.

Solo me queda una duda,  ¿el ManagePermissions.spanish_es hay que editarlo con lo que pone en el ingles u no?

Gracias a todos.
Teniendo eleccion, porque seguir haciendo lo que no te apetece...

vicram10

generalmente cuando haces la modificacion por ti mismo... lo que haces es comparar lo que busca y reemplaza en el ingles por ejemplo, y adaptarlo al que tienes.. en este caso el spanish.. solo es eso..

salu2

Polilla

Ok, gracias vicram10, pues entonces el ManagePermissions.spanish debe quedarse tal y como esta, no?  vamos que no le añado lo que se ha modificado en el ManagePermissions.english.php de la carpeta ...Themes/default/languages/  ???

Teniendo eleccion, porque seguir haciendo lo que no te apetece...

vicram10

te dice que añadas

// SimpleImageshack mod - SimpleTweaks.co.nr
$txt['permissiongroup_SimpleImageShack'] = 'Simple ImageShack mod';
$txt['permissionname_SimpleImageShack_view'] = 'View Simple ImageShack mod';
$txt['permissionhelp_SimpleImageShack_view'] = 'Enabling this permission adds an ImageShack.us upload field to the post template. This feature can be enabled and configured in \'Edit Features and Options---Layout and Options\'.';
   // SimpleImageshack mod - SimpleTweaks.co.nr


entonces lo añades en el mismo lugar que te estipulas en el de ingles, pero con la diferencia que lo puedes traducir al español...

salu2

Polilla

Bueno pos na, lo dicho muchas gracias y mod, instalado y funcionando al 100%.  ;)
Teniendo eleccion, porque seguir haciendo lo que no te apetece...

DaRKeN_58

Pues a mi no me deja instalarlo bien...

Tanto la modificación de Sabre como el original, al original le pongo en el install for 1.1.8 y al uninstall igual pero me da fallo en el archivo Post.template.php y con la de Sabre, me dice primero lo de que no se realizaron las acciones y veo que en el package no esta cambiado en el install for lo de 1.1.7 y lo pongo en 1.1.8 en ambos casos o le añadi al otro 1.1.7 no recuerdo el caso es que me da error en el mismo archivo, el Post.template.php

Alguien sabe que puedo hacer?
... :-X Dime de que presumes y te diré de que careces ;)...

DaRKeN_58

EDITO:

He pasado del error y lo he instalado y las modificaciones las he echo yo, las traducciones y todo eso, el caso es que en el archivo Post.template.php no va nada? Entonces para que intenta editarlo :S

Una vez instalado lo probe a ver si salia y no sale. Y con el template default igual.

No se que debo hacer una ayudita please :)
... :-X Dime de que presumes y te diré de que careces ;)...

Advertisement: