
Haunted Dawg
Members-
Posts
2,933 -
Joined
-
Last visited
Never -
Days Won
1
Content Type
Profiles
Forums
Events
Everything posted by Haunted Dawg
-
Exp from leaving people not working
Haunted Dawg replied to EineyEntertainment's topic in General Discussion
Re: Exp from leaving people not working As karlos pointed out to you. If the member is level 1 it's going to be like 1 x 1 x 1 = ??? 1! Now we checking for a rand value 1 / 2 = 0; rand(0,1); Your ratio to getting 1 will be 50% ;) -
Re: Game Optimization No. Because if "update" is set then we must do the update, hence why i had put ses_update(); $_SESSION['update'] = 1;
-
Re: What FTP Client do you use? FireFTP is normaly free, it's a firefox addon, and that is the one i am using.
-
I've come to think of a way that a user can speed up there website by a ton. But if the member can not edit there session's which i hear is hard, then it's do able. $query = mysql_query("SELECT blah FROM users WHERE userid = x"); $query = mysql_fetch_assoc($query); Ok as you can see i have a complete normal SELECT query. $_SESSION['ir'] = $query; Now as you can see i am setting my session "ir" to the "query" array. To call this method. echo $_SESSION['ir']['blah']; Simple. But it can actualy save you a ton of resource ;). Why? Because on the login you run the query then use the session to call everything. Meaning, you do not have to select a ton of thing's per page load. Problem lies with the database updating. Now, since we actualy got a session of $query, it does not update all the time. So what we need to do now is make an updater. Every time you use a mysql query to update something in the database, which is alot, but not on every page load. You can simply use this: ses_update(); $_SESSION['update'] = 1; Add to your global_functions.php function ses_update() { if(isset($_SESSION['update'])) { if(isset($_SESSION['ir'])) { $query = mysql_query("SELECT blah FROM users WHERE userid = ".$_SESSION['ir']['userid']); $query = mysql_fetch_assoc($query); $_SESSION['ir'] = $query; unset($_SESSION['update']); } } return $_SESSION['ir']; } Now when you call out for example username: echo $_SESSION['ir']['username']; ETC, but i must still read up on editing $_SESSION[] data. don't post your hate mail here, send it to [email protected] thank's ;)
-
[Mccodes V2] How to get the users to fill up the ID's
Haunted Dawg replied to SpEcKs's topic in General Discussion
Re: [Mccodes V2] How to get the users to fill up the ID's My link i gave you on msn show you them briefly ;) -
Re: Paypal IPN. Secure? PayPal can't really disallow the user to edit the form's. Because if they do then it's left to the actual user adding the form. I read somewhere on paypal that they allow cURL to go to a certain link on there website where only port's can be entered. So no user can go in there and look at the payment's. But once you send a payment, it is inserted also into that list allowing cURL to go into that list according to there paypal name and see. How ever, you might think that you can change your paypal name. But i also read that on there that each paypal user recieves a generated KEY when signing up. It does not show you in at registration. But it show's you at the "Options" in paypal itself. Another form i read somewhere is to let your server actualy login to your paypal account and check if any new payment's have been made. But i have not read up on that since that one is dificult.
-
Re: Were does ppl host TBAB Hosting suck's. No offence intended. There is only one staff which is m5k. That's about it. He is on a dedicated server hosting over 250 website's. Majority of the website's are rpg game's. Sooner or later his bandwidth limit is going to run out or something going to happen. www.byethost.com limit's there server's to i think 25 - 50 people per server. Giving each user more allocated bandwidth. That's why there bandwidth is so high for such a low price. Plus not to mention there support line has improved alot.
-
Well, as we can all see and alot of you try to get into the brown name. I was wondering is there anything higher than brown? (I personally do not like brown) I found this http://criminalexistence.com/ceforums/i ... ion=groups But it does not show me the other groupie's :) So i was just wondering.
-
Re: Were does ppl host www.byethost.com is my recomendation.
-
Re: [help]voting tokens Vote Tokens: ".$ir['votingtoken']."
-
Re: where can i find these mods? Not for free you won't
-
[Mccodes V2] How to get the users to fill up the ID's
Haunted Dawg replied to SpEcKs's topic in General Discussion
Re: [Mccodes V2] How to get the users to fill up the ID's There is actualy a modification here on CE made by oxidati0n. It actualy use's old userid's. Because when you delete an ID that id get's inserted into a Table, at registration it check's for the ID and it asign's it to that player. How ever he can alway's set the auto increment to null. But if he has 1 Player 2 Player 4 Player And then it's like 8 row's deleted it should insert 1 Player 2 Player 4 Player 9 Player. With auto increment set to null it should be 1 Player 2 Player 4 Player 5 Player -
[Mccodes V2] How to get the users to fill up the ID's
Haunted Dawg replied to SpEcKs's topic in General Discussion
Re: [Mccodes V2] How to get the users to fill up the ID's DEFINE SELECT l.userid + 1 AS start, Min(fr.useridid) - 1 AS stop FROM users AS l LEFT OUTER JOIN users AS r ON l.userid = r.userid - 1 LEFT OUTER JOIN users AS fr ON l.userid < fr.userid WHERE r.userid IS NULL AND fr.userid IS NOT NULL GROUP BY l.userid, r.userid; Can define what it does u suppose. Left Outer Join.. now ive seen it all. LEFT INNER JOIN RIGHT JOIN INNER JOIN LEFT OUTER JOIN Couple other's. I suppose there are alot of "Joins" to the sql world eh. -
Re: BOE Engine I would say around $100 - $250, that's with bug fix's and update's for 1y.
-
Re: money_formatter on MCCODES V2 Was that directed at me or at who?
-
Re: Clickable images with mouseover. This here look's interesting to read. http://www.xs4all.nl/~peterned/csshover.html
-
Re: Clickable images with mouseover. Hmm.. seem's you are correct there. It doesn't work on IE. <head> <style> .bbcode_hover { background-image: url('http://www.hitmanslegacy.co.uk/icons/bold.gif'); background-color: transparent; height: 20px; width: 20px; border: 0px; } .bbcode_hover:hover { background-image: url('http://www.hitmanslegacy.co.uk/icons/bold_on.gif'); background-color: transparent; height: 20px; width: 20px; border: 0px; } </style> </head> <body> <input type="button" class="bbcode_hover" onClick="insert(this.form.message,'[b][/b]'); return false;" value="" /> </body>
-
Re: Clickable images with mouseover. It work's on TD's so i am sure it should work on button's ;)
-
Re: Clickable images with mouseover. Make it a class <input type="button" class="bbcode_hover" onClick="insert(this.form.message,'[b][/b]'); return false;" value="" /> As for your CSS .bbcode_hover { background-image: url('/icons/bold.gif'); height: 10px; width: 10px; } .bbcode_hover:hover { background-image: url('/icons/bold_on.gif'); height: 10px; width: 10px; }
-
Shoutbox Ban - Not Finished - Dont Post
Haunted Dawg replied to veaseyspike's topic in Free Modifications
Re: Shoutbox Ban - Not Finished - Dont Post Not really. It was on velocity-islands.com Anyway, i don't care about my shoutbox anymore. -
Re: [mccode] mailbox with smilies Why are you using [p][/p] Just insert the actual bbcode. And for the sending message. onClick="insert(this.form.message,'[p][/p]'); return false;" Try that for your onClick attribute.
-
Shoutbox Ban - Not Finished - Dont Post
Haunted Dawg replied to veaseyspike's topic in Free Modifications
Re: Shoutbox Ban - Not Finished - Dont Post I was not saying about the image's. Except for the array that you are using to change the : ) to the actualy image! -
Shoutbox Ban - Not Finished - Dont Post
Haunted Dawg replied to veaseyspike's topic in Free Modifications
Re: Shoutbox Ban - Not Finished - Dont Post Have you seen the code? You are using the exact same image thing's that were from my shoutbox on your free forum's. So if i was you. I would not get cocky because i can point it to your face that you are wrong there.