vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Miscellaneous Hacks - Prevent Quoting Last Post in Thread (https://vborg.vbsupport.ru/showthread.php?t=179263)

oldengine 05-13-2008 10:00 PM

Prevent Quoting Last Post in Thread
 
Folks are hitting the Quote button rather than Post Reply when answering the last post in a thread.

We default to Linear Oldest First so it gets rather stale and wasteful to see all the duplicate postings one after the other. We do not use Quick reply.

Find in postbit template:

Code:

<if condition="$post['replylink']">
        <a href="$post[replylink]" rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>
</if>

Replace with:
Code:

<!-- Start last post reply Hack -->

<if condition="$post['islastshown'] AND $post['replylink']">
<a href="$post[replylink]&amp;noquote=1" rel="nofollow"><img src="$stylevar[imgdir_button]/reply_small.gif" alt="$vbphrase[reply]" border="0" /></a>

<else />

<if condition="$post['replylink']">
<a href="$post[replylink]" rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>

</if></if>
<!-- End last post reply Hack -->

https://vborg.vbsupport.ru/showthread.php?t=107498

Take notice that this is for default setting "Linear - Oldest First".

Quantnet 05-14-2008 11:51 PM

thanks.
This has been a nuisance. Glad finally someone came up with this.

oldengine 05-16-2008 03:48 PM

My tag edits were not working with all of my other postbit mods, so here it is one more time in tested form, my inserts in red. Looks the same to me, but cleaner...

Code:

<!-- Start last post reply Hack -->

<if condition="$post['islastshown'] AND $post['replylink']">
<a href="$post[replylink]&amp; noquote=1" rel="nofollow"><img src="$stylevar[imgdir_button]/reply_small.gif" alt="$vbphrase[reply]" border="0" /></a>

<else />

                        <if condition="$post['replylink']">
                                <a href="$post[replylink]" rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>

                        </if>

</if>
<!-- End last post reply Hack -->

Apparently I was OK in the first place, but now we are sure.

oldengine 05-16-2008 04:46 PM

Would anyone care to match this into postbit_legacy ?

Quantnet 05-18-2008 05:24 AM

i use this for postbit legacy and it works fine.

DaninMS 05-22-2008 05:15 PM

This has bugged me too. Unfortunately it apparently isn't working for me. I replaced the code but am still able to quote the last message in a thread.

DaninMS 05-22-2008 05:20 PM

Nevermind..didn't replace the code in the postbit legacy. Now it works !

andreamarucci 05-22-2008 08:17 PM

Fantastic it works!!!

oldengine 05-23-2008 02:56 AM

All's not gold that glitters. :eek:

I was noticing some quoted posts by one individual at the bottom of a thread.

Turns out that he is viewing threads "Linear - Newest First".

My default setting is "Linear - Oldest First".

I just wanted you to know. Back to the drawing board. :(

KanmaiseR 05-23-2008 06:39 AM

Thanks, installed :)


All times are GMT. The time now is 04:34 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.01224 seconds
  • Memory Usage 1,735KB
  • 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
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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