Author

Topic: Encouraging non-lazy PM subjects (SMF patch) (Read 268 times)

legendary
Activity: 1862
Merit: 5154
**In BTC since 2013**
November 01, 2023, 05:04:02 AM
#17
I already posted about this (here), but almost instantly regretted doing that (I like the pattern of creating a new topic for each SMF patch, so I'm not sure why I tried to do things differently this time). Undecided

Anyway, this one came about from joker_josue pointing out that receiving PMs with no subject is annoying, and Loyce (effectively) nodding his head and saying "patch time?". Cheesy

I'm sorry @PowerGlove, I don't know how I missed this topic, and I only saw it now! Sometimes we are involved in so much that something will escape.

First of all, thank you for creating this patch. Your effort to improve the forum has been incredible. Honestly, I wasn't expecting that much when I created that topic. I know that this patch is not of great importance, the forum survived without it for many years. But, it could one day be implemented, and help the community to be more involved with each other.

Once again, I appreciate your effort!  Wink



What joker_josue wants is that whatever is put in the title should be descriptive enough to categorise it, and you can't force people to do that no matter how many patches you put in. I can put 'Hey' as a title in all my emails no matter how varied the subject matter or '.....' as I said before.
In my experience if people are forced to include a subject they will try to make it something related to the message they are sending. Use threads as a case study, including a subject is mandatory and we very rarely see people include things like "Hey" or ellipsis, they put in some effort to make the subject something remotely related to what the thread is to give you some hint about it, same may happen with PMs too.

I don't want to force anyone to do anything, just suggest people write something about what they're going to talk about. I believe that most people who use email already do this. Why not do it in the PM too?

The current term "(No Subject)" is the same for everyone, if no one changes the title that's always what appears. If a person needs to write something in this field, each person will write different things. Even if it's just "." or "xpto", is different from each other. Because some write ".", others just "abc", others "xpto", etc. It will always be better than finding one message among 30, saying "No Subject".  Roll Eyes

In any case, this is not an urgent update, but it is still welcome. Wink



The number of pages I have for my inbox

Have you ever thought about starting to use Labels?
You would be able to reduce the number of messages in your inbox and have them more organized.

You can label messages about the campaigns you manage. Per user, if you receive many messages from the same users. Or any other subject that you find relevant.

But, after creating the Labels and flagging the messages in that label, don't forget to remove them from the Inbox label. See my topic on the subject.  Wink
sr. member
Activity: 322
Merit: 318
The Alliance Of Bitcointalk Translators - ENG>BAN
So can we expect approval from theymos about this patch?

This patch doesn't have be the number one priority now, but it would be nice if you patched it. Although I don't use PM that much and I am only a full member, but even I almost have 6-7 pages of PM. Imagine what others may have on their side.

I understand that people forget to add subjects or are too lazy to do so. Even me. Almost 90% of my ingoing and outgoing PM's don't have any subjects. But when it comes to checking old PMs for something important, it can be a headache. Just a reminder to add a small, 2 word subject won't harm anybody.

So please patch it if it's possible. Thanks in advance, PowerGlove Tongue
hero member
Activity: 510
Merit: 4005
I edited the OP and updated the patch with an additional diff that I think improves this proposal.
legendary
Activity: 1358
Merit: 1565
The first decentralized crypto betting platform
September 18, 2023, 09:56:45 AM
#14
In my experience if people are forced to include a subject they will try to make it something related to the message they are sending. Use threads as a case study, including a subject is mandatory and we very rarely see people include things like "Hey" or ellipsis, they put in some effort to make the subject something remotely related to what the thread is to give you some hint about it, same may happen with PMs too.

...

It's not a priority at all, it's just a minor change that will take the most of a few minutes.

After seeing this answer and others I see that surely the people who need the patch are people who get a lot more PMs than those of us who don't care about the issue, and since it won't take long to do, I also support it being done.

The only thing is that I think thread titles work a little differently than PMs where the people who send them may not care what they title them because they are not trying to attract the attention of several people.
legendary
Activity: 2464
Merit: 3878
Hire Bitcointalk Camp. Manager @ r7promotions.com
September 18, 2023, 08:43:11 AM
#13
The number of pages I have for my inbox


It's impossible for me to know a subject and find a message from a specific user.


A lot of time I need to find the latest message sent by a user. I never felt a need for the subject or full message options, it's kind of useless but you can not search without it too which makes the PM search feature harder. We need "Search for:" failed disabled.

May be you have something in mind?
hero member
Activity: 784
Merit: 672
Top Crypto Casino
September 18, 2023, 08:05:37 AM
#12

Anyway, this one came about from joker_josue pointing out that receiving PMs with no subject is annoying, and Loyce (effectively) nodding his head and saying "patch time?". Cheesy

Also, I've got some ideas for future patches that might allow for quickly isolating PMs by author, or subject, so phasing out (or, at least discouraging) PMs with "(No subject)" as their subject line, just seems like a good idea all-around to me.


A really nice patch for someone like joker_josue and some other members who receive so many private messages. I hope that theymos will soon implement it on forum and those users can easily read their PM's because the sender must have to select a title in order to send a Private message. Your have done a really great job by creating this patch I truly appreciate your efforts. I would love to see those patches that you're going to release in future because your patches have always helped the members of the forum and hope those ones will also be useful for the members who receive so many PM's.
hero member
Activity: 1428
Merit: 513
Payment Gateway Allows Recurring Payments
September 18, 2023, 05:44:41 AM
#11
That's great work, I really liked the idea even though I don't receive hundreds or thousands of messages but it will be great for others who receive such a huge amount of PMs. It will definitely going to help managers and other service providers too. But as you mentioned in the post, it's not a problem for you but you are making it for others, I think many members will not need it as most of the members don't even receive huge messages, and the remaining ones who do receive it. 

most of them don't need it just like you don't need it but it is a great improvement and it will increase the quality of the PM as the sender will think before sending the message and he/she will double check it too. This will ultimately increase the quality and purpose of the PM and if people will start to make good PMs then the time will be saved for many users who are mostly active on messages. 
hero member
Activity: 2366
Merit: 838
September 18, 2023, 03:07:58 AM
#10
From what I understood, it’s an one line change on the code... Not too troublesome. And it’s not like this makes anyone’s life harder, people already put subjects on emails.

The reason I think people forget to put a subject on their PMs is not laziness, but the fact that almost no one changes the subject of their posts (it’s usually “Re: </div>The issue, if any user sees it as an issue, comes from an initial PM sender. If a sender sends a PM without PM title, very likely the receiver will reply on it without any title, without any change in PM title.<br /><br />I agree that receiving such no-title PMs is annoying and I can be an old person to hate it, not only in Bitcointalk but also in emails. Emails without titles look very odds and shows the senders are lazy people. I also consider senders as disrespectful people against the receivers.<br /><br /><a class="ul" href="https://blog.hubspot.com/marketing/improve-your-email-subject-line" rel="nofollow" target="_blank">Improve your email subject line</a>. Those tips to write a catchy email subject line can be used for Bitcointalk PM title too. Actually we don't need catch title, but at least to inform receivers what are issues in the email for discussions. The PM title is important. </div> </div> </div> </div> <div class="item clearfix"> <div class="item-content"> <div class="user-data"> <div class="username"> <a href="/user/loycev-459836" title="Profile of LoyceV">LoyceV</a> </div> <div class="position">legendary</div> <div class="position-coins"> <img src="/images/user_position/legendary.gif" alt="" title="Legendary level"> </div> <div class="activity">Activity: 3290</div> <div class="merit">Merit: 16489</div> <div class="avatar"> <img src="https://bitcointalk.org/useravatars/avatar_459836.png" alt="" title="Profile photo of LoyceV"> </div> <div class="description">Thick-Skinned Gang Leader and Golden Feather 2021</div> <div class="view-profile"> <a href="/user/loycev-459836" title="Profile of LoyceV"><img src="/images/profile_sm.gif" alt=""></a> </div> </div> <div class="message-data"> <div class="header clearfix"> <div class="icon"> <img src="/images/xx.gif" alt=""> </div> <div class="title-wrapper"> <div class="title"> <a name="msg62863013"></a> <a href="/topic/m.62863013">Re: Encouraging non-lazy PM subjects (SMF patch)</a> </div> <div class="date">September 18, 2023, 02:50:04 AM</div> </div> <div class="item-number text-right"> <a href="/topic/m.62863013">#9</a> </div> </div> <div class="content"> <div class="quote-header"><a href="/topic/m.62862150">Quote from: PowerGlove on September 17, 2023, 09:17:33 PM</a></div><div class="quote">It's not something that bugs <i>me</i> all that much (out of the 203 PMs I've received, 15 don't have a subject)</div>I'm not going to count all 237 pages of PMs, but on the last 2 pages, I count "(No subject)" 17 times already.<br /><br /><span style="color: gray;">I would have Merited you, but I've been at my limit for you for a while now. Too many patches within 30 days</span> <img src="https://bitcointalk.org/Smileys/default/tongue.gif" alt="Tongue" border="0" /> </div> </div> </div> </div> <div class="item clearfix"> <div class="item-content"> <div class="user-data"> <div class="username"> <a href="/user/nwada001-3489395" title="Profile of Nwada001">Nwada001</a> </div> <div class="position">hero member</div> <div class="position-coins"> <img src="/images/user_position/star.gif" alt=""> <img src="/images/user_position/star.gif" alt=""> <img src="/images/user_position/star.gif" alt=""> <img src="/images/user_position/star.gif" alt=""> <img src="/images/user_position/star.gif" alt=""> </div> <div class="activity">Activity: 798</div> <div class="merit">Merit: 702</div> <div class="avatar"> <img src="https://bitcointalk.org/useravatars/avatar_3489395.png" alt="" title="Profile photo of Nwada001"> </div> <div class="description"></div> <div class="view-profile"> <a href="/user/nwada001-3489395" title="Profile of Nwada001"><img src="/images/profile_sm.gif" alt=""></a> </div> </div> <div class="message-data"> <div class="header clearfix"> <div class="icon"> <img src="/images/xx.gif" alt=""> </div> <div class="title-wrapper"> <div class="title"> <a name="msg62862889"></a> <a href="/topic/m.62862889">Re: Encouraging non-lazy PM subjects (SMF patch)</a> </div> <div class="date">September 18, 2023, 02:18:23 AM</div> </div> <div class="item-number text-right"> <a href="/topic/m.62862889">#8</a> </div> </div> <div class="content"> I see this patch as a good one. I read through the old thread by joker_josue, and I must say I'm always in for making such a mistake. Most times it's not because I don't want to add a custom subject, but it's just that I forget most of the time. <br /><br />Sometimes when I open a new message to send to anyone, after spending several minutes trying to compose my message and finally concluding it, I don't usually remember to go to the up again, from the message body, as I don't think there is anything to do since when I send any one a PM I use their profile and use the direct send pm link, so I don't even type the receiver's username.<br /><br />So if I can get an error code or at least a warning message that states "Are you sure you want to send this message without a subject"? That alone can draw my attention to go and check back on what I have missed; this other option of not allowing the message to go at all until the subject box is filled is also a good idea. </div> </div> </div> </div> <div class="item clearfix"> <div class="item-content"> <div class="user-data"> <div class="username"> <a href="/user/dyings0ul-3513442" title="Profile of DYING_S0UL">DYING_S0UL</a> </div> <div class="position">sr. member</div> <div class="position-coins"> <img src="/images/user_position/star.gif" alt=""> <img src="/images/user_position/star.gif" alt=""> <img src="/images/user_position/star.gif" alt=""> <img src="/images/user_position/star.gif" alt=""> </div> <div class="activity">Activity: 322</div> <div class="merit">Merit: 318</div> <div class="avatar"> <img src="https://bitcointalk.org/useravatars/avatar_3513442.png" alt="" title="Profile photo of DYING_S0UL"> </div> <div class="description">The Alliance Of Bitcointalk Translators - ENG>BAN</div> <div class="view-profile"> <a href="/user/dyings0ul-3513442" title="Profile of DYING_S0UL"><img src="/images/profile_sm.gif" alt=""></a> </div> </div> <div class="message-data"> <div class="header clearfix"> <div class="icon"> <img src="/images/xx.gif" alt=""> </div> <div class="title-wrapper"> <div class="title"> <a name="msg62862775"></a> <a href="/topic/m.62862775">Re: Encouraging non-lazy PM subjects (SMF patch)</a> </div> <div class="date">September 18, 2023, 01:45:31 AM</div> </div> <div class="item-number text-right"> <a href="/topic/m.62862775">#7</a> </div> </div> <div class="content"> Just adding two line of word won't harm anybody. I think it is time for this "patch". Not that everyone needs it anyway (like me) but those who gets hundreds of PM's everyday does indeed need it. It would greatly help them sorting out important PM's or ignoring Spams etc. Two line of word has that power to prioritize ones PM. It's my personal opinion, I think of this that way. </div> </div> </div> </div> <div class="item clearfix"> <div class="item-content"> <div class="user-data"> <div class="username"> <a href="/user/upgrade00-2423488" title="Profile of Upgrade00">Upgrade00</a> </div> <div class="position">legendary</div> <div class="position-coins"> <img src="/images/user_position/legendary.gif" alt="" title="Legendary level"> </div> <div class="activity">Activity: 2254</div> <div class="merit">Merit: 2406</div> <div class="avatar"> <img src="https://bitcointalk.org/useravatars/avatar_2423488.png" alt="" title="Profile photo of Upgrade00"> </div> <div class="description">Playgram - The Telegram Casino</div> <div class="view-profile"> <a href="/user/upgrade00-2423488" title="Profile of Upgrade00"><img src="/images/profile_sm.gif" alt=""></a> </div> </div> <div class="message-data"> <div class="header clearfix"> <div class="icon"> <img src="/images/xx.gif" alt=""> </div> <div class="title-wrapper"> <div class="title"> <a name="msg62862606"></a> <a href="/topic/m.62862606">Re: Encouraging non-lazy PM subjects (SMF patch)</a> </div> <div class="date">September 18, 2023, 12:43:13 AM</div> </div> <div class="item-number text-right"> <a href="/topic/m.62862606">#6</a> </div> </div> <div class="content"> <div class="quote-header"><a href="/topic/m.62862302">Quote from: Don Pedro Dinero on September 17, 2023, 10:33:38 PM</a></div><div class="quote">What joker_josue wants is that whatever is put in the title should be descriptive enough to categorise it, and you can't force people to do that no matter how many patches you put in. I can put 'Hey' as a title in all my emails no matter how varied the subject matter or '.....' as I said before. <br /></div>In my experience if people are forced to include a subject they will try to make it something related to the message they are sending. Use threads as a case study, including a subject is mandatory and we very rarely see people include things like "Hey" or ellipsis, they put in some effort to make the subject something remotely related to what the thread is to give you some hint about it, same may happen with PMs too.<br /><br /><div class="quote-header"><a href="/topic/m.62862302">Quote from: Don Pedro Dinero on September 17, 2023, 10:33:38 PM</a></div><div class="quote">But well, if it doesn't cost anything to change it then fine, what I'm saying is that this shouldn't be a priority in the forum, because I'm sure there are many of us who don't give a damn <br /></div>It's not a priority at all, it's just a minor change that will take the most of a few minutes. </div> </div> </div> </div> <div class="item clearfix"> <div class="item-content"> <div class="user-data"> <div class="username"> <a href="/user/tryninja-557798" title="Profile of TryNinja">TryNinja</a> </div> <div class="position">legendary</div> <div class="position-coins"> <img src="/images/user_position/legendary.gif" alt="" title="Legendary level"> </div> <div class="activity">Activity: 2758</div> <div class="merit">Merit: 6830</div> <div class="avatar"> <img src="https://bitcointalk.org/useravatars/avatar_557798.png" alt="" title="Profile photo of TryNinja"> </div> <div class="description"></div> <div class="view-profile"> <a href="/user/tryninja-557798" title="Profile of TryNinja"><img src="/images/profile_sm.gif" alt=""></a> </div> </div> <div class="message-data"> <div class="header clearfix"> <div class="icon"> <img src="/images/xx.gif" alt=""> </div> <div class="title-wrapper"> <div class="title"> <a name="msg62862322"></a> <a href="/topic/m.62862322">Re: Encouraging non-lazy PM subjects (SMF patch)</a> </div> <div class="date">September 17, 2023, 10:45:37 PM</div> </div> <div class="item-number text-right"> <a href="/topic/m.62862322">#5</a> </div> </div> <div class="content"> <div class="quote-header"><a href="/topic/m.62862302">Quote from: Don Pedro Dinero on September 17, 2023, 10:33:38 PM</a></div><div class="quote">What joker_josue wants is that whatever is put in the title should be descriptive enough to categorise it, and you can't force people to do that no matter how many patches you put in. I can put 'Hey' as a title in all my emails no matter how varied the subject matter or '.....' as I said before. <br /></div>I’m aware, but my guess is that this will indeed make some people write something valid on their PM subjects. Even “about our deal” or “wallet question” is 10x better than a sea of “(No subject)”. And it’s a trivial patch, like I said. </div> </div> </div> </div> <div class="item clearfix"> <div class="item-content"> <div class="user-data"> <div class="username"> <a href="/user/don-pedro-dinero-1107222" title="Profile of Don Pedro Dinero">Don Pedro Dinero</a> </div> <div class="position">legendary</div> <div class="position-coins"> <img src="/images/user_position/legendary.gif" alt="" title="Legendary level"> </div> <div class="activity">Activity: 1358</div> <div class="merit">Merit: 1565</div> <div class="avatar"> <img src="https://bitcointalk.org/useravatars/avatar_1107222.png" alt="" title="Profile photo of Don Pedro Dinero"> </div> <div class="description">The first decentralized crypto betting platform</div> <div class="view-profile"> <a href="/user/don-pedro-dinero-1107222" title="Profile of Don Pedro Dinero"><img src="/images/profile_sm.gif" alt=""></a> </div> </div> <div class="message-data"> <div class="header clearfix"> <div class="icon"> <img src="/images/xx.gif" alt=""> </div> <div class="title-wrapper"> <div class="title"> <a name="msg62862302"></a> <a href="/topic/m.62862302">Re: Encouraging non-lazy PM subjects (SMF patch)</a> </div> <div class="date">September 17, 2023, 10:33:38 PM</div> </div> <div class="item-number text-right"> <a href="/topic/m.62862302">#4</a> </div> </div> <div class="content"> <div class="quote-header"><a href="/topic/m.62862287">Quote from: TryNinja on September 17, 2023, 10:22:54 PM</a></div><div class="quote">From what I understood, it’s an one line change on the code... Not too troublesome. And it’s not like this makes anyone’s life harder, people already put subjects on emails.<br /><br />The reason I think people forget to put a subject on their PMs is not laziness, but the fact that almost no one changes the subject of their posts (it’s usually “Re: <title of the OP”), so some people just treat PMs as another post, just sent privately, and press send after writing the message.<br /></div><br />From what I understand this comes from the fact that if you get a lot of PMs sent to you and they don't have a title you have no way to categorise them and manage them properly:<br /><br /><div class="quote-header"><a href="/topic/m.62852055">Quote from: joker_josue on September 15, 2023, 03:20:43 PM</a></div><div class="quote">Normally this field serves to define the title of the message - three or four words that identify the objective of the PM.<br /><br />Therefore, I ask that when you send a PM, write something in the subject of the PM and not just leave the "(No subject)". This helps a lot in managing PMs.<br /></div><br />What joker_josue wants is that whatever is put in the title should be descriptive enough to categorise it, and you can't force people to do that no matter how many patches you put in. I can put 'Hey' as a title in all my emails no matter how varied the subject matter or '.....' as I said before. <br /><br />But well, if it doesn't cost anything to change it then fine, what I'm saying is that this shouldn't be a priority in the forum, because I'm sure there are many of us who don't give a damn whether there is a title or not, what happens is that we haven't opened a thread to say that we don't give a damn (as it's normal, people usually open threads to complain about what bothers them, not to not complain about what doesn't bother them).<br /> </div> </div> </div> </div> <div class="item clearfix"> <div class="item-content"> <div class="user-data"> <div class="username"> <a href="/user/tryninja-557798" title="Profile of TryNinja">TryNinja</a> </div> <div class="position">legendary</div> <div class="position-coins"> <img src="/images/user_position/legendary.gif" alt="" title="Legendary level"> </div> <div class="activity">Activity: 2758</div> <div class="merit">Merit: 6830</div> <div class="avatar"> <img src="https://bitcointalk.org/useravatars/avatar_557798.png" alt="" title="Profile photo of TryNinja"> </div> <div class="description"></div> <div class="view-profile"> <a href="/user/tryninja-557798" title="Profile of TryNinja"><img src="/images/profile_sm.gif" alt=""></a> </div> </div> <div class="message-data"> <div class="header clearfix"> <div class="icon"> <img src="/images/xx.gif" alt=""> </div> <div class="title-wrapper"> <div class="title"> <a name="msg62862287"></a> <a href="/topic/m.62862287">Re: Encouraging non-lazy PM subjects (SMF patch)</a> </div> <div class="date">September 17, 2023, 10:22:54 PM</div> </div> <div class="item-number text-right"> <a href="/topic/m.62862287">#3</a> </div> </div> <div class="content"> <div class="quote-header"><a href="/topic/m.62862269">Quote from: Don Pedro Dinero on September 17, 2023, 10:12:04 PM</a></div><div class="quote">I don't care if they don't put a title in the PM and I don't think it should be a priority for the forum right now to put a patch for it. <br /><br />-snip-<br /><br />I guess in the face of lazy people putting just a dot in the title, you could force people to write a minimum number of characters but if I don't want to put a title and you give me a minimum number of characters then I can put '.....' or whatever. <br /><br /></div>From what I understood, it’s an one line change on the code... Not too troublesome. And it’s not like this makes anyone’s life harder, people already put subjects on emails.<br /><br />The reason I think people forget to put a subject on their PMs is not laziness, but the fact that almost no one changes the subject of their posts (it’s usually “Re: <title of the OP”), so some people treat PMs as another post, just sent privately, and press send after writing the message. </div> </div> </div> </div> <div class="item clearfix"> <div class="item-content"> <div class="user-data"> <div class="username"> <a href="/user/don-pedro-dinero-1107222" title="Profile of Don Pedro Dinero">Don Pedro Dinero</a> </div> <div class="position">legendary</div> <div class="position-coins"> <img src="/images/user_position/legendary.gif" alt="" title="Legendary level"> </div> <div class="activity">Activity: 1358</div> <div class="merit">Merit: 1565</div> <div class="avatar"> <img src="https://bitcointalk.org/useravatars/avatar_1107222.png" alt="" title="Profile photo of Don Pedro Dinero"> </div> <div class="description">The first decentralized crypto betting platform</div> <div class="view-profile"> <a href="/user/don-pedro-dinero-1107222" title="Profile of Don Pedro Dinero"><img src="/images/profile_sm.gif" alt=""></a> </div> </div> <div class="message-data"> <div class="header clearfix"> <div class="icon"> <img src="/images/xx.gif" alt=""> </div> <div class="title-wrapper"> <div class="title"> <a name="msg62862269"></a> <a href="/topic/m.62862269">Re: Encouraging non-lazy PM subjects (SMF patch)</a> </div> <div class="date">September 17, 2023, 10:12:04 PM</div> </div> <div class="item-number text-right"> <a href="/topic/m.62862269">#2</a> </div> </div> <div class="content"> I don't care if they don't put a title in the PM and I don't think it should be a priority for the forum right now to put a patch for it. <br /><br />I see that you have proposed a worked solution and I congratulate you for it, but have you thought that if I don't want to put a title and they force me I can just put a single character? Something like that:<br /><br /><img class="userimg" src="https://ip.bitcointalk.org/?u=https%3A%2F%2Fwww.talkimg.com%2Fimages%2F2023%2F09%2F18%2F6Y4x9.png&t=669&c=dhcm8SZJ6vf4hA" alt="" border="0" /><br /><br />I guess in the face of lazy people putting just a dot in the title, you could force people to write a minimum number of characters but if I don't want to put a title and you give me a minimum number of characters then I can put '.....' or whatever. <br /> </div> </div> </div> </div> <div class="item clearfix"> <div class="item-content"> <div class="user-data"> <div class="username"> <a href="/user/powerglove-3486361" title="Profile of PowerGlove">PowerGlove</a> </div> <div class="position">hero member</div> <div class="position-coins"> <img src="/images/user_position/star.gif" alt=""> <img src="/images/user_position/star.gif" alt=""> <img src="/images/user_position/star.gif" alt=""> <img src="/images/user_position/star.gif" alt=""> <img src="/images/user_position/star.gif" alt=""> </div> <div class="activity">Activity: 510</div> <div class="merit">Merit: 4005</div> <div class="avatar"> <img src="https://bitcointalk.org/useravatars/avatar_3486361.png" alt="" title="Profile photo of PowerGlove"> </div> <div class="description"></div> <div class="view-profile"> <a href="/user/powerglove-3486361" title="Profile of PowerGlove"><img src="/images/profile_sm.gif" alt=""></a> </div> </div> <div class="message-data"> <div class="header clearfix"> <div class="icon"> <img src="/images/xx.gif" alt=""> </div> <div class="title-wrapper"> <div class="title"> <a name="msg62862150"></a> <a href="/topic/m.62862150">Re: Encouraging non-lazy PM subjects (SMF patch)</a> </div> <div class="date">September 17, 2023, 09:17:33 PM</div> </div> <div class="item-number text-right"> <a href="/topic/m.62862150">#1</a> </div> </div> <div class="content"> I already posted about this (<a class="ul" href="/topic/m.62852977">here</a>), but almost instantly regretted doing that (I like the pattern of creating a new topic for each SMF patch, so I'm not sure why I tried to do things differently this time). <img src="https://bitcointalk.org/Smileys/default/undecided.gif" alt="Undecided" border="0" /><br /><br />Anyway, this one came about from joker_josue pointing out that receiving PMs with no subject is annoying, and Loyce (effectively) nodding his head and saying "patch time?". <img src="https://bitcointalk.org/Smileys/default/cheesy.gif" alt="Cheesy" border="0" /><br /><br />It's not something that bugs <i>me</i> all that much (out of the 203 PMs I've received, 15 don't have a subject), but I can imagine it being really annoying for people with thousands of PMs in their inbox who find themselves looking back through them from time to time. Also, I've got some ideas for future patches that might allow for quickly isolating PMs by author, or subject, so phasing out (or, at least discouraging) PMs with "(No subject)" as their subject line, just seems like a good idea all-around to me.<br /><br />Currently, the subject line is pre-populated with the text "(No subject)", like this:<br /><br /><img class="userimg" src="https://ip.bitcointalk.org/?u=https%3A%2F%2Ftalkimg.com%2Fimages%2F2023%2F09%2F18%2F6Yf6q.png&t=669&c=BshxX4Hyq-pRTQ" alt="" border="0" /><br /><br />To stop lazy MFs from just going with the default, this patch leaves the subject line empty:<br /><br /><img class="userimg" src="https://ip.bitcointalk.org/?u=https%3A%2F%2Ftalkimg.com%2Fimages%2F2023%2F09%2F18%2F6Yyjj.png&t=669&c=fgw11xH9hX09oQ" alt="" border="0" /><br /><br />If you try to send (or preview) a PM without attempting to describe what you're about to bang on about, then you'll get an error, like this:<br /><br /><img class="userimg" src="https://ip.bitcointalk.org/?u=https%3A%2F%2Ftalkimg.com%2Fimages%2F2023%2F09%2F18%2F6YJOG.png&t=669&c=3wW8GI80aHS-Rg" alt="" border="0" /><br /><br />Here's the diff for @theymos:<br /><br /><div class="codeheader">Code:</div><div class="code"><pre style="margin-top: 0; display: inline;">--- baseline/Sources/PersonalMessage.php 2011-02-07 16:45:09.000000000 +0000<br />+++ modified/Sources/PersonalMessage.php 2023-09-16 00:58:49.000000000 +0000<br />@@ -1224,33 +1224,33 @@<br /> <br />  $request = db_query("<br />  SELECT realName<br />  FROM {$db_prefix}members<br />  WHERE ID_MEMBER IN (" . implode(', ', $_REQUEST['u']) . ")<br />  LIMIT " . count($_REQUEST['u']), __FILE__, __LINE__);<br />  while ($row = mysql_fetch_assoc($request))<br />  $membersTo[] = '"' . $row['realName'] . '"';<br />  mysql_free_result($request);<br />  }<br /> <br />  // Create the 'to' string - Quoting it, just in case it's something like bob,i,like,commas,man.<br />  $_REQUEST['to'] = implode(', ', $membersTo);<br />  }<br /> <br />  // Set the defaults...<br />- $context['subject'] = $form_subject != '' ? $form_subject : $txt[24];<br />+ $context['subject'] = $form_subject;<br />  $context['message'] = str_replace(array('"', '<', '>'), array('"', '<', '>'), $form_message);<br />  $context['to'] = isset($_REQUEST['to']) ? stripslashes($_REQUEST['to']) : '';<br />  $context['bcc'] = isset($_REQUEST['bcc']) ? stripslashes($_REQUEST['bcc']) : '';<br />  $context['post_error'] = array();<br />  $context['copy_to_outbox'] = !empty($options['copy_to_outbox']);<br /> <br />  // And build the link tree.<br />  $context['linktree'][] = array(<br />  'url' => $scripturl . '?action=pm;sa=send',<br />  'name' => $txt[321]<br />  );<br /> <br />  $context['visual_verification'] = !$user_info['is_admin'] && !empty($modSettings['pm_posts_verification']) && $user_info['posts'] < $modSettings['pm_posts_verification'];<br />  if ($context['visual_verification'])<br />  {<br />  $context['use_graphic_library'] = in_array('gd', get_loaded_extensions());<br /></pre></div><br /><b>Edit</b>: Adding a second diff which I think improves this patch quite a bit (read more below).<br /><br /><div class="codeheader">Code:</div><div class="code"><pre style="margin-top: 0; display: inline;">--- baseline/Themes/default/PersonalMessage.template.php 2006-12-01 15:43:03.000000000 +0000<br />+++ modified/Themes/default/PersonalMessage.template.php 2023-10-31 02:09:46.000000000 +0000<br />@@ -910,33 +910,33 @@<br />  <td align="right"><b', (isset($context['post_error']['no_to']) || isset($context['post_error']['bad_to']) ? ' style="color: red;"' : ''), '>', $txt[150], ':</b></td><br />  <td class="smalltext"><br />  <input type="text" name="to" id="to" value="', $context['to'], '" tabindex="', $context['tabindex']++, '" size="40" /> <br />  <a href="', $scripturl, '?action=findmember;input=to;quote=1;sesc=', $context['session_id'], '" onclick="return reqWin(this.href, 350, 400);" rel="nofollow" target="_blank"><img src="', $settings['images_url'], '/icons/assist.gif" alt="', $txt['find_members'], '" /></a> <a href="', $scripturl, '?action=findmember;input=to;quote=1;sesc=', $context['session_id'], '" onclick="return reqWin(this.href, 350, 400);" rel="nofollow" target="_blank">', $txt['find_members'], '</a><br />  </td><br />  </tr><tr><br />  <td align="right"><b', (isset($context['post_error']['bad_bcc']) ? ' style="color: red;"' : ''), '>', $txt[1502], ':</b></td><br />  <td class="smalltext"><br />  <input type="text" name="bcc" id="bcc" value="', $context['bcc'], '" tabindex="', $context['tabindex']++, '" size="40" /> <br />  <a href="', $scripturl, '?action=findmember;input=bcc;quote=1;sesc=', $context['session_id'], '" onclick="return reqWin(this.href, 350, 400);" rel="nofollow" target="_blank"><img src="', $settings['images_url'], '/icons/assist.gif" alt="', $txt['find_members'], '" /></a> ', $txt[748], '<br />  </td><br />  </tr>';<br />  // Subject of personal message.<br />  echo '<br />  <tr><br />  <td align="right"><b', (isset($context['post_error']['no_subject']) ? ' style="color: red;"' : ''), '>', $txt[70], ':</b></td><br />- <td><input type="text" name="subject" value="', $context['subject'], '" tabindex="', $context['tabindex']++, '" size="40" maxlength="50" /></td><br />+ <td><input type="text" name="subject" placeholder="What does this message concern?" value="', $context['subject'], '" tabindex="', $context['tabindex']++, '" size="40" maxlength="50" /></td><br />  </tr>';<br /> <br />  if ($context['visual_verification'])<br />  {<br />  echo '<br />  <tr><br />  <td align="right" valign="top"><br />  <b>', $txt['pm_visual_verification_label'], ':</b><br />  </td><br />  <td>';<br />  if ($context['use_graphic_library'])<br />  echo '<br />  <img src="', $context['verificiation_image_href'], '" alt="', $txt['pm_visual_verification_desc'], '" /><br />';<br />  else<br />  echo '<br />  <img src="', $context['verificiation_image_href'], ';letter=1" alt="', $txt['pm_visual_verification_desc'], '" /><br /></pre></div><br />People get attached to how things look (I know I do), and it occurred to me that three empty <tt><input></tt> elements in a row might look a bit stark. I think including a <tt>placeholder</tt> attribute on the third <tt><input></tt> element will do a good job of balancing the issue this patch is meant to address (PMs without subjects) against imitating the way it looked originally (that is, two empty <tt><input></tt> elements, followed by a third one with something already in it). That way, it <i>looks</i> similar, but PMs will still fail to send unless you actually type something in.<br /><br />Here's how it would look (I think the text I chose is short and to the point, but theymos can/should adjust it if he wants to):<br /><br /><img class="userimg" src="https://ip.bitcointalk.org/?u=https%3A%2F%2Ftalkimg.com%2Fimages%2F2023%2F10%2F31%2FTW9UI.png&t=669&c=RMs_VTCxXr089g" alt="" border="0" /><br /><br />Note to theymos: This new diff doesn't replace the earlier one, and they should be merged as a pair (the first diff stops the subject from being pre-populated with "(No subject)", and the second diff adds the <tt>placeholder</tt> attribute explained above). </div> </div> </div> </div> </div> <div class="pagination-wrapper"> <span class="pages-text hidden">Pages:</span> </div></div> </div> <div class="breadcrumbs"><a href="/" title="Home">Bitcoin Forum</a><span>></span><a href="/other-1000000004" title="Other category">Other</a><span>></span><a href="/meta-24" title="Meta category">Meta</a></div> <div class="jump-to pull-right"> <div class="inner"> <div class="content text-right"> <div class="text">Jump to: </div> <form id="jump-to-form" class="jump-to-form-class" action="/forum/default/jump-to-category" method="post"> <input type="hidden" name="_csrf-frontend" value="JJNOYEHM3eStrUBDUVr_8Mk7OYglf8UHdb19P5mW74lF5QEwDf-llNTpFHoBa62Ji2Jav3E2o0YE7DJowKKg8w=="> <select id="jumptoform-category_id" class="" name="JumpToForm[category_id]" aria-required="true"> <option value="">Please select a destination:</option> <option value="1000000001">Bitcoin</option> <option value="1">=> Bitcoin Discussion</option> <option value="74">===> Legal</option> <option value="77">===> Press</option> <option value="86">===> Meetups</option> <option value="87">===> Important Announcements</option> <option value="6">=> Development & Technical Discussion</option> <option value="37">===> Wallet software</option> <option value="98">=====> Electrum</option> <option value="100">=====> Bitcoin Wallet for Android</option> <option value="138">=====> BitcoinJ</option> <option value="97">=====> Armory</option> <option value="231">=====> Mycelium</option> <option value="261">=====> Hardware wallets</option> <option value="4">=> Bitcoin Technical Support</option> <option value="12">=> Project Development</option> <option value="14">=> Mining</option> <option value="40">===> Mining support</option> <option value="41">===> Pools</option> <option value="42">===> Mining software (miners)</option> <option value="76">===> Hardware</option> <option value="137">=====> Group buys</option> <option value="81">===> Mining speculation</option> <option value="1000000003">Economy</option> <option value="7">=> Economics</option> <option value="57">===> Speculation</option> <option value="5">=> Marketplace</option> <option value="53">===> Currency exchange</option> <option value="56">===> Gambling</option> <option value="71">=====> Games and rounds</option> <option value="207">=====> Investor-based games</option> <option value="228">=====> Gambling discussion</option> <option value="65">===> Lending</option> <option value="88">=====> Long-term offers</option> <option value="78">===> Securities</option> <option value="73">===> Auctions</option> <option value="84">===> Service Announcements</option> <option value="212">=====> Micro Earnings</option> <option value="85">===> Service Discussion</option> <option value="222">=====> Web Wallets</option> <option value="223">=====> Exchanges</option> <option value="51">===> Goods</option> <option value="75">=====> Computer hardware</option> <option value="93">=====> Digital goods</option> <option value="234">=======> Invites & Accounts</option> <option value="217">=====> Collectibles</option> <option value="52">===> Services</option> <option value="8">=> Trading Discussion</option> <option value="83">===> Scam Accusations</option> <option value="129">===> Reputation</option> <option value="1000000004">Other</option> <option value="24">=> Meta</option> <option value="167">===> New forum software</option> <option value="168">===> Bitcoin Wiki</option> <option value="39">=> Beginners & Help</option> <option value="9">=> Off-topic</option> <option value="250">=> Serious discussion</option> <option value="251">===> Ivory Tower</option> <option value="59">=> Archival</option> <option value="17">===> Chinese students</option> <option value="25">===> Obsolete (buying)</option> <option value="26">===> Obsolete (selling)</option> <option value="99">===> MultiBit</option> <option value="44">===> CPU/GPU Bitcoin mining hardware</option> <option value="92">===> Корзина</option> <option value="34">=> Politics & Society</option> <option value="1000000006">Alternate cryptocurrencies</option> <option value="67">=> Altcoin Discussion</option> <option value="159">=> Announcements (Altcoins)</option> <option value="240">===> Tokens (Altcoins)</option> <option value="160">=> Mining (Altcoins)</option> <option value="199">===> Pools (Altcoins)</option> <option value="161">=> Marketplace (Altcoins)</option> <option value="197">===> Service Announcements (Altcoins)</option> <option value="198">===> Service Discussion (Altcoins)</option> <option value="238">===> Bounties (Altcoins)</option> <option value="224">=> Speculation (Altcoins)</option> <option value="1000000005">Local</option> <option value="241">=> العربية (Arabic)</option> <option value="242">===> العملات البديلة (Altcoins)</option> <option value="265">=====> النقاشات</option> <option value="253">===> إستفسارات و أسئلة المبتدئين</option> <option value="266">===> التعدين</option> <option value="267">===> النقاشات الأخرى</option> <option value="271">===> منصات التبادل</option> <option value="191">=> Bahasa Indonesia (Indonesian)</option> <option value="194">===> Mining (Bahasa Indonesia)</option> <option value="192">===> Altcoins (Bahasa Indonesia)</option> <option value="276">===> Trading dan Spekulasi</option> <option value="277">===> Ekonomi, Politik, dan Budaya</option> <option value="278">===> Topik Lainnya</option> <option value="193">===> Marketplace (Bahasa Indonesia)</option> <option value="30">=> 中文 (Chinese)</option> <option value="117">===> 跳蚤市场</option> <option value="118">===> 山寨币</option> <option value="119">===> 媒体</option> <option value="146">===> 挖矿</option> <option value="196">===> 离题万里</option> <option value="201">=> Hrvatski (Croatian)</option> <option value="220">===> Trgovina</option> <option value="221">===> Altcoins (Hrvatski)</option> <option value="273">=====> Announcements (Hrvatski)</option> <option value="272">===> Off-topic (Hrvatski)</option> <option value="13">=> Français</option> <option value="184">===> Vos sites et projets</option> <option value="50">===> Hors-sujet</option> <option value="183">===> Actualité et News</option> <option value="208">===> Débutants</option> <option value="47">===> Discussions générales et utilisation du Bitcoin</option> <option value="48">===> Mining et Hardware</option> <option value="187">===> Économie et spéculation</option> <option value="49">===> Place de marché</option> <option value="210">=====> Produits et services</option> <option value="211">=====> Petites annonces</option> <option value="209">=====> Échanges</option> <option value="188">===> Le Bitcoin et la loi</option> <option value="54">===> Wiki, documentation et traduction</option> <option value="186">===> Développement et technique</option> <option value="149">===> Altcoins (Français)</option> <option value="258">=====> Annonces</option> <option value="89">=> India</option> <option value="121">===> Mining (India)</option> <option value="122">===> Marketplace (India)</option> <option value="123">===> Regional Languages (India)</option> <option value="124">===> Press & News from India</option> <option value="125">===> Alt Coins (India)</option> <option value="126">===> Buyer/ Seller Reputations (India)</option> <option value="127">===> Off-Topic (India)</option> <option value="28">=> Italiano (Italian)</option> <option value="153">===> Guide (Italiano)</option> <option value="169">===> Progetti</option> <option value="205">===> Discussioni avanzate e sviluppo</option> <option value="175">===> Trading, analisi e speculazione</option> <option value="170">===> Mercato</option> <option value="46">=====> Mercato valute</option> <option value="107">=====> Beni</option> <option value="171">=====> Servizi</option> <option value="172">=====> Esercizi commerciali</option> <option value="173">=====> Hardware/Mining (Italiano)</option> <option value="200">=====> Gambling (Italiano)</option> <option value="162">===> Accuse scam/truffe</option> <option value="115">===> Mining (Italiano)</option> <option value="132">===> Alt-Currencies (Italiano)</option> <option value="176">=====> Annunci</option> <option value="144">===> Raduni/Meeting (Italiano)</option> <option value="165">===> Crittografia e decentralizzazione</option> <option value="145">===> Off-Topic (Italiano)</option> <option value="79">=> Nederlands (Dutch)</option> <option value="80">===> Markt</option> <option value="94">===> Gokken/lotterijen</option> <option value="116">===> Mining (Nederlands)</option> <option value="143">===> Beurzen</option> <option value="147">===> Alt Coins (Nederlands)</option> <option value="148">===> Off-topic (Nederlands)</option> <option value="150">===> Meetings (Nederlands)</option> <option value="82">=> 한국어 (Korean)</option> <option value="182">===> 대체코인 Alt Coins (한국어)</option> <option value="10">=> Русский (Russian)</option> <option value="22">===> Новички</option> <option value="23">===> Бизнес</option> <option value="236">=====> Барахолка</option> <option value="237">=====> Обменники</option> <option value="90">===> Идеи</option> <option value="66">===> Кодеры</option> <option value="21">===> Майнеры</option> <option value="91">===> Политика</option> <option value="20">===> Трейдеры</option> <option value="72">===> Альтернативные криптовалюты</option> <option value="248">=====> Токены</option> <option value="256">=====> Бayнти и aиpдpoпы</option> <option value="55">===> Хайпы</option> <option value="185">===> Работа</option> <option value="18">===> Разное</option> <option value="262">===> Oбcyждeниe Bitcoin</option> <option value="128">=====> Новости</option> <option value="19">=====> Юристы</option> <option value="108">=> Română (Romanian)</option> <option value="109">===> Anunturi importante</option> <option value="114">===> Presa</option> <option value="110">===> Offtopic</option> <option value="111">===> Market</option> <option value="257">=====> Discutii Servicii</option> <option value="166">===> Minerit</option> <option value="112">===> Tutoriale</option> <option value="113">===> Bine ai venit!</option> <option value="259">===> Altcoins (Monede Alternative)</option> <option value="178">=====> Anunturi Monede Alternative</option> <option value="45">=> Skandinavisk</option> <option value="133">=> Türkçe (Turkish)</option> <option value="180">===> Bitcoin Haberleri</option> <option value="189">===> Ekonomi</option> <option value="190">===> Servisler</option> <option value="232">=====> Fonlar</option> <option value="157">===> Alternatif Kripto-Paralar</option> <option value="235">=====> Madencilik (Alternatif Kripto-Paralar)</option> <option value="239">=====> Duyurular (Alternatif Kripto-Paralar)</option> <option value="155">===> Pazar Alanı</option> <option value="156">===> Madencilik</option> <option value="229">===> Proje Geliştirme</option> <option value="158">===> Konu Dışı</option> <option value="174">===> Yeni Başlayanlar & Yardım</option> <option value="230">===> Buluşmalar</option> <option value="29">=> Português (Portuguese)</option> <option value="131">===> Primeiros Passos (Iniciantes)</option> <option value="69">===> Economia & Mercado</option> <option value="181">===> Criptomoedas Alternativas</option> <option value="134">===> Brasil</option> <option value="135">===> Portugal</option> <option value="70">===> Mineração em Geral</option> <option value="206">===> Desenvolvimento & Discussões Técnicas</option> <option value="95">=> עברית (Hebrew)</option> <option value="219">=> Pilipinas</option> <option value="243">===> Altcoins (Pilipinas)</option> <option value="260">=====> Altcoin Announcements (Pilipinas)</option> <option value="268">===> Pamilihan</option> <option value="274">===> Others (Pilipinas)</option> <option value="252">=> 日本語 (Japanese)</option> <option value="255">===> アルトコイン</option> <option value="27">=> Español (Spanish)</option> <option value="31">===> Mercado y Economía</option> <option value="202">=====> Servicios</option> <option value="203">=====> Trading y especulación</option> <option value="32">===> Hardware y Minería</option> <option value="33">===> Esquina Libre</option> <option value="101">===> Mercadillo</option> <option value="102">=====> Mexico</option> <option value="103">=====> Argentina</option> <option value="105">=====> Centroamerica y Caribe</option> <option value="104">=====> España</option> <option value="130">===> Primeros pasos y ayuda</option> <option value="151">===> Altcoins (criptomonedas alternativas)</option> <option value="204">=====> Servicios</option> <option value="177">=====> Minería de altcoins</option> <option value="254">=====> Tokens (Español)</option> <option value="16">=> Deutsch (German)</option> <option value="60">===> Mining (Deutsch)</option> <option value="61">===> Trading und Spekulation</option> <option value="63">===> Projektentwicklung</option> <option value="64">===> Off-Topic (Deutsch)</option> <option value="139">===> Treffen</option> <option value="140">===> Presse </option> <option value="152">===> Altcoins (Deutsch)</option> <option value="270">=====> Announcements (Deutsch)</option> <option value="269">===> Marktplatz</option> <option value="141">=====> Auktionen</option> <option value="36">=====> Suche</option> <option value="35">=====> Biete</option> <option value="62">===> Anfänger und Hilfe</option> <option value="120">=> Ελληνικά (Greek)</option> <option value="136">===> Αγορά</option> <option value="195">===> Mining Discussion (Ελληνικά)</option> <option value="179">===> Altcoins (Ελληνικά)</option> <option value="246">=====> Altcoin Announcements (Ελληνικά)</option> <option value="247">=====> Altcoin Mining (Ελληνικά)</option> <option value="11">=> Other languages/locations</option> <option value="142">=> Polski</option> <option value="163">===> Tablica ogłoszeń</option> <option value="164">===> Alternatywne kryptowaluty</option> <option value="263">=====> Nowe kryptowaluty i tokeny</option> <option value="264">=====> Tablica ogłoszeń (altcoiny)</option> <option value="275">=> Nigeria (Naija)</option> <option value="279">===> Politics and society (Naija)</option> <option value="280">===> Off-topic (Naija)</option> </select> <button type="submit">go</button> </form> </div> </div> </div> </div> </div> </div> <footer class="footer"> <div class="left"> <a class="powered-icon mysql" href="http://www.mysql.com/" target="blank"></a> <a class="powered-icon php" href="http://www.php.net/" target="blank"></a> </div> <div class="center"> © 2020, Bitcointalksearch.org </div> <div class="right"> <a class="valid-icon xhtml" href="http://validator.w3.org/check/referer" target="blank"></a> <a class="valid-icon css" href="http://jigsaw.w3.org/css-validator/check/referer" target="blank"></a> </div> </footer> <script src="/assets/427491ca/f7fa18c7/jquery.js"></script> <script src="/assets/427491ca/0f7cd776/yii.js"></script> <script src="/assets/427491ca/0f7cd776/yii.activeForm.js"></script> <script src="/assets/427491ca/3f84b6fd/jquery-ui.js"></script> <script src="/assets/427491ca/0ec48276/js/akeyboard.min.js"></script> <script src="/assets/427491ca/f1f14823/js/bootstrap.js"></script> <script src="/assets/427491ca/8d094ee3/js/activeform.min.js"></script> <script src="/assets/427491ca/ab575839/js/select2.full.min.js"></script> <script src="/assets/427491ca/7ca46779/js/select2-krajee.min.js"></script> <script src="/assets/427491ca/286d0aed/js/kv-widgets.min.js"></script> <script>jQuery(function ($) { jQuery('#jump-to-form').yiiActiveForm([{"id":"jumptoform-category_id","name":"category_id","container":".field-jumptoform-category_id","input":"#jumptoform-category_id","enableAjaxValidation":true}], {"validationUrl":"\/forum\/default\/jump-to-category"}); $(document).on('change', '#jumptoform-category_id', function() { $('#jump-to-form').submit(); }); $('.messages .items .item').each(function() { var user_data_height = $(this).find('.user-data').outerHeight(); var message_data_height = $(this).find('.message-data').outerHeight(); var header_height = $(this).find('.message-data .header').outerHeight(); var signature_height = $(this).find('.message-data .signature').outerHeight(); var content_padding = parseInt($(this).find('.message-data .content').css('padding-bottom')); if(user_data_height > message_data_height) { $(this).find('.message-data .content').css('height', (user_data_height - (header_height + signature_height)) - content_padding); } }); var $el=jQuery("#w3 .kv-hint-special");if($el.length){$el.each(function(){$(this).activeFieldHint()});} jQuery&&jQuery.pjax&&(jQuery.pjax.defaults.maxCacheLength=0); if (jQuery('#timezoneselectform-timezone').data('select2')) { jQuery('#timezoneselectform-timezone').select2('destroy'); } jQuery.when(jQuery('#timezoneselectform-timezone').select2(select2_7cea2cc0)).done(initS2Loading('timezoneselectform-timezone','s2options_3267a624')); jQuery('#w3').yiiActiveForm([], []); $(document).on('click', '.hider', function () { if ($(this).hasClass('hide-header')) { $('#header .auth-info').addClass('hidden'); $('#header .bottom').addClass('hidden'); $(this).removeClass('hide-header'); $(this).addClass('show-header'); } else { $('#header .auth-info').removeClass('hidden'); $('#header .bottom').removeClass('hidden'); $(this).removeClass('show-header'); $(this).addClass('hide-header'); } }); $('.timezone-dropdown').on('change', function() { var id = $(this).find('select').select2('data')[0].id; $.ajax({ url: '/site/save-timezone', type: 'get', dataType: 'json', data: { timeZoneId: id, }, success: function(response) { location.reload(); }, error: function () { } }); }); function submitBigsearch() { location.href = '/forum/default/search?q=QUERY'.replace('QUERY', encodeURIComponent($('#bigsearch textarea').val())); } $('#bigsearch textarea').on('keydown', function(e) { if (e.key == 'Enter') { event.preventDefault(); submitBigsearch(); } }); var keyboard = new aKeyboard.keyboard({ el: '#akeyboard-container' }); keyboard.inputOn('#bigsearch textarea', 'value'); keyboard.onclick('Enter', function() { $('#akeyboard-container').hide(); submitBigsearch(); }); $('#akeyboard-container').draggable(); $('.bigsearch-function-tia').on('click', function() { $('#akeyboard-container').toggle(); }); });</script></body> </html>