Be a Supporter!
Response to: Wordwrap (PHP) Posted September 27th, 2007 in Programming

uhhhh thanks......ill let you know how it goes when i figure it all out......

Wordwrap (PHP) Posted September 26th, 2007 in Programming

ok i use a wordwrap in my forums, and it works pretty good, until they use signs like # and %. I set the limit for wordwrap to 90 and it works fine for all chars except those two. Is there a way to stop long words and not just so many words per line? If i lower the number for the wordwrap anymore the forums start to look stupid.

Response to: Best way for last visit Posted September 23rd, 2007 in Programming

set a session or cookie that will be stored with the user to say when thier last visit was, and then when they visit replace it with the current date or create the cookie if one isnt there after displaying it so there next visit will display the last set one and so on and so on.

Response to: Little Help With Some Php Posted September 21st, 2007 in Programming

im not sure if its supposed to be there or not but theres a period infront of your = sign on the last line.

Response to: Rss Feeds And Php 2 Posted September 14th, 2007 in Programming

im trying to integrate php into the rss feed so that it is automaticly updated.

Rss Feeds And Php 2 Posted September 13th, 2007 in Programming

Ok right now I have an XML file which will be displaying my feeds. I have it all setup fine but when I try to add php to it the damn thing keeps giving me errors. All the tutorials are basicly the same so pointing me to one probly wont help.

Heres the xml file im using www.toon-workshop.net/rss/index.xml

Can you please help me get this damn thing going.

Response to: Rss Feeds And Php Posted September 13th, 2007 in Game Development

ok im fucking dumb can someone move this topic to the programing forum! XD

Rss Feeds And Php Posted September 13th, 2007 in Game Development

Ok right now I have an XML file which will be displaying my feeds. I have it all setup fine but when I try to add php to it the damn thing keeps giving me errors. All the tutorials are basicly the same so pointing me to one probly wont help.

Heres the xml file im using www.toon-workshop.net/rss/index.xml

Can you please help me get this damn thing going.

Response to: Bbcode (php) Posted September 13th, 2007 in Programming

still nothing heres the link http://www.toon-workshop.net/forums/topi c.php?id=770

Bbcode (php) Posted September 13th, 2007 in Programming

The code below wont replace the quote tags that are in the bodies of text, I cant figure out why. I dont get errors or anything.

$bb_replace2 = array ('/(\[[quote]\])(.+)(\[\/[quote]\])/');
$bb_replacements2 = array ('<div class="quote">\\2"</div>');
$newrepbody = preg_replace($bb_replace2, $bb_replacements2, $newrepbody);
print $newrepbody;

Response to: NG Intro Posted September 9th, 2007 in Game Development

all searches came to a big nothing for me.

NG Intro Posted September 9th, 2007 in Game Development

Hi I was just wondering where I can get the intro for newgrounds thats on Metropolis Circuit.

Response to: icons (PHP) Posted September 6th, 2007 in Programming

Ok first off i remade the code, its simpler and more effective......or it would be if i could get it to work. The problem is, that it wont display the images at all. I have even echoed the vars that held the numbers to make sure they were being created, but heres the new code, I just need to know whats wrong:

<?php
$tocheckrep = mysql_query("SELECT * FROM topics WHERE tid = '$topic[id]' ORDER BY pos DESC LIMIT 1")or die("CCE: ".mysql_error());
$lastchckrep = mysql_fetch_array($tocheckrep);
$check_last_rep = $lastchckrep['pos'];
$curr_date = date("ymdgis");
if (isset($_SESSION['TW_forum_second'])){
$did = 'no';
}
if (!isset($did)){
$_SESSION['TW_forum_second'] = $curr_date;
}
$curr_sess = $_SESSION['TW_forum_second'];
if ($check_last_rep > $curr_sess) {
echo ('<img src="icons/new.png">');
}
if ($check_last_rep > $curr_sess) {
echo ('<img src="icons/default.png">');
}
if ($topic[is] == "lock"){
echo '<img src="icons/locked.png">';
}
?>

icons (PHP) Posted September 3rd, 2007 in Programming

Right now im building my own forums, and im having trouble getting an image to display if the user hasnt been to the forums before or if theres a new post since there last visit. Here what I have so far:

<?php
$tocheckrep = mysql_query("SELECT * FROM topics WHERE tid = '$topic[id]' ORDER BY id DESC LIMIT 1")or die("CCE: ".mysql_erorr());
$lastchckrep = mysql_fetch_array($tocheckrep);
$check_last_rep = $lastchckrep['pos'];
if (isset($_SESSION['TW_forum_second'])){
$check_cookie_var_now = $_SESSION['TW_forum_second'];
//start of inside
if ($did!='no' && $topic[is] != "lock" && $check_cookie_var_now<$check_last_rep){
echo ('<img src="icons/default.png">');
}
if($did!='no' && $topic[is] != "lock" && $check_cookie_var_now>$check_last_rep){
$_SESSION['TW_forum_second'] = date("ymdgis");
echo ('<img src="icons/new.png">');
$did = 'no';
}
if ($topic[is] == "lock"){
echo("<img src='icons/locked.png'>");
}
//end of the inside
}
if(!isset($_SESSION['TW_forum_second']) && $topic[is] != "lock"){
$_SESSION['TW_forum_second'] = date("ymdgis");
echo ('<img src="icons/new.png">');
$did = 'no';
}
?>

Psacing (PHP) Posted August 24th, 2007 in Programming

How do u add a space into a body of text after a certain ammount of characters? or like after a certain ammount of characters on one line.

Response to: Copy To Var (php) Posted August 20th, 2007 in Programming

ok that worked and all but i dont really know how to explain this.

This is for a forum, and when a user puts [link]www.website.com[/link] i need that to turn into a link to whatever url they put inbetween, so if i have an array i wont be able to tell how many links they put in.

Response to: Copy To Var (php) Posted August 20th, 2007 in Programming

ok well that worked for the first part of it and then im left with something[/link]

Response to: Copy To Var (php) Posted August 20th, 2007 in Programming

ok thanks alot man!

Copy To Var (php) Posted August 20th, 2007 in Programming

Is there a way to copy whwats inbetween [link]something[/link] into a variable?

Response to: stolen! Posted July 30th, 2007 in Game Development

were defending ourselves so cram it.

Response to: stolen! Posted July 30th, 2007 in Game Development

dont lie about your age along with your graphics. face it your still learning. So keep learning and when your better make another idea.

Response to: stolen! Posted July 30th, 2007 in Game Development

too late now, he acted his age so were continuing without him.

Response to: stolen! Posted July 30th, 2007 in Game Development

Actually he got mad becuase his skills werent up to our so we agreed to just let him lead us. We were doing find until hwanted to do some art and then he started telling everyone that they were fired. So since we redid the entire game (including scrpts) we decided to keep working and he could go and do his own thing still. He's a lil 12 year old brat.

Response to: Javascript Validation Problems Posted July 24th, 2007 in Programming

but it didnt work.....

Response to: Javascript Validation Problems Posted July 24th, 2007 in Programming

thanks

Javascript Validation Problems Posted July 24th, 2007 in Programming

this is the code i have:

<form id="form1" name="form1" method="post" action="cool.php">
<textarea name="textarea"></textarea>
<input type="submit" name="Submit" value="Submit" onmousedown="var x=window.confirm('Are you sure you are ok?')
if (x)

" />
</form>

i need to know how to make the javascript go to the url in the action part of the form when someone click ok.


I have a forum that somebody started and he all of a sudden dissapeared along with his website and all. So I need somebody to finish the job he started and also fix the bugs that are there. The forums are located at www.toon-workshop.net/forums/ You can have an advertisement spot on any part of the site you want for a year.

Response to: Firefox & Flash Problem Posted June 21st, 2007 in Game Development

its not that the problem is so much for me but for people that use firefox. I want to make the site browser friendly.

Firefox & Flash Problem Posted June 21st, 2007 in Game Development

Im having a problem getting a flash player that i made to load music files from my site in firefox but it works in Internt Explorer. Check out http://www.toon-workshop.net/portal/view.php?
type=music&id=1 and click listen to music.

Response to: Flash And Firefox Posted June 21st, 2007 in Programming

see i dont know if its an actionscript problem or a problem with the way the site is....