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

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

Category: Private Messages Enhancements - Version: 4.x.x Rating:
Released: 03-01-2010 Last Update: 12-12-2012 Installs: 128
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" with the new URL having the title attribute "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 "Private Message" with its own URL and 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[memberaction_dropdown_items]. 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/or the phrase for "Private Message" option with its own URL and/or phrase.
  • The hack uses its own template "qpipm_quote". You can change it as you like. The variables: "$originalposterandpostid", "$originalposter", "$originalpostid" and "$pagetext" can be 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 "{vb:raw qpipm}". Read "Notes:" below.
  • You can insert the template of this hack manually anywhere you want in postbit by using "{vb:raw 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 available.
  • 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 vBulletin 4.2.0 or greater.

For vBulletin 4.0.* or 4.1.* use version 4.0.106 which have the same functionality.


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.
Thanks goes to cellarius for his how to thread. (https://vborg.vbsupport.ru/showthread.php?t=228078)

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


Please, read Read_Me - About.txt file inside archive!

=================
History:
=================


Code:
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

v4.0.100 - 10.01.2010
- Compatible with vBulletin 4.0.0 Gold

v4.0.102 - 02.03.2010
- Compatible with vBulletin 4.0.2 and above only
- New option "Use Left Popup Menu Column"
- Added one new phrase
- Updated some phrases

v4.0.103 - 03.03.2010
- Fixed PHP Warning:  Unexpected character in input:  '\\' (ASCII=92)
- Fixed option "Replace URL "Private Message" in Popup Menu" putting the same post number in every Popup Menu
- Added check that option "Replace URL "Private Message" will only work if the option "Update Popup Menu Automatically" is disabled!

v4.0.104 - 04.03.2010
- New option "Trim Post's Text"
- Fixed PHP Warning: fetch_template() calls should be replaced by the vB_Template class.
- Fixed PHP Warning: array_merge() [function.array-merge]: Argument #1 is not an array
- Old variables for template "qpipm_quote" replaced by new variables: "{vb:raw qpipm_originalposterandpostid}", "{vb:raw qpipm_originalposter}", "{vb:raw qpipm_originalpostid}" and "{vb:raw qpipm_pagetext}"
- Added one new phrase
- Updated some phrases

v4.0.105 - 18.10.2010
- Fixed plugin "Quote Post in PM (1)" (Thanks to Vitaly - post #2104969) - affected forums where option "Update Postbit Automatically" was set to "No" and option "Replace URL "Private Message" in Popup Menu" was set to "Yes".
- Replaced deprecated function split() with explode() function 
- Updated template "qpipm_menu" to watch changes in latest revision of template "memberaction_dropdown"

v4.0.106 - 24.12.2010
- Updated dependency to 4.1.99
- Tested on Version 4.1.0 Patch Level 2
- Updated manually installation instruction
Code:
v4.2.107 - 13.12.2012
- Updated dependency from 4.2.0 to 4.2.99 (will work only with version 4.2.0 and greater)
- Updated templates "qpipm_menu", "qpipm_postbit" to fit version 4.2.0 and greater
- Added seperator to template "qpipm_postbit" (I know it must be spelled "separator", but vBulletin Team still use "seperator" in some templates)
- Replaced icon used in "qpipm_postbit" for button used in "postbit" and "postbit_legacy" templates 
- Updated phpcode for hook "postbit_display_complete" to fit version 4.2.0 and greater
- Tested on version 4.2.0 Patch Level 3
=================
How to Update:
=================

Code:
v4.0.106 -> v4.2.107
- No update needed if you don't use vBulletin 4.2.0 or greater
- If you use vBulletin 4.2.0 or greater:
-- Import the product
-- Revert templates "qpipm_menu", "qpipm_postbit" if you changed them

v4.*.* -> Latest One
- Import the product
- Revert templates "qpipm_menu", "qpipm_postbit", "qpipm_quote" if you changed them
- 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_v4-0-105.zip (301.7 KB, 116 views)
File Type: zip Quote_Post_in_PM_v4-0-106.zip (302.6 KB, 293 views)
File Type: zip Quote_Post_in_PM_v4-2-107.zip (302.1 KB, 188 views)

Screenshots

File Type: png Quote_Post_in_PM_01.png (50.5 KB, 0 views)
File Type: png Quote_Post_in_PM_02.png (48.7 KB, 0 views)
File Type: png Quote_Post_in_PM_03.png (65.0 KB, 0 views)
File Type: jpg Quote_Post_in_PM_04-1.jpg (115.0 KB, 0 views)
File Type: png Quote_Post_in_PM_04-2.png (75.7 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
3 благодарности(ей) от:
BolS^, nacaruncr, zascok

Comments
  #52  
Old 04-05-2011, 08:55 PM
Rofo Rofo is offline
 
Join Date: Feb 2011
Location: MI,IA,WY,SC,OR,WA,XX,XX,
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

LOL. I'll try that, Thanks!
Reply With Quote
  #53  
Old 04-05-2011, 08:57 PM
Hippy's Avatar
Hippy Hippy is offline
 
Join Date: Dec 2001
Location: USA, New Jersey
Posts: 2,392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

are you looking here
https://vborg.vbsupport.ru/attachmen...3&d=1267544298
or here ?

https://vborg.vbsupport.ru/attachmen...4&d=1267544298

becasue the last one I don't use ..
and never tested it..
but the first screen shot works..
Reply With Quote
  #54  
Old 04-05-2011, 09:06 PM
Rofo Rofo is offline
 
Join Date: Feb 2011
Location: MI,IA,WY,SC,OR,WA,XX,XX,
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Hippy View Post
are you looking here
https://vborg.vbsupport.ru/attachmen...3&d=1267544298
or here ?

https://vborg.vbsupport.ru/attachmen...4&d=1267544298

becasue the last one I don't use ..
and never tested it..
but the first screen shot works..
Yea, I have the first screen shot working great. I guess I thought the button was also suppose to appear. Thinking about it now, I suppose that would be redundant.

Thanks again, Mod working great on 4.1.1
Reply With Quote
  #55  
Old 04-07-2011, 10:23 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 Rofo View Post
Yea, I have the first screen shot working great. I guess I thought the button was also suppose to appear. Thinking about it now, I suppose that would be redundant.

Thanks again, Mod working great on 4.1.1
Button will appear automatically if you will set it on in add-on's settings and if use default theme or your theme has template's hook 'postbit_controls' in place.
  • Admin CP -> Settings -> Options -> Quote Post in PM
  • Update Postbit Automatically -> Yes
Reply With Quote
  #56  
Old 01-27-2012, 09:26 PM
ss@solidsignal ss@solidsignal is offline
 
Join Date: Jan 2012
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm sure I'm doing something wrong. This is a brand new vbulletin 4.1.10 install and the popup works but the button does not. I did set update postbit automatically to "Yes."
Reply With Quote
  #57  
Old 01-27-2012, 09:55 PM
ss@solidsignal ss@solidsignal is offline
 
Join Date: Jan 2012
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Figured it out... the plugin was asking for an image called "sendtofriend.gif" and I hadn't added it to the images folder. Duh.
Reply With Quote
  #58  
Old 04-13-2012, 07:08 AM
mgurain's Avatar
mgurain mgurain is offline
 
Join Date: Apr 2005
Location: KSA - Qatif - Al-Jarodiah
Posts: 345
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This works in 4.1.12, but is it fully compatible with latest version ?
Last Update: 28 Dec 2010,
it should be updated for latest version please,,

Thanks,,
Reply With Quote
  #59  
Old 04-14-2012, 11:40 PM
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
Posts: 1,122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just to explain something.

If it works, it works. Some mods can work for years to come. I'm using mods that were made for vB3.6, or maybe even earlier. Thing is, PHP (plugins) usually can work. Things that don't work are templates.

So, depending on how complicated php code is and what it does, it can work for years.

Only thing is if you need new features, in that case it needs to programed in.
Reply With Quote
  #60  
Old 04-15-2012, 02:55 PM
mgurain's Avatar
mgurain mgurain is offline
 
Join Date: Apr 2005
Location: KSA - Qatif - Al-Jarodiah
Posts: 345
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, coder can just update latest version it's compatible with then, so that every body know ,,
Reply With Quote
  #61  
Old 04-17-2012, 11:37 AM
Makc666's Avatar
Makc666 Makc666 is offline
 
Join Date: Dec 2002
Location: MSK-RU
Posts: 392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mgurain View Post
Ok, coder can just update latest version it's compatible with then, so that every body know ,,
Why I have to update the version?
Not all people use latest 4.1.*

There is a note in the first post:
Use this version only with vBulletin 4.0.2 or greater.
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 09:33 AM.


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.06832 seconds
  • Memory Usage 2,372KB
  • 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
  • (3)bbcode_code
  • (3)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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (3)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (8)postbit_attachment
  • (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
  • 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