collapse collapse

* User Info

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

* Who's Online

  • Dot Guests: 160
  • 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

Re: How to Add signature in Simple Portal? by tocnaza
[July 06, 2019, 12:04:00 PM]


Re: Yeni Sürüm Çıkacak mı? by mkuru
[July 01, 2019, 03:05:44 AM]


Re: Yeni Sürüm Çıkacak mı? by akorkut
[June 28, 2019, 05:38:26 AM]


Re: Yeni Sürüm Çıkacak mı? by mkuru
[June 26, 2019, 12:09:02 PM]


Yeni Sürüm Çıkacak mı? by akorkut
[June 25, 2019, 04:53:54 AM]

Installation errors? Mod incompatibilities? Upgrade problems? Make your way over to the Install and Upgrade Support board for all your solutions!

Author Topic: Same shoutbox in different blocks  (Read 5180 times)

0 Members and 1 Guest are viewing this topic.

Offline Unruler

  • Semi Newbie
  • *
  • Posts: 8
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Same shoutbox in different blocks
« on: October 29, 2012, 12:49:48 PM »
It would be nice to remove restriction that prohibits having the same shoutbox in different blocks.

Because if I want the same shoutbox be displayed in side panel on portal and in top panel on forum I can't do that.

Offline TinMan

  • Semi Newbie
  • *
  • Posts: 43
    • RC Arcade
Re: Same shoutbox in different blocks
« Reply #1 on: October 29, 2012, 01:42:10 PM »
What you could do to show the same shoutbox on a side panel and top panel is use Blocks in Blocks.  While using the shoutbox block that you have on the side panel for your portal, create a new php block and use this code:
Code: [Select]
$block = current(getBlockInfo(false, 49, false, false));  // Load block info
$block['style'] = sportal_parse_style('explode', $block['style'], true);  //Parse block style parameters.
template_block($block); // Output the block.
Change 49 to the number of your side panel shoutbox block (to get the block id, you can click edit on your side panel shoutbox block and should see something like "block_id=10" in the link).

Then in Display Options, Show Block On, select Forum.  Then in Style Options check No Title and No Body.  Then create the block and place it in the top panel and it should only show on the forums.
« Last Edit: October 29, 2012, 01:55:13 PM by TinMan »

Offline Unruler

  • Semi Newbie
  • *
  • Posts: 8
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: Same shoutbox in different blocks
« Reply #2 on: October 29, 2012, 02:09:50 PM »
Thanks for reply. Good to know there is a workaround with it.

However it's a feature request to be a default functionality of Portal. Because what's the point in that restriction? And there are sill unlimited amount of shoutboxes that could be used, but what's the point in them? Who will possibly use more then one (assuming they're unconnected)?

Offline phantomm

  • Translator
  • *
  • Posts: 406
  • Gender: Male
  • Smile, tomorrow will be worse...
    • Polish ElkArte community
  • SMF Version: None
  • Elkarte Version: 1.0.5
Re: Same shoutbox in different blocks
« Reply #3 on: October 29, 2012, 04:12:53 PM »
You can have different shoutbox for moderators, admins or regular users.
You can have different shoutbox for specific boards... there's a lot of possibilities :)

Offline FrizzleFried

  • Full Member
  • ***
  • Posts: 114
  • SMF Version: 2.0.5
  • SP Version: 2.3.5
Re: Same shoutbox in different blocks
« Reply #4 on: October 29, 2012, 06:16:27 PM »
I have a general shoutbox and an arcade shoutbox...

...and I use the blocks in blocks idea to do exactly what you want to do...

Offline Unruler

  • Semi Newbie
  • *
  • Posts: 8
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: Same shoutbox in different blocks
« Reply #5 on: October 29, 2012, 07:19:50 PM »
You can have different shoutbox for moderators, admins or regular users.
You can have different shoutbox for specific boards... there's a lot of possibilities :)

Well, that's cool, a little bit superfluous imo, but I'm not saying to take it out or anything, that's nice functionality to have. I played with it a little bit myself  >:-D

I have a general shoutbox and an arcade shoutbox...

...and I use the blocks in blocks idea to do exactly what you want to do...

Blocks in blocks are fine but wouldn't it be better to be able to do that w/o it?

Offline jack_40k

  • Newbie
  • Posts: 2
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: Same shoutbox in different blocks
« Reply #6 on: January 17, 2013, 11:45:49 PM »
Hey guys,

I want to have the shoutbox on header block in my forum AND on a separate page that I link to. This is simple enough to do using blocks in blocks - BUT I want different parameters for the same shoutbox.

For example, I want the shoutbox in the header of my forum to be a certain size - and I want the shoutbox on the other page to be another size (larger).

Is there any way to achieve this?

Thanks.

Jack.

Offline Ares

  • Jr. Member
  • **
  • Posts: 50
  • Gender: Male
  • World Of Mass Distruction
    • [SoW] Spoils of War
  • SMF Version: 2.0.5
  • SP Version: 2.3.5
Re: Same shoutbox in different blocks
« Reply #7 on: April 04, 2013, 10:16:38 PM »
Change the 2 to you shoutbox id and place this code in multi php blocks
Code: [Select]
$params['shoutbox'] = 2; // Your shoutbox ID
sp_shoutbox($params, 0);
yw