collapse

* Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

* User Info

 
 
Welcome, Guest. Please login or register.

* Who's Online

  • Dot Guests: 974
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]

If you're interested in helping other members with support requests, consider joining the Community Support Helpers group.

Author Topic: Duda con bloques.  (Read 4729 times)

0 Members and 1 Guest are viewing this topic.

Offline Neekiinh0

  • Semi Newbie
  • *
  • Posts: 22
  • Gender: Male
    • HackVirtuaL
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Duda con bloques.
« on: June 05, 2011, 03:28:34 PM »
Se puede poner 2 bloques en una misma columna..? Por ejemplo, quiero poner el bloque de top foros y top miembros uno al lado del otro pero en la columna TOP

Offline 130860

  • Super Handsome Language Coordinator
  • Board Moderators
  • *
  • Posts: 1769
  • Gender: Male
  • You and I are not the same class of pirate!
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Duda con bloques.
« Reply #1 on: June 05, 2011, 06:32:25 PM »
si, si es posible, mira este link:

http://simpleportal.net/index.php?topic=5332.0

Offline Neekiinh0

  • Semi Newbie
  • *
  • Posts: 22
  • Gender: Male
    • HackVirtuaL
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Duda con bloques.
« Reply #2 on: June 06, 2011, 04:59:16 PM »
Tengo un problema, copio este codigo en un bloque php:

 
Code: [Select]
$columns = 2;
$block_ids = array(14, 10);

$block_data = array();
foreach ($block_ids as $block)
{
   $block_data[$block] = current(getBlockInfo(false, $block, false, false));
   $block_data[$block]['style'] = sportal_parse_style('explode', $block_data[$block]['style'], true);
}

echo '
<table style="width: 100%;">
   <tr>';

$counter = 0;
foreach ($block_data as $data)
{
   if ($counter != 0 && $counter % $columns == 0)
   {
      echo '
   </tr>
   <tr>';
   }

   echo '
      <td style="width: ', ceil((100 / $columns)), '%; vertical-align: top;">
         ', template_block($data), '
      </td>';

   $counter++;
}

echo '
   </tr>
</table>';

14 y 10 son los ids de los bloques que quiero poner.
Pongo previsualiizar y se ve tal cual lo quiero pero cuando le doy a crear bloque me sale "Syntax error in block code. Please check the code."

Offline 130860

  • Super Handsome Language Coordinator
  • Board Moderators
  • *
  • Posts: 1769
  • Gender: Male
  • You and I are not the same class of pirate!
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Duda con bloques.
« Reply #3 on: June 06, 2011, 05:15:32 PM »
probé el codigo en local y en un sitio de producción y en ambos no tuve problemas.

revisa que los IDs de los bloques sean los correctos.

Offline Neekiinh0

  • Semi Newbie
  • *
  • Posts: 22
  • Gender: Male
    • HackVirtuaL
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Duda con bloques.
« Reply #4 on: June 06, 2011, 05:27:31 PM »
Si, son los correctos.. aparte de ese codigo hace falta poner algo mas? lo raro es que en la previsualizacion se ve perfecto, muestra los 2 bloques que quiero que muestre... a la hora de crearlo me da error de syntaxis.

Offline 130860

  • Super Handsome Language Coordinator
  • Board Moderators
  • *
  • Posts: 1769
  • Gender: Male
  • You and I are not the same class of pirate!
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Duda con bloques.
« Reply #5 on: June 06, 2011, 05:40:33 PM »
no, no hace falta anda mas, solo asegurarte de que ambos bloques no sten activados y que se encuentren en el mismo lado donde vas a mostrar tu bloque principal.

Offline Neekiinh0

  • Semi Newbie
  • *
  • Posts: 22
  • Gender: Male
    • HackVirtuaL
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Duda con bloques.
« Reply #6 on: June 06, 2011, 06:13:55 PM »
No hay caso ... me sigue saliendo ese error, puse los 2 bloques que quiero en "TOP" en modo desactivado, y puse para crear otro bloque en top y lo previsualiza bien y cuando le doy a agregar bloque me sale el error. Todo esto es en localhost, tendra algo que ver?

La instalacion no me dio ningun error.

Offline 130860

  • Super Handsome Language Coordinator
  • Board Moderators
  • *
  • Posts: 1769
  • Gender: Male
  • You and I are not the same class of pirate!
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Duda con bloques.
« Reply #7 on: June 06, 2011, 09:27:13 PM »
no, el problema está en los IDs, prueba con otros bloques.

Offline Neekiinh0

  • Semi Newbie
  • *
  • Posts: 22
  • Gender: Male
    • HackVirtuaL
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Duda con bloques.
« Reply #8 on: June 07, 2011, 05:56:25 AM »
No mirahalo, sigo con el problema, he creado otros bloques,voy a fijarme en un host y te aviso.

EDIT:

No, lo acabo de probar en el host donde lo quiero usar y me hace lo mismo..
« Last Edit: June 07, 2011, 06:04:19 AM by Neekiinh0 »

Offline 130860

  • Super Handsome Language Coordinator
  • Board Moderators
  • *
  • Posts: 1769
  • Gender: Male
  • You and I are not the same class of pirate!
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Duda con bloques.
« Reply #9 on: June 07, 2011, 09:21:42 AM »
lo he probado en varios servidores y no me ha dado ningún problema.   la verdad no entiendo cual sea el problema.

Offline Neekiinh0

  • Semi Newbie
  • *
  • Posts: 22
  • Gender: Male
    • HackVirtuaL
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Duda con bloques.
« Reply #10 on: June 07, 2011, 04:25:37 PM »
Si quieres te puedo dar un user administrador via MP para que lo veas... que dices? necesito eso nomas para largar la web.

Offline 130860

  • Super Handsome Language Coordinator
  • Board Moderators
  • *
  • Posts: 1769
  • Gender: Male
  • You and I are not the same class of pirate!
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Duda con bloques.
« Reply #11 on: June 08, 2011, 07:58:59 PM »
ok, en la administracion de simpleportal marca esta casilla:

Desactivar la validación PHP


y prueba de nuevo

Offline Neekiinh0

  • Semi Newbie
  • *
  • Posts: 22
  • Gender: Male
    • HackVirtuaL
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Duda con bloques.
« Reply #12 on: June 09, 2011, 07:30:27 PM »
Solved!!! gracias mirahalo!