A redesign of the AGS site is now ready to be implemented! Please help us with art and content.

Author Topic: [SUGGESTION] # button to insert [code=ags]  (Read 2429 times)

[SUGGESTION] # button to insert [code=ags]
« on: 06 Sep 2013, 09:10 »
Since it seems that people do not always figure out how the "code" tag works, there was an opinion that the '#' button in the post toolbar should insert [ code = ags ][ / code ].
Simply [ code ] does not work on the forums at all.

Gilbert

  • Local Moderator
  • * KILL* * KILL * * KILL *
    • Lifetime Achievement Award Winner
Re: [SUGGESTION] # button to insert [code=ags]
« Reply #1 on: 06 Sep 2013, 09:51 »
I didn't follow much on forum updates, but wasn't the [code=ags][/code] button once available alongside with the ordinary [code][/code] one? Was it removed recently? I didn't use it though, as I remembered the tool bar was quite clumsy and it's quite hard to find the right buttons to do stuff (compared to before the upgrade), and the current layout seems to be a lot cleaner now, so this is an improvement. But of course, since [code][/code] doesn't have much practical use here, I think we should remove it and instead keep the [code=ags][/code] one.

AGA

  • Adventure Game Aficionado
  • Administrator
  • Mittens Deity
  • ¡Qué alí­vio!
    • Lifetime Achievement Award Winner
    • AGA worked on one or more games that won an AGS Award!
    •  
    • AGA worked on one or more games that was nominated for an AGS Award!
Re: [SUGGESTION] # button to insert [code=ags]
« Reply #2 on: 06 Sep 2013, 10:18 »
The code tag changed when I upgraded SMF whenever it was.  I can't work out how to make it support just "
Code: [Select]
" rather than needing the specific ags parameter.  It uses GeSHi, a syntax highlighter that supports dozens of languages, which makes it very complicated.

And yes, there used to be a shortcut button in the post editor. It (and a few other tags) disappeared when I upgraded the plugin that handles the editor a while ago, but I couldn't remember which tags those were to readd them.  I'll hack it back in at some point.

cat

  • Mittens Baronet
  • AGS Baker
    • cat worked on one or more games that won an AGS Award!
    •  
    • cat worked on one or more games that was nominated for an AGS Award!
Re: [SUGGESTION] # button to insert [code=ags]
« Reply #3 on: 06 Sep 2013, 10:28 »
Could then please also add the zoomable image button as well?

Peder 🚀

  • Been nearly 10 years, think it's time for a change
    • Lifetime Achievement Award Winner
    • Peder 🚀 worked on one or more games that won an AGS Award!
    •  
    • Peder 🚀 worked on one or more games that was nominated for an AGS Award!
Re: [SUGGESTION] # button to insert [code=ags]
« Reply #4 on: 06 Sep 2013, 21:04 »
It's pretty simple to make the code tag button add =AGS as default.
But off course the best option would be to make
Code: [Select]
use AGS as default since as mentioned in another thread all old threads/posts using
Code: [Select]
now doesn't work.

AGA:
Spoiler: ShowHide
In Sources/Subs-markItUp.php
Just change openWith:"[ code]" with openWith:"[ code=AGS]"
« Last Edit: 06 Sep 2013, 21:16 by Peder Johnsen+ »

AGA

  • Adventure Game Aficionado
  • Administrator
  • Mittens Deity
  • ¡Qué alí­vio!
    • Lifetime Achievement Award Winner
    • AGA worked on one or more games that won an AGS Award!
    •  
    • AGA worked on one or more games that was nominated for an AGS Award!
Re: [SUGGESTION] # button to insert [code=ags]
« Reply #5 on: 06 Sep 2013, 22:19 »
Yeah, it was making the code tag parse the same as code=ags that was the problem.  The markup editor used to add =ags by default.

Re: [SUGGESTION] # button to insert [code=ags]
« Reply #6 on: 11 Feb 2014, 09:11 »
Sorry, I bump this, because a lot of newcomers (and not only them) unfamiliar with how forum tags work use "[code ]".

AGA

  • Adventure Game Aficionado
  • Administrator
  • Mittens Deity
  • ¡Qué alí­vio!
    • Lifetime Achievement Award Winner
    • AGA worked on one or more games that won an AGS Award!
    •  
    • AGA worked on one or more games that was nominated for an AGS Award!
Re: [SUGGESTION] # button to insert [code=ags]
« Reply #7 on: 11 Feb 2014, 11:10 »
Code: Adventure Game Studio
  1. cAGA.Say("Think it works? With and without a definition of the language...");

