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.

Quote Selected Text

3 posters

Go down

Solved Quote Selected Text

Post by bob77707 Tue 16 Oct - 5:03

I could not find any mention of this when I tried searching, but I would like to know if there is any existing code (or a genius that that could come up with code) that could be added to a template that would allow this:

1. Click on reply
2. Have a quote button displayed in each post in the topic review
3. Highlight text in one of the topic review posts
2. Click the quote button
3. The highlighted text is quoted and inserted into the reply text box.

Hopefully this mock up will illustrate what I mean better:

Quote Selected Text Screen15

I have seen this implemented in a non-forumotion forum, but I was just curious if it would be possible with a forumotion forum.

Thanks!
avatar
bob77707
Forumember

Posts : 48
Reputation : 4
Language : English

Back to top Go down

Solved Re: Quote Selected Text

Post by LGforum Tue 16 Oct - 12:55

I created a tutorial for pretty much the same thing for on topics. Its not for the topic review part but could be edited to do so very easily.
http://www.avacweb.com/t39-9-quote-post-in-quick-reply-no-page-change


Last edited by LGforum on Wed 17 Oct - 0:29; edited 1 time in total
LGforum
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

Solved Re: Quote Selected Text

Post by Sanket Tue 16 Oct - 14:47

LGForum, the content of your above post is being removed as it doesn't add any information pertaining to the question asked other than mentioning the user to visit some forum. Since, you had posted initially to help, you are not receiving a warning. However, please don't do this in the future. Thanks.
Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai

Back to top Go down

Solved Re: Quote Selected Text

Post by LGforum Tue 16 Oct - 15:01

I would have happily deleted had I been able to. Razz
Are supposed to be able to delete our own posts or not?
LGforum
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

Solved Re: Quote Selected Text

Post by Sanket Tue 16 Oct - 15:09

You can always edit your posts Razz
Also, members have the permission to delete their posts. Are you not able to?
Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai

Back to top Go down

Solved Re: Quote Selected Text

Post by LGforum Tue 16 Oct - 15:11

I did edit it Razz ... just not enough I guess.

No I don't. Looking at my post just above yours and the first post of mine in this thread, there's no delete button.

EDIT: Oh no wait there is on this post though. Is there a time limit on the delete then I guess?
LGforum
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

Solved Re: Quote Selected Text

Post by Sanket Tue 16 Oct - 15:19

There is no time limit on the delete. The time limit of None is only for the editing in the admin panel.
Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai

Back to top Go down

Solved Re: Quote Selected Text

Post by LGforum Tue 16 Oct - 15:23

Okay then I can't delete. The delete button is gone on my post above now too.
I only see it on posts I've literally just posted.
LGforum
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

Solved Re: Quote Selected Text

Post by Sanket Tue 16 Oct - 15:31

Okay, from the inputs i received, If you start a new thread & no one else has posted until, then only you have the option to delete that post.
Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai

Back to top Go down

Solved Re: Quote Selected Text

Post by LGforum Tue 16 Oct - 15:40

Ah I get it. So I should have been able to delete the first post before you replied.

Maybe I could have and just didn't notice. Heh.
Thanks.

EDIT you don't mind me adding the content of my post back now since it's available to guests?
I thought all my tutorials were available to guests, given our previous encounters. Razz
LGforum
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

Solved Re: Quote Selected Text

Post by Sanket Tue 16 Oct - 20:55

Yes, i think thats how it works. I have anyways asked Leeloo about it.

Yes, you can post the tutorial link as long as none of the content in that tutorial, requires you to login.
Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai

Back to top Go down

Solved Re: Quote Selected Text

Post by bob77707 Wed 17 Oct - 1:35

Thanks for the reply, LGforum. It doesn't look like that code works for phpbb2, which is what I am running. I followed the instructions, but nothing changed. Any ideas as to what would make it work in phpbb2? If not, i'll try and tinker around with it. The code you provided should be a nice start, so thanks!
avatar
bob77707
Forumember

Posts : 48
Reputation : 4
Language : English

Back to top Go down

Solved Re: Quote Selected Text

Post by bob77707 Wed 17 Oct - 2:55

Thanks Rideem3, that change got the code working so that it will insert the highlighted text into the quick reply. I will see if I can figure out how to get it to insert the highlighted text into the "formal" reply. If I get it working I will post the code on here.
avatar
bob77707
Forumember

Posts : 48
Reputation : 4
Language : English

Back to top Go down

Solved Re: Quote Selected Text

Post by bob77707 Wed 17 Oct - 9:44

So, when you click reply, you are taken to the reply page where there is topic review section that contains the messages that have been posted in that topic.

Right now I am trying to simply add the normal quote button to each message in the topic review, similar to the picture I posted in my original message.

So far the only mention of quoting in the templates I have come across is found in the viewtopic_body template:

Code:
{postrow.displayed.QUOTE_IMG}

I attempted to add it to the posting_topic_review template, but the button didn't show up.

I'm not sure what to do at this point. Any suggestions?
avatar
bob77707
Forumember

Posts : 48
Reputation : 4
Language : English

Back to top Go down

Solved Re: Quote Selected Text

Post by bob77707 Sat 20 Oct - 3:25

I understand the script is for the quick reply, but I'd like to know how to add a quote button to the messages in the topic review, if it's possible.
avatar
bob77707
Forumember

Posts : 48
Reputation : 4
Language : English

Back to top Go down

Solved Re: Quote Selected Text

Post by bob77707 Sat 20 Oct - 5:12

Im sorry. I'm having a hard time trying to describe what it is I want to do. The best I could come up with was the image in my original post.

It was a function on a non-forumotion forum that I use all the time and it is very convenient.

I thought thought that if I knew how to add the quote button to the posts in the topic review, I might be able to modify the quick reply code to make it work with the normal reply (Confusing description again i'm sure Confused) I really am just learning to work with javascript, so I doubt I would be able to get it to work on my own anyway.

The javascript solution using the quick reply will do, I just didn't really want to add quick reply to my forum.

Thanks for trying to help guys.

avatar
bob77707
Forumember

Posts : 48
Reputation : 4
Language : English

Back to top Go down

Back to top

- Similar topics

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