TeeBoard

Free TeeBoard v0.1.5 beta

silent

New Member
If you're not familiar with CSS, I don't recommend just going around and changing things. There is no such thing as "position: center" in CSS. So whatever changes you made, best to undo them.

To center the text you'll need to do a few things.

Change the #notification-msg CSS into:

Code:
#notification-msg {
    color: #BABAAE;
    font-size: 24px;
    font-family: Tahoma, Geneva, sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    position: absolute;
    width: 100%;
    top: 35px;
    /*left: 50px;*/
    display: table;
    z-index: 0;
}

I commented out the left positioning and added a width property, set to 100%. The "top" value will depend on the height of your image, so adjust the value accordingly.

Then add the following CSS, so within the <style></style> tags:

Code:
div span {
margin: 0 auto;
display: table;
}

Now you need to put the actual text within a <span> tag which will be centered within its parent div.

In the page body, make it look like this:

Code:
  <div id="notification-msg">
      <span id="msg">TEEBOARD JAVASCRIPT NOTIFICATIONS!!</span>
  </div>

Last thing you need to do now is change the javascript to write the follower name to the "msg" instead of "notification-msg".

Look for the line that says:
var txt = document.getElementById("notification-msg");
And change it to:

Code:
 var txt = document.getElementById("msg");

<html>
<head>
<title>TeeBoard Notifications Widget</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<!-- visit http://www.greensock.com/get-started-js/ for more info -->

<!--CDN links for the latest TweenLite, CSSPlugin, and EasePack -->
<script src="http://cdnjs.cloudflare.com/ajax/libs/gsap/latest/plugins/CSSPlugin.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/gsap/latest/easing/EasePack.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/gsap/latest/TweenLite.min.js"></script>

<style type="text/css" media="all">
html, body {
height: 100%;
/*background-color: #FFFFFF;*/
background-color: rgba(255,255,255,0)!important;
}

body {
margin: 0;
padding: 0;
overflow: hidden;
}

#flashContent {
width: 200px;
height: 100px;
}

#notification-msg {
color: #FFFFFF;
font-size: 36px;
font-family: Impact, Geneva, sans-serif;
font-weight: bold;
text-transform: uppercase;
position: absolute;
width: 100%
top: 90px;
/*left: 100px;*/
display: table;
z-index: 0;
}

#notification {
visibility: hidden;
}

div span {
margin: 0 auto;
display: table;
}


</style>


<script>

// relative paths to notification images
var imgFollow = "images/notification-bg-follow2.png";
var imgSub = "images/notification-bg-sub.png";
var imgDonate = "images/notification-bg-donate.png";

function teeboardNotification(type, msg) {
//alert("notification: " + type + " - " + msg);

var img = document.getElementById("notification-img");

// set image depending on notification type
if(type == "follower") {
img.src = imgFollow;
}else if(type == "subscriber") {
img.src = imgSub;
}else if(type == "donation") {
img.src = imgDonate;
}

// set the notification message
var txt = document.getElementById("msg");
txt.innerHTML = msg;

// animate everything onto the screen
var div = document.getElementById("notification");
div.style.visibility = "visible";
TweenLite.killTweensOf(div);
// tween x position from offscreen (0 - width of image) to 0
TweenLite.fromTo(div, 0.6, {y:120}, {y:-25, ease:Bounce.easeOut, onComplete:hideNotification});
}

function hideNotification() {
// animate everything back off screen
var div = document.getElementById("notification");
// tween x position from 0 to (0 - width of image)
TweenLite.to(div, 0.6, {y:120, delay:6});
}

</script>

</head>
<body>

<!--
Animations should take no longer than 10 seconds (showing + hiding), as notifications are queued,
meaning that if there are 2 new followers, 2 alerts are invoked, 10 seconds apart.
-->

<div id="notification">
<div id="notification-msg">
<span id="msg">TEEBOARD JAVASCRIPT NOTIFICATIONS!!</span>
</div>
<img id="notification-img" src="images/notification-bg-follow2.png" width="581" height="110">
</div>

<div id="flashContent">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="200" height="100" id="teeboard-notifications" align="middle">
<param name="movie" value="teeboard-notifications.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="play" value="true" />
<param name="loop" value="false" />
<param name="wmode" value="transparent" />
<param name="scale" value="noscale" />
<param name="menu" value="false" />
<param name="devicefont" value="false" />
<param name="salign" value="lt" />
<param name="allowScriptAccess" value="always" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="teeboard-notifications.swf" width="200" height="100">
<param name="movie" value="teeboard-notifications.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="play" value="true" />
<param name="loop" value="false" />
<param name="wmode" value="transparent" />
<param name="scale" value="noscale" />
<param name="menu" value="false" />
<param name="devicefont" value="false" />
<param name="salign" value="lt" />
<param name="allowScriptAccess" value="always" />
</object>
<!--<![endif]-->
</object>
</div>


</body>
</html>

that is what I put in but it still doesn't seem to have fixed the issue. I'm pretty sure I changed everything properly like you said unless I did something wrong. I got the position of the text in a decent way so it isn't going to be terrible if we can't get this working.
 

DeezjaVu

Member
that is what I put in but it still doesn't seem to have fixed the issue. I'm pretty sure I changed everything properly like you said unless I did something wrong. I got the position of the text in a decent way so it isn't going to be terrible if we can't get this working.

You probably need to change the width of the div surrounding the text to match the width of the image. In the code I posted earlier I assumed a 100% width.
From the looks of it, your image is 581 pixels wide.. use that for the "notification-msg" width.

Code:
#notification-msg {
    color: #FFFFFF;
    font-size: 36px;
    font-family: Impact, Geneva, sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    position: absolute;
    width: 581px;
    top: 90px;
}
 

edathi

New Member
Hey, I have an idea. I was thinking maybe you could add chat into the program. I know you can put it on to the stream but maybe just something like dashboard lite has http://gyazo.com/898278f8508c1473ddd633b616fed895 just to consolidate it so I dont have to have another window open in chrome. And also maybe an active viewer count also sort of how dashboard lite has it. Im really liking this thanks so much!
 

DeezjaVu

Member
Hey, I have an idea. I was thinking maybe you could add chat into the program. I know you can put it on to the stream but maybe just something like dashboard lite has http://gyazo.com/898278f8508c1473ddd633b616fed895 just to consolidate it so I dont have to have another window open in chrome. And also maybe an active viewer count also sort of how dashboard lite has it. Im really liking this thanks so much!
Not gonna happen, sorry. I'd just be reinventing the wheel. Look into using an IRC client instead.
https://sites.google.com/site/deezja/news/twitch-irc
 

dehixem

Member
Heyo again,

I'm encountering an issue with "Now playing" (Twobbler).
The feature doesn't work for all of my music !

It seems only the certain musics are being transferred to Last.fm and written to the text file...
Sometime, nothing changes on the text file.
Is there any work around ?

Edit : Actually, adding to this issue, the feature doesn't seem responsive (it takes at LEAST 20 seconds for it to respond a change the txt file), I wonder what is causing this

Cheers,

PS: I use foobar2000
 
Last edited:

dehixem

Member
Sorry for double-posting, but it may be easier for DeezjaVu to respond to messages with a different issue each.

My text file top-donator isn't filled up, is that normal ? Any way to fix the issue ? All other donation text files have the correct data in them.

Cheers, and thanks :)
 

DeezjaVu

Member
Sorry for double-posting, but it may be easier for DeezjaVu to respond to messages with a different issue each.

My text file top-donator isn't filled up, is that normal ? Any way to fix the issue ? All other donation text files have the correct data in them.

Cheers, and thanks :)
Depends on the service you use. Some provide top donator data, others don't. If I'm not mistaken, ImRaising and StreamTip do not.
 

DeezjaVu

Member
Heyo again,

I'm encountering an issue with "Now playing" (Twobbler).
The feature doesn't work for all of my music !

It seems only the certain musics are being transferred to Last.fm and written to the text file...
Sometime, nothing changes on the text file.
Is there any work around ?

Edit : Actually, adding to this issue, the feature doesn't seem responsive (it takes at LEAST 20 seconds for it to respond a change the txt file), I wonder what is causing this

Cheers,

PS: I use foobar2000

With local files (mp3's and such), the music information has to be available (embedded) in the file for it to be sent to last.fm. This is not required for and automatically taken care for with radio stations (played back via a media player) and online music providers (Pandora, GrooveShark, Spotify, etc..). So if your personal music library is missing a lot of metadata, you'll have to find a way to fix that. There's tools out there that can help with that, but if you happen to have a lot of obscure (unknown) music, they probably won't be of much help.

Edit : Actually, adding to this issue, the feature doesn't seem responsive (it takes at LEAST 20 seconds for it to respond a change the txt file), I wonder what is causing this

That's as responsive as it gets. TeeBoard checks for new data every 15 seconds.
 
Last edited:

silent

New Member
You probably need to change the width of the div surrounding the text to match the width of the image. In the code I posted earlier I assumed a 100% width.
From the looks of it, your image is 581 pixels wide.. use that for the "notification-msg" width.

Code:
#notification-msg {
    color: #FFFFFF;
    font-size: 36px;
    font-family: Impact, Geneva, sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    position: absolute;
    width: 581px;
    top: 90px;
}

I got it working! I just wanted to thank you a lot for all your help and asst. It looks great and so far it hasn't seemed to have forgotten any followers like the alert was a few months ago so I'm very pleased with the results of the application. You are a god send for streamers everywhere and keep it up!
 

Snaert

Member
Hey again DeezjaVu!
Im here once again to ask you something. If there any plans of adding bitcoin/litecoin donation tracker? Example coinbase.com or is that out of the question?`

//Andy
 

DeezjaVu

Member
Hey again DeezjaVu!
Im here once again to ask you something. If there any plans of adding bitcoin/litecoin donation tracker? Example coinbase.com or is that out of the question?`

//Andy
Isn't that actually handled by streamtip already? If I'm not mistaken you can link your bitcoin account to streamtip, just like you do for paypal.
 

Snaert

Member
Isn't that actually handled by streamtip already? If I'm not mistaken you can link your bitcoin account to streamtip, just like you do for paypal.
Once again you are right. I'll just go back to the dark corner i came from and stay there!

Thank you Dee!

//Andy
 

modalux

New Member
First of all, DeezjaVu

Amazing tool you have here. This is the most simple and straightforward stream tool that I have used. It has everything that I want. I have encountered a couple of problems that I was hoping you could address.

1. While streaming with this tool enabled, any game that I play will eventually crash. There is no error reported or anything, just a swift crash straight to the desktop. This hasn't happened before I started using the tool and won't happen if I have it disabled. I have been streamed 3 games, two through Steam and the third being WildStar. All of these games are run in my native resolution (1920 x 1080) in windowed fullscreen. I haven't tried running in regular full screen to see if that is the issue.

2. The second problem I have encountered is with the "giveaway" tab the menu. When I click the tab, all of the giveaway tab options are greyed out. I must be missing a step to be able to enable them. Any pointers here would be great.

I really want to be able to use your tool full-time. Like I said, it is simply the best tool that I have used. I can do without the giveaway's, I can use a different program for that. But the games crashing is a big deal. I hope you can provide some clarity or advice on that front.

Take care,
modalux
 

DeezjaVu

Member
1. While streaming with this tool enabled, any game that I play will eventually crash. There is no error reported or anything, just a swift crash straight to the desktop. This hasn't happened before I started using the tool and won't happen if I have it disabled. I have been streamed 3 games, two through Steam and the third being WildStar. All of these games are run in my native resolution (1920 x 1080) in windowed fullscreen. I haven't tried running in regular full screen to see if that is the issue.

TeeBoard itself has (most likely) nothing to do with it, at least not directly. Crashes are most likely related to the CLR Browser plugin, especially if you're using the 64bit version (OBS+CLR Browser). If that is the case, try switching to 32bit OBS + CLR Browser. If you're already using 32bit, let me know.

2. The second problem I have encountered is with the "giveaway" tab the menu. When I click the tab, all of the giveaway tab options are greyed out. I must be missing a step to be able to enable them. Any pointers here would be great.

GiveAways Widget is work in progress, which is why it is disabled :)
 

modalux

New Member
Ah, well I am looking forward to the giveaway widget!! And yes, I am using the 32bit version of OBS and getting these crashes.
 
Top