• 0
  • 13 RepliesReplies
  • 4150 ReadTimes Read
  • 0 PointsPoints

Topic: Problema al instalr Mod Hide

no avatar
Usuario: cadagoto
Rango: Nuevo Usuario
Mensajes: 10
Points: 20
Mi web: HTTP://cadagotoHD.com
Perfil: View Profile
Problema al instalr Mod Hide
July 10, 2012 - 11:32 11:32
Bueno eso ..trate de instalar un mod Hide   y me da este error
Fatal error: Cannot redeclare ssi_thankyouposttopresived() (previously declared in /home/cadagoto/public_html/SSI.php:1847) in /home/cadagoto/public_html/SSI.php on line 2201

Demas esta decir que la web esta caida ..como pued osolucionarlo?
Muchas gracias por su ayuda ...saludos
Usuario: Cesar
Rango: Friend de SMFSimple
Mensajes: 1227
Points: 254
Mi web: http://www.genomapc.com
Perfil: View Profile
Pais:
ar
Re:Problema al instalr Mod Hide
Reply #1 July 10, 2012 - 11:50 11:50
hola [starter] por favor arregla la url de tu foro en tu perfil primero, y tambien deja el nombre completo del mod, version de smf y theme que usas.
Saludos
Cesar
no avatar
Usuario: cadagoto
Rango: Nuevo Usuario
Mensajes: 10
Points: 20
Mi web: HTTP://cadagotoHD.com
Perfil: View Profile
Re:Problema al instalr Mod Hide
Reply #2 July 10, 2012 - 12:01 12:01
El thema es totallypro   foro smf 2.02  Mod Hide que quise instalar es thank 2.0.zip

me dice este error
Fatal error: Cannot redeclare ssi_thankyouposttopresived() (previously declared in /home/cadagoto/public_html/SSI.php:1847) in /home/cadagoto/public_html/SSI.php on line 2201

Gracias por la ayuda
Usuario: Cesar
Rango: Friend de SMFSimple
Mensajes: 1227
Points: 254
Mi web: http://www.genomapc.com
Perfil: View Profile
Pais:
ar
Re:Problema al instalr Mod Hide
Reply #3 July 10, 2012 - 12:05 12:05
mod hide? no sera el thank o matic???
no avatar
Usuario: cadagoto
Rango: Nuevo Usuario
Mensajes: 10
Points: 20
Mi web: HTTP://cadagotoHD.com
Perfil: View Profile
Re:Problema al instalr Mod Hide
Reply #4 July 10, 2012 - 12:17 12:17
thank 2.0.zip este instale y me dio ese problema
disculpa , pero n ose mucho de esto  ... ....   
pero ese fue el que instale
Usuario: Cesar
Rango: Friend de SMFSimple
Mensajes: 1227
Points: 254
Mi web: http://www.genomapc.com
Perfil: View Profile
Pais:
ar
Re:Problema al instalr Mod Hide
Reply #5 July 10, 2012 - 12:39 12:39
fijate si en tu ssi.php tenes este codigo repetido:

Code: [Select]
// Shows the top Thank You Resive.
function ssi_thankYouPostTopResived($topMembers = 5, $output_method = 'echo')
{
global $txt, $scripturl, $modSettings, $smcFunc;

// Fix mistakes ;P
$topMembers = (int) $topMembers;
$topMembers = empty($topMembers) ? 5 : $topMembers;

// Find the latest poster.
$request = $smcFunc['db_query']('', '
SELECT id_member, real_name, thank_you_post_became, thank_you_post_made
FROM {db_prefix}members
ORDER BY thank_you_post_became DESC
LIMIT {int:limit}',
array(
'limit' => $topMembers
)
);
$return = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
{
$return[] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'thank_you_post_became' => $row['thank_you_post_became'],
'thank_you_post_made' => $row['thank_you_post_made']
);
$colorids[$row['id_member']] = $row['id_member'];
}
$smcFunc['db_free_result']($request);

// Add colors only on installed SSI Member Color Link
if (function_exists('ssi_loadColors') && !empty($colorids))
{
global $color_profile;
ssi_loadColors($colorids);
foreach ($return as $k => $p)
{
$profile = $color_profile[$p['id']];
if (!empty($profile))
$return[$k]['link'] = $profile['link'];
}
}
if ($output_method != 'echo')
return $return;

if (empty($return))
return;

echo '
<table class="ssi_table">
<tr>
<th align="left"></th>
<th align="left">', $txt['thank_you_post_became_display'], '</th>
<th align="left">', $txt['thank_you_post_made_display'], '</th>
</tr>';
foreach ($return as $temp)
echo '
<tr>
<td align="left">
', $temp['link'], '
</td>
<td align="right">', $temp['thank_you_post_became'], '</td>
<td align="right">', $temp['thank_you_post_made'], '</td>
</tr>';
echo '
</table>';
}

