Hi All,
The next version of OG Panels is under development and ready for test now, attached are 2 patches against the OG Panels 6.x-2.0 version. The first patch will add database changes to og_panels.install, the second patch will make new code change on og_panels.module.
Before releasing the next version of, a thorough testing round is needed. Everyone is welcome to test these 2 patches and together we can make this module better and more powerful.
Here are a list of new changes in these 2 patches:
og_panels.install
1. add drupal_flush_all_caches on hook_enable
2. add new database field use_template and template_did in og_panels table to store og panels template data
add new database table og_panels_templates to store og panels template data
og_panels.module
1. give user a hint of current group context
2. add new menu items for og panels templates
3. add new permission for og panels templates
4. change og_panels_form to integrate og panels template settings
5. create new forms for og panels listing and editing
To start testing, apply the 2 patches attached by running patch -p0 < og_panels_next_version_install.patch and patch -p0 < og_panels_next_version.patch and then run update.php, update to number 6003.
Best Regards,
Jim
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | og_panels.install.rej_.txt | 852 bytes | drupalusering |
| #13 | og_panels.module.rej_.txt | 13.02 KB | drupalusering |
| #11 | og_panels.module.rej_.txt | 12.98 KB | jthomasbailey |
| #11 | og_panels.install.rej_.txt | 822 bytes | jthomasbailey |
| og_panels_next_version.patch | 25.15 KB | jimthunderbird |
Comments
Comment #1
sdboyer commentedthis looks a lot like blueprints, which in retrospect I really probably should have ported to D6...it was silly to not provide that functionality in the immediate term just because I had a crazy long-term scheme to provide it more generally. So I'm glad to see development in this direction.
I do have to mention, though, that the naming is a problem. "Templates" is the first word that I considered using for blueprints, but ultimately rejected because the namespace has clearly been staked out by the theme system. I then used 'collections' for a while, but that didn't actually encompass the basic pattern very well. So I ultimately settled on 'blueprints.' Given that I'm gonna leave that project as just D5, and I really wanted it integrated into og_panels in the first place, though, if you want to use that namespace (and/or any of the code in there, though I now know it to be very primitive OO work), I'd be very +1 to that.
...and, if I ever do write that holy grail that is a fully abstracted blueprints system, we can integrate it then.
Comment #2
jimthunderbird commentedHi Sam,
Thank you very much for the review. I will take a look at the code at blueprint and see if I can use some of the code there. If "Blueprint" is a better word for "Template", I will make all the wording and description "Blueprint" related.
Best Regards,
Jim
Comment #3
jthomasbailey commentedgot some errors:
and
Comment #4
jimthunderbird commentedHi hobgobbler,
Did you patch against og-panels 6.x-2.0 and what OS are you running?
Best Regards,
Jim
Comment #5
jthomasbailey commentedog-panels 6.x-2.0, OSX 10.6.3 (Snow Leopard).
I'm not positive but I probably did it with "patch -p0 <"
I'm getting
errors.
Comment #6
jimthunderbird commentedHi hobgobbler,
Could you try the following?
"To start testing, apply the 2 patches attached by running patch -p0 < og_panels_next_version_install.patch and patch -p0 < og_panels_next_version.patch and then run update.php, update to number 6003"
Best Regards,
Jim
Comment #7
jthomasbailey commentedSame errors when patching, I tried it with the Dev and with the regular release just in case.
Got these when updating:
and
Comment #8
jimthunderbird commentedHi,
I guess what happened is somehow you have already got use_template and template_did field in the database. Could you first drop those fields in database, then run update.php again?
Best Regards,
Jim
Comment #9
jthomasbailey commentedI dropped those tables and updated to 6003 again:
and
There's something wrong with the patches, that's what's causing it.
Comment #10
jimthunderbird commentedHi,
Do you still have og_panels_templates table in the database? If you still have that table, it will fail when trying to create it. So remove that table and try again see if it works.
Best Regards,
JiIm
Comment #11
jthomasbailey commentedI dropped them like you said, and when I updated it put them back. I'll upload the patch rejects, maybe that will tell you something.
Comment #12
amitaibuRelated to the issue (the future of og_panels), but not to the patches -- #837064: Re-implement UI with custom changes (e.g. og_panels)
Comment #13
drupalusering commentedInstalled 6.x-2.0
checked db - no tables exist for og_panels
downloaded patches
executed following for the first patch
>> patch -p0 < og_panels_next_version_install.patch
>> patching file og_panels.install
>> Hunk #3 FAILED at 105.
>> Hunk #4 succeeded at 209 with fuzz 2 (offset -21 lines).
>> 1 out of 4 hunks FAILED -- saving rejects to file og_panels.install.rej
executed second patch
>>patch -p0 < og_panels_next_version.patch
>>patching file og_panels.module
>>Hunk #11 FAILED at 1131.
>>1 out of 11 hunks FAILED -- saving rejects to file og_panels.module.rej
went to update database
6003 became available for og_panels
executed it
>> * warning: Invalid argument supplied for foreach() in /path_to/database.mysql-common.inc on line 78.
>> * user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') /*!40100 DEFAULT CHARACTER SET utf8 */' at line 2 query: CREATE TABLE ogroups_og_panels_templates ) /*!40100 DEFAULT CHARACTER SET utf8 */ in /path_to/database.inc on line 551.
Comment #14
drupalusering commentedcould you please possibly provide a zip file of working patched module for download?
Comment #15
drupalusering commentedSolution in pdf [comment #20] tells how to create a variant with latest version 2.0 that will be set as default for og_panels http://drupal.org/node/553456
Comment #16
jason.fisher commentedThe issue should remain open. Is anyone successfully testing this?
Comment #17
jason.fisher commentedFYI I believe hobgobbler was testing with PHP 5.3.
Comment #18
jthomasbailey commentedI can't remember for sure if I was using 5.3 but it's very possible. I didn't know there were problems with it until recently.
Comment #19
dawehnerUpdate status
Comment #20
dawehnerUpdate status