txmodxoops / tdmcreate Goto Github PK
View Code? Open in Web Editor NEWtdmcreate-1.91
Home Page: https://xoops.org/modules/repository/
License: GNU General Public License v3.0
tdmcreate-1.91
Home Page: https://xoops.org/modules/repository/
License: GNU General Public License v3.0
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! :-)
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'
Instead of:
$id = isset($_GET['id']) ? (int) ($_GET['id']) : 0;
let's use:
$id = XoopsRequest::getInt('id', 0, 'GET');
when creating the php code of admin pages function getXoopsCodeCaseDelete is used instead of function getAdminPhpCodeDelete
getXoopsCodeCaseDelete has errors inside
getAdminPhpCodeDelete has no errors
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.
Alpha 3 Implements Bootstrap Code in Templates Modules
Please do not use tabs in source code. We need to follow PSR-2 code style
Run you code through CS-Fixer before you upload it to GitHub:
https://github.com/FriendsOfPHP/PHP-CS-Fixer
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.
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" :)
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:
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
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');
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
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?????
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;
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?
'license' => "GPL 2.0 or later",
'help' => "page=help",
'license' => "GNU GPL 2.0",
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
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
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
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
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
1 0.0004 275528 {main}( ) ...\index.php:0
There are 3 missing define:
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>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.