vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Show Thread Enhancements - [OzzModz] Hide Quote Buttons In First/Last Post (https://vborg.vbsupport.ru/showthread.php?t=307166)

ozzy47 01-17-2014 11:00 PM

[OzzModz] Hide Quote Buttons In First/Last Post
 
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:

HTML Code:

<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:

HTML Code:

                                        <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.


All times are GMT. The time now is 10:37 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01193 seconds
  • Memory Usage 1,757KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete