*

Recent

Author Topic: [Mod] Clean up Admin Manage Games  (Read 6447 times)

am-fs

  • Owner
  • Developer
  • Full Member
  • ******
  • Posts: 228
  • Force: +1/-0
    • Great Flash Games
[Mod] Clean up Admin Manage Games
« on: October 30, 2014, 08:43:25 PM »
If you noticed that you can have different ads on all your games, and if you do not plan on using this feature it can be a pain to edit your games. I will show you how to clean this page up.

pages/admin/managegames.php

Remove Code:
Code: [Select]
                        <tr>
<td>Sponsor:</td>
<td><textarea name=\'sponsor\' rows=\'12\' cols=\'50\' >'.$r['sponsor'].'</textarea></td>
</tr>
</tr>
<td>Sponsor Notes:
                                <br><small>Use this to keep track of when sponsorship expires for now, or other needed notes.</small></td>
<td><textarea name=\'sponsornotes\' rows=\'12\' cols=\'50\' >'.$r['sponsornotes'].'</textarea></td>
</tr>
<tr>
<td>Sponsorship Active:<br><small>0=No sponsor yet<br>1=Sponsor pending<br>2=Sponsor active</small></td>
<td><input type=\'text\' name=\'sponsoractive\' value=\''.$r['sponsoractive'].'\'></td>
</tr>
</tr>
<td>Ad One:</td>
<td><textarea name=\'ads1\' rows=\'12\' cols=\'50\' >'.$r['ads1'].'</textarea></td>
</tr>
</tr>
<td>Ad Two:</td>
<td><textarea name=\'ads2\' rows=\'12\' cols=\'50\' >'.$r['ads2'].'</textarea></td>
</tr>
</tr>
<td>Ad Three:<br><small>Does not show up anywhere. Extra ad code you may use to place
                  where you want.</small></td>
<td><textarea name=\'ads3\' rows=\'12\' cols=\'50\' >'.$r['ads3'].'</textarea></td>
</tr>
</tr>
<td>Header Space:<br><small>Turns off automaticaly if left empty.</small></td>
<td><textarea name=\'headerspace\' rows=\'12\' cols=\'50\' >'.$r['headerspace'].'</textarea></td>
</tr>
</tr>
<td>Footer Space:</td>
<td><textarea name=\'footerspace\' rows=\'12\' cols=\'50\' >'.$r['footerspace'].'</textarea></td>
</tr>
</tr>
<td>Above Games:</td>
<td><textarea name=\'abovegames\' rows=\'12\' cols=\'50\' >'.$r['abovegames'].'</textarea></td>
</tr>
</tr>
<td>Below Games:</td>
<td><textarea name=\'belowgames\' rows=\'12\' cols=\'50\' >'.$r['belowgames'].'</textarea></td>
</tr>

And Remove this Code below:
Code: [Select]
<tr>
<td>Sponsor:</td>
<td><textarea name=\'sponsor\' rows=\'12\' cols=\'50\' >'.$r['sponsor'].'</textarea></td>
</tr>
</tr>
<td>Sponsor Notes:
                  <br><small>Use this to keep track of when sponsorship expires for now, or other needed notes.</small></td>
<td><textarea name=\'sponsornotes\' rows=\'12\' cols=\'50\' >'.$r['sponsornotes'].'</textarea></td>
</tr>
<tr>
<td>Sponsorship Active:</td>
<td><input type=\'text\' name=\'sponsoractive\' value=\''.$r['sponsoractive'].'\'></td>
</tr>
</tr>
<td>Ad One:</td>
<td><textarea name=\'ads1\' rows=\'12\' cols=\'50\' >'.$r['ads1'].'</textarea></td>
</tr>
</tr>
<td>Ad Two:</td>
<td><textarea name=\'ads2\' rows=\'12\' cols=\'50\' >'.$r['ads2'].'</textarea></td>
</tr>
</tr>
<td>Ad Three:<br><small>Does not show up anywhere. Extra ad code you may use to place
                  where you want.</small></td>
<td><textarea name=\'ads3\' rows=\'12\' cols=\'50\' >'.$r['ads3'].'</textarea></td>
</tr>
</tr>
<td>Header Space:<br><small>Turns off automaticaly if left empty.</small></td>
<td><textarea name=\'headerspace\' rows=\'12\' cols=\'50\' >'.$r['headerspace'].'</textarea></td>
</tr>
</tr>
<td>Footer Space:</td>
<td><textarea name=\'footerspace\' rows=\'12\' cols=\'50\' >'.$r['footerspace'].'</textarea></td>
</tr>
</tr>
<td>Above Games:</td>
<td><textarea name=\'abovegames\' rows=\'12\' cols=\'50\' >'.$r['abovegames'].'</textarea></td>
</tr>
</tr>
<td>Below Games:</td>
<td><textarea name=\'belowgames\' rows=\'12\' cols=\'50\' >'.$r['belowgames'].'</textarea></td>
</tr>

Now you have a simple and clean manage games page.

Frank

  • Sr. Member
  • ****
  • Posts: 257
  • Force: +4/-0
Re: [Mod] Clean up Admin Manage Games
« Reply #1 on: October 30, 2014, 09:51:06 PM »
Either way, there's errors with that mark-up.

Note all of the double </tr>'s

Code: [Select]
</tr>
</tr>
<td>Ad Two:</td>
<td><textarea name=\'ads2\' rows=\'12\' cols=\'50\' >'.$r['ads2'].'</textarea></td>
</tr>
</tr>

am-fs

  • Owner
  • Developer
  • Full Member
  • ******
  • Posts: 228
  • Force: +1/-0
    • Great Flash Games
Re: [Mod] Clean up Admin Manage Games
« Reply #2 on: October 30, 2014, 10:01:55 PM »
Damn it, you have a good eye .... lol
This will be fixed ...... Thanks

Frank

  • Sr. Member
  • ****
  • Posts: 257
  • Force: +4/-0
Re: [Mod] Clean up Admin Manage Games
« Reply #3 on: October 30, 2014, 10:24:38 PM »
ROFL!

Only two more files that need the same treatment.

socialmedia.php
ads.php