Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Quote Post in PM Details »»
Quote Post in PM
Version: 1.00, by Boofo Boofo is offline
Developer Last Online: Jun 2012 Show Printable Version Email this Page

Category: Private Messages Enhancements - Version: 3.5.4 Rating:
Released: 05-10-2006 Last Update: Never Installs: 48
Uses Plugins Template Edits
 
No support by the author.

Quote Post in PM

This is an update to amykhar's original Quote Post in PM hack. Since she is busy and doesn't have the time to dedicate to supporting her version of this hack like she would like to, she has asked me to release this in place of her original hack. This is basically amy's hack with a few minor fixes so all the credit goes to her.

This plugin now passes the username of the post to the PM as well as the post title (if there is one), or thread title (if there is not a post title). It is also set up for the /me code hack parsing (thanks goes out to Hellcat for that fix). And for anyone interested, Hellcat's version of the /me action code hack works 100 percent in vB3.5.4., in both posts and PMs.

In the attached ZIP file there are 3 icons for the pmquote.gif. Just choose the one you want and rename it to pmquote.gif and you should be all set.

This is a plug-in and not a product, so upload it as a plug-in.

Enjoy!

A special thanks goes out to peterska2 for helping me along the way. Without her prodding and extensive testing, this might never have gotten done.

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #52  
Old 11-06-2006, 09:56 AM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Seems to work fine here.
Reply With Quote
  #53  
Old 11-30-2006, 07:41 PM
AWJunkies AWJunkies is offline
 
Join Date: Jan 2005
Location: San Diego
Posts: 947
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you get this to work with 3.6.4 ? It does not transfer over a PM title or post quote. It does go to start a new PM with autofilling in the username of that post which is still a nice feature.
Reply With Quote
  #54  
Old 12-13-2006, 03:28 AM
G_Man G_Man is offline
 
Join Date: Feb 2006
Location: Washington State
Posts: 264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Tralala View Post

Is there any way to have it the PM also include a link back to the original post, so the recipient could read the referring thread in context? That would be a "best of all worlds" solution, please.

Thanks again...
Quote:
Originally Posted by Boofo View Post
That is something that we meant to do before we released it, but must have forgotten. I will add that in the next day or so.

Also, I have both the icon AND the drop down link as there are users that usually use one or the other most of the time.
Installed, but I also think this would take this Mod to the next level.
Reply With Quote
  #55  
Old 01-26-2007, 02:07 AM
stomph stomph is offline
 
Join Date: Dec 2006
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got the link to the original post added in the PM by copying one line and phrase over from Andreas' hack:

1. Modify Plugin
In the plugin Quote Post in PM, find:
Code:
eval('$pm[message] = "' . fetch_template('newpost_quote', 1, 0) . '";');
After, add:
Code:
$pm['message'] = construct_phrase($vbphrase['in_reply_to_your_post_x'], $postinfo['postid'], ($postinfo['title'] ? $postinfo['title'] : $postinfo['postid'])) . "\n" . $pm['message'];
2. Add a new Phrase:
Variablename: in_reply_to_your_post_x
Text: In Reply to your Post [post={1}]{2}[/post]:

That's it!
Reply With Quote
  #56  
Old 02-01-2007, 08:48 AM
Tralala's Avatar
Tralala Tralala is offline
 
Join Date: Jan 2006
Posts: 1,207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome, stomph, thanks so much. Been wanting this for awhile. Seems to be working fine. This is exactly how it should work, it should be part of the core vBulletin install!

I imagine if they add it, they'll use the "Back-Link for Quoted Posts" arrow/icon that we got with 3.6 instead though.

In the meantime, thanks for share. Much appreciated.
Reply With Quote
  #57  
Old 03-22-2007, 02:18 PM
PoetJA-1975's Avatar
PoetJA-1975 PoetJA-1975 is offline
 
Join Date: Sep 2006
Location: Meh...
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by stomph View Post
I got the link to the original post added in the PM by copying one line and phrase over from Andreas' hack:

1. Modify Plugin
In the plugin Quote Post in PM, find:
Code:
eval('$pm[message] = "' . fetch_template('newpost_quote', 1, 0) . '";');
After, add:
Code:
$pm['message'] = construct_phrase($vbphrase['in_reply_to_your_post_x'], $postinfo['postid'], ($postinfo['title'] ? $postinfo['title'] : $postinfo['postid'])) . "\n" . $pm['message'];
2. Add a new Phrase:
Variablename: in_reply_to_your_post_x
Text: In Reply to your Post [post={1}]{2}[/post]:

That's it!
AWESOME share STOMPH - Thanx very much

Jacquii.
Reply With Quote
  #58  
Old 09-13-2007, 05:29 PM
criscokid criscokid is offline
 
Join Date: Nov 2003
Location: London, UK
Posts: 380
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this mod work on vb3.6.8?
Reply With Quote
  #59  
Old 10-15-2007, 10:53 PM
AWJunkies AWJunkies is offline
 
Join Date: Jan 2005
Location: San Diego
Posts: 947
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by stomph View Post
I got the link to the original post added in the PM by copying one line and phrase over from Andreas' hack:

1. Modify Plugin
In the plugin Quote Post in PM, find:
Code:
eval('$pm[message] = "' . fetch_template('newpost_quote', 1, 0) . '";');
After, add:
Code:
$pm['message'] = construct_phrase($vbphrase['in_reply_to_your_post_x'], $postinfo['postid'], ($postinfo['title'] ? $postinfo['title'] : $postinfo['postid'])) . "\n" . $pm['message'];
2. Add a new Phrase:
Variablename: in_reply_to_your_post_x
Text: In Reply to your Post [post={1}]{2}[/post]:

Works perfect after this!

One exception you need to add this code to the link with the image in your postbit or postbit_legacy

u=$post[userid]

She forgot to put this in her instructions for edits.

Here is her code:

Quote:
<if condition="!$post['forwardlink']"><a href="private.php?do=newpm&postid=$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_misc]/pmquote.gif" alt="Quote this post in a PM" border="0" /></a></if>
Here is what it should be:

Quote:
<if condition="!$post['forwardlink']"><a href="private.php?do=newpm&u=$post[userid]&postid=$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_misc]/pmquote.gif" alt="Quote this post in a PM" border="0" /></a></if>
That's it!

Thanks for everyone who made this mod work been waiting on it for LONG time.
Reply With Quote
  #60  
Old 03-02-2008, 11:12 AM
rnixon rnixon is offline
 
Join Date: Feb 2008
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Many thanks amykhar for the original work and Boofo for keeping it alive.

Thanks AWJunkies for your bits as well.
Reply With Quote
  #61  
Old 03-02-2008, 11:23 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rnixon View Post
Many thanks amykhar for the original work and Boofo for keeping it alive.

Thanks AWJunkies for your bits as well.

For my part, I can't think of a reason not to add ;$postid to the
newpost_quote template, for a link back to the original post:

I changed this:


To this:


... for better or for worse ...
You know there is a 3.7 version of this hack out, right?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:48 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.05861 seconds
  • Memory Usage 2,320KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_code
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete