• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

How do I change the quote link

 
Greenhorn
Posts: 24
jQuery Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to change the link of the quote. For example, when I want to quote a post, I don't want to go to the new windows "New Post". I modified the "quick reply", to leave it static after all the list of post_show and be able to reply right away without having to click the button. I just have seen that this link depends of lot of files.
What would be the most convenient way to modify this quote option?

Thanks in advance.

 
author & internet detective
Posts: 39399
763
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I understand correctly, you want the user to click the quote button and have [quote.... appear in the quick reply. I think the easiest way to do that is:

  • When you load the page in the first place, create a hidden field or variable with the UBB code that you'd use on a quote.
  • When the user clicks quote, use jQuery to display that text in quick reply

  •  
    Jackie Bermudez
    Greenhorn
    Posts: 24
    jQuery Eclipse IDE Java
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Thank you Jeanne. The problem that I'm facing is that when I use a jQuery it will only create the quotation of the primary post (original question) and not for the other replies.

    This is the JQuery:


    This is the button for the Quote:
    <button id="copy">Quote</button>

    And this is the textarea from quick reply:


    I feel that this link is very structured. I don't know what to modify to tell it to not redirect to post_form.
     
    Jeanne Boyarsky
    author & internet detective
    Posts: 39399
    763
    Eclipse IDE VI Editor Java
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator

    Jackie Bermudez wrote:Thank you Jeanne. The problem that I'm facing is that when I use a jQuery it will only create the quotation of the primary post (original question) and not for the other replies.


    Ah. So you'd need to use the same technique for each post on the page. A separate variable for each.

    You can't use the quote link because you want this to happen on the client side.
     
    It is sorta covered in the JavaRanch Style Guide.
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!