PDA

View Full Version : Show Thread Enhancements - [OzzModz] Hide Quote Buttons In First/Last Post


ozzy47
01-17-2014, 11:00 PM
Another mod brought to you by,
https://vborg.vbsupport.ru/external/2015/01/1.png

Here is a small modification you can use to hide the quote and/or multi quote buttons in the first/last post of a thread..

It is a simple installation, just import the product XML, product-ozzmodz_hide_quote

You can edit the options under the settings, [OzzModz] Hide Quote Button In Last Post Settings

This will work whether your members display the newest post last, or first.

Complete Feature List
Option to disable the mod completely.
Option to select which usergroups this mod will affect in the last post.
Option to select which userid's this mod will affect in the last post.
Option to select to hide only the quote button, still showing the multi-quote in the last post.
Option to select which usergroups this mod will affect in the first post.
Option to select which userid's this mod will affect in the first post.
Option to select to hide only the quote button, still showing the multi-quote in the first post.Frequently Asked Questions.

Q. Why do I need such a thing, you ask?

A. Some admins see no reason to quote the first/last post in the thread, as you are most likely replying to that post. Plus someone asked for the mod, and it was easy enough, so I threw it together.

-------------------------------------------------------------------------------------------

If you like this mod please hit the https://vborg.vbsupport.ru/external/2015/08/1.png button to the right ---->

Please remember to click the, https://vborg.vbsupport.ru/external/2015/08/2.png button to the right if you installed the mod ---->

What does 'Marking As Installed' do ?

* It helps you to stay on top of updates - members who have installed modifications will be notified whenever new updates are available.

* For security issues - vbulletin.org will contact all members who have installed a modification whenever a security issue is brought to their attention.

* Marking a modification as installed also helps me know how many people are using my work, giving me extra incentive to provide more features and new modifications.

I appreciate the support!
-------------------------------------------------------------------------------------------

* History (Changelog) *
-------------------------
v1.0.0 (January 17, 2014)
- Initial public release.

v1.1.0 (September 24, 2014)
- Added ability to hide only the quote button in the last post, still show the multi-quote button.
- Added ability to hide the quote/multi quote in the last post per userid.
- Added ability to hide the quote/multi quote buttons in the first post per usergroup.
- Added ability to hide the quote/multi quote in the first post per userid.
- Added ability to hide only the quote button in the first post, still show the multi-quote button.

ozzy47
01-18-2014, 12:23 AM
Reserved.

mitch84
01-18-2014, 05:13 AM
nice idea, but if you can add a option first post, woud be nice too, because I don't why, but 75% my members quote first post, thx and installed of course :up:

Action-N
01-18-2014, 05:22 AM
Yes I've noticed that too with posts. Only conclusion I can make is they like the quote button on the right side as the reply is way over to the left. Someone might have to test that theory by moving the reply button. Anyhow great idea for a mod, makes sense.

Alan_SP
01-19-2014, 12:43 AM
This is excellent idea. :up:

Only thing I think would be also optional is multi quote, sometimes it could be useful to (multi) quote last post and compose it in your reply. So I think that there should be option to have multi quote included in last post.

First post is also interesting question, as many people quote whole first post, which sometimes is totally unnecessary.

And idea about changing places of quick reply and quote buttons, its easily done by manual template edit.

Edit postbit_legacy (probably its the same for postbit) template, find this:

<vb:if condition="$show['quickreply'] AND !$show['threadedmode']">
<a id="qr_{vb:raw post.postid}" class='quickreply' href="{vb:raw post.replylink}&amp;noquote=1" rel="nofollow" title="{vb:rawphrase quick_reply_to_this_message}"><img id="replyimg_{vb:raw post.postid}" src="{vb:raw vboptions.cleargifurl}" alt="{vb:rawphrase quick_reply_to_this_message}" /> {vb:rawphrase reply}</a>
<span class="seperator">&nbsp;</span>
</vb:if>
<vb:if condition="$post['replylink']">
<a id="qrwq_{vb:raw post.postid}" class="newreply" href="{vb:raw post.replylink}" rel="nofollow" title="{vb:rawphrase reply_with_quote}"><img id="quoteimg_{vb:raw post.postid}" src="{vb:raw vboptions.cleargifurl}" alt="{vb:rawphrase reply_with_quote}" /> <vb:if condition="$post['forwardlink']">{vb:rawphrase reply_to_private_message}<vb:else />{vb:rawphrase reply_with_quote}</vb:if></a>
<vb:if condition="$show['multiquote_post']"><span class="seperator">&nbsp;</span></vb:if>
</vb:if>

And change they places, so you have this:

