Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product

In this Discussion

Ready to contribute?

Amazing! Sign our contributors' agreement and then join us on GitHub.

Vanilla 2.2.1 is now available.
Please upgrade to 2.2 here. The 2.0 and 2.1 branches are no longer being updated.

Improvement for HTML mode

This discussion is related to the Quotes addon.
edited January 2011 in Vanilla 2.1 & Earlier Help
Quotes 1.2

In HTML mode, the quoted text has code
Like this
This doesn't show the user name, and I believe is a misuse of the rel tag. Here's a patch it to make it the style that Quote selection uses:
username said: Like this
diff -r Quotes/class.quotes.plugin.php Quotesmod/class.quotes.plugin.php
< $Sender->Form->SetValue('Body', '<blockquote rel="'.$QuoteData['authorname'].'">'.$QuoteData['body']."</p></div></blockquote>\n");
> $Sender->Form->SetValue('Body', '<blockquote><a href="'.$QuoteData['url'].'">'.$QuoteData['authorname'].' said</a>: '.$QuoteData['body']."</p></div></blockquote>\n");
< 'authorname' => $Data->InsertName
> 'authorname' => $Data->InsertName,
> 'url' => Gdn::Request()->Url('/discussion/comment/'.$Data->CommentID.'/#Comment_'.$Data->CommentID, false, false)
diff -r Quotes/js/quotes.js Quotesmod/js/quotes.js
< var Append = '<blockquote rel="'+Data.Quote.authorname+'">'+Data.Quote.body+'</p></div></blockquote>'+"\n";
> var Append = '<blockquote><a href="'+Data.Quote.url+'">'+Data.Quote.authorname+' said</a>: '+Data.Quote.body+'</p></div></blockquote>'+"\n";


Sign In or Register to comment.