Jump to content
MakeWebGames

bluegman991

Members
  • Posts

    394
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by bluegman991

  1. basically in this thread i want people to tell me interesting things you have - found out about php - wondered about php - wondered if was possible in php - accidentally found out about php - wondered and figured out about php by own means if possible tell how you found this out ill start out ive always wondered how many times php looped through a while statement per second i found out (on my server) it goes on average 1.8million times per second i found it out through this function $i=0; $loadtime=time(); $istrue=0; while($istrue==0) { if(time()==$loadtime+1) { $istrue=1; while(time()==$loadtime+1) { $i++; } } } echo $i.' times';
  2. well idk if it doesnt work in any other browser but its not working in google chrome i have it set in my settings and ive tried clicking the go advanced by the way its in the bottom right corner next to the submit button
  3. and about the new posts being reported i dont think that was wbb. if you go backward in your history or move around mainly by navigation (clicking on links) sometimes instead of going to the server and getting all of the data/info over again the browser will just put what it showed last time this is why when your editing your own web server you will find that you have to refresh images,css,javascript pages to get the updated content so a simple refresh should have fixed that
  4. weird i never had any of these problems except the crashing but someone did something and it all in all stopped crashing on the other side a new theme and or layout is definitely what this place needs and also a rich text editor but if they want the members to do it then they are gonna have to setup some interface to test the layout and theme
  5. lol all the themes here are ugly... make a new theme a theme that actually looks good a theme/template that looks like another site does not have it a theme where navigation pops out so you know where ur at without having to strain your eyes a template where the rich text area actually works the 2 themes that came with this software are the worst u should definitely make/download/buy better themes and templates i really liked wbb its like a 1 in a million forum
  6. yea i dont see a theme i like here i think a theme should be made to look just like the old one. as it was very easy to navigate. it just seems like this new engine has things scattered all over also the portal is like a must do
  7. i liked it so much better before the structure and look was the main reason i liked this forum some (probably all) can be added/changed - because it was easy on the eyes - you could easily tell 1 thing from the other (especially posts) (probably because evrything is pretty much the same color) - liked avatars showing in posts - liked the portal - liked rich text editor
  8. wtf u guys must play like 24/7 i get like 1 prestige every 2-4 months then again i only play 1-3 times a week but even when i used to play every day it would take me about 2 weeks to prestige once
  9. since text shadows can be done in html u should just put the plain button up
  10. just downloaded it yesterday and played with it a little. seems pretty great so far   i can see this to become a widely used program seeing all of the things it can do and all of the systems and languages it can compile to (android,iphone,windows,mac,xbox360,ps3,wii,javascript,C# and probably more) gonna do a/some tut's today to learn somethings i havent already learned yet (mostly the coding)
  11. gonna check that out now then it says i need windows xp sp2 or later im using vista so dont know if it means xp only or xp and any windows os after xp im gonna download and try it anyway tho see if it works
  12. dang i'm just starting to learn java :( after i learned enough i was planning to get a couple of people to help and start making a 3d game that i thought of seeing that it would probably take a couple of years (maybe less depending on who and how many people i have helping) to do that do you think java would still be supported by the main os's (linux,windows,mac) by then?
  13. nope never heard of any others... found about yui a little later (after i started using jquery) but i dont really care much for yahoo so never tried it
  14. i was a raw javascript user but i got fed up with trying to make everything cross browser compatible so about a month ago i have switched to jquery. it took no more than a week to get use to but it is very useful
  15. mwg's bbcode parser is messing up the input and output of my code so you will have to download the zip in my original thread
  16. well i cant tell you where cuz i dont know how that page looks but instead of using preferences.php you could delete that and use a mod i made a while ago account.php
  17. firstly i would stop people from using names already in use like this   if($db->num_rows($db->query("SELECT `userid` FROM `users` WHERE `username`='$_POST[username]'"))){die('username already in use');}   second if you dont want people to have "admin" in there name u should do it something like this   if(substr_count($_POST['username'],'admin')){die('Admin is not allowed in your name');}
  18. 1 piece of this object is 3d... that whole thing actually could be made in photoshop in a couple of minutes
  19. i have a question about visual basic and its windows only compatibility thing before i learn more about the language so visual basic all in all (c#,c++,asp,.net,etc...) after compiled does it only work on windos os's? or is only 1 of them a windows only thing? and if i were to make an app,2d,3d game with any language would i have to use a diff language for diff os's (windows,mac,linux) or would i only have to use 1 language but have access to the different os's to make it compatible ^basically im asking is it like javascript... with the different browsers having different functions to do the same/different things
  20. just store it in database add another field to the user table called forum_liked when the vote update users set forum_liked=concat(',$forumvotedon') WHERE userid=$userid then if they try to vote again... if (in_array($thisforumid,$ir[forum_liked])) echo you already voted here ^^ warning that is not the exact code to use its just so you can get an idea of what to do
  21. causes of this problem will be either creating a row with the id being set to a custom value rather than being left blank. after the row was created the new auto increment value was set to that row id +1 or at one time user id 1-200 existed or still does exist (Tip deleting rows at the end of the table will not set the auto increment value to the last/highest id.) (Tip when inserting new rows mysql will not automatically fill in missing rows. You will have to do this yourself... If you want it done.) first be sure you have the id field set as an auto increment after you have confirmed that the field is auto increment you can go into phpmyadmin > yourtable > edit: id field from there you can edit the auto increment value whatever value it is on will be the id of the next row created
  22. $Auction = $db->query("SELECT `ID`,`SellerID`,`ItemID`,`CurrentBid`,`Time`,`TimeLeft` FROM `gAuction` WHERE (`Time` - ".time()." + `TimeLeft` < 1)"); while($Auction2 = $db->fetch_row($Auction)) { $AuctionBids = $db->query("SELECT `ID`,`aID`,`BidderID`,`CurrentBid2` FROM `gAuctionBids` WHERE (`aID` = ".$Auction2['ID'].")"); $atime = $Auction2['Time'] - time() + $Auction2['TimeLeft']; if($atime < 1 && !$db->num_rows($AuctionBids)) { event_add($Auction2['SellerID'],'Your auction finished without any bids.'); $db->query("INSERT INTO `inventory` VALUES ('',".$Auction2['ItemID'].",".$Auction2['SellerID'].",1)"); $db->query("DELETE FROM `gAuction` WHERE (`ID` = ".$Auction2['ID'].")"); } elseif($atime < 1 && $db->num_rows($AuctionBids)) { $AuctionBids = $db->fetch_row($AuctionBids); event_add($Auction2['SellerID'],'Your auction has finished, the maximum bid was $'.number_format($Auction2['CurrentBid']).''); event_add($AuctionBids['BidderID'], 'You\'ve won the auction!'); $db->query("UPDATE `users` SET `money` = `money` + ".abs(intval($Auction2['CurrentBid']))." WHERE (`userid` = ".$Auction2['SellerID'].")"); $db->query("INSERT INTO `inventory` VALUES ('',".$Auction2['ItemID'].",".$AuctionBids['BidderID'].",1)"); $db->query("DELETE FROM `gAuction` WHERE (`ID` = ".$Auction2['ID'].")"); $db->query("DELETE FROM `gAuctionBids` WHERE (`aID` = ".$Auction2['ID'].")"); } }   mainly what i found was instead of putting "$db->" you put "$db>" i also took out any unnecessary coding that was not needed for v2
  23. u will have to do it vie javascript add an id to the element were username is conatained eg:<span id="username">Username</span> can have a js function like this function changeUsername(newname) { document.getElementById('username').innerHTML=newname; }   then as the php code ad if(mysql_query(...)) { echo "<script>changeUsername('$newusername');</script>"; }
  24. echo date('M d, Y g:ia');
  25. i have no idea wtf javascript is if thos codes make you say 'hi' or 'one more try' or whatever
×
×
  • Create New...