Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

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

Category: Private Messages Enhancements - Version: 3.6.8 Rating:
Released: 07-01-2007 Last Update: 04-30-2008 Installs: 68
Uses Plugins
 
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 ..."
This option passes to the PM: the 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).

Futures of this hack:
- There is option to enable/disable hack.
- The hack is fully translatable.
- The hack updates popup menu automatically using hook $template_hook[postbit_user_popup]. You can disable this one.
- 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 thread and post 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 translate this hack into your native language. Search for Phrases Containing "qpipm_".

From version 1.0.4 this product doesn't use some Boofo's copyrighted code from his hack "Quote Post in PM" (https://vborg.vbsupport.ru/showthread.php?t=115315). without his permission.

- As there was a bug introduced in vBulletin 3.6.7 (http://www.vbulletin.com/forum/proje...?issueid=22069) version 1.0.0 has some "special" code to override that bug. In version 1.0.1 this code was removed.
- Use version 1.0.4 only with 3.6.8 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 Boofo for his original hack "Quote Post in PM" (https://vborg.vbsupport.ru/showthread.php?t=115315)

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


If you want to insert this hack in templates manually:

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!)
Code:
postbit
postbit_legacy

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

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


v1.0.0 - 02.07.2007
- First release

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

v1.0.2 - 17.09.2007
- Made phrase "qpipm_quote_post_in_pm" more comfortable for translation
- Fixed template "qpipm_menu"

v1.0.3 - 29.04.2008
- 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

v1.0.4 - 01.05.2008
- New option "Automatically Add Title" allowes you to switch quoted PM's title at all
- New option "Always Use Thread's Title"
- Option "Automatically Add Prefix To Title" was separated
- Template "qpipm_menu" is more orderly nore without any changes in it's code
- From this version the product doesn't use some Boofo's copyrighted code without his permission


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


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

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

Show Your Support

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

Comments
  #52  
Old 05-02-2008, 06:39 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 Fungsten View Post
I didn't see that in your profile. I'll try it though.
It was partly my remiss that I did not put in the first post the link to the 3.7 version. Now I fixed that one.
Quote:
Originally Posted by Fungsten View Post
I'll try it though.
I hope that you will do so and will be satisfied!
Reply With Quote
  #53  
Old 06-29-2008, 09:10 AM
Konstantinos Konstantinos is offline
 
Join Date: Apr 2006
Posts: 443
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

seems this doesnt work for usergroups which are set to moderate their posts. is this how it is supposed to be ? cause my usergroup id 2 is set to be moderated and cant use the hack while in settings usegroup id 2 is allowed to do so

or i guess for usergroups that are not allowed to pm got it
Reply With Quote
  #54  
Old 06-29-2008, 07:42 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 Konstantinos View Post
seems this doesnt work for usergroups which are set to moderate their posts. is this how it is supposed to be ? cause my usergroup id 2 is set to be moderated and cant use the hack while in settings usegroup id 2 is allowed to do so

or i guess for usergroups that are not allowed to pm got it
Konstantinos, am I right that you solved your question/problem?

Usergroups that are not allowed to send PM can't use this products function
Reply With Quote
  #55  
Old 07-21-2008, 04:07 PM
VADOS VADOS is offline
 
Join Date: Nov 2007
Location: Russia
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For those who want to remove Re: from thread quoted title
Quote:
In Reply to your post: Re: Quoted PM
Open product (.xml), find there
PHP Code:
// Constructing PM message
        
$pm['message'] = construct_phrase($vbphrase['qpipm_in_reply_to_your_post_x'], $postinfo['postid'], ($postinfo['title'] ? $postinfo['title'] : $postinfo['postid'])) . "\n" $pm['message']; 
and replace with this:
PHP Code:
// Constructing PM message
        
$pm['message'] = construct_phrase($vbphrase['qpipm_in_reply_to_your_post_x'], $postinfo['postid'], ($postinfo['title'] ? $threadinfo['title'] : $postinfo['postid'])) . "\n" $pm['message']; 
Then save and upload this product to your webserver, don't forget to check "Allow rewrite".
Reply With Quote
  #56  
Old 01-15-2009, 12:53 PM
vithorius's Avatar
vithorius vithorius is offline
 
Join Date: Feb 2008
Location: Portugal
Posts: 347
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack! :up: :up: :up:


I would like to know if there would be a possibility to do something like this, but instead of putting the "Quote in PM" option in the 'Username-Menu', I would like to have it in a button next to the "Reply" or "Quote" buttons... Would that be possible?
(that button would be called "Quote with PM")


Also, would be possible to define which forums would have this hack enabled and which would not?



:up: Thank you so very much for your hard work, and please excuse my poor english...
Reply With Quote
  #57  
Old 01-15-2009, 01:02 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 vithorius View Post
Great hack! :up: :up: :up:


I would like to know if there would be a possibility to do something like this, but instead of putting the "Quote in PM" option in the 'Username-Menu', I would like to have it in a button next to the "Reply" or "Quote" buttons... Would that be possible?
(that button would be called "Quote with PM")


Also, would be possible to define which forums would have this hack enabled and which would not?



:up: Thank you so very much for your hard work, and please excuse my poor english...
You can find who to do this one here:
https://vborg.vbsupport.ru/showpost....3&postcount=22
Reply With Quote
  #58  
Old 01-16-2009, 03:21 PM
vithorius's Avatar
vithorius vithorius is offline
 
Join Date: Feb 2008
Location: Portugal
Posts: 347
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Makc666 View Post
You can find who to do this one here:
https://vborg.vbsupport.ru/showpost....3&postcount=22
Ok Thank you so very much for your help Makc666! :up: (although it is a bit difficult for my skills, but I will give it a good look...)


Another thing: Is it possible to enable this hack in selected sub-forums only?


Thanks once again! :up:
Reply With Quote
  #59  
Old 03-09-2009, 01:04 AM
Makc666's Avatar
Makc666 Makc666 is offline
 
Join Date: Dec 2002
Location: MSK-RU
Posts: 392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote Post in PM Version: 3.8.105 has been released for vBulletin 3.8.x
You can find update by these links:
https://vborg.vbsupport.ru/misc.php?...help&pid=qpipm
https://vborg.vbsupport.ru/showthread.php?t=207751

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

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"
Reply With Quote
  #60  
Old 01-16-2016, 02:34 PM
TTayfun's Avatar
TTayfun TTayfun is offline
 
Join Date: Aug 2011
Location: Istanbul, Turkey
Posts: 211
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how can i disable this text in pm:

Code:
In Reply to your post....
Reply With Quote
  #61  
Old 01-16-2016, 06:20 PM
blind-eddie's Avatar
blind-eddie blind-eddie is offline
 
Join Date: Apr 2006
Location: Michigan
Posts: 2,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TTayfun View Post
how can i disable this text in pm:

Code:
In Reply to your post....
You can't disable it per se, but, you can edit the phrase qpipm_in_reply_to_your_post_x
to show what ever you want it to say or nothing at all.
Reply With Quote
2 благодарности(ей) от:
Makc666, MarkFL
Reply

Thread Tools

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:00 PM.


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.04656 seconds
  • Memory Usage 2,341KB
  • 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
  • (5)bbcode_code
  • (2)bbcode_php
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (2)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
  • (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_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
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete