Jump to content
xisto Community

Mike

Members
  • Content Count

    175
  • Joined

  • Last visited

Everything posted by Mike

  1. Hey karlo... I just took a look at the code for your shoutbox. It looks pretty nice! I seriously like it.
  2. I was suspended last night. When I was suspended, however, I had 1 (positive) hosting credit. I brought it up to 4 (which I still have right now) and I am still suspended! I know that I didn't break the ToS or anything... I mean, this is really bad for me because I'm coding my own message board source code and I really need to get some files up. :-(
  3. Yes. You have to be as cool as whyme and have a reputation of 10 points to be a mod. Heh, I'm pretty used to this administrative thing and they are correct. In order to be even CONSIDERED as a moderator at a site, you must be an active contributor and be pretty helpful with no bad history. Posting doesn't make you fit for the position; your history on the site does. If you have ever received a negative reputation point, chances are that you won't be chosen. :-( * has not viewed your reputation*. But that's just coming from a normal user. So you don't have to listen to what I actually type. >_>
  4. Hmm.. I'm currently coding my own source code of message boards. You may find them here: http://forums.xisto.com/no_longer_exists/ . I've been working on it for about.. 3-5 days now and the average time it takes me to code a file is about 6 minutes. The adminstrative file 'new_board.php' which allows you to create a new board or category that will appear on the index (or be hidden) took me EXACTLY 6 minutes to code and it was a pretty lengthy file. I think I've been reading my PHP 5 and MySQL book a little too much. >_>;
  5. I personally think that the Invision Power Board is MUCH better than phpBB. Although phpBB is pretty nice, IPB has more features. A better administrative feature, better posting features and profile features.. etc. I don't know.. The newest version of phpBB looks really nice. But I'd have to go with IPB on this one.
  6. No, I set it a looooong time ago and it I parked it right when I set it. I don't know, it wouldn't work at all last night but it seems to be alright for now.
  7. My site is http://forums.xisto.com/no_longer_exists/, I set the servers in GoDaddy for my domain to ns1.trap17.com and ns2.trap17.comEvery time I try to go to a directory on the site (for example, /boards) I always get a 500 error. I keep getting it and even got it when trying to log into my cPanel. It's extremely annoying! Can somebody please tell me why I get these errors?
  8. Yes, if you use sessions, session_start() must be on the top of each page; before the <html> tag even! For cookies, it would be setcookie('COOKIENAME', COOKIEVALUE, COOKIELIFETIME'). I think that it is because when you post <html><head> it sends an automatic cookie from the site you are on.
  9. I like that site that you posted, whyme. Except, some of those things can be easily created by yourself. A quiz, for example, is extremely easy to create by yourself. Also, I've never seen that small script before, whoever posted it (FaLgOr?). If I want to do something like that, (I did this on my site) I'd make a page with an index to all of the things. Say it was named 'games.php'. Then it would change to view_game.php?id=GAMEID. On view_game.php would be this: $game = $_GET['game'];$query=mysql_query("SELECT title,link FROM games WHERE id='$game'");while($row=mysql_fetch_row($query)) echo '<h2>'.$row[0].'</h2><br /><br /><embed src="'.$row[1].'" heigh="600" width="340"></embed>';
  10. What kind of scripts are you looking for. I'm a programmer and I create tons of scripts. I'd be happy to code something for you, that is, if you cannot already code it yourself. I could code virtually anything that your mind thinks up. I'm really bored right now so I'm going to go code some pointless script that I probably won't even use. Later. >_>
  11. Dude, chill out. I think it would be better to use my code since it's easier to understand (most likely) than your file is. I have a file as well. Two actually, one is the actual blog; the other is view_blog.php . It switches to view_blog.php?user=USERIDOFUSER . So each user on my site gets their own blog. Wait, where can I download your file though.. I want to check it out. I'll give you feedback. BTW- Did my code work?
  12. Oh wait, does somebody need help with cookies? I'm good with cookies.. IF you want to make a login thing with cookies.. Put this at the top of your page before the <html> tag. <?phpif(isset($_POST['LOGINBUTTONAME'])) {if(mysql_num_rows(mysql_query("SELECT USERNAMESQLFIELD,PASSWORDSQLFIELD FROM USERSTABLENAME")) == 0) {echo '<b>Invalid password/username combination.</b>';} else {setcookie('username', $_POST['username'], time()+999999);setcookie('password', $_POST['password'], time()+999999);echo '<b>You have logged in as '.$_POST['username'].'. Return to the <a href="LINKTOINDEX">index</a>.</b>';}}?> That will work, but uh.. It uses cookies and stuff. To get rid of the cookies you'd make a file named login.php and put this at the top: <?phpsetcookie('username', null, time()+0);setcookie('password', null, time()+0);echo '<b>You have been logged out. Feel free to do whatever you want.</b>';?>
  13. Nice tutorial, dude. I knew how to do this already, but it was very informative about how to do it, for people that didn't know how. I'm writing my own message board source code and I'm using sessions rather than cookies. But I have a question.. If I wanted something to show up only if the $_SESSION['username'] is TRUE, then would it look like this: <?phpif($_SESSION['username'] = TRUE){echo '<a href="javascript: history( go -1 )">Back</a>';} elseif($_SESSION['username'] = FALSE){echo '<b>Log in plz</b>';}?> ? Of course, that is not what I'm putting on the site, that's just an example.
  14. Ah, that's the exploit my friend was telling me about? He was breaking into admin accounts on phpBB and I'm like, dude, wtf? And he was like, I'm a 1337 hax. >_> But I knew he was lying and that there was some kinda of exploit behind it. ~_~ That fake hacker.
  15. Hmm.. You could always use one of the blog things in the cPanel but if you want to make one from scratch, I could help you. I made one from scratch for my site. <?phpmysql_connect('localhost,'DBUSER','DBPASS');mysql_select_db('DBNAME');?><html><head><title>My Blog</title></head><body bgcolor="#999999"><font color="black"><body><table border=".01"><tr bgcolor="#373737"><td align="center" colspan="10"><b><i>RETURN TO:</i> [LINKS TO OTHER PLACES</b></td></tr><form action="<?=$_SERVER['PHP_SELF']?>" method="POST"><tr bgcolor="black"><td><b><font color="white">Entry Title:</font></b></td><td><input type="text" name="blog_title" /></td></tr><tr bgcolor="white"><td><b>Entry Date:</b></td><td><input type="text" name="blog_date" /></td></tr><tr bgcolor="black"><td><b><font color="white">Current Mood:</font></b></td></td><td><input type="text" name="blog_mood" /></td></tr.<tr bgcolor="white"><td><b>Blog Entry:</b></td><td><textarea name="blog" rows="15" cols="30"></textarea></td></tr><tr bgcolor="black"><td><input type="submit" name="new_entry" value="Submit Entry!" /></td><td><input type="reset" value="Reset" /></td></tr></form></table><?phpif(isset($_POST['new_entry'])) {mysql_query("INSERT INTO blog SET title='{$_POST['blog_title']}',date='{$_POST['blog_date']}',mood='{$_POST['blog_mood']}',entry='{$_POST['blog']}'") or die(mysql_error());echo '<tr bgcolor="red" colspan="10"><td><b><font color="blue">Entry submitted.</font></b></td></tr>';} else {echo '';}?></body></font></font></html>SAVE THAT FILE AS blog.php--MySQL--CREATE TABLE `blog` ( `id` int(10) NOT NULL auto_increment, `title` varchar(255) NOT NULL default '', `date` varchar(255) NOT NULL default '', `mood` varchar(255) NOT NULL default '', `entry` text NOT NULL default '', PRIMARY KEY(`id`)) TYPE=MyISAM;TO POST THE BLOG ENTRIES ON YOUR SITE<?phpmysql_connect('localhost','DBUSER','DBPASS');mysql_select_db('DBNAME');$query=mysql_query("SELECT title,date,mood,entry FROM blog ORDER BY id DESC");while($row=mysql_fetch_row($query)) echo '<table border=".01" align="center"><tr><td><b><big>'.$row[0].'</big></b></td></tr><tr><td><b>Mood:</b> '.$row[2].'</td></tr><tr><td>'.$row[3].'</td></tr><tr><td>---------------<br /><small><b>Posted On:</b> '.$row[1].'</small></td></tr></table>';?>^^PUT THAT ON THE PAGE YOU WANT THE ENTRIES TO SHOW UP ON You should edit the bgcolors/colors because I made that in case your site did not run on a CSS. if it did, include this under <head> <link rel="stylesheet" type="text" href="STYLESHEETNAME.css" /> then edit the tables and <font color>s and <body bgcolor> and <tr bgcolor> tags.
  16. Whoamg, very informative! Yeah, I guess my horrible dial-up connection can actually be good for some things; switching to a different IP when I'm IP Banned at places. Not that I'm IP Banned anywhere..>_>; That IP address you posted it so awesome; it's our homepage! And here's something else that you all probably know, if you want someone's IP Addressed displayed on a page with a message you could do this: <?php$ip = $_SERVER['REMOTE_ADDR'];$msg = "Muahahahahaha! I have your IP Address! <b>'.$ip.'</b>";echo '$msg';?>
  17. Wow, google.. Screwed up. I never thought it would happen. >_> Topic Creator, what was the name of the virus that your computer got infected with? I'm just curious and I was searching google and you see, my username everywhere else is 'Helljumper', right? I searched 'Helljumper' in google and it came up with my GameFAQs recognition page and my name:Mike "Helljumper" FratelloO_O; Evil Googlebots!
  18. Yeah dude, err.. DungeoN, I don't mean to be rude or anything but most of the users at Xisto speak English. So it would be nice for you to make a topic asking 'Does anybody here speak Russian?' in English and then INSIDE the topic, post some Russian. Well, that's just what I would do. :-)
  19. Mike

    Help

    Hmm.. Is there any way that you can get the page to refresh in a pre-determined amount of time?
  20. Hmm.. I could probably do one but mine would include HTML... SQL CREATE TABLE `businesses` ( `id` int(10) NOT NULL auto_increment, `business` varchar(255) NOT NULL default '', `description` text NOT NULL default '', `emailaddress` varchar(255) NOT NULL default '', PRIMARY KEY(`id`) ) TYPE=MyISAM; PHP/HTML <html> <head> <title>Businesses</title> </head> <body> <center> <table border=".01" align="center"> <tr bgcolor="#D0D0D0"> <td><b>ID</b></td> <td><b>Business</b></td> </tr> <?php $query=mysql_query("SELECT id,business FROM businesses ORDER BY id ASC"); while($row=mysql_fetch_row($query)) echo '<tr bgcolor="#E0E0E0"><td><a href="http://forums.xisto.com/no_longer_exists/[0].'">'.$row[0].'</a></td><td>'.$row[1].'</td></tr></table>'; ?> </body> </html> --SAVE AS businesses.php-- PHP/HTML FOR show_business.php <?php $business = $_GET['business']; ?> <html> <head> <title>Show Business</title> </head> <body> <table border=".01"> <tr bgcolor="#D0D0D0"> <td><B>Business</b></td> <td><b>Description</b></td> <td><b>E-Mail Address</b></td> </tr> <?php $query=mysql_query("SELECT business,description,emailaddress FROM businesses WHERE id='$business'"); while($row=mysql_fetch_row($query)) echo '<tr bgcolor="#E0E0E0"><td>'.$row[0].'</td><td>'.$row[1].'</td><td><a href="mailto:'.$row[2].'">'.$row[2].'</a></td></tr></table>'; ?> </body> </html> --SAVE AS show_business.php-- --PHP FOR new_business.php-- <html> <head> <title>New Business</title> </head> <body> <form action="<?=$_SERVER['PHP_SELF']?>" method="POST"> <table border=".01" align="center"> <tr> <td><B>Business Name:</b></td> <td><input type="text" name="business_name" /></td> </tr> <tr> <td><b>Business Description:</b></td> <td><textarea name="business_desc" rows="15" cols="20"></textarea></td> </tr> <tr> <td><b>E-Mail Address:</b></td> <td><input type="text" name="business_email" /></td> </tr> <tr> <td><input type="submit" name="add" value="Add!" /></td> <td><input type="reset" value="Reset" /></td> </tr> </table> </form> <?php if(isset($_POST['add'])) { mysql_query("INSERT INTO businesses SET business='{$_POST['business_name']}',description='{$_POST['business_desc']}',emailaddress='{$_POST['business_email']}'") or die(mysql_error()); echo '<tr bgcolor="red"><td><b>Business added.</b></td></tr>'; } else { echo ''; } ?> </body> </html> --SAVE AS new_business.php--
  21. Ah, this topic was meant for you to post the script that would make a 'trembling message'? The title mislead me. :-/ I thought you received a trembling message from one of the users or was like harassed or something. Anyways..*goes back to Lurking*>_>
  22. I'm not really into PDAs since I'm always on the computer and that does everything for me. Meh, the PDA looks pretty nice though. It's an ideal tool that you can use when you are 'on-the-go'. I have a PDA but it isn't really all high-tech, it's just this small thing that costed less than 20 bucks. I mean, it did everything that I think a PDA should do; store data, have a built-in calculator, and have some of those random fun games. >_> Falling Numbers rocks.
  23. Hey uh.. bjrn, is that JavaScript? Also, what's up with that a href='#' thing? I mean, why is it '#' and not just ''? Sorry Amezis, I don't mean to take over your topic. >_>
  24. Well, I know some code for MySQL that helps you list everything that is select by the query. I mean, so you don't have to use multiple queries. You would do this: $query=mysql_query(QUERYGOESHERE);while($row=mysql_fetch_row($query)) echo 'WHATYOUWANTTOECHO; THE ROWS SELECT BY THE QUERY'; Here is something that I made using the SQLoops (while()) $query=mysql_query("SELECT username,realname,age,location,essay FROM mod_apps WHERE status='Approved'");while($row=mysql_fetch_row($query)) echo '<tr ',shade(),'><td>'.$row[0].'</td><td>'.$row[1].'</td><td>'.$row[2].'</td><td>'.$row[3].'</td><td>'.$row[4].'</td></tr>'; It listed every users mod app that was in the database whos status was 'Approved'.
  25. Hmm.. Interesting. Like I said before, I like the idea of using an Image Map since it would turn out the nicest. However, I find the part where you have to set the coordinates of the map confusing. >_< I guess I'll just stick to using '<a href="pagething"><img src="imglink"></img></a>'>_>
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.