vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Quote reply control in postbit (https://vborg.vbsupport.ru/showthread.php?t=89018)

Zachery 04-25-2004 09:57 PM

If your using the default button set

use this button :) rename it to quote.gif :) http://www.vbulletin.com/forum/attac...tid=9274&stc=1

and find

HTML Code:

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

HTML Code:

<if condition="$post['replylink']">
                                <a href="<if condition="$post['forwardlink']">$post[replylink]<else />newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$FIRSTPOSTID</if>"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>
                        </if>


MickDoneDee 04-25-2004 10:33 PM

Hi Zachery, I replaced the code in the postbit template and got this message when replying to a post:

Invalid Thread specified. If you followed a valid link, please notify the webmaster

and the link you gave me doesn't work. My nick here is mickdonedee and Michael Dengler on vBulletin.com.

That error might be coming up for another reason. I'll try again. No, it still doesn't work. Is it meant to work, as it is, or have I missed something?

Dan P. 07-22-2004 11:10 PM

Did you ever get this working ? I'm looking to do the same thing. People use the quote button on long messages and post only a short sentence..very annoying to read.

MickDoneDee 07-23-2004 08:09 AM

Hi Dan, I didn't get Zachery's code to work but I'll keep trying. However, I did find a way to get rid of the quotes:

Expand the New Posting Templates and open the newpost_quote template. Delete the entire contents. ie [ QUOTE=$originalposter]{$pagetext}[/QUOTE]

Now the quotes won't appear when replying to a PM or a post.

why-not 07-28-2004 08:14 PM

Hi

Find this code in template 'postbit' and 'postbit_legacy'

PHP Code:

  <div align="$stylevar[right]">
   <!-- 
controls -->
   <if 
condition="$post['editlink']">
    <
a href="$post[editlink]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]border="0" /></a>
   </if>
   <if 
condition="$post['forwardlink']">
    <
a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]border="0" /></a>
   </if>
   <if 
condition="$post['replylink']">
    <
a href="$post[replylink]"><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 
condition="$SHOWQUICKREPLY AND !$show['threadedmode']">
    <
a href="$post[replylink]onclick="return qr($post[postid]);"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]border="0" /></a>
   </if>
   <!-- / 
controls -->
  </
div


Then replace with this code....

PHP Code:

   <div align="$stylevar[right]"><if condition="$post['editlink']">
   <!-- 
controls -->
   <
a href="$post[editlink]"><img border='0' src='$stylevar[imgdir_button]/edit.gif' alt='$vbphrase[edit_delete_message]' /></a></if><if condition="$post['forwardlink']">
   <
a href="$post[forwardlink]"><img border='0' src='$stylevar[imgdir_button]/forward.gif' alt='$vbphrase[forward_message]' /></a></if><if condition="$post['replylink']">
   <
a href="$post[replylink]&amp;noquote=1"><img border='0' src='$stylevar[imgdir_button]/reply_small.gif' alt='$vbphrase[reply]' /></a></if><if condition="$post['replylink']">
   <
a href="$post[replylink]"><img border='0' src='$stylevar[imgdir_button]/quote.gif' alt='$vbphrase[reply_with_quote]' /></a></if><if condition="$SHOWQUICKREPLY AND !$show['threadedmode']">
   <
a href="$post[replylink]onclick="return qr($post[postid]);"><img border='0' src='$stylevar[imgdir_button]/quickreply.gif' alt='$vbphrase[quick_reply_to_this_message]' /></a>
   <!-- / 
controls --></if>
   </
div


F!

MickDoneDee 07-28-2004 09:03 PM

Well done - works for me. It puts the reply_small gif between the edit and quote buttons and loads the editor without quotes. Postbit now has the option of posting with or without quotes.

A couple of side-effects: in the PM postbit the reply_small gif still loads quotes and an extra quote button has appeared which does the same thing.

Still I think that is minor compared to what is achieved. Well done.

Dan P. 08-10-2004 12:59 AM

thx. I'll look into that. I wish they would move the dang quote button from the corner, put it at the top, and just replace it with the reply button.


All times are GMT. The time now is 01:47 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.01461 seconds
  • Memory Usage 1,765KB
  • 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
  • (2)bbcode_php_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
  • (7)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