vBulletin Modifications

Major Additions - vB Save Drafts for vB (3.6.[5,6,7]) & PL1

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > vBulletin Database System > vBulletin 3.5 / 3.6 Hack Releases

Reply
 
Thread Tools Search this Thread
Download Options
You Must Register First
To Download This Modification

Bugs
No bugs found in the system. If you have found a bug, please report a bug here
Submit A Bug | View All Bugs

Advertisement
  
Not Supported
[vB 3.6.7] Major Additions - vB Save Drafts for vB (3.6.[5,6,7]) & PL1 (52)
Released: 06-08-2007, 05:00 PM
Modification Information:
Author: xyz
Last Online: 06-12-2007
Hack Version: 2.0.124 Installer Included: 0 Additional queries added to database: 0
New Templates: 2 Template Edits: 5 File Edits: 9
New Files: 3 New Phrases: 145 Installation Time (In Minutes): 20

vB 3.6.0 Compatible!
Code Hack
vB Save Drafts for vB (3.6.[5,6,7]) & PL1

Version

Save Drafts 2.0.124

About

The draft system allows for members to save messages and attachments when creating a new topic, reply or pm. If you can't finish posting because you need to do other important things you can just save the message and attachments and all your form settings. Then after, all you do is load the draft from your draft folder to continue editing it!


The draft system can be controlled by user groups or per user. It also controls permissions based on posting type (new topics, replies, pms). This allows you to turn on or off part of the system while allowing another part to run in normal mode.

You can even setup a rewards program and give draft permissions to users that have earned that benefit! If for nothing else, it will give your members another nice options that lets them have more control of their posting options while allowing you the administrator to not worry about the draft system becoming pain to manage, because you the administrator are given tools to manage the system with ease.


Inner Workings

1. Supports attachments (db, file) based

Will automatically switch modes based on the current storage type!

2. No extra query on the front end.

When a draft is set to be stored, the original (2) post queries are not used, and the draft system will run (1) or (2) queries, depending on the type (pm = 1, reply = 1, new topic = 1 with no attachments, 2 with attachments)! Draft permissions are also loaded with the cached permissions, so no query is added to load the draft permissions! Draft permissions are killed off if the current request does not contain a request that needs them.

3. Permissions are based on type (topic, reply, pm)

Each type can have a different set of permissions.


Other Notes

Besides updating this for vBulletin 3.6.*, I have also added a complete rewrite of the administrator logic, it's very fast even on the biggest of boards. I also updated $variable handling in all functions because PHP does not free allocated memory for $variables within functions unless they are unset(), so now every variable within functions not being used is removed.

AJAX SUPPORT (Auto Save)

From the many emails I've gotten many have asked about adding a auto save feature. Others have asked me not to include it, so I have created (2) versions, (1) with the auto save feature and the other without it! I am only releasing the one without here. But you can freely email me and I will gladly send you a copy of the AJAX supported version.

The reason why I didn't combine them because there is a big difference in the back end (the (3) new save draft scripts), the templates are the same, the only other changes have to do with adding a single JavaScript file called vbulletin_drafts.js, which is the event listener for the Save Draft System!

Like I said if you want the AJAX version, just email me, you will find my email in the main folder read.txt file...

If you need this installed, then email or PM me and I will happy to do it for you, it only takes me a few minutes to install it...

Screens are below...

Instead of uploading more screens, please see this post for screens of the Save Draft System.

Save Drafts V2, vB3.5.4 (remembers everything)

I have attached (2) screens to this post because it shows the AJAX permissions, and the new over view window, that allows the administrator to view user saved draft messages or attachments!

ajax_draft_permissions.png

Shows the Draft permissions panel with the new AJAX auto save option

admin_over_view.png

Show the popup window where the administrator can view members draft folders and get detailed information about the Save Draft System (ie: message, attaches, total size) the Save Draft System is using, plus you can manage all drafts from there.

June 12, 2007, 6:28 PM EST

Fixed the typo(s) for the function call drafts_check => draft_check

Thanks for the report, Lionel

Next I won't rename functions when converting stuff without checking those things!


Later

Sonia



Screenshots
Screenshots
File Type: png ajax_draft_permissions.png (55.7 KB, 152 views)
File Type: png admin_over_view.png (18.6 KB, 184 views)


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Add a Comment!
Old 06-12-2007, 02:36 PM   #2
vB Newbie
Join Date: Sep 2004
Location: Miami
Lionel is on a distinguished road

Default

in both version we are missing the function drafts_check and that throws an error in preview newthread




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-12-2007, 02:53 PM   #3
vB Newbie
Join Date: Sep 2004
Location: Miami
Lionel is on a distinguished road

Default

Actually in newthread and newreply there was a typo the function should be draft_check and not drafts_check




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-13-2007, 12:31 AM   #4
vB Newbie
Join Date: May 2007
CMGU is on a distinguished road

Default

missing the function drafts_check




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-30-2007, 04:45 PM   #5
vB Newbie
Join Date: Oct 2006
Junkie is on a distinguished road

Default

Am I supposed to replace every instance of 'xx_prefix_' in the drafts sql file with my table prefix, for instance 'vb_prefix_'. Also, how do I load 'drafts.sql' into my forums database?




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-30-2007, 07:01 PM   #6
vB Newbie
Join Date: Oct 2006
Junkie is on a distinguished road

Default

I think I have this working now. The only problem I have encountered so far is when I save Draft Permissions I get this error:

Warning: main(/home/mydatabase/public_html/forums./includes/functions_databuild.php) [function.main]: failed to open stream: No such file or directory in /admincp/drafts.php on line 87

Fatal error: main() [function.require]: Failed opening required '/home/mydatabase/public_html/forums./includes/functions_databuild.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/fantasyf/public_html/gforums/admincp/drafts.php on line 87




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-28-2007, 05:27 PM   #7
vB Newbie
Join Date: Sep 2004
Location: Miami
Lionel is on a distinguished road

Default

you have a "dot" that doesn't belong
/forums./incl




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-28-2007, 07:43 PM   #8
vB Newbie
Join Date: Aug 2007
EyeBall is on a distinguished road

Default

seems to be good mod, i hope i face no errors. will try it

Last edited by EyeBall; 10-29-2007 at 06:42 PM.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-23-2007, 08:13 AM   #9
Junior Member
Join Date: Apr 2006
alsb0r is on a distinguished road

Default

Quote:
Originally Posted by EyeBall View Post
seems to be good mod, i hope i face no errors. will try it
same him solw ????????




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Save Drafts V2, vB3.5.4 (remembers everything) xyz vBulletin 3.5 / 3.6 Hack Releases 31 06-10-2007 12:51 AM


All times are GMT -3. The time now is 10:06 AM.


SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc. (Patent Pending)