The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Quick Quote Modification

4 posters

Go down

Solved Quick Quote Modification

Post by nooneknow March 30th 2016, 7:37 am

Hello

Can anyone make modification to this script

Code:
        $(function(){
          var forum_version = 1,
          new_button = false,
          quote_image = 'http://i39.servimg.com/u/f39/18/21/60/73/quick10.png';
       
          if (forum_version == 0) n = [".postbody div",".name strong a"];
          if (forum_version == 1) n = [".postbody .content div",".postprofile dl dt strong a"];
          if (forum_version == 2) n = [".entry-content div",".username a"];
          if (forum_version == 3) n = [".post-entry div",".postprofile-details dt a + br + a"];
          if (new_button == true) { q = ".quickquote"; $(forum_version==1?"li:has(.i_icon_quote)":"a:has(.i_icon_quote)").after($('<li style="display:inline-block;list-style:none;"><a href="#quick_reply"><img src="'+quote_image+'" class="quickquote" alt="Quick quote" title="Quick quote" /></a></li>')) }
          if (new_button == false) { q = "a:has(.i_icon_quote)"; $("a:has(.i_icon_quote)").attr("href", "#quick_reply"); $(".i_icon_quote").attr("title", "Reply with quote") }
         
          $(document).on('mouseup',n[0],function(e){
            qtext = $(this).parents(".post");
            if (window.getSelection) theSelection = window.getSelection().toString();
            else if (document.getSelection) theSelection = document.getSelection();
            else if (document.selection) theSelection = document.selection.createRange().text;
          }); 
         
          $(q).click(function () {
            if (typeof qtext == 'undefined') return;
            uname = qtext.find(n[1]).text();
            $("div.sceditor-toolbar + iframe").contents().find("body").append('<blockquote><cite>' + uname + '</cite>' + theSelection + '</blockquote> <br />');
            $('.sceditor-container textarea')[0].value += '[quote="' + uname + '"]' + theSelection + '[/quote]'
          });
          var n,q;
        });
here the original post of it
https://help.forumotion.com/t134813-quick-quote#907916

so basically its quick quote but you must highlight the word first before click the button the problem is when you not highlight anything it just send you to quick reply box

can anybody help how to make it quote the whole content in the post and send it to quick reply box when you not highlight anything ?


Last edited by nooneknow on April 2nd 2016, 8:09 pm; edited 1 time in total
nooneknow
nooneknow
New Member

Posts : 4
Reputation : 1
Language : english

Back to top Go down

Solved Re: Quick Quote Modification

Post by SLGray March 30th 2016, 11:37 am

You could just use the quote button to quote a whole post.   The tutorial is basically for members who want to quote just a part of a post.


Quick Quote Modification Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51608
Reputation : 3529
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Quick Quote Modification

Post by nooneknow March 30th 2016, 12:28 pm

SLGray wrote:You could just use the quote button to quote a whole post.   The tutorial is basically for members who want to quote just a part of a post.
thank you for replying
yes i know but it will be nice replacement for quote button if it can do whole quoted without highlighting and put them directly at quick reply box than click quote and opening new page of sceditor

i actually manage to edit the script so it will add username tag to make people get notification when they quoted but my javascript knowledge really limited so i need the whole copy of post feature to make people easier. maybe somebody here can do that

im kinda new here so i hope im not asking this in the wrong subforum. even tough this more like personal request but i think if it can be done it will help a lot of people

and btw do you know any script alternative that can quote the whole post and adding username tag automatically at the same time so people get notification from it ?
nooneknow
nooneknow
New Member

Posts : 4
Reputation : 1
Language : english

Back to top Go down

Solved Re: Quick Quote Modification

Post by Guest March 30th 2016, 12:45 pm

Welp affraid ! I just saw you sign up @ FM Design. He (the owner, Wink @Ange Tuteur ) is gonna be answering this post soon, I'm sure. Just wait & see!

Good luck!

Hello Samantha.
avatar
Guest
Guest


Back to top Go down

Solved Re: Quick Quote Modification

Post by nooneknow March 30th 2016, 1:15 pm

RoXaNNeX wrote:Welp affraid ! I just saw you sign up @ FM Design. He (the owner, Wink @Ange Tuteur ) is gonna be answering this post soon, I'm sure. Just wait & see!

Good luck!

Hello Samantha.
Hi Samantha Smile

i hope so too
nooneknow
nooneknow
New Member

Posts : 4
Reputation : 1
Language : english

Back to top Go down

Solved Re: Quick Quote Modification

Post by SLGray March 30th 2016, 7:23 pm

RoXaNNeX wrote:Welp  affraid  ! I just saw you sign up @ FM Design. He (the owner, Wink @Ange Tuteur ) is gonna be answering this post soon, I'm sure. Just wait & see!

Good luck!

Hello  Samantha.
Please do not reply to support topics unless you are offering a solution.


Quick Quote Modification Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51608
Reputation : 3529
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Quick Quote Modification

Post by Ange Tuteur April 2nd 2016, 7:06 pm

Hi @nooneknow,

Try replacing the script with the one below.
Code:
        $(function(){
          var forum_version = 1,
          new_button = false,
          quote_image = 'http://i39.servimg.com/u/f39/18/21/60/73/quick10.png';
     
          if (forum_version == 0) n = [".postbody div",".name strong a"];
          if (forum_version == 1) n = [".postbody .content div",".postprofile dl dt strong a"];
          if (forum_version == 2) n = [".entry-content div",".username a"];
          if (forum_version == 3) n = [".post-entry div",".postprofile-details dt a + br + a"];
          if (new_button == true) { q = ".quickquote"; $(forum_version==1?"li:has(.i_icon_quote)":"a:has(.i_icon_quote)").after($('<li style="display:inline-block;list-style:none;"><a href="#quick_reply"><img src="'+quote_image+'" class="quickquote" alt="Quick quote" title="Quick quote" /></a></li>')) }
          if (new_button == false) { q = "a:has(.i_icon_quote)"; $("a:has(.i_icon_quote)").attr("href", "#quick_reply"); $(".i_icon_quote").attr("title", "Reply with quote") }
       
          $(document).on('mouseup',n[0],function(e){
            qtext = $(this).parents(".post");
            if (window.getSelection) theSelection = window.getSelection().toString();
            else if (document.getSelection) theSelection = document.getSelection();
            else if (document.selection) theSelection = document.selection.createRange().text;
          });
       
          $(q).click(function () {
            if (typeof qtext == 'undefined') {
              qtext = $(this).closest('.post');
              theSelection = qtext.find(n[0]).text();
            }

            uname = qtext.find(n[1]).text();
            $("div.sceditor-toolbar + iframe").contents().find("body").append('<blockquote><cite>' + uname + '</cite>' + theSelection + '</blockquote> <br />');
            $('.sceditor-container textarea')[0].value += '[quote="' + uname + '"]' + theSelection + '[/quote]'
          });
          var n,q;
        });
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Quick Quote Modification

Post by Ape April 2nd 2016, 8:38 pm

Topic solved and archived


Quick Quote Modification Left1212Quick Quote Modification Center11Quick Quote Modification Right112
Quick Quote Modification Ape_b110
Quick Quote Modification Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19480
Reputation : 2013
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum