Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Save Drafts (Remember Everything) Updated! Details »»
Save Drafts (Remember Everything) Updated!
Version: 1.00, by why-not why-not is offline
Developer Last Online: Jun 2007 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 03-06-2005 Last Update: 03-11-2005 Installs: 25
DB Changes
 
No support by the author.

My Save Drafts Version 1

Supports: vB 3.0./1/2/3/4/5/6/7 TESTED

MySQL support for Version 4 or higher and now full support for MySQL version 3* to!!!


Overview...

The *Save Draft Sub System* is designed to allow members to save (New Posts, New Replies, New PMs) as a draft! This allows for saving a message that you might not be able to finish at the present time, but want to not lose that message!


The *Save Draft System* does more than just *save the message*...

1. Save Message
2. Remembers all form options (icons, subscriptions, disabled this or enabled that)
3. Allows for saving Attachments
4. Allows for unlimited (edits) before posting or sending message
5. Remembers (topic, post, forum you are replying to)
6. UserCP, folder views (lists messages with easy controls to manage all drafts)


Save Drafts Controls (Forum Display)

Save draft controls "Save Draft" and "Folder Views" are only visible to members that have permission to use that control! If a member has saved his/her maximum allowed drafts for a certain folder, then that control is closed. They will not be able access it.

Save Drafts Controls (Admin Display)

Because the Save Draft System, is based not only group permissions, you can limit what groups can do! One group can save all types of messages (new Post, New Replies and New PMs) while the other can only save maybe (New PMs). The control extends it's self the same way for saving (Attachments).

Instead of making a Admin Panel that would very complicated due the nature of multi permissions, I have made the admin panel simple to use, but even with the simplity of the control, the combinations that the control gives you, offers you many options with simple ease of use as it's design logic was intended!

Controls...

Turn the draft system on per folder (New Posts, New Replies, New PMs) per group
Turn the draft system off per folder (New Posts, New Replies, New PMs) per group
On shut down per folder, do what? ( soft shut down [no delete], hard shut down [full delete]) per group
Allow for saving attachment per folder (New Posts, New Replies, New PMs) per group
Allow for setting a message storage limit per folder (New Posts, New Replies, New PMs) per group [unlimited = 0, ### = maximum message saves allowed]
Allow for original draft date for posting the message! (this is for mods, admins only, should always be set to (no)) (part of the extended panel V2)


This is a difficult mod to install, if you don't feel comfible editing scripts. I will install it for anyone that asks me to! Have any questions just ask!


See attachments for different views, also demo is here!


http://forum.ya-right.com/

user: test
pass: test

ANY UPDATES OR FIXES ARE LISTED IN THE FIRST REPLY OF THIS THREAD


Other news

1. Next update will include a full Admin Panel page for the draft system ( stats, user manager [over-ride group control]) many options! (implementing)
2. Next update will include import / export feature (done XML/zip) (export all/selected/attachments)
3. Next update will include full support for quick reply! (done, testing now) Also allow for attachments (option)
4. next update will include a user option to save draft as... (done, testing now)
5. Next update will include, automaticly reassigning a reply draft when a topic has been moved or deleted (implementing)
5 A. If moved the draft will be set to the new thread that the post was moved to! (done, testing now)
5 B. If the post or topic were deleted then the reply draft will be reassigned to the new draft folder! (implementing)

VERSION (2) INFO (release March 22 4:00PM EST)

https://vborg.vbsupport.ru/showthrea...d=1#post628547


That's it...

Sonia

Show Your Support

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

Comments
  #22  
Old 03-08-2005, 11:22 AM
why-not why-not is offline
 
Join Date: Feb 2004
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lionel
Sonia, good morning... please help. The profile.php will not display the folders ... all templates are there

All fixed!

C, Ya...

Sonia
Reply With Quote
  #23  
Old 03-08-2005, 11:25 AM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks. I can't believe it took you 2 seconds to fix what I have been trying to do all night... :-)
Reply With Quote
  #24  
Old 03-08-2005, 11:45 AM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great addition... many thanks for sharing!
Reply With Quote
  #25  
Old 03-08-2005, 02:51 PM
OrangeFlea OrangeFlea is offline
 
Join Date: Aug 2004
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome.

Not to go off-topic, but I'm looking more forward to your spell-checking utility. If you have any further information to donate regarding it, I'd love to hear it. I've been looking for a decent spell-checker for some time now.
Reply With Quote
  #26  
Old 03-08-2005, 04:06 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This hack for sure is going to make it for the hack of the month. You got my vote!
Reply With Quote
  #27  
Old 03-08-2005, 07:39 PM
Magic Spark Magic Spark is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, Sonia!

I think I've found two bugs.
Could you please look into it.

1) I can't delete draft threads. There's an error in function draft_vars() I think.
My draft thread has no attachment. When I try to delete a draft - I get an mysql error.

