Aug 19, 2017 05:27 amTopic id: 01131

miltonmaria community tb must not be default should be created on versions

On the at this moment the community tb is default but is only one.

Making not default but as the grades linked to a version would allow to store the community data of different times, just like the grades

So we do this transition first on the

Aug 19, 2017 05:28 amReply: 1

First let's remove the community tb, is should not be there, at the beginning

Aug 19, 2017 12:28 pmReply: 2

It throws an error in the header as expected.

I plan to handle to handle it but better not. It notices there the community table is misssing

Aug 19, 2017 12:30 pmReply: 3

I created a community_tb tag in the xml config file

Aug 19, 2017 13:10 pmReply: 4

Now when configurating the script, it not only creates the grades table but also the respective community tb.

The next is the script loads the right community tb name from the xml config file

Aug 19, 2017 16:51 pmReply: 5

Now in the colegio2 folder the script displays correctly in configuration the community tb

Also saves the community tb on the xml file and recognizes in the header

Remains to check the add and del of codes, and the school lib

Aug 20, 2017 04:45 amReply: 6

NOw it adds code(s) and delete them. Also check code(s)

That should be all with the SetUp Lib

Remains to be updated the School Lib

Aug 20, 2017 07:33 amReply: 7

Well seems the update for the School Lib regarding the community tb is brief.

However this is in the Colegio 2 folder where a testing could not be carried out (There are no grades over there is a demo for Prinicipals try outs?)

So such update should be tested in the Colegio 1 demo folder

Since an error or malfuction might occur here is the rollbacK:

First to use the codes on the subfolder v1
and second to rename the community table to communnity

Right now this seems easy, but once the test runs there might be stress and things might not be so clear.

Those lines are just for safety, the update should go just fine.

By the way I will save screen shots of the grades from the professors view and from students view just to be sure and compare

Do not forget to put a round of grades as part of the test and check how it goes.

This should go just fine.

Aug 20, 2017 07:52 amReply: 8

Well the setup lib was again updated regarding the community tb change.

Now it allows to manually add users and delete users

It should allow to browse through community but that only can be tested now on the demo colegio1

Aug 21, 2017 01:26 amReply: 9

Well, let's do the test on Colegio1 demo

1)Rename of the community tb
2)UPdate of xml config file
3)UPload of scripts.js setup.php school.php

Aug 21, 2017 01:37 amReply: 10

Now both demos have the same updated files!

Aug 21, 2017 01:39 amReply: 11

The next step is to put at least a new round of grades with these updated files

Aug 21, 2017 01:51 amReply: 12

A new round of grades was put and everything went just fine,

Including the cases of the absent and new student, there the updating of their grades went just fine!

Aug 21, 2017 01:55 amReply: 13

Checking grades as student is ok too!

Aug 21, 2017 04:24 amReply: 14

Some styling adjust in demo Colegio1, remains to be updated on demo Colegio 2

Those changed include style2.css index.php and usersession.php

Aug 21, 2017 04:47 amReply: 15

Done through the cp. Both demo folders are updated regarding the style update