vBulletin Mods

The Official vBulletin Modifications Site
http://www.vbulletin.org/forum/showthread.php?t=77659

Save Drafts (Remember Everything) Updated!
by why-not
07 Mar 2005 14:01

4 Attachment(s)
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)

http://www.vbulletin.org/forum/showt...d=1#post628547


That's it...

Sonia

why-not 07 Mar 2005 14:08

UPDATE AND FIXES: Save Drafts

Note: Update Times are quoted using 'EST -5 GMT)


start Update [1] (if downloaded zip before 1:19 AM March 9, 2005)

Update Type: Improve System

1. Made (2) versions of the functions_drafts.php file (mySQL Version 3, Mysql Version 4)
2. Cleaned up all the typo(s) in both files!
3. Did away with a few queries!
4. Greatly improved the code flow in functions_drafts.php file
5. fixed the negative error when a negative value is passed as a next page id!
6. Added column sorting on ( last edit time, post title / post message)
7. Added sorting into the navigation, so prev/next page follows the column sorting!
8. updated the zip file (added mySQL Version 3 and Mysql Version 4 specific functions_drafts.php) files!


Upgrading from Save Drafts Version (1) Mysql Version 4 (use this link!)

Update is very simple, will take less than a minute of your time...

MYSQL VERSION 4 OR HIGHER ONLY

http://www.vbulletin.org/forum/showt...d=1#post623086


Upgrading from Save Drafts Version (1) Mysql Version 3 (use this link!)

Same as above, very simple to update, will take less than a minute of your time...

MYSQL VERSION 3*

http://www.vbulletin.org/forum/showt...d=1#post623089

end Update [1] (if downloaded zip before 1:19 AM March 9, 2005)


start Update [2] (if downloaded zip before 1:15 PM March 10, 2005)

Update Type: Install Missing needed (Find & Replace)

Thanks (amanpartaps) for finding this!!!

Fixed: Missing a include file() in the install Find & Replace (profile.txt)

You can find the fix for it here!

Also updated the zip file to reflect this, sorry for not seeing this!

end Update [2] (if downloaded zip before 1:15 PM March 10, 2005)


start Update [3] (if downloaded zip before 8:44 AM March 12, 2005)

Update Type: Code (Fix)

Problem: PM (over limit) permission not working, using 'new post' permission instead!

You will find the fix here

Also updated the zip file to apply this change to the installer!

end Update [3] (if downloaded zip before 8:44 AM March 12, 2005)

j_86 07 Mar 2005 14:50

Hi :)

Does this work for VB 3.07? I hope it does.

PS: What spell checker do you use on your site?

why-not 07 Mar 2005 15:10

Yes supports...

vB 3.0./1/2/3/4/5/6/7

all tested!!!


Sonia

why-not 07 Mar 2005 15:30

Quote:

Originally Posted by JimpsEd
PS: What spell checker do you use on your site?

It my own design of a PHP_EXTENSION written in C, supports 23 language 16,000,000 plus words, spell checks 400,000 words a second, it's sessionless, so it can handle 1000(s) requests at one time! I plan on offering a free spell checking service that will run on a remote forum, I already do this for for my clients. All dictionarys loaded takes 8MB of space. Sorry it's only for Windows based servers! It has all kinds of features and plugs right into vB supporting all browsers and editors! Plus it has loads of options not found in any spell checker!

Auto correct (correct common word errors) ( over 4 million auto correct words 23 languages)

anytying
apparant
apparrent
appearence
appeares

smart suggestions (learns how you type)

offers you suggestions based on how you type, the more you use it the better it get at learning your style writing!


It's just one of the many PHP extensions I have designed!

Here is another one my projects!

Translation ( a translation server written as a PHP extension, uses the same dictionaries as the spell checker)

http://www.ya-right.com/translate.php


c, ya...

Sonia

J.C. 07 Mar 2005 16:24

Awesome!! Will install this tonight!

There will be an upgrade installer from v1 to v2 by the way right? :)

why-not 07 Mar 2005 17:05

Quote:

Originally Posted by J.C.
Awesome!! Will install this tonight!

There will be an upgrade installer from v1 to v2 by the way right? :)

Yes...

full install, and upgrade step by step how to! Version (1) to Version (2) will only be (2) template edits, and (1) script edit (newreply) to support quick reply and then you only need to change the new (functions_drafts.php) file that will contain all the the logic!

Version (1) contains all the function calls that version (2) will plugin into! Making the upgrade very easy. In other words, version (2) gateway has been bulit into version (1)!

Sonia

BarHopper 07 Mar 2005 17:27

This is excellant, well done.

agiacosa 07 Mar 2005 23:19

Thank you for doing this!

Lionel 08 Mar 2005 04:52

I am using version 3.07 and I can't find in newreply:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Lionel 08 Mar 2005 06:45

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?

Revan 08 Mar 2005 06:56

Very nice mod, I will be installing this when I get home :)
/me clicks install
It would be nice if you wrote an addon to integrate with the PM attachments mod too :)

WhSox21 08 Mar 2005 07:14

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.

Lionel 08 Mar 2005 07:17

I know. Thanks. I only have 2 new templates drafts_display and drafts_row_bit and both are in there.

Lionel 08 Mar 2005 07:55

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


All times are GMT. The time now is 12:44.

Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright ©2001 - , vbulletin.org. All rights reserved.