Fork me on GitHub

Howdy, Stranger!

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

Support for Vanilla Forums Cloud product

In this Discussion

Ready to contribute?

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

Current releases are 2.1.3 (9 Sept 2014) and 2.0.18.13 (5 Aug 2014)

Ready for 2.1? Find out if your plugins are compatible. 2.0 will no longer be updated after Dec 2014.

Improvement for HTML mode

npnp
edited January 2011 in Vanilla 2.0 Help
This discussion is related to the Quotes addon.
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
140c140
< $Sender->Form->SetValue('Body', '<blockquote rel="'.$QuoteData['authorname'].'">'.$QuoteData['body']."</blockquote>\n");
---
> $Sender->Form->SetValue('Body', '<blockquote><a href="'.$QuoteData['url'].'">'.$QuoteData['authorname'].' said</a>: '.$QuoteData['body']."</blockquote>\n");
179c179,180
< '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
208c208
< var Append = '<blockquote rel="'+Data.Quote.authorname+'">'+Data.Quote.body+'</blockquote>'+"\n";
---
> var Append = '<blockquote><a href="'+Data.Quote.url+'">'+Data.Quote.authorname+' said</a>: '+Data.Quote.body+'</blockquote>'+"\n";
Tagged:

Comments

Sign In or Register to comment.