bbPress Plugin Browser »

Ajaxed Quote (1.2)

Download

Version: 1.2

Last Updated: 2009-7-23

Requires bbPress Version: 1.0 or higher

Compatible up to: 1.0.1

Author Homepage »

Plugin Homepage »

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(5)

Your Rating

Author: Eduardo Graells


  1. TinyMCE have some Ajax features. Could it be possible to send the quote there?

    Here is some load call in tinyMCE

    function ajaxLoad() {
    var ed = tinyMCE.get('content');
    
    // Do you ajax call here, window.setTimeout fakes ajax call
    ed.setProgressState(1); // Show progress
    window.setTimeout(function() {
    ed.setProgressState(0); // Hide progress
    ed.setContent('');
    }, 3000);
    }
    Posted: 2 years ago #
  2. Maybe you can comment this:
    ed.setContent('');

    Posted: 2 years ago #
  3. I put the php code in the javascript but it wouldn't return anything... Maybe I'm doing something wrong?
    I will try again...

    I heard TinyMCE uses some kind of iFrame and when stuff gets posted there, it will get loaded into the TinyMCE textarea.

    Posted: 2 years ago #
  4. I got it working with regular "quote" plugin but the quote gets broken into several lines. Need to somehow write some php that replaces the echoed html into one line.

    Posted: 2 years ago #
  5. I got it working by writing the following in Quote.php (The other plugin)

    $row->post_text = preg_replace( '(\n)', '', $row->post_text );
    if ($row) echo htmlentities('<blockquote>'.$row->post_text.'</blockquote>', ENT_COMPAT, 'UTF-8');

    It works and when i Post it it is showing as HTML.

    But somehow the TinyMCE dont want to show the wysiwyg, and just show html. Its a bit strange.
    Should i send the HTML in some other way?

    Posted: 2 years ago #
  6. I got it working by just sending as a normal string instead of htmlentities. The preg_replace took care of everything else and i needed to call the bbPlugin in TinyMCE because i use bbCode too.

    Don't know how different your plugin is but id love to have it working with the ajaxed quote.
    Is there a possibility to just output the html as a string? Somehow it doesn't want to return anything in the html...

    Somehow in your code it come into the normal textarea but I need the final call as a string that gets output in the html sourcecode.

    Posted: 2 years ago #
  7. topol

    Member

    +1 for having the same trouble "the plugin drops me down to the textarea without text in it after clicking Quote link"

    any suggestions?

    Posted: 2 years ago #
  8. Tomcraft1980

    Member

    Unfortunately doesn't work with bbpress 1.02.

    Posted: 2 years ago #
  9. phaniraj01

    Member

    Dear All,

    It's not compatible with bbpress 1.0.2

    It's not working on 1.0.2

    thanks,
    phani

    Posted: 2 years ago #
  10. I use it with 1.0.2.

    Perhaps you didn't install it right, or are using a custom theme. If you just say "it does'nt work" I can't guess a solution :)

    Posted: 2 years ago #
  11. It won't work with 1.0.2 for me either. I was running an older version of Ajaxed Quote but noticed it would throw an error when trying to quote for a previous page in the thread (trying to quote from page 2 of a 4 page thread wouldn't work). So I came to check for an update, found Ajaxed Quote 1.2, installed it and got nothing. No quote link showing up, no errors, no idea how to fix it.

    Any ideas? What hook does this plugin use for inserting itself in the template? Can I manually insert the link into my template? (like the older version)

    Posted: 2 years ago #
  12. phaniraj01

    Member

    @Detective

    I placed this plugin in my-plugins, and activated,

    but nothing happened.

    Please let us know the installation procedure that u have followed ???

    Thanks,
    Phani

    Posted: 2 years ago #
  13. It won't work with 1.0.2 for me either.

    Posted: 2 years ago #
  14. pzt

    Member

    It doesn't appear to work for me either. (clean 1.0.2 install)

    Haven't had much time to research, will have another look if you can't reproduce.

    Posted: 2 years ago #
  15. Honestly, I don't know why it doesn't work for you. I can't guess your setups only from your bbPress version. By "it doesn't work" do you mean:

    - The quote link is not showing ?
    - The javascript code in the header is not loaded?

    Any ideas? What hook does this plugin use for inserting itself in the template? Can I manually insert the link into my template? (like the older version)

    If uses the bb_post_admin hook, so in your post template you need to call the bb_post_admin template tag. You can insert the link manually:

    echo bb_quote_link();
    Posted: 2 years ago #
  16. - The quote link is not showing ?
    - The javascript code in the header is not loaded?

    Both don't work. Simply put, absolutely nothing changes on my forum nor in the forum's source code after installing and activating this plugin.

    I'll try to put in the link manually, but I think it would help if you could post a full source code from one of your working forum's "topic" pages so we can see where exactly everything is being called.

    (But then again, this probably won't help since the header javascript is not being loaded properly...?)

    Thanks!

    Posted: 2 years ago #
  17. By the way, you say that this plugin is based on the older "Quote" plugin... and users are also mentioning that the "Quote" plugin doesn't work on bbppress 1.0.2 with permalinks:

    http://bbpress.org/plugins/topic/quote/page/3/#post-4325

    @Detective, are you using your bbpress with permalinks disabled to make Ajaxed Quote work?

    Posted: 2 years ago #
  18. In my setup, the plugin works in 1.0.2 with permalinks on and off. The first version (for bb 0.9) was based on the older plugin, the current version was completely reorganized :)

    Which theme are you using? Are you calling bb_head in your header and bb_post_admin in your post template?

    Posted: 2 years ago #
  19. "bb_post_admin in your post template"

    >>> that was the problem! update your templates everyone in post.php!

    thanks mate!

    Posted: 2 years ago #
  20. topol

    Member

    @Rubber,

    What is the correct ajax call code in <head> of a template?

    I have the Quote button showed, but nothing happenned after clicking to it ....

    Posted: 2 years ago #

RSS feed for this topic

Add a Comment »

You must log in to post.