vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=307166

[OzzModz] Hide Quote Buttons In First/Last Post
by ozzy47
18 Jan 2014 01:19

3 Attachment(s)
Another mod brought to you by,
https://www.vbulletin.org/forum/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://www.vbulletin.org/forum/external/2015/08/1.png button to the right ---->

Please remember to click the, https://www.vbulletin.org/forum/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 18 Jan 2014 01:23

Reserved.

mitch84 18 Jan 2014 06:13

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 18 Jan 2014 06:22

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 19 Jan 2014 01:43

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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And change they places, so you have this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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 19 Jan 2014 01:51

I can add the option for multi quote in the next version. And thanks for marking as installed. :)

Alan_SP 19 Jan 2014 02:10

Well, I'm one of those who are allergic about quoting previous post, so your mod is excellent for me. :up:

Alan_SP 19 Jan 2014 20:39

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 19 Jan 2014 20:41

Do the same results happen, if you refresh the page manually?

tme_power 20 Jan 2014 05:22

Nice one, very practical, but won't install because it'll make user confuse when they want to quote the last post.

Alan_SP 20 Jan 2014 20:25

Quote:

Originally Posted by ozzy47 (Post 2475396)
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 20 Jan 2014 20:26

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 20 Jan 2014 22:41

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 21 Jan 2014 02:34

Did you by chance ask Fillip, if there is anything they can do?

Alan_SP 21 Jan 2014 19:17

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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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.


All times are GMT. The time now is 03:12.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.