Giter Site home page Giter Site logo

txmodxoops / tdmcreate Goto Github PK

View Code? Open in Web Editor NEW
4.0 7.0 13.0 4.5 MB

tdmcreate-1.91

Home Page: https://xoops.org/modules/repository/

License: GNU General Public License v3.0

HTML 0.36% CSS 0.43% JavaScript 0.35% PHP 92.14% Smarty 5.58% Hack 0.01% TSQL 1.14%

tdmcreate's Issues

Missing generic font name

Font property font-family does not have generic default at line 40:

font-family: Verdana, Tahoma;

Please change by adding: "sans-serif"

font-family: Verdana, Tahoma, sans-serif;

Bugs

I just tried to generate a module with the latest version from GitHub, but got bunch of errors (see below).

One of the issues was that TDMCreate generated this line in /admin/index.php:

include header .'/.php';

( ! ) Notice: Use of undefined constant header - assumed 'header' in C:\wamp64\www\257tdmc191\modules\zumba5\admin\index.php on line 22
Call Stack

Time Memory Function Location

1 0.0004 275528 {main}( ) ...\index.php:0

( ! ) Warning: include(header/.php): failed to open stream: No such file or directory in C:\wamp64\www\257tdmc191\modules\zumba5\admin\index.php on line 22
Call Stack

Time Memory Function Location

1 0.0004 275528 {main}( ) ...\index.php:0

( ! ) Warning: include(): Failed opening 'header/.php' for inclusion (include_path='.;c:\php\includes;C:\wamp64\www\zend1\library\Zend;C:\wamp64\www\symfony1\lib;C:\wamp64\www\symfony1\data\bin') in C:\wamp64\www\257tdmc191\modules\zumba5\admin\index.php on line 22
Call Stack

Time Memory Function Location

1 0.0004 275528 {main}( ) ...\index.php:0

( ! ) Notice: Undefined variable: topicsHandler in C:\wamp64\www\257tdmc191\modules\zumba5\admin\index.php on line 25
Call Stack

Time Memory Function Location

1 0.0004 275528 {main}( ) ...\index.php:0

( ! ) Fatal error: Call to a member function getCount() on null in C:\wamp64\www\257tdmc191\modules\zumba5\admin\index.php on line 25
Call Stack

Time Memory Function Location

1 0.0004 275528 {main}( ) ...\index.php:0

Wrong link to forum support

Wrong link to forum support

tdmcreate/templates/admin/tdmcreate_footer.tpl
line 6

replace:

<a href='http://xoops.org/forums/newbb' title='Visit Support Forum' class='tooltip' rel='external'>Support Forum</a></div>

with:

<a href='http://xoops.org/modules/newbb/' title='Visit Support Forum' class='tooltip' rel='external'>Support Forum</a></div>

Thanks! :-)

editorHandler in xoops_version.php

image

// Editor Array xoops_load('xoopseditorhandler'); editorHandler = XoopsEditorHandler::getInstance();

The '$' is missing for 'editorHandler'

Module tab patient not editable

Using TDMCreate I create a module name eclinic. Everything created and installed fine without error. eclinic a simple module with 4 fields. I can add new record. I added 3 records, but when I try to edit a record. It shows the add new record.

wrong code generated for class

image

During code generation, the value of $ucfTableFieldname is missing here:
public function get{$ucfTableFieldname}FromId(${$tableFieldname}Id)

so you're getting this:

image

Also, please replace intval() with (int)

Use XoopsRequest

Instead of:

$id = isset($_GET['id']) ? (int) ($_GET['id']) : 0;

let's use:

$id = XoopsRequest::getInt('id', 0, 'GET');

Errors when attempting to build a module

I very much appreciate your efforts to develop this module, but as we've talked about it before, you need to improve your testing.
Have you installed it as a new module and tested it? It's possible that it was working on your installation that you had, but it's important that you install it fresh on another XOOPS installation and test it there.
And think "Codeception" :)

image

include/common.php

Hi

an example of a module I created with tdmcreate:
`if (!defined('WGXPIWIK_MODULE_PATH')) {
define('XOOPS_ICONS32_PATH', XOOPS_ROOT_PATH . '/Frameworks/moduleclasses/icons/32');
define('XOOPS_ICONS32_URL', XOOPS_URL . '/Frameworks/moduleclasses/icons/32');
define('WGXPIWIK_DIRNAME', 'wgxpiwik');
define('WGXPIWIK_PATH', XOOPS_ROOT_PATH.'/modules/'.WGXPIWIK_DIRNAME);
define('WGXPIWIK_URL', XOOPS_URL.'/modules/'.WGXPIWIK_DIRNAME);
define('WGXPIWIK_ICONS_PATH', WGXPIWIK_PATH.'/assets/icons');
define('WGXPIWIK_ICONS_URL', WGXPIWIK_URL.'/assets/icons');
define('WGXPIWIK_IMAGE_PATH', WGXPIWIK_PATH.'/assets/images');
define('WGXPIWIK_IMAGE_URL', WGXPIWIK_URL.'/assets/images');
define('WGXPIWIK_UPLOAD_PATH', XOOPS_UPLOAD_PATH.'/'.WGXPIWIK_DIRNAME);
define('WGXPIWIK_UPLOAD_URL', XOOPS_UPLOAD_URL.'/'.WGXPIWIK_DIRNAME);
define('WGXPIWIK_ADMIN', WGXPIWIK_URL . '/admin/index.php');
$local_logo = WGXPIWIK_IMAGE_URL . '/wedega.png';
define('WGXPIWIK_PIWIK_CONFIG_INI', WGXPIWIK_PATH.'/piwik/config/config.ini.php');

}`

