collapse

* User Info

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

* Who's Online

  • Dot Guests: 58
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • BurkeKnight: [SiNaN] old friend. Great Job. I can't wait to see what you add next. :)
    October 13, 2014, 04:13:53 PM
  • [SiNaN]: Thank you everyone, for the kind words and support. For those who are interested, check out our Donators Program: [link]
    October 13, 2014, 11:57:44 AM
  • {OCS}MasterSeal: Glad to be here, glad to use your amazing portal THank you!
    October 13, 2014, 11:33:35 AM
  • Mike Vail: I'd like to donate to you for all your wonderful work. Do you guys have a place on your site to do that? THANKS FOR EVERYTHING!
    October 13, 2014, 11:12:16 AM
  • Mstcool: Yay, an update! :D
    October 12, 2014, 01:39:17 AM
  • stanyy: You're right. I have no idea how I got to the "Archived" index. It looks too similar.
    October 03, 2014, 11:38:32 AM
  • [SiNaN]: SimplePortal 2.3.5 package is listed in Stable SimplePortal Packages category in Downloads area.
    October 03, 2014, 06:08:01 AM
  • stanyy: SP 2.3.5 is not available in the downloads section?? The big download link on the homepage points newcomers to the downloads section who then download 2.3.4. Not good.
    October 03, 2014, 03:54:21 AM
  • Mulwa: if simpleportal team could make some of the blocks like articles to display photos just like how ebay does, it would be very great for shopping
    September 27, 2014, 08:24:14 AM
  • Mulwa: everybody is busy, no help for us this time
    September 26, 2014, 05:00:07 PM
  • [SiNaN]: That shows how simple but powerful SimplePortal is!
    September 26, 2014, 06:56:41 AM
  • oNLy1: thought the 'Blocks In Blocks' was going to be complicated - easy peasy - and was exactly what my site needed - ty
    September 20, 2014, 01:13:44 PM
  • P flex: Xup guys
    September 18, 2014, 08:29:06 AM
  • P flex: Xup
    September 18, 2014, 08:28:38 AM
  • Mstcool: :p *
    September 13, 2014, 07:55:49 PM
  • Mstcool: so when is a new version coming out? :o
    September 13, 2014, 07:55:45 PM
  • USFA: sorry thought was search no glasses
    September 06, 2014, 08:48:23 PM
  • USFA: rename forum
    September 06, 2014, 08:47:40 PM
  • Mstcool: Oh, ok, Sinan
    August 25, 2014, 10:19:15 PM
  • Arsen: When i make them
    August 19, 2014, 12:20:20 AM

* Recent Posts

Re: Facebook style wall posting integrated with Simple Portal and user profile by rexall
[Today at 07:15:44 AM]


Re: Shoutbox refresh and page reload discrepancy by i8088
[October 23, 2014, 04:44:24 PM]


Staff list - Sort by rank by ThatCrazyGuy
[October 22, 2014, 04:16:44 PM]


Re: SimplePortal 2.3.6 Released! by andy
[October 22, 2014, 08:35:00 AM]


Re: Blok İçinde Bloklar Oluşturmak by mkuru
[October 22, 2014, 04:27:32 AM]

Blocks speak! Do you have an interest in getting more blocks - or even making your own? The Blocks Board is for you!

Author Topic: SMF & Simple Portal - auto collapsable blocks?  (Read 1882 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, 05: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, 07:31:23 PM »
no help  :thumbsdown:

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6527
  • The Amazing Coder!
  • SMF Version: 2.0.9
  • SP Version: 2.3.6
Re: SMF & Simple Portal - auto collapsable blocks?
« Reply #2 on: January 22, 2010, 08: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, 04:19:50 AM »
yay :)
Thank you very much!

Offline [SiNaN]

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

Offline katoon

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

Offline phantomm

  • Support
  • *
  • Posts: 388
  • Gender: Male
  • Smile, tomorrow will be worse...
    • Polish ElkArte community
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: SMF & Simple Portal - auto collapsable blocks?
« Reply #6 on: November 27, 2012, 04:51:56 AM »
When you open block edit page you will see block ID in URL.