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: 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]

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: [Feature Request] Enable blocks in certain themes.  (Read 3081 times)

0 Members and 1 Guest are viewing this topic.

Offline velorooms

  • Jr. Member
  • **
  • Posts: 74
    • Velorooms
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
[Feature Request] Enable blocks in certain themes.
« on: January 09, 2013, 03:15:14 PM »
Now this one might involve a fair amount of coding so I dont know if its possible or realistically feasible.

An option added to display options to set the theme in which the block appears, so all themes, or just certain themes. As more and more people start using tablets, or mobiles, more smf forums have alternate themes for these devices, and a way of only including certain blocks in certain themes would be superb (so strip out unneeded blocks in mobile themes but keep some), or even for making less bulky themes for those that dont want them.

Admin and Owner of Velorooms.com - Using SMF 2.0.3 and Simpleportal 2.3.5

Offline velorooms

  • Jr. Member
  • **
  • Posts: 74
    • Velorooms
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: [Feature Request] Enable blocks in certain themes.
« Reply #1 on: January 09, 2013, 03:50:11 PM »
Hmm, digging around, this from November 2011

Hello...

It would be great if we had Theme based blocks. So that means that you can choose on what theme you want to show the block.

You'll be able to do this with 2.3.4 version, which will be out very very soon, using Complex Display Options.

I'm also planning to add a proper interface to select particular themes and languages to display the blocks on too. But that will be for the next major version.

but checking the documentation its not listed in any of the advanced display options

http://simpleportal.net/index.php?action=docs;area=custom_blocks_display

The release of 2.3.4 was late november that year and Sinan listed in the features:
Quote
Complex display options using PHP expressions for block display.

got as far as learning that you can put in custom options

$php followed by an expression..

Oh lordy..

hmmmm..,.
Admin and Owner of Velorooms.com - Using SMF 2.0.3 and Simpleportal 2.3.5

Offline velorooms

  • Jr. Member
  • **
  • Posts: 74
    • Velorooms
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: [Feature Request] Enable blocks in certain themes.
« Reply #2 on: January 15, 2013, 12:17:19 PM »
Nobody :( Wheres Sinan..  >:-D
Admin and Owner of Velorooms.com - Using SMF 2.0.3 and Simpleportal 2.3.5

Offline velorooms

  • Jr. Member
  • **
  • Posts: 74
    • Velorooms
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: [Feature Request] Enable blocks in certain themes.
« Reply #3 on: January 16, 2013, 08:35:20 AM »
Ok. ive managed to get somewhere with this one, but not in the way I would like but (ie. defining in the block admin where to show the block) but by editing the php similar to what is used to hide the two side panels in a certain theme

Code: [Select]
$block_in_theme = array(38);
if (in_array($settings['theme_id'], $block_in_theme))
$blocks = array_merge(getBlockInfo(false, 227, false, false), $blocks = getBlockInfo(false, 237, false, false), $blocks = getBlockInfo(false, 168, false, false));
else

then by hiding these three blocks, it forcibly includes them in theme number 38.
Only problem is, i can only so far get them to appear in header or footer, rather than top or bottom as I would like.
Admin and Owner of Velorooms.com - Using SMF 2.0.3 and Simpleportal 2.3.5

Offline FireDitto

  • Jr. Member
  • **
  • Posts: 87
  • Gender: Female
    • Second Pass Weyr
  • SMF Version: 2.0.7
  • SP Version: 2.3.5
Re: [Feature Request] Enable blocks in certain themes.
« Reply #4 on: January 21, 2013, 04:20:18 AM »
xD this request was exactly why I logged into SP today :D

I'd love to be able to select via what themes I'd like a block to show up on.

Offline velorooms

  • Jr. Member
  • **
  • Posts: 74
    • Velorooms
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: [Feature Request] Enable blocks in certain themes.
« Reply #5 on: January 27, 2013, 09:09:27 AM »
well apparently its possible, but it appears to be a secret :D
Admin and Owner of Velorooms.com - Using SMF 2.0.3 and Simpleportal 2.3.5