Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Quote Post in PM Details »»
Quote Post in PM
Version: 3.8.107, by Makc666 Makc666 is offline
Developer Last Online: Sep 2019 Show Printable Version Email this Page

Category: Private Messages Enhancements - Version: 3.8.x Rating:
Released: 03-08-2009 Last Update: 03-03-2010 Installs: 107
Uses Plugins Auto-Templates
Translations  
No support by the author.

Quote Post in PM

=================
Info:
=================


This product adds a new option in user's popup menu "Quote this post in PM to *username*".
This option passes to new personal message (PM): post's text, username of the post, post id, as well as the post title (if there is one), or thread title (if there is no post title).
It can also add image-link to 'postbit' and 'postbit_legacy' templates.
And even replace in popup menu the URL and the phrase for option "Send a private message to *username*" with its own phrase.

Futures of this hack:
  • There is option to enable/disable hack.
  • The hack is fully translatable.
  • The hack can update popup menu automatically using hook $template_hook[postbit_user_popup]. You can disable this one.
  • The hack can update postbit and postbit_legacy templates automatically using hook $template_hook[postbit_controls]. You can disable this one.
  • The hack can replace in popup menu the URL and the phrase for "Send a private message to" option with its own.
  • The hack uses its own template "qpipm_quote". You can change it as you like. The variables: "$originalposterandpostid", "$originalposter", "$originalpostid" and "$pagetext" are used in that template.
  • There is option "Automatically Quote Post / Thread Title". Setting this to "Yes" will automatically fill the title of new PM with either the thread or the parent post title, prefixed by 'Re: '.
  • You can change 'Re: ' for both threads' and posts' PMs. Search for phrases 'qpipm_re_thread' and 'qpipm_re_post'.
  • You can insert the template of this hack manually anywhere you want in user's popup menu by using "$qpipm". Read "Notes:" below.
  • You can insert the template of this hack manually anywhere you want in postbit by using "$qpipm_postbit". Read "Notes:" below.
  • You can translate this hack into your native language. Search for Phrases Containing "qpipm_".
  • You can set your own PM's title for both threads' and posts' PMs. Search for phrases 'qpipm_own_title_thread' and 'qpipm_own_title_post'.
  • Option "Use Post's Number in PM's Title". Setting this to "Yes" will use post's number instead of thread's or post's title in PM's title field where avaliable.
  • Option "Use Thread's Title even if there is Post's Title". Setting this to "Yes" will always fill the new PM's title field with thread's title, even if there is post's title.
  • Option "Trim Post's Text" allows you to trim the post's text been quoted to new PM.
  • And other great options.

Use this version only with 3.8.0 or greater.

Enjoy!

=================
Installation:
=================


Install the product

=================
Administration:
=================


To set up the products options go to: AdminCP > vBulletin Options > Quote Post in PM
Make translation of phrases containing "qpipm_"

=================
Greetings:
=================


