Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications

Reply
 
Thread Tools
Move Private Message Download Options Details »»
Move Private Message Download Options
Version: 1.00, by grey_goose grey_goose is offline
Developer Last Online: Mar 2020 Show Printable Version Email this Page

Category: Private Messages Enhancements - Version: 4.1.4 Rating:
Released: 07-04-2011 Last Update: Never Installs: 17
Template Edits
Re-useable Code Translations  
No support by the author.

This is fairly straightforward, and something I've done because so many of my users overlooked that they could download their Private Messages. Basically, we're moving the option from the easily-overlooked bottom of the page to where the other relevant info is: the usage bar, and the other "All" option -- Delete. Now users can easily see that saving their messages is an option.

ACP > Styles & Templates > Search in Templates > pm_messagelist

Find (Line 105 of a default template):
Code:
		<h3 class="blocksubhead">{vb:rawphrase x_contains_y_z_messages_of_xx, {vb:raw foldername} {vb:raw totalmessages} {vb:raw pmtotal}, {vb:raw pmquota}} (<a href="private.php?{vb:raw session.sessionurl}do=emptyfolder&amp;folderid={vb:raw folderid}">{vb:rawphrase empty_folder}</a>)</h3>
Replace With:
Code:
		<h3 class="blocksubhead">{vb:rawphrase x_contains_y_z_messages_of_xx, {vb:raw foldername} {vb:raw totalmessages} {vb:raw pmtotal}, {vb:raw pmquota}} 
		<br /><a href="private.php?{vb:raw session.sessionurl}do=emptyfolder&amp;folderid={vb:raw folderid}">{vb:rawphrase empty_folder}</a> or <strong>{vb:rawphrase download_all_private_messages_as}</strong>:  <a href="private.php?{vb:raw session.sessionurl}do=downloadpm&amp;dowhat=xml">{vb:rawphrase xml}</a> | <a href="private.php?{vb:raw session.sessionurl}do=downloadpm&amp;dowhat=csv">{vb:rawphrase csv}</a> | <a href="private.php?{vb:raw session.sessionurl}do=downloadpm&amp;dowhat=txt">{vb:rawphrase text}</a></h3>
To remove the original options, delete (found on lines 139-144 of the default template):
Code:
	<div>
		<strong>{vb:rawphrase download_all_private_messages_as}</strong>:<br />
		<a href="private.php?{vb:raw session.sessionurl}do=downloadpm&amp;dowhat=xml">{vb:rawphrase xml}</a> |
		<a href="private.php?{vb:raw session.sessionurl}do=downloadpm&amp;dowhat=csv">{vb:rawphrase csv}</a> |
		<a href="private.php?{vb:raw session.sessionurl}do=downloadpm&amp;dowhat=txt">{vb:rawphrase text}</a>
	</div>

Screenshots

File Type: png moveoptions.png (37.8 KB, 0 views)

Show Your Support

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

Comments
  #12  
Old 07-12-2011, 07:13 PM
grey_goose grey_goose is offline
 
Join Date: Jun 2009
Posts: 284
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome, very welcome. It feels great to give a little something back
Reply With Quote
  #13  
Old 08-09-2011, 07:12 PM
J. Schultz J. Schultz is offline
 
Join Date: Nov 2010
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed this on vB 4.1.4 a few weeks ago, and have received many positive comments on it. I went with the options at the top that grey_goose posted. Thanks!
Reply With Quote
  #14  
Old 08-09-2011, 07:33 PM
grey_goose grey_goose is offline
 
Join Date: Jun 2009
Posts: 284
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very welcome, and thanks for the feedback
Reply With Quote
  #15  
Old 09-15-2011, 05:00 PM
stained stained is offline
 
Join Date: Jun 2009
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks very much for this
Reply With Quote
  #16  
Old 09-22-2011, 03:24 PM
ChimeraRS ChimeraRS is offline
 
Join Date: Jun 2011
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent mod, thanks!
Reply With Quote
  #17  
Old 05-21-2012, 12:45 AM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm wish I found this post last night..took me an hour to figure out which and where. haha

Anyhow, my client found another download option. She does not want members on her site to be able to download private messages. I have removed the code above but there is another option in a drop down. Does anyone know how to remove the download option from there??

Thanks

Not meaning to trample your thread..just seemed related..

Never mind...was very easy..I just could not see it because I had no messages..
Reply With Quote
  #18  
Old 05-25-2012, 07:09 PM
pantani's Avatar
pantani pantani is offline
 
Join Date: Dec 2007
Location: Belgium
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Verry nice indeed thanks.
Could this be made that it is used by let say only moderators or admins? or other usergroup, would be nice if i could choose witch usergroup could use this function.
Reply With Quote
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:40 PM.


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.06949 seconds
  • Memory Usage 2,280KB
  • Queries Executed 23 (?)
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
  • (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
  • (1)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (1)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)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
  • 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_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