<vb:if condition="$post['replylink']">
<a id="qrwq_{vb:raw post.postid}" class="newreply" href="{vb:raw post.replylink}" rel="nofollow" title="{vb:rawphrase reply_with_quote}"><img id="quoteimg_{vb:raw post.postid}" src="{vb:raw vboptions.cleargifurl}" alt="{vb:rawphrase reply_with_quote}" /> <vb:if condition="$post['forwardlink']">{vb:rawphrase reply_to_private_message}<vb:else />{vb:rawphrase reply_with_quote}</vb:if></a>
<span class="seperator">&nbsp;</span>
</vb:if>
<vb:if condition="$show['quickreply'] AND !$show['threadedmode']">
<a id="qr_{vb:raw post.postid}" class='quickreply' href="{vb:raw post.replylink}&amp;noquote=1" rel="nofollow" title="{vb:rawphrase quick_reply_to_this_message}"><img id="replyimg_{vb:raw post.postid}" src="{vb:raw vboptions.cleargifurl}" alt="{vb:rawphrase quick_reply_to_this_message}" /> {vb:rawphrase reply}</a>
<vb:if condition="$show['multiquote_post']"><span class="seperator">&nbsp;</span></vb:if>
</vb:if>

You need to observe this last condition about multiquote, it needs to be at the end, as you don't need it if there's no multiquote option.

ozzy47
01-19-2014, 12:51 AM
I can add the option for multi quote in the next version. And thanks for marking as installed. :)

Alan_SP
01-19-2014, 01:10 AM
Well, I'm one of those who are allergic about quoting previous post, so your mod is excellent for me. :up:

Alan_SP
01-19-2014, 07:39 PM
I found one problem, not too big, but still to report it.

If it's used with DBTech's AJAX (live) threads and there's more and more new "live" posts, all these new posts, including the last one when you entered thread don't have quote button.

It can be a bit of a problem. :( If there's a way to check if post is posted with live thread mod and in that case allow it to have quote button, it would be great.

ozzy47
01-19-2014, 07:41 PM
Do the same results happen, if you refresh the page manually?

tme_power
01-20-2014, 04:22 AM
Nice one, very practical, but won't install because it'll make user confuse when they want to quote the last post.

Alan_SP
01-20-2014, 07:25 PM
Do the same results happen, if you refresh the page manually?

Do you mean full page reload? Or using option to reload (check if there's new posts) within AJAX (live) threads?

In first case, it would be fine, quoting buttons where they need to be, for second case I'll need to test this behavior, have again live threads with multiple posts created this way and see, but I think it wouldn't solve this behavior, as this option just checks if there are new posts before it's automatically done.

If you could check somehow if AJAX threads is creating post, it would be solution for this problem, but I don't know if this is even possible. :(

ozzy47
01-20-2014, 07:26 PM
Yeah ajax is not nice, as you probably know, posting with that running, some things in the postbit do not show, and IIRC the thanks don't show either.

Alan_SP
01-20-2014, 09:41 PM
Well, quote button without this mod is shown. But, as every new post posted with AJAX threads is last at the moment of posting (I really don't have that active forum to have more than one new post every few seconds), showing of quote button is omitted.

With this mod off, this works just fine, so if it could be checked if AJAX thread mod is used for posting, you could stop plugin from omitting quote button. Similar to welcome thread, where plugin checks if there's something in username, or not.

Problem is, how to check if AJAX thread is used to post certain post.

Thing is, on very active threads too many posts would be without quote button to allow further use of this mod. :( And I really like this mod.

EDIT: Thinking about it, if you could go other way round, to leave quote button in postbit, but when user tries to use it on last post in thread, to block it and give message that last post in a thread couldn't be quoted. This would work with AJAX thread without problems.

ozzy47
01-21-2014, 01:34 AM
Did you by chance ask Fillip, if there is anything they can do?

Alan_SP
01-21-2014, 06:17 PM
For the moment I stopped using it.

As a temporary solution, I'll need to know which file of AJAX threads to edit and there to add these two lines before code for posting posts:

$post['replylink'] = true;
$show['multiquote_post'] = true;

This would manually force quote and multi quote buttons in AJAX threads.

But, on further thinking, this also could be a problem. Maybe ideal solution from my perspective would be mod that would check if post is last in a thread after someone press quote button, and if it is, instead executing code for quoting, just execute code for reply (i.e. quickreply).

Even that in some occasions isn't applicable. :(

It looks like I'll leave it be for the moment.

Thangvip9x
02-16-2014, 06:25 AM
I think you should write product hide first post
But i see, if hide first post, members can use second post, example use link reply with quote from #2 and replace to #1

mitch84
02-16-2014, 06:54 AM
I think you should write product hide first post
...

I think too, always first post can to be a long article, with pictures too, and just add a option in mod for first post? admin can to choose, thx

Barcham
02-16-2014, 09:43 PM
There's nothing worse than people who quote the most recent post in a thread, especially a very long post. Sure there are rare occasions when replying to a post in a very active thread that someone may slip one in before you hit the post button, but when that's the case I simply make a quick edit to my post to direct it to the correct poster.

Installed and tested. Works great. Thanks much!

ozzy47
02-16-2014, 09:51 PM
Glad ya like it, and thanks for marking as installed. :)

ne_one
08-24-2014, 04:51 AM
I think too, always first post can to be a long article, with pictures too, and just add a option in mod for first post? admin can to choose, thx

+1 definitely useful

LLent
09-13-2014, 02:23 PM
excellent Ozzy love the feature where you can select the user-groups

this is installed and working great

ozzy47
09-13-2014, 02:24 PM
Glad you like it, and thanks for marking as installed. :)

Snowhog
09-14-2014, 04:34 PM
Thanks ozzy!

Download, installed, voted 5 stars, nominated for MOTM.

This is a MOD I've wanted for a long time. Way to many novice (and some not so novice) members habitually use the Reply with Quote button when replying to the last post. Besides being annoying as a Forum Administrator, it unnecessarily consumes space on our server.

Keep it up. I always take the time to look at your MODs to see if our Forum would benefit from using them.

Kubuntu Forums . Net, now using:

Separate Sticky Threads
Back To Top Button On Every Post
Hide Quote Button in Last Post

Snowhog
Administrator
Kubuntu Forums . Net

ozzy47
09-14-2014, 05:11 PM
Glad you like it, and thanks for rating, nominating and marking as installed. :)

Snowhog
09-24-2014, 04:35 PM
I'd like to ask a favor. Can you tweak this MOD so it includes an option to identify members by userid?

As I see it, the tweaked MOD would allow for enabling by Usergroup or Userid (not both). In most cases, it's individuals who abuse or don't know how to use properly, the Reply With Quote. Enabling only by Usergroups casts a very wide net.

Thank you.

Snowhog
Administrator
Kubuntu Forums . Net

ozzy47
09-24-2014, 05:45 PM
I'd like to ask a favor. Can you tweak this MOD so it includes an option to identify members by userid?

As I see it, the tweaked MOD would allow for enabling by Usergroup or Userid (not both). In most cases, it's individuals who abuse or don't know how to use properly, the Reply With Quote. Enabling only by Usergroups casts a very wide net.

Thank you.

Snowhog
Administrator
Kubuntu Forums . Net

Sure, but it will be either or, meaning you can set it by usergroups, but also add a userid, of a member that may not be in the selected usergroup.

ozzy47
09-24-2014, 08:28 PM
v1.1.0 (September 24, 2014)
- Added ability to hide only the quote button in the last post, still show the multi-quote button.
- Added ability to hide the quote/multi quote in the last post per userid.
- Added ability to hide the quote/multi quote buttons in the first post per usergroup.
- Added ability to hide the quote/multi quote in the first post per userid.
- Added ability to hide only the quote button in the first post, still show the multi-quote button.

mitch84
09-24-2014, 08:42 PM
thank you for this update!

ozzy47
09-24-2014, 08:44 PM
Not a problem, glad to do it. :)

