for ajaxquote it goes in the ajaxquote.js file
for quotation it goes in the quote.js file
remember ur not going to add the code. u are going to replace it. looks for the function and replace it the one above
I'm new to Vanilla and I'm a little confused about this extension. Forgive me if this is a stupid question...
I made the change in ajaxquote.js to html but when I quote something I'm seeing the blockquote and cite tags in the post, instead of having it display as quoted. Is there another extension I need or something else I need to change to make this work properly?
I had it working along with the BetterBBCode extension but that was causing problems when users would switch the formatting back to "text." So I shut off the BetterBBCode extension and made the format change to html for Ajaxquote but that hasnt worked. The only other extensions I'm running are Guest Welcome Message and Extended Text Formatter.
Oh, I guess not. Again I am new to this (just installed a couple days ago) so I'm learning as I go.
That does sound like a logical issue though. Is there a preferred html formatter?
Well, one thing that I am trying to figure out is how to prevent users from switching the formatting and breaking the quoting. I think the differences between formatting is something that goes over most of their heads. Is there some way I could hide the formatting after they choose to quote so that they don't switch it back to text before posting? Or maybe there is a way to remove the text formatting options altogether and have it always be BBCode or HTML?
You can remove the text formatting option full time with a theme change i think. I suppose forcing it to a certain type should be a function of the extension though...
To make html the only available format for comments, you can add at the end of HtmlFormatter/default.php (before '?>'):if ( $Context->Session->UserID > 0 &&
$Context->Session->User->Permission('PERMISSION_HTML_ALLOWED') ) {
//Make HTMLformater the only formatter available for new post
$Context->Configuration['DEFAULT_FORMAT_TYPE'] = "Html";
$Context->Session->User->DefaultFormatType = "Html";
$Context->Session->User->Preferences['ShowFormatSelector'] = 0;
}
when quoteing using the FCK editor it also continues the same format as the quote if you want to reply to the quote. for example if i quote something thats bold and red, then the next text i type will be the same... anyway to stop this?
As much as I find him irritating, I really do like Wanderer's quote system (much more than his ridiculous timestamp at least!) - is there anyway to make AjaxQuote look like that?
Wanderer's "quote system" isn't semantically correct:<fieldset style="border: 1px solid rgb(204, 204, 204); background: rgb(254, 249, 233) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">
<legend>
Quote:
<b>giginger</b>
</legend>
Wanderer: I don't know how you do it but everything you say is intensely annoying. Is your last sentence a statement or a question?
</fieldset> Giving: Quote: gigingerWanderer: I don't know how you do it but everything you say is intensely annoying. Is your last sentence a statement or a question?
But you can get something reasonably similar and semantically correct by using:<blockquote style="border:1px solid #ccc;background:#fef9e9;padding:0 0.8em 0.42em 0.8em;"><cite style="position:relative;top:-1em;">Quote: <b>giginger</b></cite>
Wanderer: I don't know how you do it but everything you say is intensely annoying. Is your last sentence a statement or a question?</blockquote> Which gives:
Quote: giginger Wanderer: I don't know how you do it but everything you say is intensely annoying. Is your last sentence a statement or a question?
Or just go for the simpler:<blockquote style="border:1px solid #ccc;background:#fef9e9;padding:0.42em 0.8em;"><cite>Quote: <b>giginger</b></cite>
Wanderer: I don't know how you do it but everything you say is intensely annoying. Is your last sentence a statement or a question?</blockquote> Which gives:
Quote: giginger Wanderer: I don't know how you do it but everything you say is intensely annoying. Is your last sentence a statement or a question?
Just a quick question, done a test quote here but was wondering if htere's anyway to offset the 'cite' bit so it's a little higher or something that'll make it a little more standoutish?
Comments
if ( $Context->Session->UserID > 0 && $Context->Session->User->Permission('PERMISSION_HTML_ALLOWED') ) { //Make HTMLformater the only formatter available for new post $Context->Configuration['DEFAULT_FORMAT_TYPE'] = "Html"; $Context->Session->User->DefaultFormatType = "Html"; $Context->Session->User->Preferences['ShowFormatSelector'] = 0; }
example:
i have in my forum setup max. 10 comments per page, if somebody wants to quote comment number 10 then the next page doesnt show up any quote.
<fieldset style="border: 1px solid rgb(204, 204, 204); background: rgb(254, 249, 233) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"> <legend> Quote: <b>giginger</b> </legend> Wanderer: I don't know how you do it but everything you say is intensely annoying. Is your last sentence a statement or a question? </fieldset>
Giving:
Quote: gigingerWanderer: I don't know how you do it but everything you say is intensely annoying. Is your last sentence a statement or a question?
But you can get something reasonably similar and semantically correct by using:
<blockquote style="border:1px solid #ccc;background:#fef9e9;padding:0 0.8em 0.42em 0.8em;"><cite style="position:relative;top:-1em;">Quote: <b>giginger</b></cite> Wanderer: I don't know how you do it but everything you say is intensely annoying. Is your last sentence a statement or a question?</blockquote>
Which gives: Or just go for the simpler:
<blockquote style="border:1px solid #ccc;background:#fef9e9;padding:0.42em 0.8em;"><cite>Quote: <b>giginger</b></cite> Wanderer: I don't know how you do it but everything you say is intensely annoying. Is your last sentence a statement or a question?</blockquote>
Which gives: