AdamHull Posted June 3, 2015 Share Posted June 3, 2015 @-BRAIDZ- most of us use Mccodes and we all know it does not have a business mod Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted June 3, 2015 Share Posted June 3, 2015 @-BRAIDZ- most of us use Mccodes and we all know it does not have a business mod That's what I am talking about. And the only other business mod I can think of is Richards from a while back. I don't know if it's the same mod though because all Raven did was take free and I think some laid mods from here and put them into MCC and sold it as Raven. But as Adam has said by default MCC doesn't have businesses so we don't even know what to use it for. If it's an addon for an existing module, great and thanks but at least let us know what it goes too Quote Link to comment Share on other sites More sharing options...
AdamHull Posted June 3, 2015 Share Posted June 3, 2015 (edited) I have look over the business mod for Ravan and it does look like the mod Richard made, but when looking over the whole Ravan script it is more of a mess then MCcodes, not to forget they have encrypted some off the files! when I looked I think it was core.php and install.php, Not to mention the lack of security it has, the files I have scanned over does not secure POST very well or at all Edited June 3, 2015 by adamhull Quote Link to comment Share on other sites More sharing options...
-BRAIDZ- Posted June 3, 2015 Author Share Posted June 3, 2015 @-BRAIDZ- most of us use Mccodes and we all know it does not have a business mod Okay, now I see where all the carry on is coming from, as I use Ravan's it already has companies (businesses) coded in. I just wanted go create a Mod where admins can make a new business class, instead of relying on the owner to log into the database and create one, sorry I just have never used MCC Quote Link to comment Share on other sites More sharing options...
sniko Posted June 3, 2015 Share Posted June 3, 2015 Okay, now I see where all the carry on is coming from, as I use Ravan's it already has companies (businesses) coded in. I just wanted go create a Mod where admins can make a new business class, instead of relying on the owner to log into the database and create one, sorry I just have never used MCC Can you add the following to your first post then? - hopefully it'll clear the confusion. [noparse] This modification is for Raven, not McCodes. [/noparse] Quote Link to comment Share on other sites More sharing options...
-BRAIDZ- Posted June 3, 2015 Author Share Posted June 3, 2015 Can you add the following to your first post then? - hopefully it'll clear the confusion. [noparse] This modification is for Raven, not McCodes. [/noparse] Done, need to update the code as well.. Quote Link to comment Share on other sites More sharing options...
NonStopCoding Posted June 3, 2015 Share Posted June 3, 2015 Done, need to update the code as well.. on the subject earlier you mentioned you using ravens as you cant afford a v2 well mccodes.com offers a free version its a stripped down verion of v2 but its free and i am sure that you could transfer the db wrapper no problem at all change all mysql_ to $db-> etc Ravens will eat the hell out of the resources so unless you are using it for learning purposes and not actually making a game out of it you will need a pretty decent host to run it smoothly Quote Link to comment Share on other sites More sharing options...
-BRAIDZ- Posted June 3, 2015 Author Share Posted June 3, 2015 on the subject earlier you mentioned you using ravens as you cant afford a v2 well mccodes.com offers a free version its a stripped down verion of v2 but its free and i am sure that you could transfer the db wrapper no problem at all change all mysql_ to $db-> etc Ravens will eat the hell out of the resources so unless you are using it for learning purposes and not actually making a game out of it you will need a pretty decent host to run it smoothly Yeah too true. I'll see how I go. Don't really want to wipe my public folder, and lose half the staff I have there lol (mods) Quote Link to comment Share on other sites More sharing options...
-BRAIDZ- Posted June 4, 2015 Author Share Posted June 4, 2015 Code is now up to date and fully functional. I will provide screenshots if need be. Just remember this is a mod for Ravan's not MCC. Quote Link to comment Share on other sites More sharing options...
jcvenom Posted June 4, 2015 Share Posted June 4, 2015 This modification is for Ravan, not McCodes. staff_business.php: <?php require_once __DIR__ . '/sglobals.php'; if ($ir['user_level'] > 2) error("Access denied"); if(!function_exists('error')) { function error($msg) { global $h; echo "<strong>ERROR</strong>".$msg; exit($h->endpage()); } } $_GET['action'] = isset($_GET['action']) && ctype_alpha($_GET['action']) ? $_GET['action'] : null; switch ($_GET['action']) { case "addclass": addClass($db); break; default: error("You didn't specify a valid action"); break; } function addClass($db) { echo "<div class='generalinfo_txt'> <div><img src='images/info_left.jpg' alt='' /></div> <div class='info_mid'><h2 style='padding-top:10px;'> Staff Business Management </h2></div> <div><img src='images/info_right.jpg' alt='' /></div> </div> <div class='generalinfo_simple'><br> <br><br>" ?><h3>Business Management: Add Class</h3><?php if(!array_key_exists('submit', $_POST)) { ?><form action='staff_business.php?action=addclass' method='post'> <table class='table' width='75%'> <tr> <th width='25%'>Name</th> <td width='75%'><input type='text' name='name' required /></td> </tr> <tr> <th>Minimum members</th> <td><input type='number' name='members' placeholder='3' required /></td> </tr> <tr> <th>Description</th> <td><textarea name='desc' rows='2' cols='24' required></textarea></td> </tr> <tr> <th>Cost to start</th> <td><input type='number' name='cost' placeholder='100,000' required /></td> </tr> <tr> <td colspan='2' class='center'><input type='submit' name='submit' value='Add Business Class' /></td> </tr> </table> </form><?php } else { $strs = array('name', 'desc'); foreach($strs as $what) { $_POST[$what] = array_key_exists($what, $_POST) && is_string($_POST[$what]) ? $db->escape(trim($_POST[$what])) : null; if(empty($_POST[$what])) error("You didn't enter a valid ".($what == 'desc' ? 'description' : $what)); } $nums = array('members', 'cost'); foreach($nums as $what) { $_POST[$what] = array_key_exists($what, $_POST) && ctype_digit(str_replace(',', '', $_POST[$what])) ? str_replace(',', '', $_POST[$what]) : null; if(empty($_POST[$what])) error("You didn't enter a valid ".($what == 'members' ? 'amount of ' : '').$what); } $select = $db->query("SELECT classId FROM businesses_classes WHERE className = '".$_POST['name']."'"); if($db->num_rows($select)) error("A business class with that name already exists"); $db->query("INSERT INTO businesses_classes (className, classDesc, classMembers, classCost) VALUES ('".$_POST['name']."', '".$_POST['desc']."', ".$_POST['members'].", ".$_POST['cost'].")"); stafflog_add("Added business class: ".stripslashes(htmlspecialchars($_POST['name']))); ?>You've added the business class: <?php echo stripslashes(htmlspecialchars($_POST['name'])); } } $h->endpage(); Now add this into your smenu.php file: <a href="staff_business.php?action=addclass">Create a Business Class</a> I would like to say thank you to [MENTION=65371]sniko[/MENTION] and [MENTION=53425]Magictallguy[/MENTION] who helped me get this mod working properly. I made the original code, but I will no longer take full credit for the mod. Thank you guys, I appreciate it :) Ravan and mccodes are the same engine except ravan has a psd layout Quote Link to comment Share on other sites More sharing options...
G7470 Posted June 4, 2015 Share Posted June 4, 2015 Ravan and mccodes are the same engine except ravan has a psd layout As others have mentioned here, Ravan has some mods that MCCodes alone does not have (which includes businesses). That is why it is labeled as such so that a user doesn't think that they could just copy/paste this code and it will work on a vanilla copy of MCCodes. ~G7470 Quote Link to comment Share on other sites More sharing options...
Coly010 Posted June 6, 2015 Share Posted June 6, 2015 Ravan and mccodes are the same engine except ravan has a psd layout What's a psd layout? Or do you mean, someone made a template on photoshop, sliced it up, and used html/CSS to create a web template? Cause I highly doubt you can just tell html, oh look, here's a psd template, fit everything where it's supposed to be for me. Sorry, I know what you mean, but I just want to post to let any newbies looking at this to know that a psd in of itself cannot be used by html/CSS to incorporate a design onto a web page. But yeah Ravan's has more mods and stuff. Quote Link to comment Share on other sites More sharing options...
jcvenom Posted June 6, 2015 Share Posted June 6, 2015 What's a psd layout? Or do you mean, someone made a template on photoshop, sliced it up, and used html/CSS to create a web template? Cause I highly doubt you can just tell html, oh look, here's a psd template, fit everything where it's supposed to be for me. Sorry, I know what you mean, but I just want to post to let any newbies looking at this to know that a psd in of itself cannot be used by html/CSS to incorporate a design onto a web page. But yeah Ravan's has more mods and stuff. I know what im talking about mate!, if newbies have questions let them question i'd happily answer there question and as for the PSD layout is a photoshop layout, you do realise some people make full layouts in photoshop, cut them out and use them with ofc the use of html/css Quote Link to comment Share on other sites More sharing options...
-BRAIDZ- Posted June 7, 2015 Author Share Posted June 7, 2015 still nothing, used an editor on my phone Quote Link to comment Share on other sites More sharing options...
AdamHull Posted June 7, 2015 Share Posted June 7, 2015 I use ftp manager on my iOS devices and never have had a problem with, there is a free version and a paid version - - - Updated - - - I use ftp manager on my iOS devices and never have had a problem with, there is a free version and a paid version Quote Link to comment Share on other sites More sharing options...
-BRAIDZ- Posted June 7, 2015 Author Share Posted June 7, 2015 I use ftp manager on my iOS devices and never have had a problem with, there is a free version and a paid version - - - Updated - - - I use ftp manager on my iOS devices and never have had a problem with, there is a free version and a paid version I'm on an android phone (Sony Xperia Z2) and downloaded "PHP Editor" from the Google play store Quote Link to comment Share on other sites More sharing options...
AdamHull Posted June 7, 2015 Share Posted June 7, 2015 https://market.android.com/details?id=com.welant.webmaster.DEMO&feature=search_result check out this editor Quote Link to comment Share on other sites More sharing options...
-BRAIDZ- Posted June 7, 2015 Author Share Posted June 7, 2015 https://market.android.com/details?id=com.welant.webmaster.DEMO&feature=search_result check out this editor Just downloaded it, I will check it out soon. I will copy all my next mod into it. And aww how I go. My next mod is coming along well. Quote Link to comment Share on other sites More sharing options...
Coly010 Posted June 7, 2015 Share Posted June 7, 2015 I know what im talking about mate!, if newbies have questions let them question i'd happily answer there question and as for the PSD layout is a photoshop layout, you do realise some people make full layouts in photoshop, cut them out and use them with ofc the use of html/css I'm not getting into another public discussion, so I've messaged you, but you need to learn to read my posts properly. Quote Link to comment Share on other sites More sharing options...
jcvenom Posted June 7, 2015 Share Posted June 7, 2015 (edited) I'm not getting into another public discussion, so I've messaged you, but you need to learn to read my posts properly. The only person starting an unnecessary public discussion is you, and i dont like what you sent to me so kindly remove that attitude of yours because it isnt good for your reputation, i dont need to learn when im not dumb, i clearly understood what you said, im just puzzled, why you would question something you already knew "PSD layout", that means your retarded in some way :) Edited June 7, 2015 by jcvenom Quote Link to comment Share on other sites More sharing options...
AdamHull Posted June 7, 2015 Share Posted June 7, 2015 (edited) What is a PSD Web Template? A PSD Web Template is an un-coded web site. It has all the visual elements of the web site including the background, the images, the layout, the typography and more. But there is no HTML or CSS involved. Each layer will have the different elements for the website. You will have a layer for the logo, the header, the content, the navigation (or multiple layers in a folder) and so on. Read more http://pepperscraps.com/what-is-psd-web-template-design/ This should help if any "Newbies" dont understand Now lets stop arguing with each other, we are here to help/learn not argue over silly things Edited June 7, 2015 by adamhull Quote Link to comment Share on other sites More sharing options...
Magictallguy Posted June 7, 2015 Share Posted June 7, 2015 3+ pages of a *****fest? Jeez.. Get a grip guys. He wrote the original Staff Panel: Add Business Class, he had issues with getting it to work, so then I re-wrote it. As far as I'm aware, there has been no publicly released "mod" in which contains the ability for staff members (with access) to administrate the default business classes. All good now? Yes? Lovely. Quote Link to comment Share on other sites More sharing options...
-BRAIDZ- Posted June 7, 2015 Author Share Posted June 7, 2015 3+ pages of a *****fest? Jeez.. Get a grip guys. He wrote the original Staff Panel: Add Business Class, he had issues with getting it to work, so then I re-wrote it. As far as I'm aware, there has been no publicly released "mod" in which contains the ability for staff members (with access) to administrate the default business classes. All good now? Yes? Lovely. Thanks MTG. Did you get my PM mate? Quote Link to comment Share on other sites More sharing options...
Magictallguy Posted June 8, 2015 Share Posted June 8, 2015 Thanks MTG. Did you get my PM mate? Yerp, I got it on Saturday, I've just been too busy to respond Quote Link to comment Share on other sites More sharing options...
-BRAIDZ- Posted June 8, 2015 Author Share Posted June 8, 2015 Yerp, I got it on Saturday, I've just been too busy to respond No worries mate, thanks :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.