Not signed in (Sign In)

Categories

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    •  
      CommentAuthorscip
    • CommentTimeSep 25th 2006
     # 1
    Adds quote option to posts. Works with any format type without complex JS parsing (retrives original data from DB on the fly). Redirects to last(CommentBox) page if needed.

    N.B. See this discussion: http://lussumo.com/community/discussion/4353/security-issue-with-ajaxquote/ if you're worried about security.
    •  
      CommentAuthoremsef
    • CommentTimeMar 20th 2007
     # 2
    Make sure you change the ajaxquote.js file to reflect whether your board works in BBCode (ajaxquote default) or HTML (vanilla default)
    •  
      CommentAuthor[-Stash-]
    • CommentTimeMar 20th 2007
     # 3
    How hard would it be for someone to patch AjaxQuote to check to see which Formatter you currently have selected and then use that for the quote formatting? Then we can add others such as Markdown, Textile etc...
    •  
      CommentAuthorWanderer
    • CommentTimeMar 26th 2007 edited
     # 4
    This extension only loads the "Quote" link if the user is logged in, that's OK, however it also only loads the CSS file if the user is logged in, so when a guest views a quoted comment, the formatting is lost.

    I moved the line that adds the CSS to the line before it checks to see if a valid user is logged in...

    $Head->AddStyleSheet("extensions/AjaxQuote/ajaxquote.css");
    if( $Configuration["AJAXQUOTE_LOGINREQUIRED"]===false or $Context->Session->UserID > 0 ){

    That did the trick, not sure if there's a better way but it'll do until it's fixed properly.

    Posted: Tuesday, 27 March 2007 at 12:57AM (AEDT)

    •  
      CommentAuthorblizeH
    • CommentTimeApr 21st 2007
     # 5
    I'm still having problems quoting from previous pages, it seems to throw you back to the first page of the thread instead of the last, any idea if I've got it setup wrong please guys?
    •  
      CommentAuthorblizeH
    • CommentTimeApr 22nd 2007
     # 6
    Sorry to bump this, anyone know a fix? :(
    •  
      CommentAuthorbjrn
    • CommentTimeApr 22nd 2007
     # 7
    That sounds weird, it works just fine for me. Have you edited the extension in any way? And if so, tried re-downloading (from the add-ons site) and re-uploading it?
    •  
      CommentAuthorblizeH
    • CommentTimeApr 22nd 2007
     # 8
    Good idea, I'll try re-uploading it, the only thing I've changed is making it work with HTML instead of BBCode, and I think I changed the style information too ;o
  1.  # 9
    blizeh I just tested it and it does takes u to the next page
    •  
      CommentAuthor[-Stash-]
    • CommentTimeApr 22nd 2007
     # 10
    Good catch on that Wanderer. Might be worth putting a check that Head is there before you add the CSS, but otherwise great :) Is scip still around? If not can someone else update this extension with that change?
  2.  # 11
    ask mark for it

    btw blizeh why don't u add the comment box under every page
    then u don't have to worry about it going tot he second page
    •  
      CommentAuthorblizeH
    • CommentTimeApr 28th 2007
     # 12
    Just re-installed completely and it's still sometimes jumping to the first page ;_;
    •  
      CommentAuthorblizeH
    • CommentTimeJun 4th 2007
     # 13
    Same problem, anyone please please please? It's pretty much the only thing now my users still moan about, and ims it's a bit of a pain for me too :D
    •  
      CommentAuthorVaz
    • CommentTimeJun 4th 2007
     # 14
    Hi, I'm having some problems.
    When quoting, the CSS only works if I have

    var ajaxqoute_format = 'BBCode'; // 'Html' or 'BBCode' set to use HTML

    I however want to use BBCode and still want the css to load regardless. On doing so I get:

    [quote][cite] Vaz:[/cite]

    [/quote]

    How do I get it to include the css regardless of me using bbcode?
    •  
      CommentAuthorVaz
    • CommentTimeJun 6th 2007
     # 15
    Anybody?
    •  
      CommentAuthorVaz
    • CommentTimeJun 8th 2007
     # 16
    OK I got it to work by installing Better BB Code. But I'd like it so it works in html mode too. In other word's all three modes. Is this possible?
    • CommentAuthorBHR4CE1
    • CommentTimeJun 28th 2007
     # 17
    For some reason, when I use the QUOTE function, the next post shows all the special quote text and markings with the original text that I wanted to quote, instead of actually making the box with just the quote in it.

    Any ideas?
    •  
      CommentAuthor[-Stash-]
    • CommentTimeJun 29th 2007 edited
     # 18
    I noticed this yesterday and the short answer is that without the ability to transcode between different formatters (ie BBCode and HTML) this is going to happen when you don't force a formatter.

    However, the quote CSS in vanilla is, by default, very basic, and you need to have one of the quote extensions to make it all boxed and pretty. An oversight in the current AJAXQuote extension that I spotted yesterday is that quotes will not be properly formatted unless a user is logged in. Basically, the line that adds the ajaxquote.css file to the header needs to be moved out of the if( $Configuration["AJAXQUOTE_LOGINREQUIRED"]===false or $Context->Session->UserID > 0 && isset($Head)){ condition.

    BHR4CE1, I can't make head or tails of your comment as it seems to me to say that it's quoting the comment you're asking it to quote. Could you be a little more clear?
    • CommentAuthoromar888
    • CommentTimeJun 29th 2007 edited
     # 19
    The same thing happened in my forum as BHR4CE1

    Here is the final output after attempting to quote myself and hitting the "Add your comments" button:

    <blockquote><cite> OMAR:</cite>This is the sample text that will be quoted.</blockquote>

    The are no other extensions active, except for wordpress integration.

    Once I enable the HTML Formatter 2.2 extension, the final output is perfect:

    OMAR:This is the sample text that will be quoted.

    not sure why it needs to be enabled, as I thought HTML was the vanilla default. However, the problem could also be that I tried to use the AjaxQuote extension before editing the ajaxquote.js file to 'HTML' as suggested in post #2 of this thread by emsef.

    If I do not select the Html button before adding my comments, the <blockquote><cite> appears in the final output again.

    A final note. If I enable the FCKeditor, then nothing happens at all if I try to use ajaxquote.
    • CommentAuthorithcy
    • CommentTimeJun 29th 2007
     # 20
    html is not the vanilla default.
    • CommentAuthoromar888
    • CommentTimeJun 29th 2007
     # 21
    Yes, thank you.

    I got that impression from post #2 in this thread. "Make sure you change the ajaxquote.js file to reflect whether your board works in BBCode (ajaxquote default) or HTML (vanilla default)"

    To follow up on my earlier post, to get quotes working with FCKeditor, simply install the fckajaxquote extension. Good stuff.
    • CommentAuthordyohn
    • CommentTimeJul 28th 2007
     # 22
    This doesn't work with Tinymce enabled. I get an error message as follows:

    Line 58
    Error: can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus.

    Any ideas?
    Thanks!
    • CommentAuthordyohn
    • CommentTimeAug 5th 2007
     # 23
    I'd still like a quote function for TinyMCE. Any thoughts?
  3.  # 24
    +1

    I use TinyMCE and have no ideas how to add quote function ...
    • CommentAuthordyohn
    • CommentTimeAug 12th 2007
     # 25
    Help! Still get this error:

    Line 58
    Error: can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus.

    I tried to look at line 58 to see if it is referencing a different name for the comment box than does TinyMCE, but no luck. If someone can help me decipher if this error is in AjaxQoute or in Tiny MCE maybe I can figure it out...
    •  
      CommentAuthor[-Stash-]
    • CommentTimeAug 13th 2007
     # 26
    Might be worth taking a look at the FCKAjaxQuote extension and seeing if you can apply the same principles to create a patch for TinyMCE?
    • CommentAuthorcircuit
    • CommentTimeSep 9th 2007
     # 27
    i get the same problem as another user... quoting on a page without a comment box just takes me back to the discussion index (root URL). maybe i need to add a comment box on every page. it'd be better if it worked though.
    • CommentAuthorjakob_r
    • CommentTimeOct 14th 2007
     # 28
    Would it be possible to modify this add-on so that it quotes the text that has been highlighted like the quotation add-on does?
    • CommentAuthorscherem
    • CommentTimeJan 12th 2008
     # 29
    Does anyone know how resource friendly this extension is? I've been having issues with server use, and noticed (from the description that..) its grabs the original data from the DB on the fly.

    I assume that if we have tons of quotes and it refreshes every time someone loads a page, it might be hitting the DB hard.
    • CommentAuthorcid499
    • CommentTimeMay 4th 2008
     # 30
    This may or may not be an issue with AjaxQuote, but if I try to start a new discussion that is blank (no subject, no comment), it gives me this error:

    Notice: Trying to get property of non-object in C:\xampplite\Vanilla\extensions\AjaxQuote\default.php on line 60

    Fatal error: Call to a member function Remove() on a non-object in C:\xampplite\Vanilla\extensions\AjaxQuote\default.php on line 60

    When it should normally give me the proper error message.
Add your comments
    Username Password
  • Format comments as