-
Posts
2,921 -
Joined
-
Last visited
-
Days Won
48
Content Type
Profiles
Forums
Events
Everything posted by KyleMassacre
-
Hmmm interesting but to be honest those are way out of my league except for MAYBE item number 8. But I am having a little difficulty understanding what you mean by it. Do you mean like a clan gym? If so, that shouldnt be too difficult. As for a clan armory, I have thought about it but I think the only problem is, is the objects table. Im thinking the only way it can be done would to alter it unless the clan isnt too worried about getting the items back ;)
-
Yeah that looks fine. Now change this: if (mail($to, $subject, $body, $headers)) {} To this: mail($to, $subject, $body, $headers); I wod look into different "headers" as some mail servers may spot that as spam especially if you have a link/html in the body. When I get sometime maybe ill show you what I use as my mail function
-
Very nice addition and a very good first post. Welcome aboard
-
Ok try this: go into your db and set your userstats to default of 1500 and set your playerdetails to defaults as well to whatever you want them to be like in your insert queries. Now all you have to do is something like $db->query("insert into userstats values ($i)") and same for playerdetails. Also for your mail function you have it as an if () statement, why? So.just change that to mail (blah, blah,blah,blah). Now im not sure that will work but you seem to have an error after you users table insert. Maybe you can try turning on error_reporting(E_ERROR | E_WARNING | E_PARSE); just put that in your script somewhere
-
Hmmm I dont know. It let me register but I cant sign in. Check to see if it inserted my name in
-
For starters give us a few lines before the database insert of the players info And secondly dont forget to remove your database details. Im not the op but can an admin edit that stuff to save him?
-
Here It is right HERE
-
Manage Clan Members
KyleMassacre replied to KyleMassacre's topic in Free Modules (Requests or Offers)
Ehh, I think it was my easiest one lol. Also since we are on topic of clan members last I checked and I was talking to illusions he brought up the fact that when someone applies to a clan he is set as a requester for basically ever. Now what happens if a clan master no longer plays? I was thinking maybe after a 48 hour time limit they are no longer a requester? -
So this morning I decided to whip up another clan module to let a clan master manage their clan members. So a few of the things it does in a nutshell is: 1. Clan masters can kick a clan member out of the clan. a. When this happens it sends a message to the player telling them, well, basically they got the boot. 2. A clan master may promote or demote a given clan member. a. When a clan master promotes a clan member it will also send a message congratulating them on working their way to the top. b. When a clan master demotes a member it will also send them a message basically saying you suck and need to step it up. Please note that the messages im showing are not verbatim they are put a little nicer but feel free to change your messages to whatever you wish since it is your module. This also uses my clan events as well *plug* but if you dont have it thats alright it wont kill the script. Thank you for reading and enjoy when it gets released
-
Clan Events Module
KyleMassacre replied to KyleMassacre's topic in Paid modules (requests or offers)
Why thank you very much. Also I submitted another module that will use clan events as well so I will make a post about that one too. -
Tpcodes v2, Tpcodesv1 new game engine 2013
KyleMassacre replied to crimec's topic in General Discussion
Yeah his zombie module is not his. I believe seanybob started it but another guy also added some stuff in to -
Tpcodes v2, Tpcodesv1 new game engine 2013
KyleMassacre replied to crimec's topic in Other Game Engines
This guy didnt create s**t looky here How did he create any type of engine at all? -
So there was a request that I provide some details and possibly a screen shot of this module so here it is: Basically what this module does is adds a table to the clans home via "clan_home_special" much like my clan vault module. This way when certain actions are made that has to do with clans it adds an event for all clan members to see what is going on inside the clan. It is configurable on how many events to display, and deletes older events to not clutter up your db. Currently the only module that uses this feature is my clan vault which is a free download from the market place but pretty much any other module I create will have a feature for adding an event. The screenshot isnt really much to look at mainly because only one module uses it but you guys can take a gander at it. [ATTACH=CONFIG]890[/ATTACH] So I really hope you guys enjoy and as for the price , I know it isnt much as its only $1 but I figure I dont like to ask for money but think of it as a contribution and it kind of helps motivate me a little more to try and develop more modules for this engine cause I really want to see it succeed and possibly have a game running real soon.
-
Here is one and is only my personal opinion: Remember you CANNOT make every game player happy. There is alway going to be people who want change but most of the time its only to benefit themselves, every once in a while you get a good suggestion but even a broken clock is right twice a day so there are exceptions to the rule.
-
ok i updated it, the was a typo for the currency name so i fixed that as well, and once again thank you for finding my errors and please keep it up
-
oh bother. alright ill work on it
-
I dont know if there was any correlation to 1.1.6 but when I upgraded and enabled the chat_bar I got a forbidden error along with a 404??
-
mccode-v2 SMF Registration Intergration!!!!!
KyleMassacre replied to Dayo's topic in Free Modifications
Sniko also did something for smf integration and this question was brought up but I dont think there was a definate answer but here is what I think may work. In authenticate.php maybe you can set the session that is used for smf. Also smf has an option to always stay logged into the forums when they login and I noticed in Dayos original post he mentions that it wont convert over you existing users, well I made a script that you can run that will import the users over as well Here is the link to the script. Just make sure you edit it to suit http://pastebin.com/cv1cRy0b -
Ok thanks ill look into that I couldve swore it didnt do it before but ill fix it and release it ***EDIT*** I fixed it and submitted it so be on the lookout for the update
-
<?php session_start(); if(get_magic_quotes_gpc() == 0) { foreach($_POST as $k => $v) { $_POST[$k]=addslashes($v); } foreach($_GET as $k => $v) { $_GET[$k]=addslashes($v); } } include "config.php"; include "language.php"; global $_CONFIG; define("MONO_ON", 1); require "class/class_db_{$_CONFIG['driver']}.php"; $db=new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c=$db->connection_id; $set=array(); $settq=$db->query("SELECT * FROM settings"); while($r=$db->fetch_row($settq)) { $set[$r['conf_name']]=$r['conf_value']; } if ($_POST['username'] == "" || $_POST['password'] == "") { die("<h3>{$set['game_name']} Error</h3> $nofill<br> <a href=login.php>> Back</a>"); } $uq=$db->query("SELECT userid, confirmed FROM users WHERE login_name='{$_POST['username']}' AND `userpass`=md5('{$_POST['password']}')"); if ($db->num_rows($uq)==0) { die("<h3>{$set['game_name']} Error</h3> $invalid<br> <a href=login.php>> $lerrortry</a>"); } else { $_SESSION['loggedin']=1; $mem=$db->fetch_row($uq); if ($mem['confirmed'] == 0) { echo "Your account has not been verified, please check all your email folders including your spam to verify your account"; return; } $_SESSION['userid']=$mem['userid']; $IP = $_SERVER['REMOTE_ADDR']; $IP=addslashes($IP); $IP=mysql_real_escape_string($IP); $IP=strip_tags($IP); $db->query("UPDATE users SET lastip_login='$IP',last_login=unix_timestamp() WHERE userid={$mem['userid']}"); $db->query("UPDATE users SET active=1 WHERE userid={$mem['userid']}"); if($set['validate_period'] == "login" && $set['validate_on']) { $db->query("UPDATE users SET verified=0 WHERE userid={$mem['userid']}"); } header("Location: index.php"); } ?>
-
Yes there is a much easier way :p. I think the issue is his code placement, he is using $ir or $mem but at that time the vars havent been set just yet through any type of loop. If he looks past his else statement in his authenticate that we cant see I believe it has the $mem var set so he just needs to place his code within that loop and it should work fine
-
Try posting your entire authenticate file. I haven't looked at mc authenticate lately but im sure your issue is with the $ir variable
-
I think we are misunderstanding eachother here. Here is what I want to do is pretty much borrow the html/css from the original chat module that you created and gut out the stuff inside the conatainers and put the iframe inside there that way its not a new window/tab or whatever its pretty much static on the page so a user can navigate around all they want and the chat is always there. Now with all the other stuff in mind im not gonna lie and say im an irc wizard by the slightest bit but I would like to some how come up with a lib of some sort where for example when you add in your irc name it sends a call to the server to "register your name with ipocolyspe or mibbit etc. and possible a clan can create a channel and it will "register" their channel and make them the leader and possible the game owner (me) as well. Now for clan chat privacy that is where it gets tricky cause you can possibly pass a chatline to make the channel restricted and call all members in the clan as people who have access to the channel but then its getting new members access to it as well so im thinking thats gonna have to be done separately.
-
But like alain said his chat module is in an iframe, wouldnt that be the same thing?
-
mccode-v2 Shops item stock - as requested (Not Tested)
KyleMassacre replied to radio_active's topic in Free Modifications
You should look up preg_match() instead of ereg() for the future or use the top 3 lines that guest used cause as of php ver. 5.3 ereg is depreciated