Page 2 of 6

Re: Fixing codeboxes

Posted: 02 Nov 2018, 13:11
by Scr1pter
For me the codeboxes work fine now! ;)

Code: Select all

Send hello
return
	tab
Thanks!

Regards

Re: Fixing codeboxes

Posted: 02 Nov 2018, 13:21
by burque505
Here too (Simplicity). Are there plans to reintroduce Expand/Collapse and Download?

Code: Select all

Hello world
Regards,
burque505

Re: Fixing codeboxes

Posted: 02 Nov 2018, 16:40
by Cuadrix

Code: Select all

fgfg
gf
g
g
g
g
g

g
g
g

g

g
g
g
h

h
g
gh

g
g
g

g
g
g
g
g
g
g
g
g

Still can't expand though, so not finished yet.

Re: Fixing codeboxes

Posted: 02 Nov 2018, 19:46
by joedf
Finally got GeSHi to partially work... using Codebox tag right now...

Code: Select all

if (MyVar = 5)
{
    MsgBox, MsyVar equals == %MyVar%!!
    ExitApp
}

Re: Fixing codeboxes

Posted: 02 Nov 2018, 20:48
by guest3456
expand/collapse was killer ;)

Re: Fixing codeboxes

Posted: 02 Nov 2018, 20:54
by joedf
I am going to progressively modify and improve the code box plus plugin under “codebox” tag until it is more or less what we want.
We will have to reimplement the documentation links the download and update the styling ... :b

Re: Fixing codeboxes

Posted: 03 Nov 2018, 02:16
by 2_05
Does that mean that once the "codebox" tag is what we want, it is moved to the "code" tag, or is "codebox" now the new default tag for code?

The "code" tag is still missing indentation. I'd vote for updating the "code" tag at some point as things like indentation are affecting the readeability of a lot of existing examples and tutorials on this forum.

Code: Select all

{
    indentation
}

Re: Fixing codeboxes

Posted: 03 Nov 2018, 13:08
by joedf
oh nono, I mean, people should still use[/code]. But [/codebox] will be updated and eventually replace [/code].
As in [/codebox] is experimental. Indentation will be fixed in the "new" version.
Sorry for any inconvenience :b

Re: Fixing codeboxes

Posted: 03 Nov 2018, 16:26
by jeeswg
- At least as recently as 28 Oct, code tags resulted in code boxes (minus some features), then for a while they weren't working, and just showed literal text, code boxes appear to be back now.
How to extract text from Notepad using SendMessage Command? - AutoHotkey Community
https://autohotkey.com/boards/viewtopic ... 79#p246479
- But posts that were showing text instead of boxes don't update automatically when you refresh a page, you have to resubmit (edit) them. Is there a way to jog a post to make it redraw itself? Will the website automatically instruct all posts to redraw at some point?
- Btw are spoiler tags/other tags not working either, and, will Ask For Help be moved back from forum 76 to forum 5. (The forum number might be seem minor, but that, and the code boxes are my main concerns.)

Re: Fixing codeboxes

Posted: 05 Nov 2018, 13:01
by swagfag
so whats the deal with codeboxes currently, ive seen a couple here and there with line numbering/expand/collapse. is there a different tag for them or what?
also are spoilers coming back? is existing spoiler content currently just not visible or lost forever?

Re: Fixing codeboxes

Posted: 05 Nov 2018, 16:45
by nnnik
Thats explained 2 posts above yours.

Re: Fixing codeboxes

Posted: 05 Nov 2018, 17:44
by burque505
Okay, 15:38 MST, Nov 5, 2018:
"c" tag:

This is not indented.
This should be indented but isn't.

Looks more like a quote than code, but then again ...

"codebox"
[codebox]
This is not indented.
This should be indented but isn't.
[/codebox]
Epic fail, obviously.

"code"

Code: Select all

This is not indented.
	This should be indented but isn't.
Regards,
burque505

Re: Fixing codeboxes