// Shows the top Thank You Given.
function ssi_thankYouPostTopGiven($topMembers = 5, $output_method = 'echo')
{
global $txt, $scripturl, $modSettings, $smcFunc;

// Fix mistakes ;P
$topMembers = (int) $topMembers;
$topMembers = empty($topMembers) ? 5 : $topMembers;

// Find the latest poster.
$request = $smcFunc['db_query']('', '
SELECT id_member, real_name, thank_you_post_became, thank_you_post_made
FROM {db_prefix}members
ORDER BY thank_you_post_made DESC
LIMIT {int:limit}',
array(
'limit' => $topMembers
)
);
$return = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
{
$return[] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'thank_you_post_became' => $row['thank_you_post_became'],
'thank_you_post_made' => $row['thank_you_post_made']
);
$colorids[$row['id_member']] = $row['id_member'];
}
$smcFunc['db_free_result']($request);

// Add colors only on installed SSI Member Color Link
if (function_exists('ssi_loadColors') && !empty($colorids))
{
global $color_profile;
ssi_loadColors($colorids);
foreach ($return as $k => $p)
{
$profile = $color_profile[$p['id']];
if (!empty($profile))
$return[$k]['link'] = $profile['link'];
}
}

if ($output_method != 'echo')
return $return;

if (empty($return))
return;

echo '
<table class="ssi_table">
<tr>
<th align="left"></th>
<th align="left">', $txt['thank_you_post_made_display'], '</th>
<th align="left">', $txt['thank_you_post_became_display'], '</th>
</tr>';
foreach ($return as $temp)
echo '
<tr>
<td align="left">
', $temp['link'], '
</td>
<td align="right">', $temp['thank_you_post_made'], '</td>
<td align="right">', $temp['thank_you_post_became'], '</td>
</tr>';
echo '
</table>';
}
no avatar
Usuario: cadagoto
Rango: Nuevo Usuario
Mensajes: 10
Points: 20
Mi web: HTTP://cadagotoHD.com
Perfil: View Profile
Re:Problema al instalr Mod Hide
Reply #6 July 10, 2012 - 12:50 12:50
Si esta repetido  ........ esta al final  del codigo ssi.php

que debo hacer ...gracias
Usuario: Losox
Rango: Excelente User
Mensajes: 874
Points: 109
Perfil: View Profile
Pais:
mx
Re:Problema al instalr Mod Hide
Reply #7 July 10, 2012 - 02:34 14:34
Pues si esta repetido tienes que borrarlo.
Usuario: Cesar
Rango: Friend de SMFSimple
Mensajes: 1227
Points: 254
Mi web: http://www.genomapc.com
Perfil: View Profile
Pais:
ar
Re:Problema al instalr Mod Hide
Reply #8 July 10, 2012 - 02:45 14:45
Pues si esta repetido tienes que borrarlo.
debes hacer lo que dice losox :D!
no avatar
Usuario: cadagoto
Rango: Nuevo Usuario
Mensajes: 10
Points: 20
Mi web: HTTP://cadagotoHD.com
Perfil: View Profile
Re:Problema al instalr Mod Hide
Reply #9 July 10, 2012 - 03:10 15:10
Cual borro el  que estab instaldo o el segundo? 
por que borro el segundo  y me sigue dando error

Bueno borro el primero y me da error
borro el segundo igual me da error

borro los dos  igual me da error
la verdad ya n ose que hacer ...saludos

