adivirus Posted May 4, 2016 Share Posted May 4, 2016 Hello, can anyone tell me if mccodes 2.0.2 its working with php 7.0 ? do i need to update/modify something inside the code for the engine to work with this version of php? let me know. thank you. Quote Link to comment Share on other sites More sharing options...
TheMasterGeneral Posted May 4, 2016 Share Posted May 4, 2016 I know there's some depreciation notices in the BB Code engine as of 5.5.12. Best bet would be to load up on a local environment with php 7.0 and test. Also, download 2.0.5b, and that's the most latest official patch. Quote Link to comment Share on other sites More sharing options...
Zettieee Posted May 5, 2016 Share Posted May 5, 2016 You can goto the mccodes.com site and download the latest 2.0.5b Quote Link to comment Share on other sites More sharing options...
adivirus Posted May 5, 2016 Author Share Posted May 5, 2016 my game suffered lots of modifications since 2008, added lots of things to the files, so i started to test it with php7 on a test server, it seems that i need to modify every mysql_() , mysql_query to mysqli, as i always used mysql line instead of mysqli .. that's for start :) thanks. Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted May 5, 2016 Share Posted May 5, 2016 Well if you used the DB class it's all handled for you when it comes to MySQL Quote Link to comment Share on other sites More sharing options...
adivirus Posted May 5, 2016 Author Share Posted May 5, 2016 Well if you used the DB class it's all handled for you when it comes to MySQL indeed, i need to review all the pages and make the code more cleaner, eventually to use db class code. thanks for suggestion. Quote Link to comment Share on other sites More sharing options...
Dominion Posted May 5, 2016 Share Posted May 5, 2016 Isn't the driver a setting? If you're going to review the code even the most updated version of MCcodes needs a rework. Don't just change everything from mysql into mysqli. Use the added features. Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted May 5, 2016 Share Posted May 5, 2016 Isn't the driver a setting? If you're going to review the code even the most updated version of MCcodes needs a rework. Don't just change everything from mysql into mysqli. Use the added features. Yes it is as a matter of fact which is found in the config.php file. This is funny though. Just today I reviewed a mod submitted to the marketplace and it was for v2. When I was reviewing the code, I noticed that it was using mysql_* for all the queries and fetching. It's just crazy that this topic comes up right after I see it. For future reference to everyone while I am here and talking about this: DO NOT submit a module for the V2 engine that does not use the database wrapper. Quote Link to comment Share on other sites More sharing options...
adivirus Posted May 6, 2016 Author Share Posted May 6, 2016 you are right, i also bought several mods over the years and most of them were using mysql_* Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted May 6, 2016 Share Posted May 6, 2016 Probably. That was before my time helping mccodes.com and they were most likely submitted before it would pose a compatibility issue Quote Link to comment Share on other sites More sharing options...
boionfire81 Posted May 11, 2016 Share Posted May 11, 2016 OK, here's one issue that is definitely from being php 7.0 bbcode engine. A non-critical error has occurred. Page execution will continue. Below are the details: PHP Deprecation Notice: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead (8192) Line executed: /home/public_html/bbcode_engine.php:181 What is preg_replace_callback?!?!?!?! Quote Link to comment Share on other sites More sharing options...
SRB Posted May 20, 2016 Share Posted May 20, 2016 rtfm Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted May 20, 2016 Share Posted May 20, 2016 Im assuming your bbcode parser is a class take a look at this from the same place as guests link: http://php.net/manual/en/function.preg-replace-callback.php#110353 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.