Posted: 05 Nov 2018, 18:04
by joedf
“Codebox” shouldn’t be used at all right now. So, It’s no issue that it is failing right now .
I already know that indents are broken.
I already know “c” is not working correctly.
All these tags have been reset. Working to fix things, patience pleeease :(

Re: Fixing codeboxes

Posted: 05 Nov 2018, 18:06
by swagfag
it mentions [codebox]...[/codebox], which evidently doesnt work by itself(

Code: Select all

[/c]for those wondering). so, no, not explained.
also:
[quote]is existing spoiler content currently just not visible or lost forever?[/quote] where is that explained?

e: just checked, spoiler contents are fine, but one has to quote to see them, temp workaround

Re: Fixing codeboxes

Posted: 05 Nov 2018, 18:11
by nnnik
Everything that is a custom plugin is broken.
Spoilers are among those.

Re: Fixing codeboxes

Posted: 05 Nov 2018, 18:22
by jeeswg
SUMMARY OF FORUM ISSUES

These 3 things surprise me, because they seem pretty simple, are they difficult to fix?
- quote boxes: before, the default quote tag text only contained the username (now it shows 4 things)
- url tags: before, the url tag prevented any urls from being truncated (now it appears to make no difference)
- copy text: when you copy text to the clipboard, you get leading spaces (e.g. on Internet Explorer)

Some other points are:
- [minor] code / quote boxes: '[/tag] line break text' used to result in '[/tag] blank line text'
- [minor] ... although '[/tag] text' does result in '[/tag] line break text' (as it used to)
- [FIXED] code boxes: internal blank lines and indentation omitted
- code boxes: Download button missing
- [IGNORE] code boxes: text used to be word-wrapped
- [FIXED] spoiler3 tags: no text appears when hovered over
- forum number: to restore Ask For Help from forum 76 to forum 5

Also old posts (from 28 Oct onwards) need 'refreshing' to display correctly, e.g. posts newer than this post:
How to extract text from Notepad using SendMessage Command? - AutoHotkey Community
https://autohotkey.com/boards/viewtopic ... 79#p246479

And:
forum listings not updated - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=3&t=56810

And:
interpreting something that looks like a list tag, as a list tag, when it didn't before (IIRC), sometimes I use '[list ... ...]' as header text:
jeeswg's Explorer tutorial - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=7&t=31755

Re: Fixing codeboxes

Posted: 05 Nov 2018, 18:54
by burque505
Just in case ...

Simple Spoiler BBCode: here.
Advanced BBCode Box 3: here.
Codebox Plus: here.
Another Advanced BBCode Box 3 (updated 11 days ago): here.

Not complaining, mind you, it's all beyond me.

Regards,
burque505

Re: Fixing codeboxes

Posted: 05 Nov 2018, 23:16
by joedf
@jeeswg
Quote: i know... :( will fix easily ... dont worry.
url: They truncated before beyond a certain length, but that's by design.
Copy: I don't get leading spaces...
Codeboxes: broken right now, as I have said many times. Patience. I know i know i know :cry:

Simple Spoiler BBCode: Thanks, I'll take a look.
Advanced BBCode Box 3: Wow... fancy ahaha
Codebox Plus: That's what we have, but it's no longer updated... I am working on a fork.

Re: Fixing codeboxes

Posted: 05 Nov 2018, 23:48
by jeeswg
- On Internet Explorer, I get a leading space on each line (except the first), when I copy and paste regular text from a post.
- Normally a url can be truncated. With the url tag it forces showing the entire url without truncation. (That's why I use the url tag.)
- Thanks for the info and your efforts joedf. I mentioned those problems just in case people weren't aware, and it indeed seems that people weren't aware re. leading spaces and the url tag.
- (Fingers crossed that every detail of code boxes and post formatting, as they used to be, will be faithfully and verbatim recreated. Hehe or close enough.)

Re: Fixing codeboxes

Posted: 06 Nov 2018, 02:59
by tmplinshi
Here is a quick fix to adding back the "Expand View", also fixed spoiler can't show/hide issue.
  1. Install Tampermonkey chrome extension
  2. Install this UserScript: https://greasyfork.org/scripts/374036-ahk-forum-fix
The code of the userscript was modified from https://www.phpbbguru.net/community/vie ... hp?t=40590.