The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Quote Post in PM Details »» | |||||||||||||||||||||||||
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&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
|
Comments |
#42
|
||||
|
||||
New version:
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 |
#43
|
||||
|
||||
You are still using code from my hack in there. The permissions for starters.
|
#44
|
||||
|
||||
Post that code here on forum. You just says "You use my code" but never says which one.
|
#45
|
||||
|
||||
"The permissions for starters".
But no matter. My hack has been removed so you can go on stealing code and get caught by someone else. |
#46
|
||||
|
||||
You mean this one?
Code:
// We get a post id. Now we have to make some permissions checks if (!$postinfo['postid']) { eval(standard_error(fetch_error('invalidid', $vbphrase['post'], $vbulletin->options['contactuslink']))); } if ((!$postinfo['visible'] OR $postinfo ['isdeleted']) AND !can_moderate($threadinfo['forumid'])) { eval(standard_error(fetch_error('invalidid', $vbphrase['post'], $vbulletin->options['contactuslink']))); } if ((!$threadinfo['visible'] OR $threadinfo['isdeleted']) AND !can_moderate($threadinfo['forumid'])) { eval(standard_error(fetch_error('invalidid', $vbphrase['thread'], $vbulletin->options['contactuslink']))); } $forumperms = fetch_permissions($threadinfo['forumid']); if (!($forumperms & $vbulletin->bf_ugp_forumpermissions['canview']) OR !($forumperms & $vbulletin->bf_ugp_forumpermissions['canviewthreads'])) { print_no_permission(); } if (!($forumperms & $vbulletin->bf_ugp_forumpermissions['canviewothers']) AND ($threadinfo['postuserid'] != $vbulletin->userinfo['userid'] OR $vbulletin->userinfo['userid'] == 0)) { print_no_permission(); } // check if there is a forum password and if so, ensure the user has it set verify_forum_password($foruminfo['forumid'], $foruminfo['password']); And look around lines 88-108. You will find this one there: Code:
// ####################################################################### // ############################# SHOW POST ############################### // ####################################################################### if (!$postinfo['postid']) { eval(standard_error(fetch_error('invalidid', $vbphrase['post'], $vbulletin->options['contactuslink']))); } if ((!$postinfo['visible'] OR $postinfo ['isdeleted']) AND !can_moderate($threadinfo['forumid'])) { eval(standard_error(fetch_error('invalidid', $vbphrase['post'], $vbulletin->options['contactuslink']))); } if ((!$threadinfo['visible'] OR $threadinfo['isdeleted']) AND !can_moderate($threadinfo['forumid'])) { eval(standard_error(fetch_error('invalidid', $vbphrase['thread'], $vbulletin->options['contactuslink']))); } $forumperms = fetch_permissions($threadinfo['forumid']); if (!($forumperms & $vbulletin->bf_ugp_forumpermissions['canview']) OR !($forumperms & $vbulletin->bf_ugp_forumpermissions['canviewthreads'])) { print_no_permission(); } if (!($forumperms & $vbulletin->bf_ugp_forumpermissions['canviewothers']) AND ($threadinfo['postuserid'] != $vbulletin->userinfo['userid'] OR $vbulletin->userinfo['userid'] == 0)) { print_no_permission(); } // check if there is a forum password and if so, ensure the user has it set verify_forum_password($foruminfo['forumid'], $foruminfo['password']); Quote:
You can't prove your words - you just gab! |
#47
|
||||
|
||||
As is evident from your profile, you have not had an original hack idea yet so you are of no worry to me if I no longer release any hacks for you to rename variables and steal code from. I'll let the next person you steal from deal with you.
|
#48
|
||||
|
||||
Quote:
Now you speak about some idea I steal. And even more that I renamed some variables what you again can't prove and will never be able. You are so funny, really. |
#49
|
||||
|
||||
Getting the message that the product is not compatibe with VB 3.7. Uninstalled.
|
#50
|
||||
|
||||
Quote:
Quote:
https://vborg.vbsupport.ru/showthread.php?t=177502 And for your future notes. If you are looking for some product's update just go to his author's profile: https://vborg.vbsupport.ru/member.php?u=26144 |
#51
|
||||
|
||||
Quote:
I didn't see that in your profile. I'll try it though. |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|