-
Posts
34 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by m1ll1k3n
-
could you not do it much cleaner , personally i would do something more like this , much safer , and cleaner <?php // 1. Allowed 'view' values $allowedViews = ['videoID', 'uid', 'artist', 'tracktitle', 'genre', 'videourl', 'thumbs', 'playerswflink', 'switch', 'allowaccess', 'width', 'height', 'autostart']; $view = (isset($_GET['view']) && in_array($_GET['view'], $allowedViews, true)) ? $_GET['view'] : 'videoID'; // 2. Require valid user and video if (!empty($_GET['id']) && isset($User->id)) { $videoID = (int) $_GET['id']; // cast to int for safety $userId = (int) $User->id; try { // 3. Insert view if not already viewed $stmt = $DBO->prepare(" INSERT INTO video_views (user_id, video_id) VALUES (:user_id, :video_id) ON DUPLICATE KEY UPDATE user_id = user_id "); $stmt->execute(['user_id' => $userId, 'video_id' => $videoID]); // 4. If a new row was inserted, increment views if ($stmt->rowCount() > 0) { $updateStmt = $DBO->prepare(" UPDATE user_videos SET views = views + 1 WHERE videoID = :video_id "); $updateStmt->execute(['video_id' => $videoID]); } } catch (PDOException $e) { error_log("DB error: " . $e->getMessage()); and then just add a simple table to the existing db? eg CREATE TABLE video_views ( user_id INT NOT NULL, video_id INT NOT NULL, PRIMARY KEY (user_id, video_id) you could even take it further and make it ip specific though which could also be advantageous
-
sorry , must have been trying to view when i was in the middle of something , shouldn't be a problem now
-
much closer to the finished product now but still need some feedback from anyone willing
-
with the help of @Uridium I've got so much done over the last couple of days game is getting there and the code is clean and responsive still looking for feedback from multiple people so please anyone and everyone let me know good/bad new module ideas/improvements and bugs/exploits really looking to make this one of the easiest and newest engines around on the newest php/database versions so longevity is still ensured once again thanks for the help
-
ill jump right on it thanks again man - this is why i need some active testers to actually bug / exploit search the game for me , im doing my best but there is always things ill miss
-
REALLY appreciate the feedback man- after not coding properly for around 5-10 years it was a bit hard getting back into the new way of doing things so has taken me long and still learning some new things, this has been a passion of mine since i was 9 years old ( now 31 ) and to finally start big steps on something i have worked hard on is great PLEASE .... what else would you like to see ??? feature wise .. what do you think people will want / need?
-
so for the last 3 weeks ive been tirelessly grafting to complete and old project of mine i started way back anyway ive coded every single line and table from the ground up and this is still only the start but ide like some constructive criticism https://meltdown-mafia.co.uk/ fire away game stats casinos ( slots , blackjack , roulette ) profile viewing system points system full secure hashed password system all backend admin controls for easy access to change all packages for points , and all user management features topic updated 07/07/25 08/07/25 added points ( double xp ) 2 ownable casinos ( blackjack and slots ) full property management system gang system including gang only crimes and drug production and travel system which is player ownable
-
GlobalGangsters - oldschool rpg style mafia game
m1ll1k3n replied to m1ll1k3n's topic in Game Projects
not enough interest/no active playerbase still working on it offline to hopfully release again one day or maybe sell on as a package -
Looking for a developer: ios and android apps?
m1ll1k3n replied to Noah's topic in Wishes for new plugins
look into vma , sure thats what its called , easily adapt full sites to mobile friendly apps suggest @ags_cs4 highly , amazing work , great prices , and will get done exactly what you after -
small world , i live round the corner from you , let me know if you need anthing bro
-
GlobalGangsters - oldschool rpg style mafia game
m1ll1k3n replied to m1ll1k3n's topic in Game Projects
๐ -
i play mainly werewolf servers , i usualy play in a trio but should drop me a message sometimes ill show you the ropes
-
4000hours in rust ..,,,, im not addicted ... just like the taste of it lol ๐
-
GlobalGangsters - oldschool rpg style mafia game
m1ll1k3n replied to m1ll1k3n's topic in Game Projects
๐ -
GlobalGangsters - oldschool rpg style mafia game
m1ll1k3n replied to m1ll1k3n's topic in Game Projects
thanks mate ,just wanted to revert back to the old days of timers and endless wipes rather than a round based thing appreciate the feedback thanks mate -
GlobalGangsters - oldschool rpg style mafia game
m1ll1k3n replied to m1ll1k3n's topic in Game Projects
recently updated a fair few features...go check it out!!! -
recently re-opened ( after around 8 years ) one of an old project i have been working on,scripts were sourced online years back and only recently found on a old hd and so i thought ide bring it back to life please come give it a look http://globalgangsters.co.uk
-
thanks for the feedback , can you please refer to which pages your talking about in the 404s and the bugs please
-
was just waiting for the ns to update and dns to change over mate all sorted now
-
be great full if you could take a look , its a very old script base I've been using for years decided to bring it alive again as its a nostalgic feeling game https://globalgangsters.co.uk also appreciate if anyone knows anywhere i can get good advertising for a good register $ per user thanks meltdown dan
-
what are the dns settings as my game wont show up even after nameserver change to direct towards my MWG hosting
-
Look at my game criminalempire.co.uk just implemented this exact feature , with an added bonus of a user being able to choose โoff the radarโ as a perk which makes a user unsearchable on detective for the pack length time
-
"text" => '<img src="http://criminalempire.co.uk/{image}" width="600" height="400"/><br>Your Currently Viewing ')); tahts what im running atm but its still not working i get : http://criminalempire.co.uk/ as a image adress when running that and when i try and use "text" => '<img src="http://criminalempire.co.uk/<{image}>" width="600" height="400"/><br>Your Currently Viewing ')); i get : http://criminalempire.co.uk/<> as an image adress , i run it with <> purly because the same thing worked on theft and on the picture on the garages table bellow , but now neither seem to work on the garages page regardlesss weather its {image} or <{image}> im just trying to get it to call the image from table this is where it takes me when i click on view car http://criminalempire.co.uk/?page=garage&action=view&id=361 so thats working fine ,but still wont call the image aswell as the id for some reason ... or do i need it to call image from the id in the table?
-
thats what you get with that ? id will just show the image ... im not having a problem calling the id as it was already taking me to http://criminalempire.co.uk/?page=garage&action=view&id=349 its just this "text" => '<img src="http://criminalempire.co.uk/{image}"><br>Your Currently Viewing ')); for some reason {image} or <{image}> wont call the /cars/car.jpg like it does on theft.inc.php? } else { $success = true; $this->alerts[] = $this->page->buildElement('success', array( "text" => '<img src="http://criminalempire.co.uk/'.$image.'"/><br>You successfuly stole a '.$carName.' with '.$carDamage.'% damage.' )); that works 100% fine on theft which is why i though "text" => '<img src="http://criminalempire.co.uk/<{image}>"/><br>Your Currently Viewing ')); would work as <{image}> works on the table just bellow in garage
-
Brand New Game Just Released Into v1.0 with a fresh new layout and some exciting features set to come no properties or gangs currently taken still a chance to dominate http://criminalempire.co.uk Register for free now See you there Meltdown Bellow are a few screenshots