vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Limits on Quotes (https://vborg.vbsupport.ru/showthread.php?t=79547)

MeNeedHelp 08-23-2007 11:07 PM

Why not simply replace the quote button with a reply button?

oldengine 08-24-2007 02:57 PM

It doesn't appear to be so simple.

The Post Reply button is accompanied with code dealing with whether a thread is closed or not. It also comes from the SHOWTHREAD template instead of the postbit template. Most likely there are code differences.

MeNeedHelp 08-24-2007 07:30 PM

Unless I'm reading this whole discussion wrong, I thought you could solve the quote problem by not quoting at all in the reply. If someone wishes to reply with a quote, they will have to cut and paste.

In the postbit and postbit_legacy templates...

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

with...
<a href="$post[replylink]&noquote=1" rel="nofollow"><img src="$stylevar[imgdir_button]/reply_small.gif" alt="$vbphrase[reply]" border="0" /></a>

oldengine 08-25-2007 02:37 AM

You have pointed out what I haven't seen - the forest for the trees or whatever that saying goes.

Apparently, all I need to do is add this code...

Code:

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

just before...

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>

And offer BOTH methods to my users! You see, not ALL vBulletin web sites are frequented by savvy vBulletin users. Unfortunately, in my case it is made far easier for the user to click the Quote button than the (missing) Reply button. Now both will be available.

So, where did "&noquote=1" come from? That's the key! Sometimes things can be so simple with a little nudge in the correct direction.

Thank you.

Now, if we had the <if> statement to flag the last post in a thread, we could choose the proper code from above, reply or quote.

How's this?
Code:

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

<if condition="$post['islastshown'] AND $post['replylink']">
<a href="$post[replylink]&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 -->



All times are GMT. The time now is 01:46 AM.

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.02445 seconds
  • Memory Usage 1,724KB
  • 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
  • (4)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