Bug #7468
Some bugs into BBCodes
| Status: | Resolved | Start date: | 2010-04-26 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assignee: | - | % Done: | 100% |
|
| Category: | Forum | |||
| Target version: | 1.9.2 | |||
| Votes: | 0 |
Description
From buttons inserted wrong wrappers for:
Typoscript: insert "typoscript" but work "ts".
HTML: insert "html4strict" but work "html".
JavaScript: insert "javascript" but work "js".
Related issues
| duplicated by mm_forum - Bug #11343: Syntax Higlighting for Typoscript: wrong default value | Closed | 2010-12-08 |
Associated revisions
[+FEATURE]: Hook for dditional markers in search result (fixes issue #12435)
[#BUGFIX]: Fatal Error with TYPO3 v 4.5 and Extbase v 1.3.0 (fixes issue #12588)
[#BUGFIX]: Error when caching framework is not enabled (fixes issue #12600)
[#BUGFIX]: PNG images are not shown with enabled IE PNG fix (fixes issue #12120)
[#BUGFIX]: [typoscript] bb code is not parsed correctly (fixes issue #7468)
[+FEATURE]: Hook for dditional markers in search result (fixes issue #12435)
[#BUGFIX]: Fatal Error with TYPO3 v 4.5 and Extbase v 1.3.0 (fixes issue #12588)
[#BUGFIX]: Error when caching framework is not enabled (fixes issue #12600)
[#BUGFIX]: PNG images are not shown with enabled IE PNG fix (fixes issue #12120)
[#BUGFIX]: [typoscript] bb code is not parsed correctly (fixes issue #7468)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/mm_forum/branches/1.9.x@43299 735d13b6-9817-0410-8766-e36946ffe9aa
History
Updated by Hauke Hain almost 3 years ago
- Status changed from New to Needs Feedback
I have no clue what you are talking about. Please have a look at the updated manual for problems with JavaScript (Have a look at the end of chapter Getting started (introduction) for more information. The headlines are: “How to include the static templates” & “Static templates: Prototype or jQuery”)
Updated by Roman Savochenko almost 3 years ago
Hauke Hain wrote:
I have no clue what you are talking about. Please have a look at the updated manual for problems with JavaScript (Have a look at the end of chapter Getting started (introduction) for more information.
Where manual you mean? If it here http://typo3.org/documentation/document-library/extension-manuals/mm_forum/1.9.0/view/1/1/#id2550386 then no one word about syntax highlighting it present.
The headlines are: “How to include the static templates” & “Static templates: Prototype or jQuery”)
Included "Static templates: Prototype".
Will see for example "HTML" higlight. Open mm_forum config into that page and try select source code into last column. You can select only "html4strict" and if then you save and try insert that block you get code [html4strict]text[/html4strict]. Next try save and you see incorrect block into final text. Correct block you can get only for code [html]text[/html], but that source don't avaible into collumn "Source code" of config. Like problem allowed for some other source codes. I has fixed that problem only manual editing column "lang_code" of table "t3_oscada.tx_mmforum_syntaxhl" of typo3 DB.
Updated by Hauke Hain almost 3 years ago
I mean the updated manual: http://forge.typo3.org/projects/extension-mm_forum/repository/revisions/34259/entry/trunk/mm_forum/doc/manual.sxw
I think I have a clue what you mean. Hopefully anybody can reproduce and fix this error.
Updated by Ines Willenbrock over 2 years ago
I think, he is talking about the codes, which are inserted after clicking the buttons.
If you e.g. click "TS" then it builds [typoscript][/typoscript]. But the config for the replacement expects [ts][/ts].
The easy fix would be to change the config within the backend module in tools -> Syntax Highlighting.
Which is the string we want to use? [typoscript] or [ts]?
Updated by Roman Savochenko over 2 years ago
Ines Willenbrock wrote:
Which is the string we want to use? [typoscript] or [ts]?
For now I use: [ts], [html] and [js].
Updated by Ines Willenbrock over 2 years ago
Which are the working ones, yes.
I assume, that they are the ones, that should be used in future versions? Martin do you agree?
regards - Ines
Updated by Peter Schuster over 2 years ago
- Category set to Forum
This was introduced in r14713, issue #2135 (Backend Modul Tools Syntax Highligthing).
Updated by Ines Willenbrock over 2 years ago
With regards to the bug mentioned by Peter, we should fix the static data accordingly, that the longer strings are accepted for syntax highlighting.
Is it possible, to have both strings for backward compatibility?
regards - Ines
Updated by Ines Willenbrock over 2 years ago
If we want to have highlighting for the longer form, we should change ext_tables_static+adt.sql to contain something like this:
INSERT INTO tx_mmforum_syntaxhl (uid, pid, tstamp, crdate, deleted, hidden, lang_title, lang_pattern, lang_code, fe_inserticon) VALUES (2, 0, UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), 0, 0, 'Typoscript' , '/\\[typoscript\\](.*?)\\[\\/typoscripts\\]/isS' , 'typoscript' , 'ts.gif');
It seems impossible to have both forms without some ugly hacks.
If there are no objections, I'd attach a patch to this bug for review.
regards - Ines
Updated by Martin Helmich over 2 years ago
Just adding a second entry for the [typoscript] tag is not as easy, as for some reason there is a UNIQUE KEY on the lang_code column of the regarding database table.
Instead of removing this unique-key, I would suggest modifying the regular expression to match both [ts] and [typoscript] (untested):
/\[(ts|typoscript)\](.*?)\[\/\\1\]/isSUpdated by Martin Helmich over 2 years ago
- Status changed from Needs Feedback to Accepted
- Assignee set to Martin Helmich
- Target version set to 1.9.2
Updated by Martin Helmich over 2 years ago
- Status changed from Accepted to Resolved
- Assignee deleted (
Martin Helmich) - % Done changed from 0 to 100
Applied in changeset r43299.