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: 389
  • 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: Another way for shoutbox...  (Read 4016 times)

0 Members and 1 Guest are viewing this topic.

Offline ddi

  • Semi Newbie
  • *
  • Posts: 18
  • SMF Version: 2 RC1.2
  • SP Version: 2.3
Another way for shoutbox...
« on: January 18, 2010, 03:08:23 PM »
Look there: www.authorway.com/fora

You will see a tabbed menu at the top.

I would like to add the shoutbox there by creating a new function to the attached file...

Any help for doing that?

(i have tried the:

Code: [Select]
if (allowedTo('sp_admin'))
     echo 'No support for you!';
else
     sp_shoutbox(array('shoutbox' => 1), 0);

...but can't manage it to work).


Any ideas, pls?  :nervous-happy:

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Another way for shoutbox...
« Reply #1 on: January 20, 2010, 04:16:17 PM »
array('shoutbox' => 1) part means you want to display the shoutbox with the id of 1. Did you create that shoutbox?

Also because of the 'if' statement, only admins will be able to see the shoutbox.
And slowly, you come to realize... It's all as it should be...

Offline ddi

  • Semi Newbie
  • *
  • Posts: 18
  • SMF Version: 2 RC1.2
  • SP Version: 2.3
Re: Another way for shoutbox...
« Reply #2 on: January 21, 2010, 12:04:33 PM »
Sinan, thanx for the reply.

Yes, I have created that shoutbox and yes, I know about the admin issue but this can be overidden if you have the same sb enabled somewhere else inside the forum.

I dont know the right syntax for the code that I must add in the file that I have attached...

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Another way for shoutbox...
« Reply #3 on: January 21, 2010, 12:07:11 PM »
If you are using the mob_sb() function, this would be it:

Code: [Select]
function mot_sb()
{
sp_shoutbox(array('shoutbox' => 1), 0);
}

If you get an error, let me know what it is.
And slowly, you come to realize... It's all as it should be...

Offline ddi

  • Semi Newbie
  • *
  • Posts: 18
  • SMF Version: 2 RC1.2
  • SP Version: 2.3
Re: Another way for shoutbox...
« Reply #4 on: January 21, 2010, 03:31:57 PM »
It is working great but it shows at the bottom of all three tabs...

Somewhere must put a div and still dont know where...

chek on my first page: www.authorway.com/fora



« Last Edit: January 21, 2010, 03:34:03 PM by ddi »

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Another way for shoutbox...
« Reply #5 on: January 21, 2010, 03:37:17 PM »
It seems like it is outside the last <div>. I wouldn't know exactly without seeing the code though.
And slowly, you come to realize... It's all as it should be...

Offline ddi

  • Semi Newbie
  • *
  • Posts: 18
  • SMF Version: 2 RC1.2
  • SP Version: 2.3
Re: Another way for shoutbox...
« Reply #6 on: January 21, 2010, 03:40:59 PM »
OK then, here is the code (attached).

And one more thing...

Look at the arrangement of the shouts when in this horizontal bloc...

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Another way for shoutbox...
« Reply #7 on: January 21, 2010, 03:45:40 PM »
Change this function:

Code: [Select]
function mot_sb()
{
   sp_shoutbox(array('shoutbox' => 1), 0);

}

as this:

Code: [Select]
function mot_sb()
{
echo '

<div class="tabsmenucontent" style="padding: 5px">';

   sp_shoutbox(array('shoutbox' => 1), 0);

echo '

</div>';
}

About the alignment, I'm not sure about that. Some CSS class should be resetting the intended alignment.
« Last Edit: January 21, 2010, 03:55:01 PM by [SiNaN] »
And slowly, you come to realize... It's all as it should be...

Offline ddi

  • Semi Newbie
  • *
  • Posts: 18
  • SMF Version: 2 RC1.2
  • SP Version: 2.3
Re: Another way for shoutbox...
« Reply #8 on: January 21, 2010, 03:53:44 PM »
Code: [Select]
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/mysite/public_html/fora/tabbed_block_forum/mouseoverTabContent.php on line 1779
« Last Edit: January 21, 2010, 03:55:45 PM by ddi »

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Another way for shoutbox...
« Reply #9 on: January 21, 2010, 03:55:13 PM »
I have updated the post, there was a typo. Can you try it again?
And slowly, you come to realize... It's all as it should be...

Offline ddi

  • Semi Newbie
  • *
  • Posts: 18
  • SMF Version: 2 RC1.2
  • SP Version: 2.3
Re: Another way for shoutbox...
« Reply #10 on: January 21, 2010, 03:58:44 PM »
Sinan, now it shows nothing at all. Just an empty tab.

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Another way for shoutbox...
« Reply #11 on: January 21, 2010, 04:03:43 PM »
Hmmm, can you attach your file now?
And slowly, you come to realize... It's all as it should be...

Offline ddi

  • Semi Newbie
  • *
  • Posts: 18
  • SMF Version: 2 RC1.2
  • SP Version: 2.3
Re: Another way for shoutbox...
« Reply #12 on: January 21, 2010, 04:05:54 PM »
Sure. And thanx for your time . :nervous-happy:

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Another way for shoutbox...
« Reply #13 on: January 21, 2010, 04:11:28 PM »
Okay. The empty area is mot_Statistics(); function. Since it is dependent on TP, it will echo an empty output. For shoutbox tab to be added, you should add it to the tab item list, here:

Code: [Select]
<div id="mytabsmenu" class="tabsmenuclass">
<ul>

<li><a href="#" rel="gotsubmenu[selected]">ΝΕΑ ΣΤΙΣ GALLERIES</a></li>
<li><a href="#" rel="gotsubmenu">ΝΕΑ ΘΕΜΑΤΑ</a></li>
<li><a href="#" rel="gotsubmenu">ΦΩΝΟΛΟΓΙΟΝ</a></li>

</ul>
</div>

It should be like:

Code: [Select]
<div id="mytabsmenu" class="tabsmenuclass">
<ul>

<li><a href="#" rel="gotsubmenu[selected]">ΝΕΑ ΣΤΙΣ GALLERIES</a></li>
<li><a href="#" rel="gotsubmenu">ΝΕΑ ΘΕΜΑΤΑ</a></li>
<li><a href="#" rel="gotsubmenu">ΦΩΝΟΛΟΓΙΟΝ</a></li>
<li><a href="#" rel="gotsubmenu">Shoutbox</a></li>

</ul>
</div>

But I'm not sure where that code is. That's all I can see through HTML source.
And slowly, you come to realize... It's all as it should be...

Offline ddi

  • Semi Newbie
  • *
  • Posts: 18
  • SMF Version: 2 RC1.2
  • SP Version: 2.3
Re: Another way for shoutbox...
« Reply #14 on: January 21, 2010, 04:18:33 PM »
Yes Sinan you are right! I had left the

Code: [Select]
mot_Statistics();
alive without the

Code: [Select]
//
See it in my first page. You are great!

Any ideas about the css thingy?

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Another way for shoutbox...
« Reply #15 on: January 21, 2010, 04:25:11 PM »
Try this:

Themes/default/portal.css

Code: (Find) [Select]
.shoutbox_list_compact
{
margin: 0;
padding: 0;
list-style: none;
overflow: auto;
height: 200px;
}
.shoutbox_list_compact li
{
padding: 4px 0px 4px 4px;
border-bottom: 1px dashed #CCCCCC;
border-left: 3px solid #DADADA;
}

Code: (Replace) [Select]
.shoutbox_list_compact
{
margin: 0;
padding: 0;
list-style: none;
overflow: auto;
height: 200px;
float: none;
}
.shoutbox_list_compact li
{
padding: 4px 0px 4px 4px;
border-bottom: 1px dashed #CCCCCC;
border-left: 3px solid #DADADA;
float: none;
}
And slowly, you come to realize... It's all as it should be...

Offline ddi

  • Semi Newbie
  • *
  • Posts: 18
  • SMF Version: 2 RC1.2
  • SP Version: 2.3
Re: Another way for shoutbox...
« Reply #16 on: January 21, 2010, 04:38:02 PM »
Nothing changed...

Maybe the code that i use in a php block to call the tabs might help you...

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Another way for shoutbox...
« Reply #17 on: January 21, 2010, 04:40:10 PM »
Well, try this then:

In your tabbed content block code:

Code: (Find) [Select]
.tabsmenucontentclass li{
float: left;
margin-right: 1em;
}

Code: (Replace) [Select]
.tabsmenucontentclass li{
float: left;
margin-right: 1em;
}
.shoutbox_list_compact li
{
float: none;
}
And slowly, you come to realize... It's all as it should be...

Offline ddi

  • Semi Newbie
  • *
  • Posts: 18
  • SMF Version: 2 RC1.2
  • SP Version: 2.3
Re: Another way for shoutbox...
« Reply #18 on: January 21, 2010, 04:45:55 PM »


It worked!  8)

Watch it in action in my first page.

Sinan, thank you very much for your time and efforts on helping me out with this one.

Excellent mod with a great support!


Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Another way for shoutbox...
« Reply #19 on: January 22, 2010, 08:53:03 AM »
Looks cool. Good work! I'm glad I could be of help. ;)
And slowly, you come to realize... It's all as it should be...