TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

June 26, 2024, 10:06:38 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,280
  • Total Topics: 21,227
  • Online today: 334
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 320
  • Total: 320

Shoutbox

Started by Viper, December 11, 2005, 02:43:59 AM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

Viper

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?

Moocat

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.

IchBin

Permission to download the beta versions is not needed any more. Beta is open to the public.

bloc

the line...
<b>', $context[', smfshout(), '], '</b>

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

You were referencing a variable instead of calling the shout function.

Viper

Ok thanks Bloc, it seems to be working now. ;) Thanx for the quick response

Viper

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:



I get this little issue

Any ideas?

IchBin

Cannot read on the image what your issue is.

Viper

#7
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 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 :)

Moocat

oh, lol i had no idea tp was public now

IchBin

It appears you don't have SMF/TP install anymore.