Forum: [edu.tw.o] Development

AulaWiki beyond Tiki 1.9


rlopez posts: 32 3 stars
Hi everyone,
This is Rober. I have been talking with some of you by email some weeks ago. The idea was to start to collaborate in the development of the AulaWiki Mod.

We would like to start but we don't know from where. J. Reyes mentioned in the last e-mail that the best way might be to move the discussion to this forum, and here we are.

We have already installed the Tiki 1.9 ( it's an amazing CMS! ) and we are having some problems with the database queries when we try to install the AulaWiki Mod. We are thinking that probably the AulaWiki Mod is not compatible with Tiki 1.9 ( Am I right? ).

Anyway, let be this topic the start point of the discussion.

We keep in contact.

Thanks!

Rober.


posts: 2 1 stars
Hi everyone! I'm Aldo and I'm the current developer with Roberto and other guy in improve new functions to AulaWiki.

Well, completing Roberto said above, I must to add that the problem was involving the field admin in any querie of the sql install. Any comment here?

So, we are thinking the problem could be that AulaWiki Mod ins't compatible with Tiki 1.9 (as Roberto said before, but in my humble opinion this mod is very old (2002) so I don't think so)

All the installation was done with TikiWiki using the Mod Tool.

Sorry if this questions are very noobs but we are in the starting point and some kind of help is welcome!

Thanks in advance!

Aldo


rlopez posts: 32 3 stars
I read here that the AulaWiki mod 1.6 had patched to work on Tiki 1.10! .
We should change to this version, but maybe it would be better to make AulaWiki full compatible with Tiki 2.x.

What do you think?


xavi posts: 138 5 stars
> I read here that the AulaWiki mod 1.6 had patched to work on Tiki 1.10! .
> We should change to this version, but maybe it would be better to make AulaWiki full compatible with Tiki 2.x.
>
> What do you think?

Hi Rober and Aldo:

Welcome! :-)

Yes, AulaWiki 1.6 was an attempt to make it (partially) adapted to Tiki 2.x. So the last version known to work with Tiki 1.9.x is AulaWiki version 1.5.
This version can be downloaded from here:
features-aulawiki-1.5.tgz (attachment to the ToDo page)

Of course, the best solution would be to adapt AulaWiki to work with tiki 2.x, at least, taking into account that in April '09 Tiki 3.0 will be released, etc.


rlopez posts: 32 3 stars
> Yes, AulaWiki 1.6 was an attempt to make it (partially) adapted to Tiki 2.x. So the last version known to work with Tiki 1.9.x is AulaWiki version 1.5.
> This version can be downloaded from here:
> features-aulawiki-1.5.tgz (attachment to the ToDo page)
>
> Of course, the best solution would be to adapt AulaWiki to work with tiki 2.x, at least, taking into account that in April '09 Tiki 3.0 will be released, etc.

Xavi, thanks for the link to AulaWiki version 1.5.

Of course, I agree the best way is to go with AulaWiki into tiki 2.x. In my team we are 3 who want to help in this task. I don't know whether there are some guidelines to do this update. We are getting familiar with the code now (there are a lot of lines! eek), so it would be great (for us) to have a step-by-step ToDo list to collaborate in this update.

Another question is: do you have an svn/cvs server for the development of AulaWiki? I guess you have it, but I don't remember to have read about it in this web page.

Anyway, we want to collaborate in this project. We will wait for some instructions from the developers, and in the meantime we will test tiki 1.9 with AulaWIki 1.5.


xavi posts: 138 5 stars
Mmmm, the best place to request for help from coders/developers, is either the tikiwiki-devel list in sourceforge.net:
http://sf.net/mail/?group_id=64258

or irc:
http://tikiwiki.org/ConnectingToIrc

However, as far as I know, jreyes is not subscribed to that list nor frequent on irc, due to lack of time.
I hope you can get some feedback from other coders to let you get hands on aulawiki code...
Go there and ask, I would say...


xavi posts: 138 5 stars
Hi Roberto and all:

Some comments received through tikiwiki-devel list on November 8th:
http://sourceforge.net/mailarchive/forum.php?thread_name=4914CD1A.4000508%40ub.edu&forum_name=tikiwiki-devel

(I'll will not be cross posting comments here and there, but this is just to encourage at least one of you to join the tikiwiki-devel list, if you haven't done so yet. :-)
http://sf.net/mail/?group_id=64258

Xavi

Quote:
Great! But it will have to be for 3.x. Because it's a large effort, I would
suggest to go for an experimental branch.

--
LP (Louis-Philippe)

Quote:
Hi Xavi

That is really good news. I was hoping to use this feature in the near
future. Please make sure they have my e-mail, I can help with testing
and documentation.

Good stuff!

Matthew - matbic at gmail.com

Quote:
Hi Xavi!

woooohoooooo! This is amazing news.

About 2.x vs 3.x
-------

Workspaces should be a core feature and it can't, IMNSHO,
realistically thrive as mods. It has to be tightly integrated. It has
to be used by many members of the community and on *.tw.o itself. Of
course, there should be a way to adapt the 1.9x mods to 2.0 and to get
it to work. However, I feel it will be fragile at best. Then, the work
would have to be done again for 3.0

Having an "external" feature like gradebooks can work in mods, but not
something like workspaces, which affects many features (modules, wiki,
forums, file galleries, calendar, etc)

And Tiki has evolved since the original workspace. For example, it's
now possible to have groups where people self-join.
There are also profiles.tikiwiki.org which could potentially help to
setup workspaces.
There are more & more permissions about being allowed to set
permissions to objects.

I suggest we coordinate efforts here:
http://dev.tikiwiki.org/Workspace

If you are serious about this, I am ready to come a week in Spain to
work on this in a TikiFest?.

This, with E-commerce is among the last major features to be added.
Workspaces will help with:
http://dev.tikiwiki.org/Social+Networking
http://dev.tikiwiki.org/Project+Management
http://dev.tikiwiki.org/Customer+Relationship+Management

Best regards,

Marc Laporte ;-)

Quote:
Would love someone to explain the Workspaces thing to me some day. Some
of the Aula stuff looked interesting but I'm not sure I understood most
of it. Back around 1.10 I was looking through the documentation but
still couldn't really grasp the big picture. I believe it has
applications outside of education, but not sure at this point.

If I make it up to Montreal maybe someone can draw something out for
me...I tend to understand visual stuff better.

Thanks!

Mike.

Quote:
Yes I would be very willing to come to Spain as well to have a focused
TikiFest on this :)

Is there anyone else who would consider going to help on this project
but is having problems with travel let me know.

Matthew



rlopez posts: 32 3 stars
Ok,
We did it last week, I mean the subscription to the devel-email-list.
So, as far as I understood we should start to adapt AulaWiki directly for the 3.x versions.


Isma, Ben, could you please subscribe to the email list for TikiWiki developers?. We will follow the Xavi's thread to ask for help.

The first thing we should do it's to discover how to download the latest version of aulawiki from the official svn/cvs server, I think. It would be great to contact with Javier Reyes as well. We should work all together.


Xavi, one question: is it better to continue with this discussion in the devel list than in this forum?


xavi posts: 138 5 stars

> The first thing we should do it's to discover how to download the latest version of aulawiki from the official svn/cvs server, I think. It would be great to contact with Javier Reyes as well. We should work all together.

I agree

> Xavi, one question: is it better to continue with this discussion in the devel list than in this forum?
In tikiwiki-devel you'll more support than in this forum, so I would suggest you to ask for coding advice there.

However, we shouldn't forget to update the information on edu.tw.o (through the homepage or forum) so that new potential users or developers (like it happened to you in the last weeks/months) can know the current state of the art, work in progress, etc.



posts: 25 3 stars
Ok,
I am trying aulawiki 1.6 on TikiWiki 2.2

first problem I see is the sql in the info file misses one field which I had to add

< INSERT INTO tiki_menus VALUES (100,'Workspace menu','Sample workspace menu','d');

