-
Posts
2,657 -
Joined
-
Last visited
-
Days Won
74
Content Type
Profiles
Forums
Events
Everything posted by Uridium
-
Ive never used nor seen that statement before that could come in handy thank you ๐
-
what ya working on ya sexy bitch ๐
-
Whilst collaborating with CrazyElk on their game to include the Video feature Crazyelk wanted it so when Videos where viewed they didnt continuously count up when same user viewed same video so 1 view 1 count per user makes sense... I was going to add this to the database so when a user views that video their ID is stored so the count wont continue to rise However it dawned on me why not just use a TXT file with the user details of any video they watch the video ID is placed into the TXT file so heres how I did this... <?PHP $_GET['view'] = array_key_exists('view', $_GET) && in_array($_GET['view'], ['videoID', 'uid', 'artist', 'tracktitle', 'genre', 'videourl', 'thumbs', 'playerswflink', 'switch', 'allowaccess', 'width', 'height', 'autostart']) ? $_GET['view'] : 'videoID'; // Increment the views if (isset($_GET['id'])) { $videoID = $_GET['id']; $path = "videovotes/views/" . $User->id . "/"; mkdir($path, 0777, true); /* end the txt data */ if ( file_exists("videovotes/views/" . $User->id . "/$videoID.txt") ) { } else { if ( file_exists("videovotes/views/" . $User->id . "/$videoID.txt") ) { } $omit = fopen("videovotes/views/" . $User->id . "/$videoID.txt", "w"); fwrite($omit, " "); fclose($omit); $DBO->query("UPDATE `user_videos` SET views = views + 1 WHERE videoID = '$videoID'"); } } The script above adds a folder to the videovotes/views/ folder for the user whos watching a video when a video is watched it leaves a TXT file behind with the video ID on it so if the user views the video again it will track the folder for the user and if the Video is there it wont update the Views.. Ive used the same method for LIKES and DISLIKES of a video you can also use the same method to ban videos example below for ban and unban <?PHP if ($_GET['b'] == 'ban') { if ( file_exists("videovotes/banned/".$VideoID->id.".txt") ) { } $omit = fopen("videovotes/banned/$videoID.txt", "w"); chmod("videovotes/banned/$videoID.txt", 0755); fwrite($omit, "<?php echo'<center>BANNED '".$VideoID->tracktitle."' {$row['tracktitle']} $tracktitle $videoID</center>'; ?>"); fclose($omit); } if ($_GET['u'] == 'unban') { $path = $_SERVER['DOCUMENT_ROOT'].'/videovotes/banned/"'.$videoID.'".txt'; unlink($path); unlink('videovotes/banned/"'.$videoID.'".txt'); } Hope this helps someone in someway...
-
mccode-v2 Con-airline, A Mccodes Based Airline Management Game
Uridium replied to peterisgb's topic in Game Projects
This is a brilliant concept havent seen one like this before the MAP is amazing even found my home town airport on there lol the Satelite view is astonishing I never knew there were so many airports in the UK other than the usual ones we all know about Welldone Peter Excellent work -
is that site live I dont see much traffic on it
-
๐
-
yep post can be closed ๐
-
I was just wondering as you stated in your example currency in game one is different to currency in game 2. I ws thinking of ways to keep users on your site longer if they do all the tasks needed in Game 1 they could go to the menu screen and start Game 2 which as with your example could be set in a different time period..
-
with the engines that we currently have mccodes, Grpg, GL (Gangster Legends) ezrpg... Would it be possible to fuse all these engines into ONE engine or have a switch that could switch from any of the above engines whilst keeping the same databases, I understand a lot would need to be done IE the Databases of all the Engines would need to co-incide with an engine as to swap and change at anytime also having a CONFIG file that could relate to all above engines. Your probably asking why would you want this... Well I'd like to see if its possible my vision is this.. I have 2 domains Wizwych and Theradus one uses GL and the other uses MCcodes both domains are working from the same HOST and are working from the Domain Setup, Both domains will be using the Exact same PHPYMADMIN and TABLES for 1 engine but will be working 2 sites.. when a user registers on one site they are instantly registered on the second site as both are using the same SQLS as long as all the tables and SQLS are the same for both sites you could have 2 totally different games using the same tables... If im not making sense GL would mirror MCCODES in mysql tables only yet both sites could be completely different from each other... This is just an example but could it actually work to run 2 sites off 1 database......
-
Missions Page error 500
-
Success! You stole a Honda Civic. it gave me a Honda Civic.. So thats ok Toyota corola gave me a Chevy Camaro
-
Player Interaction IS a MUST you need your players to stay on your game and I cant see that happening if there isnt much do on the first place when you steal a car its giving you the wrong car you stole Success! You stole a Chevy Camaro. Your Garage Cash: ยฃ3,667โ|โ Bullets: 0โ|โ Notoriety: 0โ|โ XP: 172 BMW 3 Series Acquired: 2025-07-08 Sell Value: ยฃ1,200โยฃ1,500 Melt Yield: 30โ40 bullet
-
Havent these kinda games died yet, I mean Mafia related youve spent al this time creating something you could have just downloaded as MCC or gRPG and had an up and running game with a few tweaks... HOWEVER.. you have stated you've created this from scratch from the ground up so that makes it UNIQUE and its yours amd for that I admire it.. Id like to see more Interaction for players though. Which i'm imagining that will come later as the pages progress.. Well done nice to see some new work ethics on here ๐
-
Is it me or has MWG gone extremley quiet over the past month. No posts regards gRPG no posts about MCC no posts about GL infact no posts at all has everyone moved on or is there an updated Forum that we dont know about. I joned Mwg/ CE in may 2008 Thats 17 years of my life devoted to the group and now it all seems to be closing its doors.. I hope not there are other engines out there that we can talk about other than the ones fourmed in the group...
-
https://www.asurahosting.com/ They are cheap and what I use
-
Today my discord account was comprimised and i cant gain entry to it Ive contacted Discord they say they are looking into iet if anyone has wizwych on your discord what was my user ID on there was just wizwych or wizwych with numbers at the end cheers guys Ive had no choice but to close my old account down fecking hackers ive lost a lot of work on that account all because some prick wants to prove something inbox me if you want my updated discord account info
- 1 reply
-
- 2
-
-
Damn my first ever working script for mccodes on ctiminalexistence forums back in the day ๐ soon to be 17 years
-
Ive noticed in most code script that ive posted that have URL linkages is wrong and displays [url.] instead of the usual <a href this might have occured when the forums where changed over so Im hoping to fix most of them
-
These Bots are getting clever
-
So its 2025 and we are at PHP 8.4 but whch version of MCCODES will pass the PHP 8 test.. we have 3 contenders MCC V2.0.5b From the MCCODES official site MCC V2.5 REDUX From the MCCODES official site (Which wont be reviewed cos I dont have a copy) or the now FREE V2 version from Github..... I will be using xampp running php 8.2 for these tests they will comprise of installation, First Login, Adapting older files First off the MCC V2.0.5b From the MCCODES official site ---------------------------------------------------------------------------------- Straight out of the box it was easy to unzip to a folder on xampp I went to localhost/mccodes/installer.php (why they couldnt let the index.php file tell if the install had already done is beyond me and if not installed grab the installer.php for you) but you have to type installer.php or MCCODES throws a wombly fit. As you can see above you have no choice but to ask for installer.php Once you do add the installer.php your met with the installer program which looks ok so we will start adding all our data on all them lines all lines filled time to press INSTALL Oh thats not good wheres the confirmation that tells you config file created success to Database and the cronjob links Well moving on to the next version the FREE github version FREE GITHUB VERSION i will follow same steps as before ----------------------------------------------------------------------- INSTALLATION same situation as the above there is nothing to tell if the config file exists and if not move on the installation on to the installation page the installer page has shifted to the far left of the page.. It somewhat installed it failed but it nearly got there I checked my Database and the dbdata.sql was inserted and the config.php file was created however no new user was added to the DATABASE and no mention of the cron setups SO NEITHER ACTUALLY INSTALLED But why not lets start with the GITHUB version (only cos this is an easy fix) I will mention that after the install failed I removed all files and folders and sent back a fresh copy of both Engines so lets start with GITHUB VERSION (how to fix the issue) ------------------------------------------------------------------------ $db->query( "INSERT INTO `users` (`username`, `login_name`, `userpass`, `level`, `money`, `crystals`, `donatordays`, `user_level`, `energy`, `maxenergy`, `will`, `maxwill`, `brave`, `maxbrave`, `hp`, `maxhp`, `location`, `gender`, `signedup`, `email`, `bankmoney`, `lastip`, `lastip_signup`, `pass_salt`, , `display_pic`, `staffnotes`, `voted`, `user_notepad`) VALUES ('{$ins_username}', '{$ins_username}', '{$e_encpsw}', 1, 100, 0, 0, 2, 12, 12, 100, 100, 5, 5, 100, 100, 1, '{$adm_gender}', " . time() . ", '{$ins_email}', -1, '$IP', '$IP', '{$e_salt}', '', '', '', '')"); Did you spot it in the code above. if you didnt go to line 471 which looks like `lastip_signup`, `pass_salt`, , `display_pic`, `staffnotes`, `voted`, `user_notepad`) and remove the exta , that has no real reasoning for being there Now lets see if the installer works SUCCESS the thing has installed ๐ and is working on PHP 8.2 And there you are So what can be done to make it easier well first off get the index script to work out if the config file has been written if its not there then grab the installer no need for people to type installer.php into the url bar add this to your index.php file before the <?PHP $install = 'installer.php'; if (file_exists($install)) { include('installer.php'); exit(); } for the failed installer.php if you cant be bothered altering it use the file beflow installer.php For the MCCODES mainsite version lets just say there was an extreme amount of editing to make it work more on the function error_php and the mention of MAGIC_QUOTES
-
Sounds pretty good ๐
-
Which translates to My name is Julia and I am passionate about UI/UX design. I have basic knowledge of HTML and CSS and love creating icons, logos and illustrations. I have created several websites as personal projects, always trying to combine aesthetics and functionality. In my work, I use tools like Illustrator, Photoshop, Figma and Zeplin. Lately, I have been exploring AI-powered design solutions. I find it fascinating how AI can streamline and improve creative workflows. Currently, I am focused on improving my typography skills and better understanding how fonts affect brand perception. I recently discovered an amazing tool that generates fonts in seconds, a fun way to experiment with different styles and see how typography shapes your visual identity. I know I still have a lot to learn, but I am enjoying every step of this journey and can't wait for my passion to turn into a real career. I am excited to exchange ideas and connect with other designers!
-
it wasnt just that.. The registration doesnt work when viewing Tickets the timestamps doesnt work have you actually tried this on a version LESS that 8.2 nobody has 8.4 yet http://www.mtg.wizwych.co.uk
-
i'll wait for you to update the above even after finally gettng the installer to work the apache_setenv became an issue on the pdo.class.php file changed apache_setenv($key, $value); to getenv($key, $value); still same issue on both Fatal error: Uncaught TypeError: getenv(): Argument #2 ($local_only) must be of type bool, string given in /home/DOMAINc/domains/mtg.DOMAIN.co.uk/public_html/inc/pdo.class.php:69 Stack trace: #0 /home/DOMAINc/domains/mtg.DOMAIN.co.uk/public_html/inc/pdo.class.php(69): getenv() #1 /home/DOMAINc/domains/mtg.DOMAIN.co.uk/public_html/inc/pdo.class.php(44): database->setConnDetails() #2 /home/DOMAINc/domains/mtg.DOMAIN.co.uk/public_html/inc/pdo.class.php(322): database->__construct() #3 /home/DOMAINc/domains/mtg.DOMAIN.co.uk/public_html/inc/pdo.class.php(388): database::getInstance() #4 /home/DOMAINc/domains/mtg.DOMAIN.co.uk/public_html/inc/dbcon.php(77): require_once('/home/DOMAINc/...') #5 /home/DOMAINc/domains/mtg.DOMAIN.co.uk/public_html/inc/header.php(6): require_once('/home/DOMAINc/...') #6 /home/DOMAINc/domains/mtg.DOMAIN.co.uk/public_html/index.php(3): require_once('/home/DOMAINc/...') #7 {main} thrown in /home/DOMAINc/domains/mtg.DOMAIN.co.uk/public_html/inc/pdo.class.php on line 69 Finallly got it to install and run had to comment out a few parts on the pdo file but its up and running at last it now runs on php 8.2 upwards