Code: [Select]
cAGA.Say("Think it works? With and without a definition of the language...");
(yup.  Also sadly I can't be sure that is actually the correct AGS script anymore.)

cat

  • Mittens Baronet
  • AGS Baker
    • cat worked on one or more games that won an AGS Award!
    •  
    • cat worked on one or more games that was nominated for an AGS Award!
Re: [SUGGESTION] # button to insert [code=ags]
« Reply #8 on: 11 Feb 2014, 11:42 »
Could you also add the image zoom tags, please?

selmiak

  • ǝsıɔɹǝxǝ ʞɔǝu puɐ uıɐɹq
    • I can help with play testing
    • I can help with proof reading
    • I can help with translating
    • I can help with web design
    • selmiak worked on one or more games that won an AGS Award!
    •  
    • selmiak worked on one or more games that was nominated for an AGS Award!
Re: [SUGGESTION] # button to insert [code=ags]
« Reply #9 on: 11 Feb 2014, 11:47 »
and 1 space in front of the smileys when clicked;)

AGA

  • Adventure Game Aficionado
  • Administrator
  • Mittens Deity
  • ¡Qué alí­vio!
    • Lifetime Achievement Award Winner
    • AGA worked on one or more games that won an AGS Award!
    •  
    • AGA worked on one or more games that was nominated for an AGS Award!
Re: [SUGGESTION] # button to insert [code=ags]
« Reply #10 on: 11 Feb 2014, 11:51 »
None of the other tags have a space before them...

selmiak

  • ǝsıɔɹǝxǝ ʞɔǝu puɐ uıɐɹq
    • I can help with play testing
    • I can help with proof reading
    • I can help with translating
    • I can help with web design
    • selmiak worked on one or more games that won an AGS Award!
    •  
    • selmiak worked on one or more games that was nominated for an AGS Award!
Re: [SUGGESTION] # button to insert [code=ags]
« Reply #11 on: 11 Feb 2014, 12:14 »
cool. I don't care about the text in the imgzoom all that much, but this could come in handy:

AGA

  • Adventure Game Aficionado
  • Administrator
  • Mittens Deity
  • ¡Qué alí­vio!
    • Lifetime Achievement Award Winner
    • AGA worked on one or more games that won an AGS Award!
    •  
    • AGA worked on one or more games that was nominated for an AGS Award!
Re: [SUGGESTION] # button to insert [code=ags]
« Reply #12 on: 11 Feb 2014, 12:17 »
Yeah, the image is still on the server, I just can't work out why the image isn't showing properly.  SMF is so complicated!

selmiak

  • ǝsıɔɹǝxǝ ʞɔǝu puɐ uıɐɹq
    • I can help with play testing
    • I can help with proof reading
    • I can help with translating
    • I can help with web design
    • selmiak worked on one or more games that won an AGS Award!
    •  
    • selmiak worked on one or more games that was nominated for an AGS Award!
Re: [SUGGESTION] # button to insert [code=ags]
« Reply #13 on: 11 Feb 2014, 12:36 »
probably because there is no

Code: CSS
  1. .markItUp .imgzoom a {
  2.     background-image: url("images/imgzoompictureURL.png");
  3. }

in the style.css

AGA

  • Adventure Game Aficionado
  • Administrator
  • Mittens Deity
  • ¡Qué alí­vio!
    • Lifetime Achievement Award Winner
    • AGA worked on one or more games that won an AGS Award!
    •  
    • AGA worked on one or more games that was nominated for an AGS Award!
Re: [SUGGESTION] # button to insert [code=ags]
« Reply #14 on: 11 Feb 2014, 12:48 »
The problem was that for some reason the extension was ignoring the CSS in the AGS and AGSCompact theme folders (which I had changed) and falling back to the default one (which I don't usually need to touch).  Odd!

The image icon is actually a little large, so if someone wants to resize it to 16x16px that'd be helpful.  I don't have anything more than Paint on my work PC, and that makes it go all blurry.

AGA

  • Adventure Game Aficionado
  • Administrator
  • Mittens Deity
  • ¡Qué alí­vio!
    • Lifetime Achievement Award Winner
    • AGA worked on one or more games that won an AGS Award!
    •  
    • AGA worked on one or more games that was nominated for an AGS Award!
Re: [SUGGESTION] # button to insert [code=ags]
« Reply #15 on: 11 Feb 2014, 18:58 »
There, sorted.

cat

  • Mittens Baronet
  • AGS Baker
    • cat worked on one or more games that won an AGS Award!
    •  
    • cat worked on one or more games that was nominated for an AGS Award!
Re: [SUGGESTION] # button to insert [code=ags]
« Reply #16 on: 11 Feb 2014, 20:36 »
Great, thanks!