Adventure Game Studio

AGS Development => Site & Forum Reports => Topic started by: Crimson Wizard on Fri 06/09/2013 09:10:39

Title: [SUGGESTION] # button to insert [code=ags]
Post by: Crimson Wizard on Fri 06/09/2013 09:10:39
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.
Title: Re: [SUGGESTION] # button to insert [code=ags]
Post by: Gilbert on Fri 06/09/2013 09:51:32
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.
Title: Re: [SUGGESTION] # button to insert [code=ags]
Post by: AGA on Fri 06/09/2013 10:18:57
The code tag changed when I upgraded SMF whenever it was.  I can't work out how to make it support just "" 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.
Title: Re: [SUGGESTION] # button to insert [code=ags]
Post by: cat on Fri 06/09/2013 10:28:38
Could then please also add the zoomable image button as well?
Title: Re: [SUGGESTION] # button to insert [code=ags]
Post by: Peder 🚀 on Fri 06/09/2013 21:04:34
It's pretty simple to make the code tag button add =AGS as default.
But off course the best option would be to make use AGS as default since as mentioned in another thread all old threads/posts using now doesn't work.

AGA:
Spoiler
In Sources/Subs-markItUp.php
Just change openWith:"[ code]" with openWith:"[ code=AGS]"
[close]
Title: Re: [SUGGESTION] # button to insert [code=ags]
Post by: AGA on Fri 06/09/2013 22:19:48
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.
Title: Re: [SUGGESTION] # button to insert [code=ags]
Post by: Crimson Wizard on Tue 11/02/2014 09:11:54
Sorry, I bump this, because a lot of newcomers (and not only them) unfamiliar with how forum tags work use "[code ]".
Title: Re: [SUGGESTION] # button to insert [code=ags]
Post by: AGA on Tue 11/02/2014 11:10:40
Code (ags) Select
cAGA.Say("Think it works? With and without a definition of the language...");

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.)
Title: Re: [SUGGESTION] # button to insert [code=ags]
Post by: cat on Tue 11/02/2014 11:42:29
Could you also add the image zoom tags, please?
Title: Re: [SUGGESTION] # button to insert [code=ags]
Post by: selmiak on Tue 11/02/2014 11:47:03
and 1 space in front of the smileys when clicked;)
Title: Re: [SUGGESTION] # button to insert [code=ags]
Post by: AGA on Tue 11/02/2014 11:51:24
None of the other tags have a space before them...
Title: Re: [SUGGESTION] # button to insert [code=ags]
Post by: selmiak on Tue 11/02/2014 12:14:58
cool. I don't care about the text in the imgzoom all that much, but this could come in handy:
[imgzoom]http://i.imgur.com/ipR91U6.gif[/imgzoom]
Title: Re: [SUGGESTION] # button to insert [code=ags]
Post by: AGA on Tue 11/02/2014 12:17:11
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!
Title: Re: [SUGGESTION] # button to insert [code=ags]
Post by: selmiak on Tue 11/02/2014 12:36:26
probably because there is no

Code (css) Select
.markItUp .imgzoom a {
    background-image: url("images/imgzoompictureURL.png");
}


in the style.css
Title: Re: [SUGGESTION] # button to insert [code=ags]
Post by: AGA on Tue 11/02/2014 12:48:40
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.
Title: Re: [SUGGESTION] # button to insert [code=ags]
Post by: AGA on Tue 11/02/2014 18:58:09
There, sorted.
Title: Re: [SUGGESTION] # button to insert [code=ags]
Post by: cat on Tue 11/02/2014 20:36:07
Great, thanks! [imgzoom]http://www.adventuregamestudio.co.uk/forums/Smileys/AGS/smiley16_smiley.png[/imgzoom]