Be a Supporter!
Response to: Images Dropping One Line Posted May 31st, 2007 in Programming

That worked like a charm thanks!

Response to: Php Help For Advertising Spot Posted May 15th, 2007 in Programming

Hey Smulse hows the whole dick sucking thing coming ? :p

Response to: Keyword Method Posted May 13th, 2007 in Programming

This program called IPB or something like that asks you to enter a site url to look at thier keywords, and when i typed in newgrounds it brought up over 500 words. I dont know where to find all those words in the source for newgrounds. I would like to know what method they use. They dont use a meta tag method.

Response to: Keyword Method Posted May 13th, 2007 in Programming

I dont know but when i search for the keywords newgrounds uses it says newgrounds uses over 500 words. It lists them and everything but cant seem to find all those keywords in the newgrounds source.

Keyword Method Posted May 13th, 2007 in Programming

I was taking a look at the source for Newgrounds and i cant seem to find thier keywords. Where are they located or what method do they use?

Response to: Php Help For Advertising Spot Posted May 13th, 2007 in Programming

Well i guess just so you guys should know i got someone to do it. IDIOTS!

Php Help For Advertising Spot Posted May 12th, 2007 in Programming

I need my forums to be finished (they have been custom built so far) and i dont have any money so all i can offer is a spot for advertising on the site. The url is www.toon-workshop.net. The site is not finished yet and wont be until the forums are done. The other guy quit out becuase of school and left me with a forum that does work. So anyone who is interested add me to msn cc-chris-chase@hotmail.com

Response to: (PHP) How would i fix... Posted April 30th, 2007 in Programming

Is there a way to get rid of it?

(PHP) How would i fix... Posted April 30th, 2007 in Programming

Undefined index: HTTP_X_FORWARDED_FOR in /home/chrimail/public_html/counter_config.php on line 8

Heres the script:

<?php
$connect = mysql_connect( 'localhost', 'username', 'password' ) or die(mysql_error()); // Connect to MySQL.

mysql_select_db( 'database' ); // Select the database.

function _ip( )
{
return ( preg_match( "/^([d]{1,3}).([d]{1,3}).([d]{1,3}).([d]{1,3}
)$/", $_SERVER['HTTP_X_FORWARDED_FOR'] ) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR'] );
}

$ip = _ip(); // Get the users IP using the function above
$time = date( 'd-m-Y' ); // Get the current date, in the format of: 12-12-2006
$timestamp = time();
?>

Response to: NEW ART CONTEST LOL FALLOPIAN TUBES Posted April 21st, 2007 in NG News

When does this contest end?

Response to: Creating 3D Stuff Posted April 10th, 2007 in Game Development

hey people make mistakes. thanks for the help though guys!

Response to: Creating 3D Stuff Posted April 9th, 2007 in Game Development

im not looking for great 3D looking things. Just 3D models with outlines like the castle. Ive seen that effect alot but i know its not Swift 3D

Creating 3D Stuff Posted April 9th, 2007 in Game Development

What program would i use if i wanted to animated a 3d object like in INDESTRUCTOTANK! when the camera starts inside the castle andmoves out?

Response to: Ragdoll Posted April 6th, 2007 in Game Development

thanks.

Response to: Ragdoll Posted April 6th, 2007 in Game Development

ive made the gravity work......just i need him to go limp.

Response to: Ragdoll Posted April 6th, 2007 in Game Development

Refresh my memory please! Did i ask someone to post here to tell me they didnt have something or they did? cuz i could have sworn i asked for someone who did.

Ragdoll Posted April 6th, 2007 in Game Development

Can anyone send me a link that will show me how to make a ragdoll or would anybody be willing to do it for me?

Response to: Flash Using Php And Javascript Posted March 26th, 2007 in Programming

i don tknow why it just did that on another subject but thanks guys.

Flash Using Php And Javascript Posted March 26th, 2007 in Programming

How would i go about making a flash voting thing like on the submissions pages send info to the voting page?

Response to: PHP help Posted March 25th, 2007 in Programming

thanks for the help.

PHP help Posted March 25th, 2007 in Programming

im using this function to grab the last entry in the db:

mysql_query("SELECT * FROM `toons` ORDER BY `toons`.`id` DESC LIMIT 1");

how would i use it to select the second last entry into the db?

Javascript & PHP Posted March 21st, 2007 in Programming

I am getting javascript errors when i click the images i have linked to javascript functions. Can anyone tell me whats wrong? The way i link them is:

javascript:viewsub();

and then heres what i have in the header:

<script language="javascript" type="text/javascript">
//<!--
function rules()
{
window.open ("rules.php","rules","width=448,height=211,lo cation=0,menubar=0,resizable=0,scrollbars=1,s tatus=1,titlebar=0,toolbar=0");
function viewsub()
{
window.open('window.php?id=<?php echo($id); ?>&type=<?php echo($type); ?>','mywindow','width=<?php echo($width); ?>,height=<?php echo($height); ?>,location=0,menubar=0,resizable=1,scrollbar s=1,status=1,titlebar=0,toolbar=0,hotkeys=0')
;
}
function tellafriend()
{
window.open ("tellafriend.php","tellafriend","width=448,h eight=211,location=0,menubar=0,resizable=0,sc rollbars=0,status=1,titlebar=0,toolbar=0");
}
function suggestacollection()
{
window.open ("suggestacollection.php","suggestacollection ","width=448,height=211,location=0,menubar=0,
resizable=0,scrollbars=0,status=1,titlebar=0,
toolbar=0");
}
-->
</script>

Response to: password security Posted March 20th, 2007 in Programming

make sure that script doesnt use any variables with the same name any variables on the main page might have.

Response to: Actionscript MC Help Posted February 20th, 2007 in Game Development

but it didnt work.

Response to: Actionscript MC Help Posted February 20th, 2007 in Game Development

lol thanks for the script.

Actionscript MC Help Posted February 20th, 2007 in Game Development

I have an flash that uses different cursors. The cursors are mc's. I need the MC with the instance name "_map" to get bigger by 25 px each time the mouse is clicked with the cursor called cursor_mc1 and smaller by 25 px when clicked with cursor_mc2. What actionscript do i need to do that.

Browser Addons Posted February 15th, 2007 in Programming

Does anybody know what language is used to create a browser addon such as the google searchbar that you can add to your browser window?

Response to: (php) Problem With Files Posted February 6th, 2007 in Programming

its a realy long script i hope your ready for it!

<?
session_start();
mysql_connect("localhost", "username", "password") or die(mysql_error());
mysql_select_db("db_content") or die(mysql_error());
$name1 = $_POST['name'];
$comments1 = $_POST['comments'];
$small_des1 = $_POST['small_des'];
$genre = $_POST['genre'];
$tos = $_POST['tos'];
$user = $_SESSION['s_username'];
$num = 1;
$date = getdate();
$sub_date = $date['month']." ".$date['mday']." ".$date['year'];
srand ((double) microtime( )*1000000);
$random_number = rand( );

$name = htmlspecialchars($name1 , ENT_QUOTES);
$comments = htmlspecialchars($comments1 , ENT_QUOTES);
$small_des = htmlspecialchars($small_des1 , ENT_QUOTES);

$rand_name = $random_number."".$name.".mp3";
$rand_avatar = $random_number."".$name.".gif";
$file_link = "/portal/uploads/mp3_music/".$rand_name;
$avatar_link = "/portal/uploads/avatars/".$rand_avatar;

echo("<link rel='stylesheet' type='text/css' href='/main_style.css' />");
echo("<center>");

if($_SESSION['s_logged_n'] == 'true'){
$sql_check = mysql_query("SELECT * FROM `music` WHERE `name`='$name'");
$check = mysql_num_rows($sql_check);
if(($check > 0)){
echo("Name already taken. Please go back and rename.");
exit();
} else if ($name == "") {
echo("No name given. Please go back and give your music a name.");
exit();
} else if ($comments == "") {
echo("Please add a comment to your music.");
exit();
} else if ($small_des == "") {
echo("Please add a small description to your music.");
exit();
} else if ($tos == "") {
echo("Please tick our portal submission terms.");
exit();
} else {
$filename = basename($_FILES['uploadedfile']['name']);
$ext = substr($filename, strrpos($filename, '.') + 1);
if ($ext == "mp3") {
if ($_FILES['uploadedfile']['size'] > 1024*1024*5) {
echo("File size is too big to upload.");
exit();
}
if ($_FILES['avatar']['type'] == "image/gif" && $_FILES['avatar']['size'] < 1024*20) {
copy ($_FILES['avatar']['tmp_name'], "/home/site/public_html/portal/uploads/avatar s/".$rand_avatar)
or die ("Could not upload image. Try again.");
} else {
echo("Error with image. Please use GIF only and check the file size is not over 20KB.");
unlink("uploads/avatars/".$rand_avatar);
exit();
}
list($width, $height) = getimagesize("uploads/avatars/".$rand_avatar)
;
if ($width > 50 || $width < 50 || $height > 50 || $height < 50) {
echo ("Avatar image is larger than 50px by 50px please go back and change this.");
unlink("uploads/avatars/".$rand_avatar);
exit();
}
copy ($_FILES['uploadedfile']['tmp_name'], "/home/site/public_html/portal/uploads/mp3_mu sic/".$rand_name)
or die ("Could not upload music. Try again.");
mysql_query("INSERT INTO `music` (`id`, `name`, `file_link`, `comments`, `avatar_link`, `user`, `small_des`, `genre`, `score_total`, `num_votes`, `sub_date`) VALUES ('', '$name', '$file_link', '$comments', '$avatar_link', '$user', '$small_des', '$genre', '2', '0', '$sub_date');");
$r = mysql_query("SELECT * FROM `music` WHERE `name` = '$name'");
$s = mysql_fetch_array($r);
$id = $s['id'];
mysql_select_db("db_login") or die(mysql_error());
$query = mysql_query("SELECT * FROM `users` WHERE `username` = '$user'");
$y = mysql_fetch_array($query);
$numb = $y['subs'];
$new_num = $numb + $num;
mysql_query("UPDATE `users` SET subs='$new_num' WHERE username='$user'");
echo("File uploaded successfully. Click here to view.");
} else {
echo "Wrong filetype! Please try again.";
exit();
}
}
} else {
header("Location: /user/login.php");
}

echo("</center>");
?>

(php) Problem With Files Posted February 6th, 2007 in Programming

my script has a max upload size of 5mb. But it keeps giving a copying error for files over 2mb. We tried the move file function instead of copying and that doesnt work for larger files either. So wuts the problem?

Response to: Chatroom Posted February 4th, 2007 in Programming

thanks man.