Al borrar el codigo reptido  me da este error
Fatal error: Cannot redeclare loadthankyoutemplatefunctions() (previously declared in /home/cadagoto/public_html/Sources/Load.php:2172) in /home/cadagoto/public_html/Sources/Subs-ThankYou.php on line 208
Usuario: Cesar
Rango: Friend de SMFSimple
Mensajes: 1227
Points: 254
Mi web: http://www.genomapc.com
Perfil: View Profile
Pais:
ar
Re:Problema al instalr Mod Hide
Reply #10 July 10, 2012 - 07:54 19:54
parece que lo instalaste dos veces tendras que ver el parse del mod y retirar los codigos duplicados
no avatar
Usuario: cadagoto
Rango: Nuevo Usuario
Mensajes: 10
Points: 20
Mi web: HTTP://cadagotoHD.com
Perfil: View Profile
Re:Problema al instalr Mod Hide
Reply #11 July 14, 2012 - 06:18 06:18
Sabes para mi es muy complicado esto de los codigos php
alguien me puede ayudar a resolver esto por favor  , en verdad me tiene preocupado esto
ya que la web esta en linea , pero no puedo ver el perfil de ningun usuario  , incluyendome
me sale este error al querer ver el perfil del usuario
Fatal error: Cannot redeclare template_profile_thank_you_post_modify() (previously declared in /home/cadagoto/public_html/Sources/Load.php(2223) : eval()'d code:2794) in /home/cadagoto/public_html/Sources/Load.php(2223) : eval()'d code on line 3044
si alguien me puede ayudar  por favor  .....si alguien quiere hacerlo de manera personal  puedo  pagar  si llegamos a acuerdo
un saludo
Usuario: Lean
Rango: Fundador
Mensajes: 6782
Points: 236
Perfil: View Profile
Pais:
ar
Re:Problema al instalr Mod Hide
Reply #12 July 14, 2012 - 11:57 23:57
fijate si en tu ssi.php tenes este codigo repetido:

Code: [Select]
// Shows the top Thank You Resive.
function ssi_thankYouPostTopResived($topMembers = 5, $output_method = 'echo')
{
global $txt, $scripturl, $modSettings, $smcFunc;

// Fix mistakes ;P
$topMembers = (int) $topMembers;
$topMembers = empty($topMembers) ? 5 : $topMembers;

// Find the latest poster.
$request = $smcFunc['db_query']('', '
SELECT id_member, real_name, thank_you_post_became, thank_you_post_made
FROM {db_prefix}members
ORDER BY thank_you_post_became DESC
LIMIT {int:limit}',
array(
'limit' => $topMembers
)
);
$return = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
{
$return[] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'thank_you_post_became' => $row['thank_you_post_became'],
'thank_you_post_made' => $row['thank_you_post_made']
);
$colorids[$row['id_member']] = $row['id_member'];
}
$smcFunc['db_free_result']($request);

// Add colors only on installed SSI Member Color Link
if (function_exists('ssi_loadColors') && !empty($colorids))
{
global $color_profile;
ssi_loadColors($colorids);
foreach ($return as $k => $p)
{
$profile = $color_profile[$p['id']];
if (!empty($profile))
$return[$k]['link'] = $profile['link'];
}
}
if ($output_method != 'echo')
return $return;

if (empty($return))
return;

echo '
<table class="ssi_table">
<tr>
<th align="left"></th>
<th align="left">', $txt['thank_you_post_became_display'], '</th>
<th align="left">', $txt['thank_you_post_made_display'], '</th>
</tr>';
foreach ($return as $temp)
echo '
<tr>
<td align="left">
', $temp['link'], '
</td>
<td align="right">', $temp['thank_you_post_became'], '</td>
<td align="right">', $temp['thank_you_post_made'], '</td>
</tr>';
echo '
</table>';
}

// Shows the top Thank You Given.
function ssi_thankYouPostTopGiven($topMembers = 5, $output_method = 'echo')
{
global $txt, $scripturl, $modSettings, $smcFunc;

// Fix mistakes ;P
$topMembers = (int) $topMembers;
$topMembers = empty($topMembers) ? 5 : $topMembers;

// Find the latest poster.
$request = $smcFunc['db_query']('', '
SELECT id_member, real_name, thank_you_post_became, thank_you_post_made
FROM {db_prefix}members
ORDER BY thank_you_post_made DESC
LIMIT {int:limit}',
array(
'limit' => $topMembers
)
);
$return = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
{
$return[] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'thank_you_post_became' => $row['thank_you_post_became'],
'thank_you_post_made' => $row['thank_you_post_made']
);
$colorids[$row['id_member']] = $row['id_member'];
}
$smcFunc['db_free_result']($request);

// Add colors only on installed SSI Member Color Link
if (function_exists('ssi_loadColors') && !empty($colorids))
{
global $color_profile;
ssi_loadColors($colorids);
foreach ($return as $k => $p)
{
$profile = $color_profile[$p['id']];
if (!empty($profile))
$return[$k]['link'] = $profile['link'];
}
}

if ($output_method != 'echo')
return $return;

if (empty($return))
return;

echo '
<table class="ssi_table">
<tr>
<th align="left"></th>
<th align="left">', $txt['thank_you_post_made_display'], '</th>
<th align="left">', $txt['thank_you_post_became_display'], '</th>
</tr>';
foreach ($return as $temp)
echo '
<tr>
<td align="left">
', $temp['link'], '
</td>
<td align="right">', $temp['thank_you_post_made'], '</td>
<td align="right">', $temp['thank_you_post_became'], '</td>
</tr>';
echo '
</table>';
}

No cesar, no esta repetido, una funcion es para recibir y la otra para dar. Fijate el nombre de las 2 funciones.

Lo que tenes que hacer es buscar la funcion template_profile_thank_you_post_modify que esta duplicada, entonces te genera el error. Deberas mirar el parse del mod en cuestion y buscar esa funcion para luego verificar que esta duplicada y deberas borrar una de las 2.
Si no sabes que es el parse utiliza el buscador porque hay un tutorial que lo explica.
Saludos
Usuario: Cesar
Rango: Friend de SMFSimple
Mensajes: 1227
Points: 254
Mi web: http://www.genomapc.com
Perfil: View Profile
Pais:
ar
Re:Problema al instalr Mod Hide
Reply #13 July 15, 2012 - 12:05 00:05
ahh ya perdon entonces :P
manito arriba :P
 

TAGS



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