• Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership from 10$ a month today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

Quote Post in PM for vbb 4

Admin

Well-Known Member
Staff member
Administrator
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.0.2 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. (http://www.vbulletin.org/forum/showthread.php?t=150769)
Thanks go to Abe1 for his comments. (http://www.vbulletin.org/forum/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. (http://www.vbulletin.org/forum/showthread.php?t=228078)

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


1.
If you want to change some phrases with strings like {1} or {2} 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 here is an example how you can make it:

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

2.
Open Template:
  • memberaction_dropdown
Find (for example):
Code:
<vb:if condition="$show['pmlink']">
Code:
        <li class="left">            <img src="{vb:stylevar imgdir_siteicons}/message.png" alt="" />            <a href="private.php?{vb:raw session.sessionurl}do=newpm&amp;u={vb:raw memberinfo.userid}" rel='nofollow'>                {vb:rawphrase private_message}            </a>        </li>        </vb:if>
Add After:

Code:
[LEFT]{vb:raw qpipm}[/LEFT]
****************************************

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 (for example):


Code:
[LEFT]{vb:raw post.iplogged}[/LEFT]
Add Before:


Code:
[LEFT]{vb:raw qpipm_postbit}[/LEFT]
=================

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

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

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

v4.0.105 -> v4.0.106
- No update needed

v4.0.104 -> v4.0.106
- Import the product
- Revert template "qpipm_menu" if you changed it
- Update phrases

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

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




Download Now
Quote_Post_in_PM_v4-0-106.zip
 

Facebook Comments

Similar threads
Thread starter Title Forum Replies Date
Admin Quote Post in PM vbb 4.2.0 Add-ons 0
Admin Post Quote Length Limit (vB5) Vbb tutorial 0
Admin [OzzModz] Hide Quote Buttons In Last Post Add-ons 0
Admin TW7S - Remove "Reply with Quote" and Multi-Quote from first post in thread Add-ons 0
Admin TW7S - Remove "Reply with Quote" and Multi-Quote from first post in thread Add-ons 2
Admin Yilmaz - Quote Read More vB4 Add-ons 0
Admin Yilmaz - Quote Expander / Collapse vB5 Add-ons 0
Admin Nested Quote - Cho phép 2 trích dẫn lồng nhau cho vbb Add-ons 0
Admin Share new style quote JohnCMS Johncms 1
P Share code quote liên tiếp cho wapka Wap builder, wapego, xtgem, wen.ru, wapka, wap4 1
Admin Hướng dẫn không cho quote bài viết đầu tiên vbb 3.x.x, vbb 4.x.x Vbulletin 0
Admin Hướng dẫn fix lỗi trống khi quote bài viết cho vbb 4.1.12 Vbulletin 0
Admin Giữ nguyên giá trị khi gửi form php - keep form values after post php PHP 0
Admin Not Your Average Adblock Detecting Mod (hide images in post) Add-ons 0
Admin [OzzModz] Post Number BBCode Xenforo 0
Admin Yilmaz - Post New Thread Button To Showthread vB5 Add-ons 0
Admin [OzzModz] Link To Moderator That Last Edited The Post Xenforo 0
Admin Yilmaz - [hide] Hack incl post Like (Compatible 5.6.x) Add-ons 0
Admin [OzzModz] Move Edit Post Before Report Xenforo 0
Admin German translation for [OzzModz] Email Staff When New Post/Thread In Mod Queue Xenforo 0
Admin Post Flood Permissions xenforo 2 Xenforo 0
Admin [thread] and [post] BBCode xenforo 2 Xenforo 0
khanhsak3r Hỏi Căn lề 2 bên khi post bài trên johncms Johncms 0
Admin [XenMax] - Limit Post Link 2.0.0 Xenforo 0
cuongpro9x Help Lỗi Link khi custom post type Wordpress 1
Lee_Jin Share filelist post bằng 2 file tránh timeout Wap builder, wapego, xtgem, wen.ru, wapka, wap4 2
P Hỏi PHP Post ID cần thêm chức năng limit time PHP 2
K Hỏi Curl Cách Post nội dung PHP 4
Admin Display Postid (post count) Vbb tutorial 0
Admin Advanced Report Post Management System Add-ons 0
Admin Can't download other attachments Before x post Add-ons 0
Admin [OzzModz] First Post On All Pages Per Thread/Forum Add-ons 0
Admin [OzzModz] Welcome Thread / Post For New Users Add-ons 0
Admin Hướng dẫn thu gọn ajax post thank you hack Vbb tutorial 0
Admin [OzzModz] Minimum Post Count To Post Blogs Add-ons 0
Admin [OzzModz] Post Icons Per Row Add-ons 0
Admin Different Post Body Background For Admin And Mods Vbb tutorial 0
D Share Hướng dẫn tạo cấu trúc php sửdụng hàm GET hoặc POST All Shared Scripts 0
Admin [ozzy47] Post New Thread Button In Posts Add-ons 1
Admin [ozzy47] Post Body Background For Specific Users Vbb tutorial 0
T Tổng hợp truyện cười post me hàinhất ola 18-8-2013 Truyện cười 0
Admin vt.Lai Block Bad Word 1.1 | Mod chặn post từ xấu cho Xenforo Xenforo 3
Admin Share code leech và post bài cho blogger Mã nguồn web 1
Admin vt.Lai Block Bad Word 1.0 | Mod chặn post từ xấu cho Xenforo Xenforo 0
Admin Ignored User Post Better Layout Vbulletin 0
Admin Post areas for vbb - thống kê số bài viết trong profile Add-ons 0
Admin Xtra dupecheck - Plugin không cho post 2 bài có tiêu đề giống nhau Wordpress 0
Admin Share plugins và thủ thuật post link youtube cho wordpress không cần dùng embed Wordpress 0
K Share Tool post blog xtgem new All Shared Scripts 0
Admin TW7S - Change the look of "Last Post" by Vbb tutorial 0

Similar threads

New posts New threads New resources

Back
Top