vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   PM reply button (no quotes) (https://vborg.vbsupport.ru/showthread.php?t=76945)

Keyser S?ze 02-24-2005 02:20 AM

PM reply button (no quotes)
 
what i would love, is to have like we did in VB2, with in a Pm a reply button that when u press it, just replys to the person, without any quotes

can anyone do this and make my day ;D

thanks

BamaStangGuy 02-24-2005 06:07 AM

Quote:

Originally Posted by Keyser S?ze
what i would love, is to have like we did in VB2, with in a Pm a reply button that when u press it, just replys to the person, without any quotes

can anyone do this and make my day ;D

thanks

This needs to be standard for one cause its annoying erasing the quoted stuff after you have been pming someone back and forth for awhile

Keyser S?ze 02-24-2005 01:51 PM

exactly

or sometimes u just dont want to quote

also a nice big "NEW PM button would be nice, some new members that arent use to using the PM system dont see the "send a PM" link

Zachery 02-24-2005 02:01 PM

Quote:

Originally Posted by Keyser S?ze
exactly

or sometimes u just dont want to quote


also a nice big "NEW PM button would be nice, some new members that arent use to using the PM system dont see the "send a PM" link

I have a template edit on vB.com for just adding a reply button (send a new pm to them, no title, no quotes)

Keyser S?ze 02-24-2005 04:57 PM

you got a link to it?

Keyser S?ze 02-28-2005 04:28 PM

anyone going to be able to do this? thanks

Zachery 02-28-2005 04:57 PM

Quote:

Originally Posted by Keyser S?ze
anyone going to be able to do this? thanks

Its a simple template edit
HTML Code:

http://www.yoursite.com/forum/private.php?do=newpm&userid=$post[userid]
and if you only want it to show on private.php you add a conditional

<if condition="THIS_SCRIPT == private"> </if>

Paul M 02-28-2005 05:18 PM

Quote:

Originally Posted by Keyser S?ze
what i would love, is to have like we did in VB2, with in a Pm a reply button that when u press it, just replys to the person, without any quotes

can anyone do this and make my day ;D

thanks

See Quote options in thread and private message replies.

Keyser S?ze 03-11-2005 07:29 PM

Quote:

Originally Posted by Zachery
Its a simple template edit
HTML Code:

http://www.yoursite.com/forum/private.php?do=newpm&amp;userid=$post[userid]
and if you only want it to show on private.php you add a conditional

<if condition="THIS_SCRIPT == private"> </if>


im sorry maybe im just not smart enough but that explination just doesnt make me understand what i need to do to add a reply button in the private messages

i dont want to change anything to the postbit (when i say that i mean, im perfectly happy with the way it is set up now as it is), its just the private messages i want a reply button, i do however relize that the private message system is run partially off the postbit

but what im not sur eof is what to change where or add there, u see

thanks

why-not 03-11-2005 10:48 PM

You can also do it like this!

Open 'private.php'

FIND THIS!

Code:


                                if ($_REQUEST['stripquote'])
                                {
                                        $pagetext = strip_quotes($pm['message']);
                                }
                                else
                                {
                                        // this is now the default behavior -- leave quotes, like vB2
                                        $pagetext = $pm['message'];
                                }
                                $pagetext = trim(htmlspecialchars_uni($pagetext));

                                eval('$pm[message] = "' . fetch_template('newpost_quote', 1, 0) . '";');


REPLACE WITH

Code:

                                if ( empty ( $_REQUEST['noquote'] ) )
                                {
                                        if ($_REQUEST['stripquote'])
                                        {
                                                $pagetext = strip_quotes($pm['message']);
                                        }
                                        else
                                        {
                                                // this is now the default behavior -- leave quotes, like vB2
                                                $pagetext = $pm['message'];
                                        }
                                        $pagetext = trim(htmlspecialchars_uni($pagetext));

                                        eval('$pm[message] = "' . fetch_template('newpost_quote', 1, 0) . '";');
                                }
                                else
                                {
                                        $pm[message] = '';
                                }


Go to templates => 'postbit' and 'postbit_legacy' (1) edit (SAME EDIT) each template!

FIND THIS!

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 WITH

Code:

                        <if condition="$post['replylink']">
                        <if condition="THIS_SCRIPT=='private'">
                                <a href="$post[replylink]"><img src="$stylevar[imgdir_button]/quote.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>
                                <a href="$post[replylink]&amp;noquote=1"><img src="$stylevar[imgdir_button]/reply_small.gif" alt="$vbphrase[reply_to_private_message]" border="0" /></a>
                        <else />
                                <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>


This allows for reply to PM with quote and reply to PM no message, but will load the title and who you are replying too!



Sonia


All times are GMT. The time now is 05:55 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.01091 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
  • (4)bbcode_code_printable
  • (2)bbcode_html_printable
  • (5)bbcode_quote_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