collapse

* User Info

 
 
Welcome, Guest. Please login or register.
Did you miss your activation email?

* Who's Online

  • Dot Guests: 71
  • Dot Hidden: 0
  • Dot Users: 1
  • Dot Users Online:

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • ♦ Ninja ZX-10RR ♦: Hmm, not so sure about it, Eliana: [link]
    Yesterday at 02:03:02 am
  • Eliana Tamerin: That may have faded away now, or gotten better. I hope so. I see a lot of happy phpBB users, so I have to imagine someone is having success.
    April 25, 2016, 12:48:06 am
  • Eliana Tamerin: @andy, the phpBB folks had (at one point, not sure how it is now) a specific set of rules you had to follow to get support. Anyone not found doing so would have their topic ignored.
    April 25, 2016, 12:47:40 am
  • andy: SP team is a breath of fresh air...
    April 24, 2016, 11:24:32 pm
  • andy: Yes they are difficult to deal with at SMF. I never experienced anybody like that at phpbb several years ago.
    April 24, 2016, 11:24:03 pm
  • Maizono: Their team is very antagonistic and I prefer this forum and this staff far more. So kudos to SP for doing it right.
    April 24, 2016, 09:18:21 pm
  • andy: When SMF went gold there was a lot of optimism about progress and talk of 3.0.  Five years on and that soulds like SF.
    April 24, 2016, 08:37:31 pm
  • andy: Just my frustration at the slow pace of SMF. I suppose we have an alternative now.
    April 24, 2016, 08:34:38 pm
  • Burke Knight: Andy, as long as the SMF team keeps like they are doing, there's always going to be bugs, mainly due to SMF issues, because the team can't get their stuff straight.
    April 24, 2016, 08:25:41 pm
  • andy: Found another bug in Simple Portal.... SMF 2
    April 21, 2016, 03:46:54 am
  • ♦ Ninja ZX-10RR ♦: I guess it's because it works perfectly then :P Glad you enjoy it!
    April 20, 2016, 08:10:13 am
  • DJF-1975: I haven't been here in a long time. THANK YOU AGAIN for SP!
    April 20, 2016, 04:41:43 am
  • andy: my shoutbox is now working properly and users are happy...  :nervous-happy: but I'm now a minimalist SMF user - thats the way to go to avoid problems.
    April 19, 2016, 10:18:09 am
  • ♦ Ninja ZX-10RR ♦: Seeing your topic, after changing the database collation, it does :)
    April 16, 2016, 10:36:36 pm
  • ZJbrandon: oh, wow, wish my shoutbox worked. :-[
    April 14, 2016, 07:26:40 pm
  • ZJbrandon: hello, test?
    April 14, 2016, 07:26:15 pm
  • ♦ Ninja ZX-10RR ♦: I probably didn't, ema. It was like 8a.m. and still had to sleep. Yet, can't get it anyway.
    April 07, 2016, 12:50:03 pm
  • Chen Zhen: gradient waveform
    April 07, 2016, 11:19:41 am
  • * emanuele feels Ninja didn't get the reference. :P
    April 07, 2016, 04:00:33 am
  • ♦ Ninja ZX-10RR ♦: Well, probably asking would be the way to know :P Or, generally, use my other alias and search, if there is one, it's me.
    April 06, 2016, 09:11:35 pm

* Recent Posts

Re: Staff List by emanuele
[May 03, 2016, 03:04:53 am]


Re: Staff List by ♦ Ninja ZX-10RR ♦
[May 02, 2016, 04:46:18 pm]


Re: Staff List by Racketydoo
[May 02, 2016, 03:12:35 pm]


Re: Staff List by ♦ Ninja ZX-10RR ♦
[May 02, 2016, 11:19:58 am]


Re: Staff List by Racketydoo
[May 01, 2016, 11:52:44 pm]

Thanks for having an interest with our portal. If you have any requests for features, have a look at the Feature Requests board.

Author Topic: SMF & Simple Portal - auto collapsable blocks?  (Read 2452 times)

0 Members and 1 Guest are viewing this topic.

Offline koshal

  • Semi Newbie
  • *
  • Posts: 6
  • Gender: Male
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
SMF & Simple Portal - auto collapsable blocks?
« on: January 19, 2010, 06:50:13 pm »
I'm using SMF 2.0RC2 with SimplePortal 2.3.1 and I've encountered a problem.
While adding a new (HTML for ex.) block to my main portal page, I can check a box to make it collapsable or not. Is there any way to make a new block collapsed by default, so that a user would have to expand it to see "whats hiding in there" ;)?

Thanks in adv. for any info.

Koshal

Offline koshal

  • Semi Newbie
  • *
  • Posts: 6
  • Gender: Male
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: SMF & Simple Portal - auto collapsable blocks?
« Reply #1 on: January 21, 2010, 08:31:23 pm »
no help  :thumbsdown:

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6743
  • SMF Version: 2.0.10
  • SP Version: 2.3.6
Re: SMF & Simple Portal - auto collapsable blocks?
« Reply #2 on: January 22, 2010, 09:11:58 am »
It's not that people are ignoring you on purpose. But since there's just me and yours is a more like custom coding request, than a support issue it took some time to get to your topic.

./Themes/default/Portal.template.php

Code: (Find) [Select]
if ($block['type'] == 'sp_boardNews')
If you just want a single block:

Code: (Replace) [Select]
if ($block['id'] == 1)
$block['collapsed'] = true;

if ($block['type'] == 'sp_boardNews')

If you want more than one:

Code: (Replace) [Select]
if (in_array($block['id'], array(1, 2, 3)))
$block['collapsed'] = true;

if ($block['type'] == 'sp_boardNews')

Change 1 or 1, 2, 3 as the ids of blocks you want to display in collapsed state.
And slowly, you come to realize... It's all as it should be...

Offline koshal

  • Semi Newbie
  • *
  • Posts: 6
  • Gender: Male
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: SMF & Simple Portal - auto collapsable blocks?
« Reply #3 on: January 23, 2010, 05:19:50 am »
yay :)
Thank you very much!

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6743
  • SMF Version: 2.0.10
  • SP Version: 2.3.6
Re: SMF & Simple Portal - auto collapsable blocks?
« Reply #4 on: January 29, 2010, 10:03:11 am »
You're welcome. ;)
And slowly, you come to realize... It's all as it should be...

Offline katoon

  • Semi Newbie
  • *
  • Posts: 39
  • SMF Version: 2.0.1
  • SP Version: 2.0.2
Re: SMF & Simple Portal - auto collapsable blocks?
« Reply #5 on: November 27, 2012, 02:50:46 am »
How do you find a id of a block?

Offline phantomm

  • Support
  • *
  • Posts: 395
  • Gender: Male
  • Smile, tomorrow will be worse...
    • Polish ElkArte community
  • SMF Version: None
  • SP Version: 2.4 (Elkarte)
  • Elkarte Version: 1.0.5
Re: SMF & Simple Portal - auto collapsable blocks?
« Reply #6 on: November 27, 2012, 05:51:56 am »
When you open block edit page you will see block ID in URL.