Author Topic: Database error when adding Youtube video  (Read 581 times)  Share 

Gurok

  • Rottwheelers
  • When life hands you lemons, combine them with the mop
    • I can help with AGS tutoring
    •  
    • Best Innovation Award Winner 2016, for improving and extending the AGS scripting language
    •  
    • I can help with proof reading
    •  
    • I can help with scripting
    •  
  • Gurok worked on a game that was nominated for an AGS Award!Gurok worked on a game that won an AGS Award!
Re: Database error when adding Youtube video
« Reply #20 on: 13 Jul 2017, 02:16 »
Khris listed a good workaround in the other thread, but fixing the design properly is a bit involved.

Remove all size=75 declarations from <input> elements in the code. These, combined with the width of the YouTube URL in the left column of the table, are what is pushing the width of the table out.
Add a class to each of the affected <input> elements, something like class="fullWidth".
Add a rule to the stylesheet:
Code: Adventure Game Studio
  1. .fullWidth { width: 100% }

If you don't fancy messing with the textboxes, you could fix it with just:
Code: Adventure Game Studio
  1. input[type=text][size=75] { width: 100% }
However, this is overriding the bad markup and may negatively affect other pages. It would be better to clean up the markup and apply styles in a modern fashion (as above).

Note: I tested these solutions in Chrome (which exhibited the problem for me) and they worked for me.
« Last Edit: 13 Jul 2017, 02:20 by Gurok »

AGA

  • Adventure Game Aficionado
  • Administrator
  • AdventureX Crew
  • Mittens Deity
  • ¡Qué alí­vio!
    • Lifetime Achievement Award Winner
    •  
  • AGA worked on a game that was nominated for an AGS Award!
Re: Database error when adding Youtube video
« Reply #21 on: 13 Jul 2017, 17:19 »
Seems to be fixed now in Chrome for me.  Thanks, Khris and Gurok for your ideas.

I'm currently working on cleaning up the site's backend code.  I'll try to abstract as much of the styling to CSS as I can while I'm at it.

Slasher

  • slasher
    • I can help with AGS tutoring
    •  
    • I can help with scripting
    •  
    • I can help with story design
    •  
  • Slasher worked on a game that was nominated for an AGS Award!
FIXED: Database error when adding Youtube video
« Reply #22 on: 13 Jul 2017, 17:56 »
Good man AGA (nod)

Now fixed for me in Chrome.

Cheers
« Last Edit: 19 Jul 2017, 17:48 by Slasher »