*

Recent

Author Topic: User Upload Games  (Read 4843 times)

Frank

  • Sr. Member
  • ****
  • Posts: 257
  • Force: +4/-0
User Upload Games
« on: November 09, 2014, 12:04:14 AM »
I had a look at the submit.php and the instructions, though I'm not going to add it to "tiles" just to test it.. But there doesn't appear to be any notification of any uploaded/not active games?

I use something quite different from the way you do it, so maybe you need to add something like this to the "User Menu" ?

Code: [Select]

$query = "SELECT active, COUNT(active) FROM fas_games WHERE active=0";

$result = mysql_query($query) or die(mysql_error());

while($row = mysql_fetch_array($result)){

$row_active = $row['active'];
$row_count = $row['COUNT(active)'];

if($row_active != '0'){/*Do Nothing*/}else{

if($row_active == 0){$inactive = 'Inactive Games';}

if($row_active == 0 && $usrdata['user_level'] == 2){echo '<li><a href="'.$domain.'/index.php?action=admin&amp;case=managegames"><b>'.$inactive.' ('.$row_count.')</b></a></li>';}

}
}


« Last Edit: November 09, 2014, 03:44:07 PM by Frank »

am-fs

  • Owner
  • Developer
  • Full Member
  • ******
  • Posts: 228
  • Force: +1/-0
    • Great Flash Games
Re: User Upload Games
« Reply #1 on: November 09, 2014, 09:26:21 AM »
When a user submits a game, it is in the manage games inactive list, you will have to approve it.

Yes .... there is no notification yet, I planed on adding this when it is in the official release of FAS.

Frank

  • Sr. Member
  • ****
  • Posts: 257
  • Force: +4/-0
Re: User Upload Games
« Reply #2 on: November 09, 2014, 03:48:44 PM »
I realise you don't want to upgrade on the 'run' and it always better to keep things back until a new release. Otherwise one would be at it ALL of the time. :(

Anyway, I upgraded that code for FAS - 'tiles' and it works fine so feel free to use it if you wish.. ;)

I even took a picture...

Dillon

  • Developer
  • Sr. Member
  • ******
  • Posts: 340
  • Force: +3/-0
    • Arcade Freak
Re: User Upload Games
« Reply #3 on: November 09, 2014, 04:01:13 PM »
I realise you don't want to upgrade on the 'run' and it always better to keep things back until a new release. Otherwise one would be at it ALL of the time. :(

Anyway, I upgraded that code for FAS - 'tiles' and it works fine so feel free to use it if you wish.. ;)

I even took a picture...

Thats a nice place to put the notification didnt think of that.

am-fs

  • Owner
  • Developer
  • Full Member
  • ******
  • Posts: 228
  • Force: +1/-0
    • Great Flash Games
Re: User Upload Games
« Reply #4 on: November 09, 2014, 07:16:21 PM »
Nice ......... Frank, I like that  8)

Frank

  • Sr. Member
  • ****
  • Posts: 257
  • Force: +4/-0
Re: User Upload Games
« Reply #5 on: November 10, 2014, 07:37:19 PM »
Thanks, I also use a a class= on it so that it's a different colour... :P