A special thanks goes out to Dismounted for helping me with hook $template_hook[postbit_user_popup] problems. (https://vborg.vbsupport.ru/showthread.php?t=150769)
Thanks go to Abe1 for his comments. (https://vborg.vbsupport.ru/showthread.php?t=150769)
Thanks goes to amykhar for his original 'Quote Post in PM' hack idea.

=================
Notes:
=================


1.
If you want to change some phrases with strings like {1} then you can find some useful information in file "Read_Me - FAQ - Language strings values.txt"

2.
If you want to insert this hack in templates manually:

***************
For popup menu
***************
1.
Go to "AdminCP > vBulletin Options > Quote Post in PM"
Set "Update Popup Menu Automatically" to "No".

2.
Open Templates: (Note: there are two different templates to open!)
  • postbit
  • postbit_legacy

Find (for example):
Code:
	<if condition="$show['pmlink']">
		<tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
	</if>
Add After:
Code:
	$qpipm

****************************************
For postbit and postbit_legacy templates
****************************************
1.
Go to "AdminCP > vBulletin Options > Quote Post in PM"
Set "Update Postbit Automatically" to "No".

2.
Open Templates: (Note: there are two different templates to open!)
  • postbit
  • postbit_legacy

Find:
Code:
		<!-- / controls -->
Add Before:
Code:
		$qpipm_postbit
=================
History:
=================


v3.7.100 - 02.07.2007
- First release

v3.7.101 - 01.08.2007
- Just removed the code which is not needed any more if you have vBulletin 3.6.8 or greater

v3.7.102 - 17.09.2007
- Made phrase "qpipm_quote_post_in_pm" more comfortable for translation
- Fixed template "qpipm_menu"

v3.7.103 - 29.04.2008
- Compatible with vBulletin 3.7 Gold (may not work with Beta/RC releases)
- New options "USERGROUPS can use quote", "USERGROUPS not allowed to use quote", "USERS not allowed to use quote"
- New variable "$originalposterandpostid" introduced - it is returned with post number in it
- vBulletin function fetch_quote_username() is used now in generating user's name in variable "$originalposterandpostid"
- vBulletin function fetch_quote_username() is used now in generating user's name in variable "$originalposter"
- Variables "$originalposter" and "$originalpostid" was removed from template "qpipm_quote" but you can still use them there if you want

v3.7.104 - 01.05.2008
- New option "Automatically Add Title" allows you to switch quoted PM's title at all
- New option "Always Use Thread's Title"
- Option "Automatically Add Prefix To Title" was separated
- From this version the product doesn't use some Boofo's copyrighted code without his permission

v3.8.105 - 08.03.2009
- Compatible with vBulletin 3.8 Gold (may not work with Beta/RC releases)
- All Templates are cached now
- The image-link can be inserted in postbit and postbit_legacy templates automatically
- You can use your own titles for threads' and posts' PMs
- You can set your own PM's title for both threads' and posts' PMs
- New option "Use Post's Number in PM's Title"
- New option "Use Thread's Title even if there is Post's Title"

v3.8.106 - 05.08.2009
- New option "Replace URL "Send a private message to" in Popup Menu"
- New option "Replace Phrase "Send a private message to" in Popup Menu"
- Added ' rel="nofollow"' to templates "qpipm_menu" and "qpipm_postbit" to follow vBulletin standard
- Fixed some phrases for settings

v3.8.107 - 04.03.2010
- New option "Trim Post's Text"
- Added check that option "Replace URL "Private Message" will only work if the option "Update Popup Menu Automatically" is disabled!
- Added one new phrase
- Updated some phrases

=================
How to Update:
=================


v3.8.106 -> v3.8.107
- Import the product
- Revert template "qpipm_quote" if you changed it
- Update phrases

Any Old One -> Latest One
- Write down your settings for this product in "AdminCP > vBulletin Options > Quote Post in PM"
- Uninstall old version
- Import the product
- Set your settings back

=================
Mark as Installed:
=================


Click Mark as Installed to get an email when an update is released!

=================
Other versions of modification:
=================

Download Now

File Type: zip Quote_Post_in_PM_v3-8-107.zip (291.5 KB, 212 views)

Screenshots

File Type: png Quote_Post_in_PM_01.png (63.6 KB, 0 views)
File Type: png Quote_Post_in_PM_02.png (20.8 KB, 0 views)
File Type: png Quote_Post_in_PM_03.png (67.3 KB, 0 views)
File Type: jpg Quote_Post_in_PM_04-1.jpg (109.5 KB, 0 views)
File Type: png Quote_Post_in_PM_04-2.png (76.9 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
TAIFUN_T

Comments
  #32  
Old 03-04-2010, 09:21 AM
Makc666's Avatar
Makc666 Makc666 is offline
 
Join Date: Dec 2002
Location: MSK-RU
Posts: 392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

v3.8.107 - 04.03.2010
- New option "Trim Post's Text"
- Added check that option "Replace URL "Private Message" will only work if the option "Update Popup Menu Automatically" is disabled!
- Added one new phrase
- Updated some phrases
Reply With Quote
  #33  
Old 12-14-2011, 08:32 AM
Jah-Hools Jah-Hools is offline
 
Join Date: Jul 2007
Posts: 214
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My members want PM notification when their post text has been quoted by another member - will this mod do this?

(sorry if I haven't understood the description properly)

Thanks in advance!
Reply With Quote
  #34  
Old 12-14-2011, 12:51 PM
career career is offline
 
Join Date: Feb 2009
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jah-Hools View Post
My members want PM notification when their post text has been quoted by another member - will this mod do this?
This mod doesn't have such feature.
Reply With Quote
  #35  
Old 02-05-2012, 06:13 PM
volodja volodja is offline
 
Join Date: Nov 2009
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello, Maksim. Great mod! Can you suggest where I should put the link to my own button?
Reply With Quote
  #36  
Old 01-13-2016, 02:37 PM
wangyu1314 wangyu1314 is offline
 
Join Date: May 2005
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you,it is work fine in vb3.6.8.
but I have modified it as same as vb.org.
Reply With Quote
Благодарность от:
Makc666
  #37  
Old 01-26-2016, 04:51 PM
Makc666's Avatar
Makc666 Makc666 is offline
 
Join Date: Dec 2002
Location: MSK-RU
Posts: 392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by volodja View Post
Hello, Maksim. Great mod! Can you suggest where I should put the link to my own button?
Sorry for such long reply.

You have to modify the template:
qpipm_postbit
HTML Code:
<if condition="$show['pmlink']">
			<a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]&amp;postid=$post[postid]" rel="nofollow"><img src="$stylevar[imgdir_button]/sendtofriend.gif" alt="<phrase 1="$post[username]">$vbphrase[qpipm_quote_post_in_pm_postbit]</phrase>" border="0" /></a>
		</if>
Look for this code to change the path to the image.
HTML Code:
img src="$stylevar[imgdir_button]/sendtofriend.gif"
Pay attention that $stylevar[imgdir_button] leads to the default directory with the buttons of your Style directory.


Quote:
Originally Posted by wangyu1314 View Post
thank you,it is work fine in vb3.6.8.
but I have modified it as same as vb.org.
You are welcome!
Reply With Quote
  #38  
Old 12-20-2017, 06:20 PM
TTayfun's Avatar
TTayfun TTayfun is offline
 
Join Date: Aug 2011
Location: Istanbul, Turkey
Posts: 211
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you can use with 3.8.11 with php 7

open xml files and find split, change with explode, than you can use again healthly.

thanks again..
Reply With Quote
Благодарность от:
davidg
  #39  
Old 12-24-2017, 04:55 PM
Makc666's Avatar
Makc666 Makc666 is offline
 
Join Date: Dec 2002
Location: MSK-RU
Posts: 392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TTayfun View Post
you can use with 3.8.11 with php 7

open xml files and find split, change with explode, than you can use again healthly.

thanks again..
Thank you, TTayfun!

split function ( http://php.net/manual/en/function.split.php ) was DEPRECATED in PHP 5.3.0, and REMOVED in PHP 7.0.0.

I didn't thing I will make changes for this one in original package.

I need time to test this one with explode function ( http://php.net/manual/en/function.explode.php ) and may be I will release it as a separate zip pack for PHP 7+.

Thank you one more time!
Reply With Quote
Благодарность от:
TTayfun
  #40  
Old 12-24-2017, 06:56 PM
TTayfun's Avatar
TTayfun TTayfun is offline
 
Join Date: Aug 2011
Location: Istanbul, Turkey
Posts: 211
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Makc666 View Post
Thank you, TTayfun!

split function ( http://php.net/manual/en/function.split.php ) was DEPRECATED in PHP 5.3.0, and REMOVED in PHP 7.0.0.

I didn't thing I will make changes for this one in original package.

I need time to test this one with explode function ( http://php.net/manual/en/function.explode.php ) and may be I will release it as a separate zip pack for PHP 7+.

Thank you one more time!
Thank you for support your mod Makc666, great hack :up:
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 07:59 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07037 seconds
  • Memory Usage 2,366KB
  • Queries Executed 27 (?)
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
  • (4)bbcode_code
  • (2)bbcode_html
  • (5)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
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (4)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (6)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete