Version: 1.00, by dymo
Developer Last Online: Jun 2009
Version: 2.2.x
Rating:
Released: 04-29-2002
Last Update: Never
Installs: 5
Is in Beta Stage
No support by the author.
this is another one of those scriptlets i had collected that i modified to provide a bit of fun for my users but its giving me a bit of a problem, its completely functional, just the response to the question is being parsed to the top of the page rather than under the question
add a template called 8ball
and insert the following
PHP Code:
<html>
<head>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function checkrequired(which) {
var pass=true;
if (document.images) {
for (i=0;i<which.length;i++) {
var tempobj=which.elements[i];
if (tempobj.name.substring(0,8)=="required") {
if (((tempobj.type=="text"||tempobj.type=="textarea")&&
tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&&
tempobj.selectedIndex==0)) {
pass=false;
break;
}
}
}
}
if (!pass) {
shortFieldName=tempobj.name.substring(8,30).toUpperCase();
alert("Error you did not post any "+shortFieldName+" , try again.");
return false;
}
else
return true;
}
// End -->
</script>
<title>$bbtitle - Ask the 8Ball?</title>
Warning: Cannot add header information - headers already sent by (output started at /home/virtual/site2/fst/var/www/html/forums/8ball.php:1) in /home/virtual/site2/fst/var/www/html/forums/admin/functions.php on line 1647
Warning: Cannot add header information - headers already sent by (output started at /home/virtual/site2/fst/var/www/html/forums/8ball.php:1) in /home/virtual/site2/fst/var/www/html/forums/admin/functions.php on line 1647
Originally posted by tweak Kool Hack but i get these errors on your forum???
Warning: Cannot add header information - headers already sent by (output started at /home/virtual/site2/fst/var/www/html/forums/8ball.php:1) in /home/virtual/site2/fst/var/www/html/forums/admin/functions.php on line 1647
Warning: Cannot add header information - headers already sent by (output started at /home/virtual/site2/fst/var/www/html/forums/8ball.php:1) in /home/virtual/site2/fst/var/www/html/forums/admin/functions.php on line 1647
Also the answer appears in the top corner??
the answer in the corner is a bug hence its a beta release.
the header info you get on my forums is in the process of being hacked right now to support multiple cookies, just refresh it and it goes away.
if anyone has an idea of how to get the answer to appear under the question i could really use it
Xi the js should work on anything higher than ie 4 and ns 4, if the browser cnt use it , it should ignored, the js only provides the idiot correct of someone submitting a blank question
d