Crud, I forgot about Snowhog's request. Will do another update shortly.

ozzy47
09-24-2014, 09:03 PM
Ok mitch, the package has the new settings Snowhog asked for. :)

Snowhog
09-24-2014, 09:28 PM
Dude, you are amazing! Thank you very much for listening and acting on our requests so quickly.

You rock! Now we don't have to apply a pile driver, when a ball peen hammer is all that is needed.

Snowhog
Administrator
Kubuntu Forums . Net

ozzy47
09-24-2014, 09:31 PM
Not a problem, glad to do it. :)

Alan_SP
09-25-2014, 08:24 PM
Well, I'm still thinking about this, as I really dislike users that quote last post (and first post completely, especially very big posts).

If it is possible to affect how quote button works, to check if it is actually last post in a thread, and if it is, not to quote, if it is not, to quote.

So, all buttons are left in their places, but there's a check of posts position and quoting content, or skipping quoting altogether.

I guess this is a bit tricky, maybe even not possible. :(

ozzy47
09-25-2014, 09:07 PM
I don't think so if you are using Ajax to refresh the page, but I can look into it at some point.

Alan_SP
09-26-2014, 11:51 PM
Well, the biggest problem is DBTech's Ajax threads and threads that have many posts in short periods of time. I don't have many threads like that, but someone might.

On the other hand, maybe even that wouldn't be good idea, to check in time of pressing button for quoting. The best thing would be if it could be checked on pressing button to send post content if quoted text is from last post of a thread. This would solve all possible problems, even when there's no DBTech's Ajax Threads, as very active threads on very active forums could get numerous posts while someone write his post. In such case it would be good that original post to which user is replying is quoted. Unless, of course, is the last post in a thread.

wisin
01-15-2015, 08:45 AM
I have one problem
In last post when i click "Reply" its provide me to forum home page not fot reply.
How can i fix this?