Welcome, Guest. Please login or register.
Did you miss your activation email?
May 25, 2012, 02:00:51 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155476 Posts in 21708 Topics by 7734 Members
Latest Member: rofroodoOvego
* Home Help Search Login Register
Poll
Question: Are you using Droplets?
Yes, I like the idea!
No, Why?
What are Droplets?

Pages: 1 ... 16 17 [18] 19   Go Down
Print
Author Topic: New Admin-Tool: Droplets  (Read 50441 times)
BlackBird
AddOn Development
*
Offline Offline

Posts: 2068



WWW
« Reply #425 on: September 06, 2011, 06:37:51 PM »

Kann mal jemand checken ob Droplet löschen mit WB 2.8.2 SP1 und Droplets 1.62 möglich ist?
Bekomme hier nur weiße Seite.

There's an error in file delete_droplet.php:

Parse error: syntax error, unexpected T_BOOLEAN_AND, expecting ',' or ')' in ...\modules\droplets\delete_droplet.php on line 32

Fixing this gives me more errors.

Notice: Undefined variable: admin in ...\modules\droplets\delete_droplet.php on line 25
Fatal error: Call to a member function checkIDKEY() on a non-object in ...\modules\droplets\delete_droplet.php on line 25

@John, can you help?
Logged

Alle großen Veränderungen beginnen im Kleinen
BlackBird
AddOn Development
*
Offline Offline

Posts: 2068



WWW
« Reply #426 on: September 06, 2011, 06:40:46 PM »

@dbs, can you please try the delete_droplet.php attached? Thank you.
Logged

Alle großen Veränderungen beginnen im Kleinen
dbs
WebsiteBaker Org e.V.

Offline Offline

Posts: 3714


WWW
« Reply #427 on: September 06, 2011, 07:09:14 PM »

Quote
can you please try the delete_droplet.php attached?
yes, this did the job. works fine.
Logged

BlackBird
AddOn Development
*
Offline Offline

Posts: 2068



WWW
« Reply #428 on: September 07, 2011, 09:45:54 AM »

Can someone please test version 1.64 attached below? (Before I upload it to AMASP)

* Fix: delete_droplet.php
* TableSorter Plugin is now delivered with the Droplets module (but still uses LibraryAdmin to load).

Edit: Removed attachment
« Last Edit: September 08, 2011, 08:51:10 AM by BlackBird » Logged

Alle großen Veränderungen beginnen im Kleinen
dbs
WebsiteBaker Org e.V.

Offline Offline

Posts: 3714


WWW
« Reply #429 on: September 07, 2011, 02:57:17 PM »

works fine,  smiley

Logged

BlackBird
AddOn Development
*
Offline Offline

Posts: 2068



WWW
« Reply #430 on: September 08, 2011, 08:50:34 AM »

I've released v1.7 now.

http://www.websitebakers.com/pages/droplets/module-wb-2.8.2.php

This version no longer uses LibraryAdmin or jQueryAdmin. The tablesorter jQuery plugin is included directly. Please note that you will have to ensure that your backend theme loads jQuery in the <head>. This is done by default in WB 2.8.2, but not versions prior. (And maybe not in custom backend themes.)

Edit: I tested this with WB 2.8.2 Build 1506 only.
« Last Edit: September 08, 2011, 08:54:15 AM by BlackBird » Logged

Alle großen Veränderungen beginnen im Kleinen
dbs
WebsiteBaker Org e.V.

Offline Offline

Posts: 3714


WWW
« Reply #431 on: September 08, 2011, 02:52:24 PM »

Tablesorter works fine.

A update from 1.64 to 1.7 is not possible.
The version-number must be changed to 1.6.4 or 1.6 in the database (addons) before.

Droplets is now a very useful Module and should be a core-module.

dbs
Logged

Luisehahne
Board Member
Development Team
*****
Offline Offline

Posts: 3145



WWW
« Reply #432 on: September 08, 2011, 04:09:57 PM »

Quote
A update from 1.64 to 1.7 is not possible.

Create a backup from your Droplets, unzip it in the example folder, go to add-ons - module - advanced and start a manuell install. So all your Droplets will be installed again and the version will be set in the addons table ( i hope so)

Because the droplets are never changed by core or any module it's no problem to go this way.

Dietmar
Logged

We are human beings - and nobody is perfect at all.
pcwacht
AddOn Development
*
Offline Offline

Posts: 2856



WWW
« Reply #433 on: September 08, 2011, 06:53:26 PM »

Quote
A update from 1.64 to 1.7 is not possible.
Do we need to rework the versioning system or better document it

True, 1.64 is less then 1.7 reading it as a human,
but 64 is way more then 7 so ...


John

Logged

http://www.ictwacht.nl = Dutch ICT info
http://www.pcwacht.nl = My first
both still work in progress, since years.....
dbs
WebsiteBaker Org e.V.

Offline Offline

Posts: 3714


WWW
« Reply #434 on: September 08, 2011, 07:42:51 PM »

I would like the human reading:
1.64 or 1.6a or 1.6.1 are all less then 1.7
« Last Edit: September 08, 2011, 07:48:00 PM by dbs » Logged

Luisehahne
Board Member
Development Team
*****
Offline Offline

Posts: 3145



WWW
« Reply #435 on: September 09, 2011, 05:53:01 AM »

John has right. 1.64 is higher than 1.7

We as Dev Team prefer the 3 digits  e.g. 1.6.0, 1.6.1 .... 1.6.4 and so on. So the 1.7.0 is higher

Additional the Version become the status e.g. 1.6.4.beta and so on. The standard you can read as follows

http://php.net/manual/de/function.version-compare.php

So the function version_compare can be used in the script by every developer without problems.

Dietmar
Logged

We are human beings - and nobody is perfect at all.
BlackBird
AddOn Development
*
Offline Offline

Posts: 2068



WWW
« Reply #436 on: September 12, 2011, 10:29:03 AM »

It was WB that forced to omit the second dot, as versions until 2.8.1 could not handle this. It is nice to hear that 2.8.2 can handle two dots, but as this version of Droplets still works with 2.8.1, too, it was not possible to have version numbers like 1.6.4.

So, this problem was caused by WB, not the version handling of the module.
Logged

Alle großen Veränderungen beginnen im Kleinen
BlackBird
AddOn Development
*
Offline Offline

Posts: 2068



WWW
« Reply #437 on: September 12, 2011, 03:24:56 PM »

For those having problems upgrading the Droplets module to current version 1.7, I've changed the version number to 1.70.

http://www.websitebakers.com/pages/droplets/module-wb-2.8.2.php

No other changes.
Logged

Alle großen Veränderungen beginnen im Kleinen
dbs
WebsiteBaker Org e.V.

Offline Offline

Posts: 3714


WWW
« Reply #438 on: September 14, 2011, 02:20:47 PM »

hm, on 2.8.1 i saw a success-message after updating droplets from 1.61 to 1.70 ... but the module-version was not 1.70.
after change the version in info.php to 1.7.0 and install again it was really success.
Logged

dbs
WebsiteBaker Org e.V.

Offline Offline

Posts: 3714


WWW
« Reply #439 on: January 19, 2012, 05:55:53 PM »

funny:
wb 2.8.2 and droplets 1.70.
i would import droplet sectionpicker but i click instead module sectionpicker.
import was done.
result: many new droplets-entrys, most with a red flashing droplet-icon.

i thought its not possible to import a module, but it is.  smiley
« Last Edit: January 19, 2012, 05:57:49 PM by dbs » Logged

pcwacht
AddOn Development
*
Offline Offline

Posts: 2856



WWW
« Reply #440 on: January 19, 2012, 08:53:29 PM »

Hmmm.. there is no check on what users might do.

Best is to delete all the non-droplets - wich hardly should give problems.
But it is good to know it can be done Wink

John
Logged

http://www.ictwacht.nl = Dutch ICT info
http://www.pcwacht.nl = My first
both still work in progress, since years.....
BlackBird
AddOn Development
*
Offline Offline

Posts: 2068



WWW
« Reply #441 on: April 05, 2012, 11:06:47 AM »

I've just released v1.71, which includes some minor code changes from the 1.2.0 version which is part of WB 2.8.3.

