The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Quote Selected Text

View previous topic View next topic Go down

Solved Quote Selected Text

Post by bob77707 on October 16th 2012, 4:03 am

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:



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!

bob77707
Forumember

Posts : 48
Reputation : 4
Language : English

Back to top Go down

Solved Re: Quote Selected Text

Post by LGforum on October 16th 2012, 11:55 am

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 October 16th 2012, 11:29 pm; edited 1 time in total

LGforum
Hyperactive

Male Posts : 2260
Reputation : 258
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Solved Re: Quote Selected Text

Post by Sanket on October 16th 2012, 1:47 pm

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
ForumGuru

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

http://webartzforum.com

Back to top Go down

Solved Re: Quote Selected Text

Post by LGforum on October 16th 2012, 2:01 pm

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

LGforum
Hyperactive

Male Posts : 2260
Reputation : 258
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Solved Re: Quote Selected Text

Post by Sanket on October 16th 2012, 2:09 pm

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

Sanket
ForumGuru

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

http://webartzforum.com

Back to top Go down

Solved Re: Quote Selected Text

Post by LGforum on October 16th 2012, 2:11 pm

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
Hyperactive

Male Posts : 2260
Reputation : 258
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Solved Re: Quote Selected Text

Post by Sanket on October 16th 2012, 2:19 pm

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

Sanket
ForumGuru

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

http://webartzforum.com

Back to top Go down

Solved Re: Quote Selected Text

Post by LGforum on October 16th 2012, 2:23 pm

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
Hyperactive

Male Posts : 2260
Reputation : 258
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Solved Re: Quote Selected Text

Post by Sanket on October 16th 2012, 2:31 pm

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
ForumGuru

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

http://webartzforum.com

Back to top Go down

Solved Re: Quote Selected Text

Post by LGforum on October 16th 2012, 2:40 pm

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
Hyperactive

Male Posts : 2260
Reputation : 258
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Solved Re: Quote Selected Text

Post by Sanket on October 16th 2012, 7:55 pm

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
ForumGuru

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

http://webartzforum.com

Back to top Go down

Solved Re: Quote Selected Text

Post by bob77707 on October 17th 2012, 12:35 am

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!

bob77707
Forumember

Posts : 48
Reputation : 4
Language : English

Back to top Go down

Solved Re: Quote Selected Text

Post by bob77707 on October 17th 2012, 1:55 am

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.

bob77707
Forumember

Posts : 48
Reputation : 4
Language : English

Back to top Go down

Solved Re: Quote Selected Text

Post by bob77707 on October 17th 2012, 8:44 am

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?

bob77707
Forumember

Posts : 48
Reputation : 4
Language : English

Back to top Go down

Solved Re: Quote Selected Text

Post by bob77707 on October 20th 2012, 2:25 am

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.

bob77707
Forumember

Posts : 48
Reputation : 4
Language : English

Back to top Go down

Solved Re: Quote Selected Text

Post by bob77707 on October 20th 2012, 4:12 am

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.


bob77707
Forumember

Posts : 48
Reputation : 4
Language : English

Back to top Go down

View previous topic View next topic Back to top


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