FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Plugins and Code Hacks » Quick Reply  () 2 Votes
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Quick Reply [message #22672] Thu, 10 February 2005 19:16 Go to next message
JamesS is currently offline  JamesS   United States
Messages: 275
Registered: July 2002
Location: Atlanta, GA
Karma: 0
Senior Member
I have created a small patch that adds a "quick reply" option at the bottom of threads. It works basically the same as the spoiler tag in that you have to click a link to make the reply box show up. Hopefully this can be touched up a bit and included by default.



Re: Quick Reply [message #22673 is a reply to message #22672] Thu, 10 February 2005 19:22 Go to previous messageGo to next message
JamesS is currently offline  JamesS   United States
Messages: 275
Registered: July 2002
Location: Atlanta, GA
Karma: 0
Senior Member
Oops. I forgot to mention that it replies to the last post in the thread and automatically builds a subject based on the last posts subject. For example, if the subject of the last post in the thread is "A new subject" then the quick reply form will use the subject "Re: A new subject". If the subject of the last post is "Re: A new subject" then the quick reply form will use "Re: A new subject". I did not bother sifting through the source code to figure out what MSG to use for "Re:" so it is hardcoded in English. (One of those touch ups that it needs.)
Re: Quick Reply [message #22790 is a reply to message #22673] Wed, 16 February 2005 12:06 Go to previous messageGo to next message
ggray is currently offline  ggray   Ukraine
Messages: 96
Registered: October 2004
Location: Crimea: Simferopol
Karma: 0
Member

I think you need to add some panels like smiles and format.

[Updated on: Wed, 16 February 2005 12:06]

Report message to a moderator

Re: Quick Reply [message #22793 is a reply to message #22672] Wed, 16 February 2005 14:10 Go to previous messageGo to next message
JamesS is currently offline  JamesS   United States
Messages: 275
Registered: July 2002
Location: Atlanta, GA
Karma: 0
Senior Member
That is what the full reply form is for. If you know the fudcode for such things then you can just type them in. If you want to be able to click on them then you need to use the full reply form. The quick reply is for just that -- quickly replying to a thread without having to load a new page.

I use the feature quite a bit on a board that uses Invision Powerboard and felt that FUDforum could use it. If it isn't included in the next release I will update my hack for that release. Hell, I might even make it prettier (no extra functionality though).
Re: Quick Reply [message #22797 is a reply to message #22672] Wed, 16 February 2005 15:40 Go to previous messageGo to next message
JamesS is currently offline  JamesS   United States
Messages: 275
Registered: July 2002
Location: Atlanta, GA
Karma: 0
Senior Member
Okay, here is the patch for FUDforum 2.6.10. I am not very good at creating patch files so you may have to manually patch the files. The patch file was created by copying the two modified files to a temporary directory, putting the original files in an "originals" directory within that temporary directory, and running `diff -C1 originals . > quick_reply.patch`. *shrug* It isn't much of a patch so you shouldn't have too much problem with it.

Also, you may want to add the following style definition to your forum.css:
#quickReply textarea {
        border: 1px solid black;
        color: black;
        background-color: #ff9;
}


I would make a graphical button just like the "Post Reply" button but I don't know what font the xcf files use nor how to make the button work for all languages. In fact, when I open the xcf and try to edit the text layer The Gimp says that it is invalid UTF-8 text.
Re: Quick Reply [message #23586 is a reply to message #22672] Wed, 23 March 2005 16:22 Go to previous messageGo to next message
JamesS is currently offline  JamesS   United States
Messages: 275
Registered: July 2002
Location: Atlanta, GA
Karma: 0
Senior Member
Here is the version for 2.6.12. I did not release one for 2.6.11 because the release was so small that I didn't bother to update my own forum to 2.6.11.

There is a slight change in this version. I have included a graphic button like the "Post Reply" button. This graphic needs to go in your default theme image root directory. The graphic is in english and the font is a little off; I do not speak any other languages and I don't know what font is being used in all of the other graphics. I have also included my xcf for the new graphic so if someone can fix these issues then please feel free to do so.

The patch was created exactly as the previous patch was. If you were able to successfully apply the previous patch then you shouldn't have any issues with this one.

Enjoy.
Re: Quick Reply [message #24203 is a reply to message #22672] Tue, 19 April 2005 15:30 Go to previous messageGo to next message
JamesS is currently offline  JamesS   United States
Messages: 275
Registered: July 2002
Location: Atlanta, GA
Karma: 0
Senior Member
I just found a small bug in this patch. If you use the quick reply function then your signature is not attached to the message. I will fix this in the next release. The next release, like always, will come after the next version of FUDforum.
Re: Quick Reply [message #27939 is a reply to message #22672] Sun, 02 October 2005 01:38 Go to previous messageGo to next message
JamesS is currently offline  JamesS   United States
Messages: 275
Registered: July 2002
Location: Atlanta, GA
Karma: 0
Senior Member
I haven't had any time to update this. I will post a new version when I get the time to work on it.
Re: Quick Reply [message #28229 is a reply to message #22672] Fri, 14 October 2005 08:27 Go to previous messageGo to next message
Hurry   India
Messages: 33
Registered: October 2005
Karma: 0
Member
Does this QuickReply patch work in FUDforum 2.7.3RC2? And will it work if the FUDforum version is upgraded.

Ilia, a kind and important request from our users side: Can you kindly integrate this QuickReply box feature in the forum itself. It is being used extensively nowadays in some many forum softwares and save a lot of time while replying in many threads through the web
Re: Quick Reply [message #28230 is a reply to message #22672] Fri, 14 October 2005 08:42 Go to previous messageGo to next message
Hurry   India
Messages: 33
Registered: October 2005
Karma: 0
Member
Can you please give us the full new msg.php.t for the latest fudversion 2.7.3RC2 to upload with the patch as I don't know how to run the path through a command line utility? Or please explain how to run? Is it through shell command line? If you can include the signature, it would be the best also. Thanks.

Re: Quick Reply [message #28235 is a reply to message #22672] Fri, 14 October 2005 12:29 Go to previous messageGo to next message
JamesS is currently offline  JamesS   United States
Messages: 275
Registered: July 2002
Location: Atlanta, GA
Karma: 0
Senior Member
Did you not read my latest post to this thread? I don't have the time right now to update this. Also, I wouldn't update it for an RC release if I did have the time. I said, much earlier in the thread, that this would only be updated for final releases.

Sorry, I am just too busy right now to work on this patch.
Re: Quick Reply [message #28554 is a reply to message #22672] Mon, 31 October 2005 05:39 Go to previous messageGo to next message
freeman is currently offline  freeman   China
Messages: 2
Registered: October 2005
Karma: 0
Junior Member
Good Job
www.firephp.com
Surprised
Re: Quick Reply [message #30189 is a reply to message #22672] Fri, 10 February 2006 11:06 Go to previous messageGo to next message
Ernesto is currently offline  Ernesto   Sweden
Messages: 413
Registered: August 2005
Karma: 0
Senior Member
Anyone got the code to include signature as well in this very nice little hack? =)

Re: Quick Reply [message #30190 is a reply to message #22672] Fri, 10 February 2006 11:43 Go to previous messageGo to next message
Ernesto is currently offline  Ernesto   Sweden
Messages: 413
Registered: August 2005
Karma: 0
Senior Member
Got it, added the following line in the template:

 		<input type="hidden" name="msg_show_sig" value="Y">


Re: Quick Reply [message #30192 is a reply to message #22672] Fri, 10 February 2006 11:45 Go to previous messageGo to next message
Ernesto is currently offline  Ernesto   Sweden
Messages: 413
Registered: August 2005
Karma: 0
Senior Member
I love this forum software, just had to mention that!

Re: Quick Reply [message #30195 is a reply to message #22672] Fri, 10 February 2006 17:03 Go to previous messageGo to next message
djechelon is currently offline  djechelon   Italy
Messages: 46
Registered: July 2005
Karma: 0
Member
This one makes FUDcode bar available Laughing

NOTICE: to make it work with path_info template make sure you add

{REF: post_common.tmpl}

after
{REF: thread_notify.tmpl}

inside path_info/tmpl/msg.tmpl
  • Attachment: msg.zip
    (Size: 3.71KB, Downloaded 1870 times)
Re: Quick Reply [message #30196 is a reply to message #30190] Fri, 10 February 2006 17:04 Go to previous messageGo to next message
djechelon is currently offline  djechelon   Italy
Messages: 46
Registered: July 2005
Karma: 0
Member
Ernesto wrote on Fri, 10 February 2006 06:43

Got it, added the following line in the template:

 		<input type="hidden" name="msg_show_sig" value="Y">




That code always adds signature even if it's disabled. You should make a check on user options. I don't know what's signature's option code.
Re: Quick Reply [message #30198 is a reply to message #22672] Sat, 11 February 2006 10:25 Go to previous messageGo to next message
Ernesto is currently offline  Ernesto   Sweden
Messages: 413
Registered: August 2005
Karma: 0
Senior Member
{VAR: sig} perhaps, not all into that, always enabled works fine with me, if they don't want to post signatures, they can remove their sig Razz Only got like 700ish users and they are all gamers, so they aren't all that picky!

Re: Quick Reply [message #30227 is a reply to message #30198] Sun, 12 February 2006 14:37 Go to previous messageGo to next message
djechelon is currently offline  djechelon   Italy
Messages: 46
Registered: July 2005
Karma: 0
Member
Ernesto wrote on Sat, 11 February 2006 05:25

{VAR: sig} perhaps, not all into that, always enabled works fine with me, if they don't want to post signatures, they can remove their sig Razz Only got like 700ish users and they are all gamers, so they aren't all that picky!



Here is the code:
<input type="hidden" name="msg_show_sig" value="{IF: $usr->users_opt & 2048}Y{ENDIF}">
Re: Quick Reply [message #30245 is a reply to message #22672] Sun, 12 February 2006 23:06 Go to previous messageGo to next message
Ernesto is currently offline  Ernesto   Sweden
Messages: 413
Registered: August 2005
Karma: 0
Senior Member
Thanks a ton!

Re: Quick Reply [message #31370 is a reply to message #22672] Wed, 19 April 2006 11:30 Go to previous messageGo to next message
hhh13 is currently offline  hhh13   Austria
Messages: 2
Registered: April 2006
Karma: 0
Junior Member
hi,

can somebody explain me how to use this hack? after unpacking there are 3 files post_quick_reply.png / quick_replay.patch/s_quick_reply.xcf

but what to do with these files? i tried to make the changes as in quick.replay.patch, but nothing happens - please help.
PS i am using the latest version of this forum

thx
hhh13

[Updated on: Wed, 19 April 2006 11:32]

Report message to a moderator

Re: Quick Reply [message #31375 is a reply to message #22672] Wed, 19 April 2006 15:39 Go to previous messageGo to next message
JamesS is currently offline  JamesS   United States
Messages: 275
Registered: July 2002
Location: Atlanta, GA
Karma: 0
Senior Member
Read message numbers 22797 and 23586 in this thread. They tell you exactly how to apply the patch and where to put the image.

Also, because of classes, I haven't had time to update my version of the hack to work with the latest version. Maybe I will get to it during my lax summer semester, but I doubt it. No one on my board really used it. I like the feature, but if my users aren't going to use it then I don't have a lot of incentive to maintain it. In other words, this hack most likely doesn't work with the newest version of the forum software without modifications.
Re: Quick Reply [message #34035 is a reply to message #30195] Mon, 02 October 2006 11:16 Go to previous messageGo to next message
antivirus   Vietnam
Messages: 13
Registered: September 2006
Karma: 0
Junior Member

do you have quick reply for fudforun v2.7.6 ?

########################################
## Nothing is IMPOSSIBLE
## Itself says that I'M POSSIBLE
########################################
Re: Quick Reply [message #34036 is a reply to message #34035] Mon, 02 October 2006 11:19 Go to previous messageGo to next message
JamesS is currently offline  JamesS   United States
Messages: 275
Registered: July 2002
Location: Atlanta, GA
Karma: 0
Senior Member
No. None of my forum users used it and I don't have the time to keep maintaining it.
Re: Quick Reply [message #34048 is a reply to message #22672] Mon, 02 October 2006 16:22 Go to previous messageGo to next message
Ernesto is currently offline  Ernesto   Sweden
Messages: 413
Registered: August 2005
Karma: 0
Senior Member
All of my users use it, so I am deeply in love with you JamesS! (Although I do not run 2.7.6 so I don't need a patch:p)

Re: Quick Reply [message #159483 is a reply to message #34048] Fri, 05 June 2009 14:07 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3772
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Here is an updated patch for FUDforum 2.8.1.
Re: Quick Reply [message #159484 is a reply to message #22672] Fri, 05 June 2009 14:31 Go to previous messageGo to next message
JamesS is currently offline  JamesS   United States
Messages: 275
Registered: July 2002
Location: Atlanta, GA
Karma: 0
Senior Member
Great! It's good to see someone pick this up and maintain it. This should really be an included feature in the forum software.
Re: Quick Reply [message #159488 is a reply to message #159484] Fri, 05 June 2009 15:19 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3772
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
If there is general consensus we can include it with the next release. In preparation we need to get the phrase "Quick Reply" translated into as many supported languages as humanly possible. I also imagine that we need to have a setting so users and enable or disable this feature.

BTW: Here is a screenshot - http://cvs.prohost.org/index.php/Image:Quick_reply.jpg
Re: Quick Reply [message #159491 is a reply to message #159483] Fri, 05 June 2009 16:26 Go to previous messageGo to next message
nozafc is currently offline  nozafc   United Kingdom
Messages: 75
Registered: April 2009
Karma: 0
Member
naudefj wrote on Fri, 05 June 2009 15:07
Here is an updated patch for FUDforum 2.8.1.


Excuse my ignorance but how does one apply this patch, I've read the posts above regarding diff etc but that kinda flies over my head to be honest.
Re: Quick Reply [message #159492 is a reply to message #159491] Fri, 05 June 2009 16:42 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3772
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Copy quick_reply.patch to your FUDdata/thm/default/tmpl/ directory an use the patch command to apply it:

$ patch -p0 <quick_reply.patch


This may also help: http://cvs.prohost.org/index.php/Applying_patches

Re: Quick Reply [message #159493 is a reply to message #22672] Fri, 05 June 2009 17:22 Go to previous messageGo to next message
nozafc is currently offline  nozafc   United Kingdom
Messages: 75
Registered: April 2009
Karma: 0
Member
Thanks

I managed to surprise myself and get it working. I don't have shell access of anything so was unable to do that and I tried a few windows utils for diff/patching but none worked so I booted up my ubuntu distro and managed to do it in seconds on that
Re: Quick Reply [message #159494 is a reply to message #159493] Fri, 05 June 2009 17:36 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3772
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Well done! I've also updated the zip with some basic instructions (README file).

BTW: You may want to download SUN's vbox (virtualbox.org). It will allow you to boot Ubuntu in a window or vice versa.

Re: Quick Reply [message #159495 is a reply to message #22672] Fri, 05 June 2009 17:43 Go to previous messageGo to next message
nozafc is currently offline  nozafc   United Kingdom
Messages: 75
Registered: April 2009
Karma: 0
Member
Nice one thanks

I've ran into an error when testing on my local copy (via xampp). The box shows up and everything but if you click preview message or submit reply it errors with

A system error has occurred. Please report it to the webmaster.

In the error log it has the following message

[Error] ERROR: System Error
[Message Sent to User] A system error has occurred. Please report it to the webmaster.
[User IP] 127.0.0.1
[Requested URL] http://localhost/webdav/test/FUDforum2/index.php?t=post
[Post-Data] YToxMzp7czo4OiJmbnRfc2l6ZSI7czowOiIiO3M6OToiZm50X2NvbG9yIjtzOjA6IiI7czo4OiJ mbnRfZmFjZSI7czowOiIiO3M6ODoibXNnX2JvZHkiO3M6ODoiUGF0Y2ggbWUiO3M6MToiUyI7cz ozMjoiYWVmNDNjOTlmYjRhMzZhMzA1MmE5Y2Y3YWVkNmEwZGUiO3M6MjoiU1EiO3M6MzI6IjVjZ TMzOGRkZjA1YTNmMWE2MjFjNjA4ZjRhMjcyNGEzIjtzOjk6InN1Ym1pdHRlZCI7czoxOiIxIjtz OjExOiJtc2dfc3ViamVjdCI7czowOiIiO3M6ODoicmVwbHlfdG8iO3M6MDoiIjtzOjU6InRoX2l kIjtzOjA6IiI7czo2OiJmcm1faWQiO3M6MDoiIjtzOjExOiJwcmV2X2xvYWRlZCI7czoxOiIxIj tzOjEyOiJtc2dfc2hvd19zaWciO3M6MToiWSI7fQ==
[Referring Page] http://localhost/webdav/test/FUDforum2/index.php?t=msg&goto=2&S=aef 43c99fb4a36a3052a9cf7aed6a0de]


Looking back on your instructions I seen they were a little bit different from what I done (I hadn't seen your reply at this time)

I simply done

$ patch msg.tmpl quick_reply.patch


Would that make a difference ?

[Updated on: Fri, 05 June 2009 17:46]

Report message to a moderator

Re: Quick Reply [message #159496 is a reply to message #159495] Fri, 05 June 2009 17:49 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3772
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Did you patch both files as per the README in the updated zip?
Re: Quick Reply [message #159497 is a reply to message #159496] Fri, 05 June 2009 17:58 Go to previous messageGo to next message
nozafc is currently offline  nozafc   United Kingdom
Messages: 75
Registered: April 2009
Karma: 0
Member
naudefj wrote on Fri, 05 June 2009 18:49
Did you patch both files as per the README in the updated zip?


Ah my bad, I hadn't considered that you had added an extra file. I shall go away and try that now. Many thanks again.

[Updated on: Fri, 05 June 2009 17:59]

Report message to a moderator

Re: Quick Reply [message #159498 is a reply to message #159497] Fri, 05 June 2009 18:08 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3772
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
No, it's my fault. I've messed up the first zip.

Anyway, this may help to get the patching done on Windows: http://gnuwin32.sourceforge.net/packages/patch.htm
Re: Quick Reply [message #159499 is a reply to message #22672] Fri, 05 June 2009 18:29 Go to previous messageGo to next message
nozafc is currently offline  nozafc   United Kingdom
Messages: 75
Registered: April 2009
Karma: 0
Member
Many thanks again that is working on my local server now
Re: Quick Reply [message #159519 is a reply to message #159499] Sun, 07 June 2009 07:49 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3772
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Here are some translations of "Quick Reply" from various dictionary sites. Please help to verify and complete missing translations:

afrikaans	= Snel antwoord
bulgarian	= Бърз отговор
catalan         = 
chinese		= 快速回复
czech		= rychlá odpověď
danish		= kvik-svar / hurtigsvar
dutch		= Snel antwoord
english         = Quick Reply
finnish		= nopea vastaus
french		= réponse rapide
german		= Schnelle Antwort
german_formal	= Schnelle Antwort
indonesian      = 
italian		= Risposta rapida
japanese	= 迅速な返事
korean		= 빠른 답변
latvian         =
lithuanian      =
norwegian	= Hurtigsvar 
polish		= szybka odpowiedź
portuguese	= resposta rápida
portuguese_br   = resposta rápida
romanian	= Răspuns rapid
russian		= быстрый ответ
slovak          = 
spanish		= respuesta rápida
swedish		= snabbt svar
turkish         =
vietnamese      =


Best regards.

Frank
Re: Quick Reply [message #159531 is a reply to message #159519] Sun, 07 June 2009 17:32 Go to previous messageGo to next message
Peter Vendike is currently offline  Peter Vendike   Denmark
Messages: 65
Registered: February 2009
Location: Denmark
Karma: 0
Member
Translator
danish = kvik-svar / hurtigsvar

[Updated on: Sun, 07 June 2009 17:33]

Report message to a moderator

Re: Quick Reply [message #159580 is a reply to message #22672] Thu, 11 June 2009 17:22 Go to previous messageGo to previous message
nozafc is currently offline  nozafc   United Kingdom
Messages: 75
Registered: April 2009
Karma: 0
Member
Out of interest what would need to be changed to have this as always showing, ie no need to press the quick reply button
Pages (2): [1  2    »]  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Youtube Plugin Change
Next Topic: Zshare Embedding Plugin
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Dec 18 02:23:02 GMT 2024

Total time taken to generate the page: 0.04706 seconds