Post by Fredy on Aug 13, 2005 2:40:37 GMT
name: fredy's saybox table
verson: 1.0
use on: proboards
features: saybox title, date/time, hidden from guests
speacial thanks: dale from pbsupport for the hide from guests code
now for the code. this is a 2 aprt code and you will have some editing to do.
main header:
<script>
var username = 0;
getUser= document.getElementsByTagName('A');
for (a=0;a<getUser.length;a++){
if (getUser.href.indexOf('action=viewprofile') != -1){
username = getUser.href;
}}
if (username==0)
document.write('<style>#shoutbox {display: none;}</style>');
</script>
no editing required for the above code. how ever on the next part of the code. i will explain the editing below it.
<table class=bordercolor><tr><td valign=top class=catbg>Saybox</td></tr><tr><td valign=top class=windowbg>
<script language="JavaScript">
<!-- Begin
var months=new Array(13);
months[1]="January";
months[2]="February";
months[3]="March";
months[4]="April";
months[5]="May";
months[6]="June";
months[7]="July";
months[8]="August";
months[9]="September";
months[10]="October";
months[11]="November";
months[12]="December";
var time=new Date();
var lmonth=months[time.getMonth() + 1];
var date=time.getDate();
var year=time.getYear();
if (year < 2000)
year = year + 1900;
document.write("<center>" + lmonth + " ");
document.write(date + ", " + year + "</center>");
// End -->
</script>
</center>
<br>
<script type="text/javascript">
var timer = null
function stop()
{
clearTimeout(timer)
}
function start()
{
var time = new Date()
var hours = time.getHours()
var minutes = time.getMinutes()
minutes=((minutes < 10) ? "0" : "") + minutes
var seconds = time.getSeconds()
seconds=((seconds < 10) ? "0" : "") + seconds
var clock = hours + ":" + minutes + ":" + seconds
document.forms[0].display.value = clock
timer = setTimeout("start()",1000)
}
</script>
<body onload="start()" onunload="stop()">
<center><form>
<input type="text" name="display" style="background-color: #E8EFFA; font: bold 11px verdana; width: 63px;">
</form>
</td></tr><tr><td valign=top class=windowbg2>
<div id="shoutbox"><script type="text/javascript"
src="http://saybox2.co.uk/output.php?user=SAYBOX USERNAME HERE"></script></div>
</tr></td></table>
ok 1 of the places is optional edit, and that is the title for the saybox. its bascally self explainitory. were it says saybox on the first line, u can change it or leave it as saybox.
now for the edit you NEED to do. in the last part of the code it says SAYBOX USERNAME HERE. thats self explaitory.
verson: 1.0
use on: proboards
features: saybox title, date/time, hidden from guests
speacial thanks: dale from pbsupport for the hide from guests code
now for the code. this is a 2 aprt code and you will have some editing to do.
main header:
<script>
var username = 0;
getUser= document.getElementsByTagName('A');
for (a=0;a<getUser.length;a++){
if (getUser.href.indexOf('action=viewprofile') != -1){
username = getUser.href;
}}
if (username==0)
document.write('<style>#shoutbox {display: none;}</style>');
</script>
no editing required for the above code. how ever on the next part of the code. i will explain the editing below it.
<table class=bordercolor><tr><td valign=top class=catbg>Saybox</td></tr><tr><td valign=top class=windowbg>
<script language="JavaScript">
<!-- Begin
var months=new Array(13);
months[1]="January";
months[2]="February";
months[3]="March";
months[4]="April";
months[5]="May";
months[6]="June";
months[7]="July";
months[8]="August";
months[9]="September";
months[10]="October";
months[11]="November";
months[12]="December";
var time=new Date();
var lmonth=months[time.getMonth() + 1];
var date=time.getDate();
var year=time.getYear();
if (year < 2000)
year = year + 1900;
document.write("<center>" + lmonth + " ");
document.write(date + ", " + year + "</center>");
// End -->
</script>
</center>
<br>
<script type="text/javascript">
var timer = null
function stop()
{
clearTimeout(timer)
}
function start()
{
var time = new Date()
var hours = time.getHours()
var minutes = time.getMinutes()
minutes=((minutes < 10) ? "0" : "") + minutes
var seconds = time.getSeconds()
seconds=((seconds < 10) ? "0" : "") + seconds
var clock = hours + ":" + minutes + ":" + seconds
document.forms[0].display.value = clock
timer = setTimeout("start()",1000)
}
</script>
<body onload="start()" onunload="stop()">
<center><form>
<input type="text" name="display" style="background-color: #E8EFFA; font: bold 11px verdana; width: 63px;">
</form>
</td></tr><tr><td valign=top class=windowbg2>
<div id="shoutbox"><script type="text/javascript"
src="http://saybox2.co.uk/output.php?user=SAYBOX USERNAME HERE"></script></div>
</tr></td></table>
ok 1 of the places is optional edit, and that is the title for the saybox. its bascally self explainitory. were it says saybox on the first line, u can change it or leave it as saybox.
now for the edit you NEED to do. in the last part of the code it says SAYBOX USERNAME HERE. thats self explaitory.