Skip to main content
[1.0.3] edit post changes quote BBC Started by Jorin · · Read 2302 times 0 Members and 1 Guest are viewing this topic. previous topic - next topic

[1.0.3] edit post changes quote BBC

Use [quote=http://forum-alternative-antriebe.de]text[/quote]. Looks fine for the moment.

But then edit the post, change anything, and save it. The BBC changed to this: [quote author=http://forum-alternative-antriebe.de]text[/quote] and the link to the source page doesn't work anymore.  :(

Re: [1.0.3] edit post changes quote BBC

Reply #1

Yeah, one of those situations where too flexibility is tricky to handle.
If you have some time, try this, in themes/default/scripts/jquery.sceditor.elkarte.js:
Code: (find) [Select]
			if ($elm.attr('link'))
link = ' link=' + $elm.attr('link');
Code: (add after) [Select]

if (author === '' && date === '' && link !== '')
link = '=' + $elm.attr('link');

and:
Code: (find) [Select]
				attr_author = attrs.defaultattr;
sAuthor = bbc_quote_from + ': ' + attr_author;
Code: (replace with) [Select]
				attr_link = attrs.defaultattr;
sLink = attr_link.substr(0, 7) === 'http://' ? attr_link : elk_scripturl + '?' + attr_link;
sAuthor = '<a href="' + sLink + '">' + bbc_quote_from + ': ' + sLink + '</a>';
Bugs creator.
Features destroyer.
Template killer.