11
Bleekk
Re: TDMCreate 1.91 alpha 1 for Testing
  • 2014/7/4 14:59

  • Bleekk

  • Theme Designer

  • Posts: 941

  • Since: 2002/12/14


heyula is right, please use more smarties and less harcoded things

12
timgno
Re: TDMCreate 1.91 alpha 1 for Testing
  • 2014/7/6 11:18

  • timgno

  • Module Developer

  • Posts: 1504

  • Since: 2007/6/21


@heyula

I don't understand how you have this code ... smarty!

I continually test everything.

Pleace, download again...!

The only problem I have now is that with the test with sahi, shows a negligible error in practice ahead because the paths of the images are not exact although, in reality are fine when I upload external images in uploads/moduleName/images

Could you show us how to enter the data in Tables?

Thank you!

13
heyula
Re: TDMCreate 1.91 alpha 1 for Testing
  • 2014/7/6 11:39

  • heyula

  • Theme Designer

  • Posts: 596

  • Since: 2008/4/24


@timgno
TDMCreate 1.91 Alpha 1 Error

Errors
Notice: Undefined index: mod_image in file /modules/TDMCreate/admin/modules.php line 141
Warning: opendir() [function.opendir]: Unable to access /uploads/TDMCreate/images/repository in file /class/xoopslists.php line 159
Warning: opendir(/uploads/TDMCreate/images/repository) [function.opendir]: failed to open dir: No such file or directory in file /class/xoopslists.php line 159

14
timgno
Re: TDMCreate 1.91 alpha 1 for Testing
  • 2014/7/7 9:11

  • timgno

  • Module Developer

  • Posts: 1504

  • Since: 2007/6/21


You can download it again from github

Before you re-install it, clear the cache

15
timgno
Re: TDMCreate 1.91 alpha 1 for Testing
  • 2014/7/10 19:54

  • timgno

  • Module Developer

  • Posts: 1504

  • Since: 2007/6/21


Released, alpha 1.

Now we could go to alpha 2 if not you have found issues.

You tell me something?

16
goffy
Re: TDMCreate 1.91 alpha 1 for Testing
  • 2014/7/13 15:23

  • goffy

  • Just can't stay away

  • Posts: 543

  • Since: 2010/12/27


Hi timgno

The results of my tests:

tdmcreate 1.91
downloaded from github, 12.07.2014 11:50
Xoops 2.5.7.

1) some outputs from testing are still active

2) if you create a new table, you will be redirected automatically to field editing. In all dropdowns (type, attributes,...) you have preselected "1"

3) you create a new table and define 4 fields for this table. if yo later change the number of fields (e.g. you say now 5), you get only 4 fields in editing mode of table fields

4) if you are in the field list of a table, there is in column "action" a blue double-headed arrow without function or link. should there be one?

5) if you are in the field list of a table, there is in column "id" a black four-headed arrow without function or link. should there be one?

6) after the first table I created a second one. after submit and redirect to field editing I see in the head the testing output: string(3) "257" string(1) "2" string(1) "4" string(2) "mb"
if I look in database in table tdmcreate_tables, I see in field "table_mid" the value 257
my new table is not available in table overview of my new module.
if I change value in table_mid to 1 (the id of my new module) the new table appears in table overview.
if table tdmcreate_fields in column "field_mid" you find also 257, but it seems that this has no consequences

7) editing fields: what does checkbox "Field: Is parent" mean/cause?

8) creating table: what does checkbox "Permissions for this table" mean/cause?

9) missing language var "_AM_TDMCREATE_MODULE_NBFIELDS"

10) you can select "Table: Main Field" for each field

11) shown protocol after click on building the module says: all action worked fine

12) creation of file mysql.sql doesn't work
example of created sql string:
CREATE TABLE `ggteam_groups` (
`grp_id` 2(8) 3 2 AUTO_INCREMENT,
`grp_name` 14(100) 3 2 DEFAULT '',
`grp_textarea` 14(100) 3 3 DEFAULT '',
`grp_text2` 14(100) 3 3 DEFAULT '',
PRIMARY KEY (`grp_id`)
) ENGINE=MyISAM;