2) I edit an draft thread, then hit preview, and then save that draft again.
After that I have two drafted threads with same content in my folder.

Thanks in advance.

EDIT:
I think the first bug is caused by my mysql version.
I have mysql v3.23.57. I think multiple delete (with left joins) is possible only with mysql 4 and higher. Correct me, if I'm wrong.
Is there a solution to get it running with 3.23.57?
Reply With Quote
  #28  
Old 03-09-2005, 04:10 AM
why-not why-not is offline
 
Join Date: Feb 2004
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

MYSQL VERSION 4 OR HIGHER ONLY


UPDATE (2) Save Drafts for MySQL Version 4 or higher!

Download the attached file...

rename it to...

functions_drafts,php

place it in your ./includes/ directory, over writing the old file!


Go to your Admin panel

Styles & Templates >> search in templates

search for 'drafts', select the template => 'drafts_display'

FIND THIS

Code:
   <td class='thead' width='22%' style='white-space : nowrap'>$vbphrase[draft_edited_time]</td>
   <td class='thead' width='58%' style='white-space : nowrap'>$vbphrase[draft_list_title]</td>

REPLACE WITH

Code:
   <td class='thead' width='20%' style='white-space : nowrap'>$new_draft[nalink]$new_draft[nblink]</td>
   <td class='thead' width='58%' style='white-space : nowrap'>$new_draft[nclink]$new_draft[ndlink]</td>

That is it, you now have added...

1. code clean ups typo(s)
2. column sorting on ( last edit time, post title / post message)
3. sorting into the navigation, so prev/next page follows the column sorting!


C, Ya...

Sonia
Reply With Quote
  #29  
Old 03-09-2005, 04:14 AM
why-not why-not is offline
 
Join Date: Feb 2004
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

MYSQL VERSION 3*


UPDATE (2) Save Drafts for MySQL Version 3*!

Download the attached file...

rename it to...

functions_drafts,php

place it in your ./includes/ directory, over writing the old file!


Go to your Admin panel

Styles & Templates >> search in templates

search for 'drafts', select the template => 'drafts_display'

FIND THIS

Code:
   <td class='thead' width='22%' style='white-space : nowrap'>$vbphrase[draft_edited_time]</td>
   <td class='thead' width='58%' style='white-space : nowrap'>$vbphrase[draft_list_title]</td>

REPLACE WITH

Code:
   <td class='thead' width='20%' style='white-space : nowrap'>$new_draft[nalink]$new_draft[nblink]</td>
   <td class='thead' width='58%' style='white-space : nowrap'>$new_draft[nclink]$new_draft[ndlink]</td>

That is it, you now have added...

1. code clean ups typo(s)
2. column sorting on ( last edit time, post title / post message)
3. sorting into the navigation, so prev/next page follows the column sorting!


C, Ya...

Sonia
Reply With Quote
  #30  
Old 03-09-2005, 05:38 AM
Magic Spark Magic Spark is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you so much for the fix for mysql 3. Highly appreciated.
Reply With Quote
  #31  
Old 03-09-2005, 04:24 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just had someone upgrade mysql to 4.0.23. That solves me all problems including the usergroup not updating because of the manage_draft
Reply With Quote
Reply


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 02:56 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.04838 seconds
  • Memory Usage 2,316KB
  • Queries Executed 25 (?)
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
  • (4)bbcode_code
  • (1)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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (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_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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete