Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

AjaxQuote

135

Comments

  • 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
  • ok thanks schizo, it worked very well :)
  • edited November 2006
    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.
  • So do you not have a html formatter installed?
  • 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?
  • Ok I installed the HTMLFormatter and that seems to have fixed it, thanks!
  • No probs. If you can find some other problems to keep me entertained i've only got 4 hours of work left...
  • 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...
  • edited November 2006
    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; }
  • mh interessting malfunction: it doesnt quote if somebody quotes the "last" comment on the site ..


    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.
  • 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?
  • I tried to install this but to no avail.. it doesnt work with tinymice I guess...
  • blizeHblizeH ✭✭
    edited January 2007
    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?
  • Bumpedy bump, please?
  • 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?
  • Looks like an absolute winner, I'll go for that, thank you so much Stash!
  • 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?
  • Look at the style="" bits in the examples above mate ;)
  • Ah, top, not margin top, cheers! :-)
This discussion has been closed.