Welcome, Guest. Please login or register.
Did you miss your activation email?
February 12, 2012, 07:48:39 PM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
149678 Posts in 21101 Topics by 7538 Members
Latest Member: ionline
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Page locking in multi author environment  (Read 2455 times)
DarkViper
Development Team
*****
Offline Offline

Posts: 1052


« on: October 23, 2009, 01:58:44 PM »

This patch / fix prevents from concurrent editing and saving pages if more then one author works in the backend.
It's really easy to implement and doesn't touch the logic of any other function from WB.

Features:
  • possible to switch on/off the locking in backend
  • Locking lifetime is setable to your own needs

ATTENTION: This is NOT a official feature of WB. Future Updates of WB will not take care for this modification. There is NO support by WB-Teams.

How to install:
  • extract the zip-file.
  • upload all folders and the activate_patch.php to your server(overwrite-mode).
  • call the activate_patch.php (delete this after).
  • go to backend->advanced options and enable page locking.
  • done.
tested and works for wb 2.8.1  (but on your own risk)
works also for wb-portable.

a little piece of hope: There is already a open Ticket #824 for this.

enjoy
DarkViper
« Last Edit: February 09, 2010, 10:05:21 PM by DarkViper » Logged

Anleitungen lesen und selber nachdenken ist anstrengend...  Da lass ich doch lieber andere für mich denken...

In 1984:  Nineteen Eighty-Four is a unrealistic utopia!!
In 2012:  Nineteen Eighty-Four is a little piece only of our reality!!
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1680



« Reply #1 on: October 23, 2009, 08:47:05 PM »

This is very interesting..

Who can lock/ unlock page ?
Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
DarkViper
Development Team
*****
Offline Offline

Posts: 1052


« Reply #2 on: October 23, 2009, 10:08:36 PM »

you can do..  grin

every time you open a page in editor, this page will be locked for all others authors.
if you close the editor, the lock will be removed.
in case of a crashed browser, system down ...  the lock released after a scalable time. Also if you open another page to edit..
Logged

Anleitungen lesen und selber nachdenken ist anstrengend...  Da lass ich doch lieber andere für mich denken...

In 1984:  Nineteen Eighty-Four is a unrealistic utopia!!
In 2012:  Nineteen Eighty-Four is a little piece only of our reality!!
LordDarkman
Development Team
*****
Offline Offline

Posts: 343


WWW
« Reply #3 on: October 24, 2009, 12:10:04 AM »

Nice patch but to late to test today. But I tell you tomorrow.

CU Moritz
Logged
dbs
WebsiteBaker Org e.V.

Online Online

Posts: 3271


WWW
« Reply #4 on: February 01, 2010, 04:27:05 PM »

good idea this patch.
a first try at wb 2.8.1 rc3 works fine.  smiley

good job!

should be a feature in the official wb-version...

edit: - copy&paste from a pdf is not easy to use (line-numbers).

          -  a error is in the ./admin/settings/index.php  with :
            + 647 'TEXT_LOCKING_ACTIVA TED' => $TEXT['LOCKING_ACTIVATED''],

dbs
« Last Edit: February 01, 2010, 04:33:58 PM by dbs » Logged

crnogorac081
AddOn Development
*
Offline Offline

Posts: 1680



« Reply #5 on: February 01, 2010, 04:30:42 PM »

I also agree that this sould be an option. Thisi is simple, If I am author, turn on/of editing..

But I would add that only Group 1 - Main administrator group can unlock it..
Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
DarkViper
Development Team
*****
Offline Offline

Posts: 1052


« Reply #6 on: February 01, 2010, 11:55:47 PM »

I also agree that this sould be an option. Thisi is simple, If I am author, turn on/of editing..
But I would add that only Group 1 - Main administrator group can unlock it..

No.. nobody can lock or unlock a page manually. It works unintended in Background.
You can switch on/off the functionality itself and set the timeout for autorelease locks.
Logged

Anleitungen lesen und selber nachdenken ist anstrengend...  Da lass ich doch lieber andere für mich denken...

In 1984:  Nineteen Eighty-Four is a unrealistic utopia!!
In 2012:  Nineteen Eighty-Four is a little piece only of our reality!!
dbs
WebsiteBaker Org e.V.

Online Online

Posts: 3271


WWW
« Reply #7 on: February 10, 2010, 09:25:04 PM »

maybe the new zip as attchment for the ticket? wink

dbs
Logged

Bramus
Forum Team
*****
Offline Offline

Posts: 600


WWW
« Reply #8 on: February 18, 2010, 11:38:17 AM »

This sounds interesting, has anyone fully tested it on a 2.8.1 installation?

So is it safe to implement it in a standard installation?
Logged

BRAMUS Internet Services
Waldschwein
Guest
« Reply #9 on: February 18, 2010, 11:41:22 AM »

Hello!

Perhaps an idea: Combine this feature with http://nettest.thekk.de/docs/wysiwyg_history/files/naturaldocs_txt/title-txt.html in the next WB major version.  wink

Yours Michael
Logged
dbs
WebsiteBaker Org e.V.

Online Online

Posts: 3271


WWW
« Reply #10 on: February 18, 2010, 12:10:46 PM »

@bramus: tested on standard wb2.8.1 installation and also with last wb-portable2.8.1.
don't try it for wb2.8.0, the files are to different.
you should make a copy of your live-installation and run this with wb-portable, than try the page_locking-snippet.

@waldschwein: maybe, but these are 2 different things.
both should be parts of next standard-wb.  smiley

dbs
Logged

Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!