vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=34)
-   -   Save Drafts (New Topics, New Reply, PM(s)) Updated March 04, 2005 (https://vborg.vbsupport.ru/showthread.php?t=74837)

why-not 01-20-2005 10:00 PM

Save Drafts (New Topics, New Reply, PM(s)) Updated March 04, 2005
 
Save Drafts V 1.00

Has been released, see this thread...


https://vborg.vbsupport.ru/showthrea...294#post622294



c, ya...


Sonia

nexialys 01-21-2005 09:03 PM

sonya, always teasing us, hey...

i'd be happy to have this hack now that i see someone else than me working on one.. ;)

BarHopper 01-21-2005 09:27 PM

Look just what i need. I'd like a demo tho...Or screenshots.

why-not 01-21-2005 10:49 PM

Quote:

Originally Posted by BarHopper
Look just what i need. I'd like a demo tho...Or screenshots.


You will see a full working demo tomorrow, and some pictures!


Sonia

docvader 01-22-2005 01:08 AM

I'm up for installing this. Hope you get it put together soon!

nexialys 01-22-2005 01:52 AM

oh, btw, Sonya... i hope your installer will have a text version... ;)

why-not 01-22-2005 05:07 PM

Hi

I am working on getting my test server up, waiting for DNS to get updated then I will post some examples! Also someone asked me about how the permissions are set for the draft system! So while I am waiting for DNS stuff, I will try to explain the permissions!

The draft system uses vB permissions (groups and users), but also extends the permissions so that full control can be given for each option!

example

user A can save drafts for new replies, but not new posts, user B has same permission as user A in regards to saving drafts, vB group (2), but user B can also save attachments when making a new reply using the extended permissions that the draft control monitors! The draft control uses a simple Admin Panel that allows you to set permission by vB group or single user!

You can turn the full system off for everyone but vB group (6), but still limit options vB group (6) has. Options are also really refined, so full control for each type of save draft request can be limited!

Here is a complete overview of permissions for saving drafts! These are only for saving a draft, and do not contain the permissions for draft storage limits!

OVERVIEW PERMISSIONS (saving drafts!)

Code:

        // the master switch

        $vboptions['draft_on'] = 0; // turn the draft system off for all user except draft_group 2
        $vboptions['draft_on'] = 1; // turn the draft system on

        // master control (drafts allowed for new posts / new topic)

        $vboptions['draft_new'] = 0; // new post drafts not allowed
        $vboptions['draft_new'] = 1; // new post drafts is allowed


        // master control (drafts allowed for new replies / quick replies)

        $vboptions['draft_reply'] = 0; // new reply / quick reply, drafts not allowed
        $vboptions['draft_reply'] = 1; // new reply drafts allowed, quick reply, drafts not allowed
        $vboptions['draft_reply'] = 2; // quick reply drafts allowed, new reply, drafts not allowed
        $vboptions['draft_reply'] = 3; // new reply drafts allowed, quick reply drafts allowed


        // master control (drafts allowed for new pm / reply to pm)

        $vboptions['draft_pms'] = 0; // new pm / reply pm, drafts not allowed
        $vboptions['draft_pms'] = 1; // new pm drafts allowed, reply pm, drafts not allowed
        $vboptions['draft_pms'] = 2; // reply pm drafts allowed, new pm, drafts not allowed
        $vboptions['draft_pms'] = 3; // new pm drafts allowed, reply pm, drafts allowed


        // master control (save attachments with draft[new topic, new post, reply to post)

        $vboptions['draft_attach'] = 0; // do not save attachments if saving as draft
        $vboptions['draft_attach'] = 1; // new topic/post save attachments allowed, reply to post save attachments not allowed
        $vboptions['draft_attach'] = 2; // reply to post, save attachments allowed, new topic/post save attachments not allowed
        $vboptions['draft_attach'] = 3; // reply to post, save attachments allowed, new topic/post save attachments allowed


        // master control (users groups)

        $vboptions['draft_group'] = 0; // no permission (draft system will be off limits to this qroup)
        $vboptions['draft_group'] = 1; // has permission (draft system is on for this qroup only if the master switch is ON)
        $vboptions['draft_group'] = 2; // has permission (draft system will be on for this qroup, even if the master switch is off!)

        example (1) .... (user: admin)

        2, 1, 3, 3, 3

        value (1) = 2 <- $vboptions['draft_group']
        value (2) = 1 <- $vboptions['draft_new']
        value (3) = 3 <- $vboptions['draft_reply']
        value (4) = 3 <- $vboptions['draft_pms']
        value (5) = 3 <- $vboptions['draft_attach']

        So user: admin, has full access to the complete drafts system, even when it is turned off!

        example (2) .... (user: new_user)

        0, 1, 3, 3, 3

        value (1) = 0 <- $vboptions['draft_group']
        value (2) = 1 <- $vboptions['draft_new']
        value (3) = 3 <- $vboptions['draft_reply']
        value (4) = 3 <- $vboptions['draft_pms']
        value (5) = 3 <- $vboptions['draft_attach']

        So user: new_user, can not access the drafts system, it does not matter if they have permission for secondary options!
        Because the (1) option gives no access, and that option controls the other options!

        example (3) .... (user: other_user)

        1, 0, 1, 0, 2

        value (1) = 1 <- $vboptions['draft_group']
        value (2) = 0 <- $vboptions['draft_new']
        value (3) = 1 <- $vboptions['draft_reply']
        value (4) = 0 <- $vboptions['draft_pms']
        value (5) = 2 <- $vboptions['draft_attach']

        So user: other_user, can access the drafts system, but is limited to the following.

        the draft systems master switch must be on for them to have access
        new post drafts are not allowed
        new reply drafts can be saved, but not quick reply drafts
        saving drafts in PM(s) is not alloWed
        saving attachments is only allowed when saving a new reply!


C, ya...


Sonia

why-not 01-22-2005 05:20 PM

Quote:

Originally Posted by nexialys
oh, btw, Sonya... i hope your installer will have a text version... ;)

Yes I will include this, just for you!


C, ya...

nexialys 01-22-2005 06:03 PM

Quote:

Originally Posted by why-not
Yes I will include this, just for you!
C, ya...

[high]* nexialys fall in love...
[/high]


[high]* nexialys 's wife look seriously to slap him on the head![/high]

DrkFusion 01-23-2005 12:13 AM

Very nice idea!
I will look it over in a few minutes. Again great idea and great job!


All times are GMT. The time now is 08:26 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01311 seconds
  • Memory Usage 1,751KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete