Forums / Cotonti / Support / Customize quotes

Twiebie
#1 2012-06-11 18:32

I understood through a ticket in Github that it's possible to customize the quotes a bit by using resource strings in theme.php in the theme folder.

For example:

$R['forums_code_quote'] = "{\$postername}:\n{\$text}\n\n";
$R['forums_code_quote_begin'] = '';
$R['forums_code_quote_close'] = '';

I've tried this but nothing changes. Am I missing something here?

GHengeveld
#2 2012-06-11 20:58

Not sure you got this or not, but resource strings can be defined in themename.php, e.g. nemesis.php.

Twiebie
#3 2012-06-11 21:41

Yep, that's exactly what I did. It's not changing anything.

GHengeveld
#4 2012-06-12 08:00

You can try to set $theme_reload['R']['forums_code_quote'] in your themename.php. The _begin and _close variants won't work since they don't use cot_rc(). This is a bug.

Trustmaster
#5 2012-06-13 20:35

Also plugins such as bbcode or html may overload these resources because they are parser-specific. Please let us know if some of these tricks worked or not.

May the Source be with you!
Twiebie
#6 2012-06-13 20:45
$theme_reload['R']['forums_code_quote'] = "{\$postername}:\n{\$text}\n\n"; 

Works in themename.php, but obviously without open and close tags it doesn't create a quote and only inserts the text.

I guess I could use something like:

$theme_reload['R']['forums_code_quote'] = "[quote]{\$postername}:\n{\$text}\n\n[/quote]";

Should I submit a ticket for this bug?

Editing bbcode.forums.php is also an option, but much less desirable as this is a change in the system instead of the theme.

Added 24 minutes later:

It's not really going to work out with quotes inside quotes. A quote inside a quote is not displayed as a quote, only as plain text.

Any idea's on that?

This post was edited by Twiebie (2012-06-13 21:11, 12 years ago)
Trustmaster
#7 2012-06-14 15:44

Yes, please create a ticket for _begin/_close problem.

As for nested quotes, they've been deprecated since Seditio. I guess the reason is to keep the markup simple.

May the Source be with you!
Twiebie
#8 2012-06-14 20:47

Okay, i'll create a ticket for that.

Not very user friendly to not have nested quotes. Results in very messy posts when quoting a post that already contains quotes...

Added 4 days later:

Any chance nested quotes can be implemented again in the system, or perhaps as a plugin? Can this be done with the patterns for bbcodes?

It's pretty standard to have working nested quotes in a forum, isn't it?

This post was edited by Twiebie (2012-06-18 22:15, 12 years ago)