now two questions:

  1. WGXPIWIK_MODULE_PATH will not be define within the if-condition, so this if-block will always be executed
    a) we can remove the condition, or
    b) we use in the condition a defined var (eg. WGXPIWIK_PATH instead of WGXPIWIK_MODULE_PATH

  2. if you have more than one module created by tdmcreate, you get the notice "Constant XOOPS_ICONS32_PATH already defined....
    we should use
    if (!defined('XOOPS_ICONS32_PATH')) define('XOOPS_ICONS32_PATH', XOOPS_ROOT_PATH . '/Frameworks/moduleclasses/icons/32'); if (!defined('XOOPS_ICONS32_URL')) define('XOOPS_ICONS32_URL', XOOPS_URL . '/Frameworks/moduleclasses/icons/32');

print.php

tdmcreate creates a print.php on module level. If you look into the code you can see
`// Verify that the article is published

$testtables = $1->get($ttId);

// Verify permissions`

can someone tell me what should be there instead of '1'

Single quotes

Let's use single and double quotes when appropriate. If we’re not evaluating anything in the string, let's use single quotes.
So this:
image

will become this:

image

I'll have to do the same in other modules, as in the past I didn't pay attention to it.

delete code in admin pages

when creating the php code of admin pages function getXoopsCodeCaseDelete is used instead of function getAdminPhpCodeDelete

getXoopsCodeCaseDelete has errors inside
getAdminPhpCodeDelete has no errors

Wrong links to spinner.gif

in /tdmcreate/admin/modules.php

you have a wrong link to the spinner.gif image resulting in this:

image

You need to change from this:

//        $GLOBALS['xoopsTpl']->assign('sysPathIcon32', $sysPathIcon32);

to this:

$GLOBALS['xoopsTpl']->assign('modPathIcon16', TDMC_URL.'/'.$modPathIcon16);

getConfig() error

Hi,
I have created one table as category and one is standard.
With the category everything works fine. When I try to create a item in the second table i get following error
Notice: Undefined variable: countdown in file /modules/module1/admin/footer.php line 24
Error: Error: Call to a member function getConfig() on null in file /modules/module1/admin/footer.php line 24
This occurs after you create the first item.

I am using xoops 2.5.9

Permissions are not saved

image

I set permissions, save them, receive a message that they are saved, but when I open it again, the permissions are empty again.

Typos in function names

image

Also lack of consistency in naming functions: Here we have:

zumba_MygetItemIds

while in others places we have:

ZUMBA_MygetItemIds

templates system_bookmarks.tpl and system_fbcomments.tpl

Hi

If I create a new module, the templates system_bookmarks.tpl and system_fbcomments.tpl will be implemented in ..._footer.tpl by

<{if $bookmarks != 0}>
<{include file="db:system_bookmarks.html"}>
<{/if}>

<{if $fbcomments != 0}>
<{include file="db:system_fbcomments.html"}>
<{/if}>

but normally in the current xoops core system these templates are not available.

How to solve?

missing define to be added

There are 3 missing define:

tdmcreatecorrecfr

1 - Donation Amount

tdmcreate/include/functions.php
Line 116 and line 123

2 - is maintained by the

tdmcreate/template/admin/tdmcreate_footer.tpl
Line 5:
<strong><{$module_name}></strong> is maintained by the

3 - Support Forum

tdmcreate/template/admin/tdmcreate_footer.tpl
Line 6:
<a href='http://xoops.org/forums/newbb' title='Visit Support Forum' class='tooltip' rel='external'>Support Forum</a></div>

Test in various ways

I need to know how the modules are created with database or not, and what kind of module you want to create.

I need a hand to create the pages of the file in front-end type of bootstrap code.

Most likely all the files that contain the same codes will be merged into one or at least one that contains several functions or methods in the same file.

They welcome suggestions for improving this module 🎱

bug in admin/settings.php

save "setting" returns error: Undefined index: set_type in file /modules/tdmcreate/admin/settings.php line 135
in the form is not defined what set_type should be?????

Bugs in generated templates for tables

For table news the code generated in: /mymodule/templates/mymodule_news.tpl
line 11: <{foreach item= from=$news}>
line 14: <{include file="db:zumba_news_list.tpl" list=$}>
line 17: <{if $.count eq $divideby}>

image

Missing names for variables

It seems like that when I don't use prefixes for tables, you're missing names in the variables:

C:\wamp64\www\257tdmc191\modules\zumba3\print.php
image

C:\wamp64\www\257tdmc191\modules\zumba3\index.php

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.