Please note: You will have to check the "Overwrite newer Files" checkbox on the add-ons install page to make sure that all files are overwritten correctly. If you don't do this, you will end up with a bad mix of old and new files. (Which will cause problems!) But don't worry: If you forgot to do so, just install the module again with the checkbox marked. Just make sure that there's a version number < 1.71 in the info.php before doing this. (We really need a "force install on same version"-checkbox, don't we?)

http://www.websitebakers.com/pages/droplets/module-wb-2.8.2.php
Logged

Alle großen Veränderungen beginnen im Kleinen
dbs
WebsiteBaker Org e.V.

Offline Offline

Posts: 3714


WWW
« Reply #442 on: April 06, 2012, 06:00:25 PM »

Tested in last Rev.1660.
It is not possible to save, copy or edit a droplet. (Sicherheitsverletzu ng)
Tested with backend-install, ftp, upgrade and fresh install of module droplets.
Logged

instantflorian
Betatester
*
Offline Offline

Posts: 802



WWW
« Reply #443 on: April 06, 2012, 06:37:48 PM »

Yep,  it neither works in Rev. 1646 nor 1660. "Sicherheitsverletzu ng", no matter if Single Tab or MultiTab is selected Sad
Logged
jacobi22
Betatester
*
Offline Offline

Posts: 1369


WWW
« Reply #444 on: April 06, 2012, 07:23:59 PM »

i think,the problem is here with WB_VERSION

Code:
$id = $droplet['id'];
                if ( WB_VERSION >= "2.8.2" && WB_VERSION<>"2.8.x") {
                      $id = intval($admin->getIDKEY($droplet['id']));
                }

its works, if i use a bypass without WB_VERSION-Question like
Code:
$id = intval($admin->getIDKEY($droplet['id']));
Logged

LG Uwe

Wer sagt, Reichtum ist alles, hat nie ein Kind lächeln gesehen.
DarkViper
Development Team
*****
Offline Offline

Posts: 1252


« Reply #445 on: April 06, 2012, 08:31:10 PM »

i think,the problem is here with WB_VERSION

Code:
$id = $droplet['id'];
                if ( WB_VERSION >= "2.8.2" && WB_VERSION<>"2.8.x") {
                      $id = intval($admin->getIDKEY($droplet['id']));
                }

its works, if i use a bypass without WB_VERSION-Question like
Code:
$id = intval($admin->getIDKEY($droplet['id']));


You always will run in problems by checking Version numbers using normal Comparison Operators.
The only secure way to compare versions, is to use the php-function version_compare()

so it should work:
Code:
<?php

    $id 
$droplet['id'];
    if ( 
version_compare(WB_VERSION'2.8.2''>=') {
        
$id intval($admin->getIDKEY($droplet['id']));
    }

?>
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.

Offline Offline

Posts: 3714


WWW
« Reply #446 on: April 06, 2012, 08:46:05 PM »

Thx for the infos.
But there are some files to change, so i must wait for next version.  embarassed
Logged

BlackBird
AddOn Development
*
Offline Offline

Posts: 2068



WWW
« Reply #447 on: April 10, 2012, 10:05:06 AM »

its works, if i use a bypass without WB_VERSION-Question like
Code:
$id = intval($admin->getIDKEY($droplet['id']));

That code is for backward compatibility for versions < 2.8.2 (=without FTAN). So the "Fix" will only work for versions >= 2.8.2.

That code worked perfectly for 2.8.2, don't know what's wrong with it with 2.8.3...
Logged

Alle großen Veränderungen beginnen im Kleinen
BlackBird
AddOn Development
*
Offline Offline

Posts: 2068



WWW
« Reply #448 on: April 10, 2012, 10:17:36 AM »

Tried it on my WB2.8.3 installation, I don't have any problems??? Is that a "hotfix" issue???
Logged

Alle großen Veränderungen beginnen im Kleinen
dbs
WebsiteBaker Org e.V.

Offline Offline

Posts: 3714


WWW
« Reply #449 on: April 10, 2012, 10:36:53 AM »

yes, it seems after Rev.1646 (but not sure).
last Rev.1660 + Droplets 1.71 = problem.
Logged

Pages: 1 ... 16 17 [18] 19   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!