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
  #12  
Old 03-08-2005, 05:45 AM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I managed to install. But when I submit, it takes me to a blank page profile.php?do=drafts&folder=newpost

I looked in db, draft was there. I have the 2 new templates drafts_display and the bits. I triple checked the changes in profile php, the draft page simply will not display. Any idea please?
Reply With Quote
  #13  
Old 03-08-2005, 05:56 AM
Revan's Avatar
Revan Revan is offline
 
Join Date: Jan 2004
Location: Norway
Posts: 1,671
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice mod, I will be installing this when I get home
[high]* Revan clicks install
[/high]
It would be nice if you wrote an addon to integrate with the PM attachments mod too
Reply With Quote
  #14  
Old 03-08-2005, 06:14 AM
WhSox21 WhSox21 is offline
 
Join Date: Feb 2004
Posts: 328
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lionel
I managed to install. But when I submit, it takes me to a blank page profile.php?do=drafts&folder=newpost

I looked in db, draft was there. I have the 2 new templates drafts_display and the bits. I triple checked the changes in profile php, the draft page simply will not display. Any idea please?
Just trying to help out...

A blank page usually means a missing template.
Reply With Quote
  #15  
Old 03-08-2005, 06:17 AM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I know. Thanks. I only have 2 new templates drafts_display and drafts_row_bit and both are in there.
Reply With Quote
  #16  
Old 03-08-2005, 06:55 AM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I get a mysql error when I try to increase the draft folder in usergroup. When I put a dollar in front of manage_drafts, I don't get it, but nothing happens.

Quote:
Invalid SQL: SELECT draft_id, hid, aid FROM drafts WHERE uid = 4 AND gid = 6 AND did = 1 ORDER BY tod DESC LIMT 5, 1000
mysql error: You have an error in your SQL syntax near 'LIMT 5, 1000' at line 1

mysql error number: 1064
Reply With Quote
  #17  
Old 03-08-2005, 06:58 AM
Oblivion Knight's Avatar
Oblivion Knight Oblivion Knight is offline
 
Join Date: May 2002
Location: Sheffield, UK
Posts: 1,757
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Seems like a typo.. In Lionel's query, LIMT should be LIMIT.
Reply With Quote
  #18  
Old 03-08-2005, 07:14 AM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Oblivion Knight
Seems like a typo.. In Lionel's query, LIMT should be LIMIT.
You are right. I was able to fix it in the functions. Now, I am still trying to get profile.php folders to display. I installed the hack at least 3 times ...
Reply With Quote
  #19  
Old 03-08-2005, 10:44 AM
why-not why-not is offline
 
Join Date: Feb 2004
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To fix a typo!!!

Open ./includes/functions_drafts.php


FIND THIS...

Code:
								$qa = $DB_site->query ( "SELECT draft_id, hid, aid FROM " . TABLE_PREFIX . "drafts WHERE uid = " . $user[$i] . " AND gid = " . $old[0] . " AND did = " . $type . " ORDER BY tod DESC LIMT " . $new[2] . ", 1000" );

REPLACE WITH...

Code:
								$qa = $DB_site->query ( "SELECT draft_id, hid, aid FROM " . TABLE_PREFIX . "drafts WHERE uid = " . $user[$i] . " AND gid = " . $old[0] . " AND did = " . $type . " ORDER BY tod DESC LIMIT " . $new[2] . ", 1000" );
Reply With Quote
  #20  
Old 03-08-2005, 10:49 AM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sonia, good morning... please help. The profile.php will not display the folders ... all templates are there
Reply With Quote
  #21  
Old 03-08-2005, 10:56 AM
why-not why-not is offline
 
Join Date: Feb 2004
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi

Godd morning to you!!!!!

Please send me the following script that your forum is using!

newreply.php
newthread.php
private.php
profile.php

./includes

functions.php
functions_newpost.php
functions_user.php


Send them to me here!

fataqui@ya-right.com


Or PM access to your forum directory so I can fix what is wrong!


please tell me you are doing (send it to me or sending me access via pm), so I know to wait or just check my email!


Sonia
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 03:45 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.08673 seconds
  • Memory Usage 2,315KB
  • 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
  • (2)bbcode_code
  • (3)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
  • (3)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