Advertisement:

Author Topic: Subject column in Quick reply box  (Read 6674 times)

Offline Joker™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,914
  • Gender: Male
    • siddhartha-gupta on GitHub
Subject column in Quick reply box
« on: September 25, 2010, 10:44:39 AM »
We have a quick reply box in the bottom through which we can shout out text in a very efficient and fast manner in the topic, but it doesn't have a subject field. So if a user is intending to change the subject of his reply he has to go to main reply main. So remove this one more click, i just made a little tweak.

To do this open this file (Make backup of file before editing it)
Themes\default\Display.template.php

Find:
Code: [Select]
<input type="hidden" name="subject" value="', $context['response_prefix'], $context['subject'], '" />

Repalce it with:
Code: [Select]
<input type="text" name="subject" value="', $context['response_prefix'], $context['subject'], '" tabindex="', $context['tabindex']++, '" size="80" maxlength="80" class="input_text" />

And you are done :P.

Here's the screen shot



Already working here (I think you have to get register to see as guests don't have permission to reply to topics).
« Last Edit: September 27, 2010, 11:04:29 AM by Joker™ »
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Offline Hj Ahmad Rasyid Hj Ismail

  • SMF Hero
  • ******
  • Posts: 4,916
  • Gender: Male
  • Busy mode is on.
    • ahmad.rasyid.ismail on Facebook
    • ahrasis on GitHub
    • ahrasis on LinkedIn
    • @ahrasis on Twitter
    • ElkArte Malaysia
Re: Subject column in Quick reply box
« Reply #1 on: September 25, 2010, 10:46:58 AM »
Nice new idea Joker. I like it.

Offline Joker™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,914
  • Gender: Male
    • siddhartha-gupta on GitHub
Re: Subject column in Quick reply box
« Reply #2 on: September 25, 2010, 10:49:51 AM »
Nice new idea Joker. I like it.
If you find any bug in it do report here :).
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Oya

  • Guest
Re: Subject column in Quick reply box
« Reply #3 on: September 25, 2010, 10:52:32 AM »
can actually shorten it slightly

Code: [Select]
<input type="text" name="subject" value="', $context['response_prefix'], $context['subject'], '" tabindex="', $context['tabindex']++, '" size="80" maxlength="80" class="input_text" />
as in the original there has to be both a response-prefix and a subject so no need to check for either if ur replying since it will have both

Offline Joker™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,914
  • Gender: Male
    • siddhartha-gupta on GitHub
Re: Subject column in Quick reply box
« Reply #4 on: September 25, 2010, 10:56:12 AM »
can actually shorten it slightly

Code: [Select]
<input type="text" name="subject" value="', $context['response_prefix'], $context['subject'], '" tabindex="', $context['tabindex']++, '" size="80" maxlength="80" class="input_text" />
as in the original there has to be both a response-prefix and a subject so no need to check for either if ur replying since it will have both
OP edited , thanks a lot ;).
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Offline Hj Ahmad Rasyid Hj Ismail

  • SMF Hero
  • ******
  • Posts: 4,916
  • Gender: Male
  • Busy mode is on.
    • ahmad.rasyid.ismail on Facebook
    • ahrasis on GitHub
    • ahrasis on LinkedIn
    • @ahrasis on Twitter
    • ElkArte Malaysia
Re: Subject column in Quick reply box
« Reply #5 on: September 25, 2010, 11:34:20 AM »
Nice new idea Joker. I like it.
If you find any bug in it do report here :).
I haven't try it yet but sure, I'll do that.

Offline Joker™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,914
  • Gender: Male
    • siddhartha-gupta on GitHub
Re: Subject column in Quick reply box
« Reply #6 on: September 25, 2010, 11:42:17 AM »
I know this is pretty much off topic, but made a some changes in post page. Each post is separated by a bar which is having post time, icon, post title, and reply number.



will like to hear comments from you guys.

One more thing, if someone click inline moderation button post title can be modified at bar only (like we have in normal circumstances) ;)
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Offline kysangel

  • Newbie
  • *
  • Posts: 2
Re: Subject column in Quick reply box
« Reply #7 on: October 04, 2010, 07:34:48 PM »
Worked for me

Thanks

kysangel