TinyPortal

General => Chit chat => Topic started by: Viper on December 11, 2005, 02:43:59 AM

Title: Shoutbox
Post by: Viper on December 11, 2005, 02:43:59 AM
I am trying to install the shoutbox on the amber theme on the sidebar, however whenever I do I always get parse errors.

I have the box setup for it, but frankly I have no clue were the code is supposed to go.

//The "Shoutbox" box.
echo  '<br /><div style="padding: 2px 5px 2px;"  class="titlebg0"><center><b>Shoutbox (on hold)</b></div>
                   <div class="windowbg02" style="padding: 28px;">
   <div style="padding: 5px;" class="smalltext">
        <b>', $context[', smfshout(), '], '</b>
</div>
         </div>';


That is what I have so far: http://dragonhut.roxr.com/forum <<< so you can see where I want to put this thing.

Been trying here for a week and a half but to no avail. Guidance please?
Title: Re: Shoutbox
Post by: Moocat on December 11, 2005, 07:39:35 AM
it would appear that you aren't using tinyportal. instead of coding all those little blocks by hand, you could simply post in the "next betas" topic, and then get permissions to download tinyportal and the TP version of amber. then you can use a GUI to set up those blocks, including the same shoutbox you see here, no coding required.
Title: Re: Shoutbox
Post by: IchBin on December 11, 2005, 04:46:08 PM
Permission to download the beta versions is not needed any more. Beta is open to the public.
Title: Re: Shoutbox
Post by: bloc on December 11, 2005, 06:52:09 PM
the line...
<b>', $context[', smfshout(), '], '</b>

needs to be....
<b>', smfshout(), '</b>

You were referencing a variable instead of calling the shout function.
Title: Re: Shoutbox
Post by: Viper on December 11, 2005, 08:49:41 PM
Ok thanks Bloc, it seems to be working now. ;) Thanx for the quick response
Title: Re: Shoutbox
Post by: Viper on December 11, 2005, 10:48:12 PM
New problem.

Since I installed the shoutbox (which works by the way), the side bar skewed across the page....I needed to disable guests from viewing the forum without registration and I thought this would of hide the problem...but when they go to register:

(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fi27.photobucket.com%2Falbums%2Fc194%2FRedDrake%2FSkewproblem.jpg&hash=bb2b0ef38debcb4f6c2bf323e68da7b902718123)

I get this little issue

Any ideas?
Title: Re: Shoutbox
Post by: IchBin on December 11, 2005, 10:59:58 PM
Cannot read on the image what your issue is.
Title: Re: Shoutbox
Post by: Viper on December 11, 2005, 11:03:13 PM
No no, that's just the registration screen. There's nothing to read on it. As you can see, the sidebar is strewn across the screen and not on the left side were it is supposed to be.

Go dragonhut.roxr.com/forum (http://dragonhut.roxr.com/forum) and click on register. You will see what I mean

But when you register, it turns back to normal...very bizarre

EDIT: And I just noticed something new...the shoutbox expands and collapses when you refresh the browser window. It's size depends on how many posts I allow to be shown at one time. Is there a way to anchor this, so that it doesn't expand when refreshing?

I'm sorry for all of the questions, and greatly appreciate the help :)
Title: Re: Shoutbox
Post by: Moocat on December 11, 2005, 11:20:23 PM
oh, lol i had no idea tp was public now
Title: Re: Shoutbox
Post by: IchBin on December 12, 2005, 02:38:40 AM
It appears you don't have SMF/TP install anymore.
Title: Re: Shoutbox
Post by: Viper on December 12, 2005, 03:09:58 AM
Right right, but now I do. And by god it works now...even with the Amber theme. After reading this thread over and over again I finally saw the AmerTP theme...and went looking. It works like a charm now...shoutbox and everything. ;)

Thanks much for all of your help :)
Title: Re: Shoutbox
Post by: bloc on December 12, 2005, 01:37:17 PM
;) good you got it resolved.