13) I corrected mysql.sql and tried to install my new module and got following error:
Error : Smarty error: [in db:ggteam_admin_groups.tpl line 19]: syntax error: unrecognized tag: $list. (Smarty_Compiler.class.php, line 446)

14) in the class files for the tables there is no initVar (e.g. $this->initVar('field_id', XOBJ_DTYPE_INT)) in the function public function __construct()
in TDMCreate\class\files\classes\classes.php in function private function getInitVars($fields) the switch looks for e.g. "INT", but in table tdmcreate_fields you find in the field "field_type" the value 2 (instead of INT)



let me know, if you have fixed this than I retest it

17
timgno
Re: TDMCreate 1.91 alpha 1 for Testing
  • 2014/8/2 17:21

  • timgno

  • Module Developer

  • Posts: 1504

  • Since: 2007/6/21


Many submissions have been made in the svn

Please download again

18
goffy
Re: TDMCreate 1.91 alpha 1 for Testing
  • 2014/8/3 9:55

  • goffy

  • Just can't stay away

  • Posts: 543

  • Since: 2010/12/27


hi timgno

i'll test in the next days

can you tell me:
Quote:
editing fields: what does checkbox "Field: Is parent" mean/cause?

creating table: what does checkbox "Permissions for this table" mean/cause?

19
timgno
Re: TDMCreate 1.91 alpha 1 for Testing
  • 2014/8/4 12:20

  • timgno

  • Module Developer

  • Posts: 1504

  • Since: 2007/6/21


I remind you that it's always an alpha version!

Anyway...!

Field: Is parent, used for tables categories or topics in case you want to create a kind of code for this decree, unlike the code of any table that has a field as the topics or categories.

I'll give you an example:

If you create a table categories or topics, you create code to the form is hidden, even if there are no categories or topics first.

For other tables instead creates another code for the categories or topics field in the form.

We take as a prototype topics table from the news module:
CREATE TABLE topics (
  
topic_id smallint(4unsigned NOT NULL auto_increment,
  
topic_pid smallint(4unsigned NOT NULL default '0',
  ...


and the stories table to the same mdule:
CREATE TABLE stories (
  
storyid int(8unsigned NOT NULL auto_increment,
  ...
  
topicid smallint(4unsigned NOT NULL default '1',
  ...


as you can see there is a field topic_pid by clicking on the checkbox field: Is parent and then click the Table: Categories or Table: Topics,

As you can see, the Field: is parent, just serves to identify a parent filed.

See that there is a field topic_pid by clicking on the checkbox and then click the item, you create parent id for the table type categories or topics.

In the other tables, it is the same process.

The difference between the code tables categories or topics, is determined by the radiobutton Is Category? present during the creation of the category or topic in the form of tables.

Of course I said, Categories or Topics for reference only, you can use any name for the type of category or topic.

Warning: this is a test for me that you should do, there may be errors while compiling the module or during the test of your new module.

For this reason, I encourage you to report any kind of error or warning you encounter.

Thank you!

20
goffy
Re: TDMCreate 1.91 alpha 1 for Testing
  • 2014/8/4 15:20

  • goffy

  • Just can't stay away

  • Posts: 543

  • Since: 2010/12/27


Hi timgno

Thank you for explanation.

I made already first retests, here are the results:
refering to my post #16:
point 2: solved
point 3: not solved
point 4 and 5: solved
point 6: not solved
point 7 to 9: solved
point 10: not solved
point 12: solved

Installing new module works


let me know, if I can test again
goffy

ps:
if you are on tab "tables", than select a module and click than on "Edit fields" for a specific table, you do not get the field edit mode.
The url where the redirect is going to: admin/fields.php?op=edit&field_tid=1
if you are on tab "fields" and click than on "Edit fields" for a specific table, you get the field edit mode.
The url where the redirect is going to: admin/fields.php?op=edit&field_mid=1&field_tid=1

Login

Who's Online

269 user(s) are online (109 user(s) are browsing Support Forums)


Members: 0


Guests: 269


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits