houseplanet wrote:Very good and useful mod. Thanx to author!
It works almost perfect >>> http://www.houseplanet.dj/forum/
Anyway I'm looking for few edits:
1. How to decrease date & time size?
2. How to decrease height of the shoutbox? I tried in shoutbox.phpBut it appears not correctly when I decreased the height.$shoutbox_width = ( !$shoutbox_width ) ? 900 : intval($shoutbox_width);
$shoutbox_height = ( !$shoutbox_height ) ? 350 : intval($shoutbox_height);
3. How to add smiles & colors to users?
Thanx for any helping!
Your,
http://www.HousePlanet.DJ
Code: Select all
var now = new Date();
var time = Math.round(now.getTime()/1000);
function Time() {
now = new Date();
return Math.round(now.getTime()/1000);
}
function resetTime() {
time = Time();
refresh_time = 4000;
}
//...
if (results.length > 2) {
//...
insertNewContent(results[i+2],results[i+3],results[i+4] ,lastID);
resetTime();
//...
}
else {
// no new comment since..
// 60 seconds
if ( refresh_time == 4000 & ((time + 60) < Time()) ) {
// set refresh to 10 seconds
refresh_time = 10000;
}
// 5 minutes
else if ( refresh_time == 10000 & ((time + 300) < Time()) ) {
// set refresh to 30 seconds
refresh_time = 30000;
}
// 30 minutes
else if ( refresh_time == 30000 & ((time + 1800) < Time()) ) {
// set refresh to 2 minutes
refresh_time = 120000;
}
// 60 minutes
else if ( refresh_time == 120000 & ((time + 3600) < Time()) ) {
// set refresh to 5 minutes
refresh_time = 300000;
}
}
problem solved...thank you...izamurni wrote:can u teach me how to put the shoutbox at the main page (index file)?
can u give me the steps to put this shoutbox can appear at the bottom of the mainpage...thanks