> INSERT INTO tiki_menus VALUES (100,'Workspace menu','Sample workspace menu','d','');


Second problem, when adding a new workspace_type in tiki-workspaces_types.php
I get an error like 'field may not be empty $_POST id
Went through the code, and in tiki-setup_base.php it seems that now fileds named 'id' may not be empty. So I suppose all auto_increment fields may not be named id.
The solution is to change the column named 'id' in the table tiki_workspace_types to wstypeId and use this all over. I hadn't time to do it, so I momentarily changed
tiki-setup_base.php here:

:// parameter type definitions. prepend a + if variable may not be empty, e.g. '+int'
/* $vartype'id' = '+int';*/
$vartype'id' = 'int';

as a field name without the + can be submitted empty, as I understood.

For the rest I am going on with my test site now. I'll post here whatever I find. Unfortunately I have no time to do more now. I am not too much interested in layout or cosmetic problems at the moment, I'd like the module to work in its basic functions.



posts: 25 3 stars
continuing with aulawiki 1.6 over TikiWiki 2.2, as I don't know how aulawiki works,
I decided to try the example in the tutorial, creating an OFIMA01 course with the workpsaces types that come already defined in aulawiki 1.6

i get an error message on creating this OFIMA01 corse, that says something like:

An error occured in a database query!
File tiki-workspaces_admin.php
Column 'name' cannot be null
Built query was probably:
insert into `tiki_file_galleries`(`name`, `description`,.........) values (NULL,....

After this, I noticed that the workspace was created, with the Home wiki page and the Blog, but no filegall nor imagegall nor course forum. Probably the error blocked everything after a certain point.
So I went through the code, in resourceslib.php, and saw that it calls the function replace_file_gallery (which manages both insert & update) in /lib/filegals/filegallib.php, which now wants an array passed, not multiple values, as it did in TikiWiki 1.9
eg:
replace_file_gallary($name,...) in tw 1.9
now has to be:
replace_file_gallery($arrname,...

HTH



posts: 25 3 stars
Always on Aulawiki 1.6 on TikiWiki 2.2...

So to go on with the tutorial example, I decided to eliminate the OFIMA01 workspace, redefine the workspace_type of Course without a file gallery, and recreate the OFIMA01 Course type workspace that has not a file gallery, and see if any other problem appears without this.

On tryng to eliminate the OFIMA01 workspace I get another error, like:

Sea Surfing (CSRF) detected. Operation blocked.

As I have only one browser window open, and no one else is doing updates (I work on a local apache/mysql),
I cleared the cache but no use.
So I had to go into:
tiki-admin.php?page=login

and unmark :
Protect against CSRF with a ticket

After this I could go on with this test and delete the OFIMA01 Workspace

So there definetly something wrong with this ticketing...

After recreating the OFIMA01 Workspace without a File Gallery resource in its workspace definition type, I coud successfully create the workspace's Home, Blog, Images Gall and Forum
Aside I also tested a normal filegall creation from tiki-list_file_gallery.php and is OK.

So the problem seems to be only in the the way filegallery creation is called by resourceslib.php of aulawiki 1.6

HTH



posts: 25 3 stars
Last but not least, after having redefined the workspace type COURSE without a file gallery, I could finally test the whole example, but when entering either as student or teacher I got an error in the workspace zone like:

Errore: Questa funzione �disabilitata: feature_wiki
(translated means 'this function is disabled: feature_wiki')

everything was shown up except the wiki page resource for the corse / group
so went into the code, and found with the help of the changelog, that now to test a feature you must do something like:

if($prefs "feature_wiki" != 'y')
(sorry no square brackets shown, they can'ty be seen in wiki)

instead of:
if($feature_wiki != 'y')

so I corrected modules/mod-workspaces_viewpage.php and now everything out of the 1.6 example seems to work with TikiWiki 2.2



posts: 25 3 stars
To summarize what I've found to make it work:

1) in Packages/features-aulawiki.info.txt replace all over:

< INSERT INTO tiki_menus VALUES (100,'Workspace menu','Sample workspace menu','d');
> INSERT INTO tiki_menus VALUES (100,'Workspace menu','Sample workspace menu','d','');

2) in Packages/features-aulawiki.info.txt replace all over:

< CREATE TABLE `tiki_workspace_types` (`id` int(14) NOT NULL auto_increment,
> CREATE TABLE `tiki_workspace_types` (`wstypeId` int(14) NOT NULL auto_increment

and use 'wstypeId instead of 'id' as field name all over the code.

temporary bypass, in tiki-setup_base.php:
< /* $vartype'id' = '+int';*/
> $vartype'id' = 'int';

3) in lib/workspaces/resourceslib.php, function create_filegallery, correct line 573 where it says:

$galId = $filegallib->replace_file_gallery($galId, $name, $desc, "admin", 15, .....

to pass parameters the way function replace_file_gallery in /lib/filegals/filegallib.php wants now (an associative array)

No Bypass. Meanwhile do not define file-galleries resources cause they block creation of any furter ws resource

4) go to tiki-admin.php?page=login
and unmark :
Protect against CSRF with a ticket

because ticketing has to be fixed

5) modules/mod-workspaces_viewpage.php :

< if($feature_wiki != 'y') {
> if($prefs["feature_wiki"] != 'y') {
to see in the ws desktop any workspace resource of type wiki page

HTH

P.S Feedback? Wonder if this the right place to post this stuff...


xavi posts: 138 5 stars
> To summarize what I've found to make it work:
>
> 1) in Packages/features-aulawiki.info.txt replace all over:
>
> < INSERT INTO tiki_menus VALUES (100,'Workspace menu','Sample workspace menu','d');
> > INSERT INTO tiki_menus VALUES (100,'Workspace menu','Sample workspace menu','d','');
>
> 2) in Packages/features-aulawiki.info.txt replace all over:
>
> < CREATE TABLE `tiki_workspace_types` (`id` int(14) NOT NULL auto_increment,
> > CREATE TABLE `tiki_workspace_types` (`wstypeId` int(14) NOT NULL auto_increment
>
> and use 'wstypeId instead of 'id' as field name all over the code.
>
> temporary bypass, in tiki-setup_base.php:
> < /* $vartype'id' = '+int';*/
> > $vartype'id' = 'int';
>
> 3) in lib/workspaces/resourceslib.php, function create_filegallery, correct line 573 where it says:
>
> $galId = $filegallib->replace_file_gallery($galId, $name, $desc, "admin", 15, .....
>
> to pass parameters the way function replace_file_gallery in /lib/filegals/filegallib.php wants now (an associative array)
>
> No Bypass. Meanwhile do not define file-galleries resources cause they block creation of any furter ws resource
>
> 4) go to tiki-admin.php?page=login
> and unmark :
> Protect against CSRF with a ticket
>
> because ticketing has to be fixed
>
> 5) modules/mod-workspaces_viewpage.php :
>
> < if($feature_wiki != 'y') {
> > > if($prefs["feature_wiki"] != 'y') { >
> to see in the ws desktop any workspace resource of type wiki page
>
> HTH
>
> P.S Feedback? Wonder if this the right place to post this stuff...

Hi pingus, sorry for taking so long to answer.

Yes this is the right place to post this stuff related to the development of aulawiki mod for tikiwiki.
However, there are not many tiki developers monitoring this forum. And I'm not a coder myself. I would say, why don't you get a developer account and if these changes work for you, why don't you commit those improvements on to the latest version on aulawiki mod in trunk?

The other coders working on aulawiki mod seem to be busy these days on other things... but for sure, you can all cooperate using subversion - svn (that's what is svn for :-)

See http://dev.tikiwiki.org for how to get commit access.

Cheers and thanks for your work! :-)

Xavi

P.S: I wish I can start using Aulawiki and their workspaces for Tiki 2.x again in the near future!



The original document is available at http://edutiki.ourproject.org/tiki-view_forum_thread.php?comments_parentId=220&forumId=1