Thread: Private Messages Enhancements - Quote Post in PM
View Single Post
  #37  
Old 01-21-2008, 09:58 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 McMendo View Post
Could this mod be in the form of a "Quote PM" button to the left of the "Quote" button, instead of the drop-down menu?

I think that I've seen it in some forum.
Yes, you can do so.
  1. Install the product only
  2. In product options set "Update popup menu automatically" to "No".
  3. Open template qpipm_menu
    Code:
    	<if condition="$show['pmlink']">
    		<tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]&amp;postid=$post[postid]"><phrase 1="$post[username]">$vbphrase[qpipm_quote_post_in_pm]</phrase></a></td></tr>
    	</if>
  4. Modify this part of template how you need it
    Code:
    		<tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]&amp;postid=$post[postid]"><phrase 1="$post[username]">$vbphrase[qpipm_quote_post_in_pm]</phrase></a></td></tr>
  5. Save the template
  6. Add $qpipm where you need to the left of the "Quote" button

In other words you have

To find in templates postbit && postbit_legacy the code:
Code:
        <if condition="$show['quickreply']">
            <a href="javascript:insertQuote('$post[usernamequick]', selection, '$post[postid]')" onMouseOver="catchSelection()" title="$vbphrase[select_and_click]" class="smallfont"><img src="$stylevar[imgdir_button]/quickquote.gif" alt="$vbphrase[select_quote]" border="0" /></a>
	</if>
Add before $qpipm

Change template qpipm_menu to something like this one:
Code:
	<if condition="$show['pmlink']">
		<a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]&amp;postid=$post[postid]"><phrase 1="$post[username]"><img src="$stylevar[imgdir_button]/your_new_button_here.gif" alt="$vbphrase[qpipm_quote_post_in_pm]" border="0" /></phrase></a>
	</if>
Don't forget to upload you new button and give it the proper name in code above.
I highlighted it above your_new_button_here.gif

Quote:
Originally Posted by pxd View Post
For those of you who feel like they have set everything up properly but it "does not work", I just tested with vB 3.7.0 beta3 and it worked after I adjusted the usergroup settings related to private message permissions. Make sure that "Maximum Stored Messages:" is set to a positive value, and that current usergroup is allowed to use the PM system.

Great hack!
Thanks.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01400 seconds
  • Memory Usage 1,782KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete