What exactly have you done so far?DataNalle wrote:I've tried to hard code it without success
Don't ignore the context: the whole file is for converting foreign data to phpBB data. So there's no hidden functionality - once found it will just be replaced by two CRs.DataNalle wrote:the [hr] tag exists in functions_convert.php
Added the necessary button and other code changes to language files and such. (language/en/posting.php and prosilver/tempalte/posting_buttons.html) I've been pretty much following the trail of the [*] tag and adding similar lines of code for [hr].AmigoJack wrote:What exactly have you done so far?
DataNalle wrote:I tried with bbstyle(-2) since [*] is -1.
bbstyle()
is defined in /styles/*/template/editor.js and of course there is no -2
expected there.Roughly said you have to augment /includes/bbcode.php and /includes/message_parser.php by projecting the code of existing BBCodes to keep all the functionality (i.e. post settings "Disable BBCode" won't parseI didn't find the tag -> HTML code converter either.
[hr]
either) - there's no single point of code that handles it all and once.TryDataNalle wrote:The part that I did not get to work is actually inserting the [hr] tag into the message body (prosilver/template/editor.js) with a button press. I tried with bbstyle(-2) since [*] is -1.
insert_text('[hr]')
instead.[hr][/hr]
<hr />
OP wants the code without end tagAGC wrote:Why not trying this:
code:
[hr][/hr]
html:
<hr />
[/hr]
so that you can just put [hr] and make a horizontal line.So I see. But.....Jessica wrote:OP wants the code without end tagAGC wrote:Why not trying this:
code:
[hr][/hr]
html:
<hr />
[/hr]
so that you can just put [hr] and make a horizontal line.