News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

Erro no index... não consigo entrar no forum

Started by mariluz, October 25, 2009, 03:44:45 PM

Previous topic - Next topic

mariluz

 :o

Olá amigos
Bem já há bué que não me aparecia um erro...  :P
Estive a tentar instalar um mod. SimplePortal
Quando tento abrir o forum aparece esta mensagem...

Parse error: syntax error, unexpected T_ELSEIF in /---------------/index.php on line 274

Fui ver o que acontecia na linha   274 e está lá isto... que deixo no anexo também

257      // Go catch it boy! Catch it!
258      $sp_action = sportal_catch_action();
259      if ($sp_action)
260         return $sp_action;
261      // Action and board are both empty... BoardIndex!
262      if (empty($board) && empty($topic))
263      {
264         require_once($sourcedir . '/BoardIndex.php');
265         return 'BoardIndex';
266      }         
267         # Hack's Park //
268         require_once($sourcedir . '/HP_shoutBox_Subs.php');
269         HPSub_shoutBox_load('boardindex');
270         # // Hack's Park
271         return 'BoardIndex';
272      }
273      // Topic is empty, and action is empty.... MessageIndex!
274      elseif (empty($topic))
275      {
276         require_once($sourcedir . '/MessageIndex.php');
277         
278         # Hack's Park //
279         require_once($sourcedir . '/HP_shoutBox_Subs.php');
280         HPSub_shoutBox_load('messageindex');
281         # // Hack's Park
282         return 'MessageIndex';
283      }
284      // Board is not empty... topic is not empty... action is empty.. Display!
285      else
286      {
287         require_once($sourcedir . '/Display.php');


Fiquei como burro a olhar para um palacio   :P :P
Algúem tem ideia do que eu possa fazer?
Obrigada desde já


margarett

O código (aparentemente) está mal (não analisei o ficheiro todo, mas pela identação parece mal...)

Quoteif (empty($board) && empty($topic))
263      {
264         require_once($sourcedir . '/BoardIndex.php');
265         return 'BoardIndex';
266      }         
267         # Hack's Park //
268         require_once($sourcedir . '/HP_shoutBox_Subs.php');
269         HPSub_shoutBox_load('boardindex');
270         # // Hack's Park
271         return 'BoardIndex';
272      }   //UMA DESTAS CHAVETAS PARECE ESTAR A MAIS
273      // Topic is empty, and action is empty.... MessageIndex!
274      elseif (empty($topic))
275      {
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

mariluz

;)

Olá Margarett
Também pensei nisso... mas se tirava fazia pior.
Bem experimentei...   :P
Olha acabei por repor o backup...
Perdi uma horitas... mas pronto!!!
Começo outra vez...   :P
Obrigada Amigo
Ola tou a instalar os mod's na ultima versão 1.1.10... mas parece que já tenho uns problemitas he he he
Se assim não fosse até nem tinha piada  :D

Advertisement: