
boionfire81
Members-
Posts
532 -
Joined
-
Last visited
-
Days Won
6
Content Type
Profiles
Forums
Events
Everything posted by boionfire81
-
[uSER=52003]Dave Macaulay[/uSER] this one too
-
mccode-v2 Reset password + Secret question before password is sent.
boionfire81 replied to Uridium's topic in Free Modifications
Ok, I've installed this and it generates the new password and emails it to the member, but then when the user tries to login with that password it says invalid username/password -
PAID REQUEST - TC cloned member dropdown function
boionfire81 replied to boionfire81's topic in Requests & In Production
[uSER=53425]Magictallguy[/uSER] ?? -
1,2,3,4,5,6,7,8,9,10
-
Now you offer 15% lol! But hey, do you plan on releasing that first time login mod??? XD That was awesome!
-
What I've tried global_func function page() { global $db,$ir; $page = $db->escape($page); $db->query("UPDATE users SET page={$page} WHERE userid={$ir['userid']}"); $db->query("INSERT INTO `logs` VALUES(NULL,{$ir['userid']},{$page},time())"); } In the pages: $page = 1; page(".{$page}.");
-
yes, basically I have one table that store the page number so for ease of use, I define $page=#; and a simple global function to update the database on page load.
-
Ok, yes this is going to be massive stress on the db, but I'll find a fix with my host be it an increase in cpu or whatever. I need to do 2 things. I need to define a specific number on a page (sometimes during different "actions"). Then update that number in the users table and create an insert into for a log style entry. How?
-
Ok, here is the code after changing the ereg to preg_match function valid_email($email) { // First, we check that there's one @ symbol, and that the lengths are right if (!preg_match("^[^@]{1,64}@[^@]{1,255}$", $email)) { // Email invalid because wrong number of characters in one section, or wrong number of @ symbols. return false; } // Split it into sections to make life easier $email_array = explode("@", $email); $local_array = explode(".", $email_array[0]); for ($i = 0; $i < sizeof($local_array); $i++) { if (!preg_match("^(([A-Za-z0-9!#$%&'*+/=?^_`{|}~-][A-Za-z0-9!#$%&'*+/=?^_`{|}~\.-]{0,63})|("[^(\\|")]{0,62}"))$", $local_array[$i])) { return false; } } if (!preg_match("^\[?[0-9\.]+\]?$", $email_array[1])) { // Check if domain is IP. If not, it should be valid domain name $domain_array = explode(".", $email_array[1]); if (sizeof($domain_array) < 2) { return false; // Not enough parts to domain } for ($i = 0; $i < sizeof($domain_array); $i++) { if (!preg_match("^(([A-Za-z0-9][A-Za-z0-9-]{0,61}[A-Za-z0-9])|([A-Za-z0-9]+))$", $domain_array[$i])) { return false; } } } return true; } This is for one of my new mod purchases. phpcodecheck return no issues found. But when the form is submitted it returns: A critical error has occurred, and page execution has stopped. Below are the details: PHP Warning: preg_match(): Unknown modifier '@' (2)
-
Have put anything up here since the mailbox/event widgets so here's my remodeled gym. $ir['strank']=get_rank($ir['strength'],'strength'); $ir['agirank']=get_rank($ir['agility'],'agility'); $ir['guarank']=get_rank($ir['guard'],'guard'); $ir['labrank']=get_rank($ir['labour'],'labour'); print " <center><table class='gym' width='70%'> <tr> <td> <table bgcolor='white' width='100%'> <tr> <td rowspan='2' width='20%'><img src='css/images/gymbg.jpg'></td> <td align='center'>"; if($ir['strank'] = 1) { echo "<h2 style='color: gold;'>"; } else if($ir['strank'] [100] <=> [51]) { echo "<h2 style='color:red;'>"; } else if($ir['strank'] [50] <=> [11]) { echo "<h2 style='color:blue;'>"; } else if($ir['strank'] [10] <=> [2]) { echo "<h2 style='color:green;'>"; } else { echo "<h2>"; } echo "Rank: #".number_format($ir['strank'])." Strength: ".number_format($ir['strength'])."</h2></td></tr> <tr><td align='center'>"; if($ir['energy'] > 0) { echo "<table><tr><td> <form action='gym.php' method='post'><input type='hidden' name='stat' value='Strength'><input type='hidden' name='amnt' value='1' /> <input type='submit' value='1 Rep' /></form></td>"; if($ir['energy'] > 5) { echo "<td><form action='gym.php' method='post'><input type='hidden' name='stat' value='Strength'><input type='hidden' name='amnt' value='5' /> <input type='submit' value='5 Reps' /></form></td>"; } if($ir['energy'] > 9) { echo "<td><form action='gym.php' method='post'><input type='hidden' name='stat' value='Strength'><input type='hidden' name='amnt' value='10' /> <input type='submit' value='10 Reps' /></form></td>"; } if($ir['energy'] > 19) { echo "<td><form action='gym.php' method='post'><input type='hidden' name='stat' value='Strength'><input type='hidden' name='amnt' value='20' /> <input type='submit' value='20 Reps' /></form></td>"; } echo "</tr></table>"; } echo " </td></tr></table> </td> </tr> <tr> <td> <table bgcolor='white' width='100%'> <tr> <td rowspan='2' width='20%'><img src='css/images/gymbg.jpg'></td> <td align='center'>"; if($ir['labrank'] = 1) { echo "<h2 style='color: gold;'>"; } else if($ir['labrank'] [100] <=> [51]) { echo "<h2 style='color:red;'>"; } else if($ir['labrank'] [50] <=> [11]) { echo "<h2 style='color:blue;'>"; } else if($ir['labrank'] [10] <=> [2]) { echo "<h2 style='color:green;'>"; } else { echo "<h2>"; } echo "Rank: #".number_format($ir['labrank'])." Defense: ".number_format($ir['labour'])."</h2></td></tr> <tr><td align='center'>"; if($ir['energy'] > 0) { echo "<table style='vertical-align:bottom;'><tr><td> <form action='gym.php' method='post'><input type='hidden' name='stat' value='Defense'><input type='hidden' name='amnt' value='1' /> <input type='submit' value='1 Session' /></form></td>"; if($ir['energy'] > 4) { echo "<td><form action='gym.php' method='post'><input type='hidden' name='stat' value='Defense'><input type='hidden' name='amnt' value='5' /> <input type='submit' value='5 Sessions' /></form> </td>"; } if($ir['energy'] > 9) { echo "<td><form action='gym.php' method='post'><input type='hidden' name='stat' value='Defense'><input type='hidden' name='amnt' value='10' /> <input type='submit' value='10 Sessions' /></form></td>"; } if($ir['energy'] > 19) { echo " <td><form action='gym.php' method='post'><input type='hidden' name='stat' value='Defense'><input type='hidden' name='amnt' value='20' /> <input type='submit' value='20 Sessions' /></form></td>"; } echo "</tr></table>"; } echo "</td></tr></table> </td></tr> <tr><td> <table bgcolor='white' width='100%'> <tr> <td rowspan='2' width='20%'><img src='css/images/gymbg.jpg'></td> <td align='center'>"; if($ir['agirank'] = 1) { echo "<h2 style='color: gold;'>"; } else if($ir['agirank'] [100] <=> [51]) { echo "<h2 style='color:red;'>"; } else if($ir['agirank'] [50] <=> [11]) { echo "<h2 style='color:blue;'>"; } else if($ir['agirank'] [10] <=> [2]) { echo "<h2 style='color:green;'>"; } else { echo "<h2>"; } echo "Rank: #".number_format($ir['agirank'])." Agility: ".number_format($ir['agility'])."</h2></td></tr> <tr><td align='center'>"; if($ir['energy'] > 0) { echo "<table><tr><td> <form action='gym.php' method='post'><input type='hidden' name='stat' value='Agility'><input type='hidden' name='amnt' value='1' /> <input type='submit' value='1 Sprint' /></form></td>"; if($ir['energy'] > 4) { echo "<td><form action='gym.php' method='post'><input type='hidden' name='stat' value='Agility'><input type='hidden' name='amnt' value='5' /> <input type='submit' value='5 Sprints' /></form></td>"; } if($ir['energy'] > 9) { echo "<td><form action='gym.php' method='post'><input type='hidden' name='stat' value='Agility'><input type='hidden' name='amnt' value='10' /> <input type='submit' value='10 Sprints' /></form></td>"; } if($ir['energy'] > 19) { echo "<td><form action='gym.php' method='post'><input type='hidden' name='stat' value='Agility'><input type='hidden' name='amnt' value='20' /> <input type='submit' value='20 Sprints' /></form></td>"; } echo "</tr></table>"; } echo" </td> </tr></table> </td> </tr> <tr> <td> <table bgcolor='white' width='100%'> <tr> <td rowspan='2' width='20%'><img src='css/images/gymbg.jpg'></td> <td align='center'>"; if($ir['guarank'] = 1) { echo "<h2 style='color: gold;'>"; } else if($ir['guarank'] [100] <=> [51]) { echo "<h2 style='color:red;'>"; } else if($ir['guarank'] [50] <=> [11]) { echo "<h2 style='color:blue;'>"; } else if($ir['guarank'] [10] <=> [2]) { echo "<h2 style='color:green;'>"; } else { echo "<h2>"; } echo "Rank: #".number_format($ir['guarank'])." Reflex: ".number_format($ir['guard'])."</h2></td></tr> <tr><td align='center'>"; if($ir['energy'] > 0) { echo " <table><tr><td> <form action='gym.php' method='post'><input type='hidden' name='stat' value='Reflex'><input type='hidden' name='amnt' value='1' /> <input type='submit' value='1 Time' /></form></td>"; if($ir['energy'] > 4) { echo "<td> <form action='gym.php' method='post'><input type='hidden' name='stat' value='Reflex'><input type='hidden' name='amnt' value='5' /> <input type='submit' value='5 Times' /></form></td>"; } if($ir['energy'] > 9) { echo " <td><form action='gym.php' method='post'><input type='hidden' name='stat' value='Reflex'><input type='hidden' name='amnt' value='10' /> <input type='submit' value='10 Times' /></form></td>"; } if($ir['energy'] > 19) { echo "<td> <form action='gym.php' method='post'><input type='hidden' name='stat' value='Reflex'><input type='hidden' name='amnt' value='20' /> <input type='submit' value='20 Times' /></form></td>"; } echo "</tr></table>"; } echo" </td> </tr></table> </td> </tr> </table> </center>"; .gym { border: 5px solid; border-color: #222222 #333333 #444444 #777777; border-spacing: 0px; background: #444444; } This is just the layout/workout section. It changes colors based on their rank in each stat. Quick push of the button for amount of energy to spend (which checks their energy level prior to button display). Kinda basic but it's midnight here and just wanted to put something there for ya. Can't do the whole gym, cause I have about 4 mods running through it >.< anyways, midnight and I'm going to sleep Zzzzzz
-
[uSER=52003]Dave Macaulay[/uSER] How do we deleted our started threads?
-
How will you determine the gains based upon sets (i.e. will the gain be the same for each set)? That is what I wanted to know. This isn't for a cosmetic thing. It's a use credits to refill your energy and gain ### with 100 energy thing. A sales pitch to buy and use credits.
-
Ok, so I located the formula for my gym. for($i=0; $i<$_POST['amnt']; $i++) { $gain+=rand(1,3)/rand(800,1000)*rand(800,1000)*(($ir['will']+20)*(($ir['gymlevel']/rand(3,12))/150)); $ir['will']-=rand(1,3); if($ir['will'] < 0) { $ir['will']=0; } } In the layout I want to put Complete: 1 Set - #### (gain amount) 5 Sets - ### gain 10 Sets - ### gain 25 Sets ### gain Then simply click the button for how many sets. I can figure out the button and design, blah, But I'm not sure how to show the gain amount for the sets?? I'm thinking I can just replace the Post amount, but the $i and $i++ is confusing here.
-
Trunicating log enteries after 24 hours
boionfire81 replied to boionfire81's topic in Requests & In Production
TY! Needed that :) -
Using mysqli timestamp, and mccodes time() function, combined with a minute cron, is it possible to run a query to delete logs over 24 hours? The time functions I still have not learned yet.
-
Phpbb 3 Registration Integration?
boionfire81 replied to avguste's topic in Requests & In Production
Option 3, :) can you help? -
Phpbb 3 Registration Integration?
boionfire81 replied to avguste's topic in Requests & In Production
ok, well [uSER=64684]Dayo[/uSER] were you able to figure out how to integrate them? -
PAID REQUEST - TC cloned member dropdown function
boionfire81 replied to boionfire81's topic in Requests & In Production
sent, let me know if you need any further details. -
Is it possible to select a set time frame(s) for when a portion of a page is available?
-
PAID REQUEST - TC cloned member dropdown function
boionfire81 replied to boionfire81's topic in Requests & In Production
still a standard text field. -
mccode-v2 Gang Shop [Gang Replacement by Floydian]
boionfire81 replied to Analog's topic in Free Modifications
Invalid Page URL. If this is an error and the page should exist, please contact the system administrator and tell them how you got this message. Hoping to do just a bit of converting to my system too if possible. -
PAID REQUEST - TC cloned member dropdown function
boionfire81 replied to boionfire81's topic in Requests & In Production
if(!$_POST['user']) { echo "<br /><form action='trade.php' method='post'> Please type the ID# of the user you wish to trade with below.<br /><br /> ".getList('user')." <input type='submit' value='Send Request' class='button'/> </form><br /><a href='index.php' class='button'>Exit</a>"; } TC allows a drop-down that shows your friends list, faction members, company, etc. to help for quick selection. A plain text input would be a simple db query to change the username to and id before processing. -
PAID REQUEST - TC cloned member dropdown function
boionfire81 replied to boionfire81's topic in Requests & In Production
All it is displaying is a plain input text box. -
PAID REQUEST - TC cloned member dropdown function
boionfire81 replied to boionfire81's topic in Requests & In Production
Ok, can you explain what the code is I'm looking at here, and how/what should be modified if any? -
mccode-v2 Gang Shop [Gang Replacement by Floydian]
boionfire81 replied to Analog's topic in Free Modifications
Ok second project of day. Let's hope today is a highly productive day :) A critical error has occurred, and page execution has stopped. Below are the details: PHP Warning: Creating default object from empty value (2) Action taken: Line executed: /home/public_html/gangshop.php:12 require_once('globals.php'); $gvars->links_mygang += array( 'gs_home' => array( 'label' => 'Shop', 'order' => 9 ), ); $gvars->actions += array( 'sgang_shop_settings' => 'sgang_shop_settings', 'sgang_shop_open' => 'sgang_shop_open', 'sgang_shop_item_give' => 'sgang_shop_item_give', 'sgang_shop_item_update' => 'sgang_shop_item_update', 'sgang_shop_upgrade' => 'sgang_shop_upgrade', 'sgang_shop_item_remove' => 'sgang_shop_item_remove', 'gs_item_purchase' => 'gs_item_purchase', 'gs_home' => 'gs_home', 'gs_shop_donate' => 'gs_shop_donate', 'gs_shop_donate_go' => 'gs_shop_donate_go', ); $gvars->links_staff += array( 'sgang_shop_settings' => array( 'label' => 'Shop Managment', 'order' => 12 ), );