201
chippyash
Re: Oryxgen 0.7
  • 2006/6/17 6:11

  • chippyash

  • Friend of XOOPS

  • Posts: 501

  • Since: 2004/1/29


A lot of the notices don't apply to your code. The stricter compliance of PHP5 is throwing up notices in the core XOOPS code.



202
chippyash
Use of HTTP_GET_VARS and HTTP_POST_VARS
  • 2006/6/16 16:29

  • chippyash

  • Friend of XOOPS

  • Posts: 501

  • Since: 2004/1/29


Can all developers please note that for their modules to be runnable under PHP 5 they must use $_GET and $_POST, *not* $HTTP_GET_VARS and $HTTP_POST_VARS. $_GET and $_POST are compatible with PHP 4.

A



203
chippyash
Re: Oryxgen 0.7
  • 2006/6/16 16:13

  • chippyash

  • Friend of XOOPS

  • Posts: 501

  • Since: 2004/1/29


Thanks for the zip version. On installing to XOOPS 2.0.13.2 I get the following noticess

ArrayThis page cannot be displayed due to an internal error.

If you are the administrator of this site, please visit the XOOPS Troubleshooting Page for assistance.

Notice [PHP]: Use of undefined constant _PM_XG_XG_ACTION - assumed '_PM_XG_XG_ACTION' in file modules/oryxgen/xoops_version.php line 105
Notice [PHP]: Use of undefined constant _PM_XG_XG_STATUT_FIELD - assumed '_PM_XG_XG_STATUT_FIELD' in file modules/oryxgen/xoops_version.php line 106
Notice [PHP]: Use of undefined constant _PM_XG_XG_STATUT_CRITERIA - assumed '_PM_XG_XG_STATUT_CRITERIA' in file modules/oryxgen/xoops_version.php line 107
Notice [PHP]: Use of undefined constant _PM_XG_XG_STATUT - assumed '_PM_XG_XG_STATUT' in file modules/oryxgen/xoops_version.php line 108
Notice [PHP]: Use of undefined constant _PM_XG_XG_FIELD_DEF - assumed '_PM_XG_XG_FIELD_DEF' in file modules/oryxgen/xoops_version.php line 109
Notice [PHP]: Use of undefined constant _PM_XG_XG_MODULE - assumed '_PM_XG_XG_MODULE' in file modules/oryxgen/xoops_version.php line 110
Notice [PHP]: Use of undefined constant _PM_XG_XG_CLASS - assumed '_PM_XG_XG_CLASS' in file modules/oryxgen/xoops_version.php line 111
Notice [PHP]: Use of undefined constant XG_SC_STATUT_ID - assumed 'XG_SC_STATUT_ID' in file modules/oryxgen/xoops_version.php line 156
Notice [PHP]: Undefined variable: content in file modules/system/admin/modulesadmin/modulesadmin.php line 285
Notice [PHP]: Undefined variable: content in file modules/system/admin/modulesadmin/modulesadmin.php line 285
Notice [PHP]: Undefined variable: content in file modules/system/admin/modulesadmin/modulesadmin.php line 285
Notice [PHP]: Undefined index: description in file modules/system/admin/modulesadmin/modulesadmin.php line 390
Notice [PHP]: Undefined index: valuetype in file modules/system/admin/modulesadmin/modulesadmin.php line 392
Notice [PHP]: Undefined index: description in file modules/system/admin/modulesadmin/modulesadmin.php line 390
Notice [PHP]: Undefined index: valuetype in file modules/system/admin/modulesadmin/modulesadmin.php line 392
Notice [PHP]: Undefined index: description in file modules/system/admin/modulesadmin/modulesadmin.php line 390
Notice [PHP]: Undefined index: valuetype in file modules/system/admin/modulesadmin/modulesadmin.php line 392
Notice [PHP]: Undefined index: description in file modules/system/admin/modulesadmin/modulesadmin.php line 390
Notice [PHP]: Undefined index: valuetype in file modules/system/admin/modulesadmin/modulesadmin.php line 392
Notice [PHP]: Undefined index: description in file modules/system/admin/modulesadmin/modulesadmin.php line 390
Notice [PHP]: Undefined index: valuetype in file modules/system/admin/modulesadmin/modulesadmin.php line 392
Notice [PHP]: Undefined index: description in file modules/system/admin/modulesadmin/modulesadmin.php line 390
Notice [PHP]: Undefined index: valuetype in file modules/system/admin/modulesadmin/modulesadmin.php line 392
Notice [PHP]: Undefined index: description in file modules/system/admin/modulesadmin/modulesadmin.php line 390
Notice [PHP]: Undefined index: valuetype in file modules/system/admin/modulesadmin/modulesadmin.php line 392
Notice [PHP]: Undefined index: description in file modules/system/admin/modulesadmin/modulesadmin.php line 390
Notice [PHP]: Undefined index: valuetype in file modules/system/admin/modulesadmin/modulesadmin.php line 392
Notice [PHP]: Undefined index: description in file modules/system/admin/modulesadmin/modulesadmin.php line 390
Notice [PHP]: Undefined index: valuetype in file modules/system/admin/modulesadmin/modulesadmin.php line 392
Notice [PHP]: Undefined index: description in file modules/system/admin/modulesadmin/modulesadmin.php line 390
Notice [PHP]: Undefined index: valuetype in file modules/system/admin/modulesadmin/modulesadmin.php line 392
Notice [PHP]: Undefined index: description in file modules/system/admin/modulesadmin/modulesadmin.php line 390
Notice [PHP]: Undefined index: valuetype in file modules/system/admin/modulesadmin/modulesadmin.php line 392
Notice [PHP]: Undefined index: description in file modules/system/admin/modulesadmin/modulesadmin.php line 390
Notice [PHP]: Undefined index: valuetype in file modules/system/admin/modulesadmin/modulesadmin.php line 392
Notice [PHP]: Undefined index: description in file modules/system/admin/modulesadmin/modulesadmin.php line 390
Notice [PHP]: Undefined index: valuetype in file modules/system/admin/modulesadmin/modulesadmin.php line 392
Notice [PHP]: Undefined index: description in file modules/system/admin/modulesadmin/modulesadmin.php line 390
Notice [PHP]: Undefined index: valuetype in file modules/system/admin/modulesadmin/modulesadmin.php line 392

and the following warnings

Warning [PHP]: xoops_module_install_oryxgen(/web/akitson/modules/oryxgen/class/newblocks.php) [function.xoops-module-install-oryxgen]: failed to open stream: No such file or directory in file modules/oryxgen/install/installscript.php line 687
Warning [PHP]: xoops_module_install_oryxgen() [function.include]: Failed opening '/web/akitson/class/oryxgen/class/newblocks.php' for inclusion (include_path='.:/usr/share/pear') in file modules/oryxgen/install/installscript.php line 687
Warning [PHP]: xoops_module_install_oryxgen(/web/akitson/class/oryxgen/class/block_module_link.php) [function.xoops-module-install-oryxgen]: failed to open stream: No such file or directory in file modules/oryxgen/install/installscript.php line 688
Warning [PHP]: xoops_module_install_oryxgen() [function.include]: Failed opening '/web/akitson/class/oryxgen/class/block_module_link.php' for inclusion (include_path='.:/usr/share/pear') in file modules/oryxgen/install/installscript.php line 688
Error [Xoops]: Class XoopsNewblocksHandler does not exist
Handler Name: newblocks in file include/functions.php line 489

Clearly lines 687 and 688 are wrong as they point to an oryxgen directory under the core class directory.

In any event it's not installing.

A



204
chippyash
Re: Oryxgen 0.7
  • 2006/6/16 6:26

  • chippyash

  • Friend of XOOPS

  • Posts: 501

  • Since: 2004/1/29


Can you please provide a .tar.gz or a .zip version of your download as .rar is not recognised on many systems

A



205
chippyash
Re: How to Create a New Module: Where are the Docs ???
  • 2006/6/14 5:50

  • chippyash

  • Friend of XOOPS

  • Posts: 501

  • Since: 2004/1/29


Quote:

Dave_L wrote:
I wonder if it would be feasible to define a module using a single file, database, or some sort of single document.


This is essentially what ModGen does. I admit, in its first version it will overwrite all files it produces and it doesn't allow you to add or modify the code it outputs, but perhaps with support from others it may get there in the future

A



206
chippyash
Re: How to Create a New Module: Where are the Docs ???
  • 2006/6/13 17:33

  • chippyash

  • Friend of XOOPS

  • Posts: 501

  • Since: 2004/1/29


Just read this thread and thanks to Jensclas for the little plug on XBS Modgen which I wrote. There are a couple of issues I'd like to address:

Documentation
-------------

One of the reasons I wrote ModGen, was because of exactly the problem that the initial poster has signalled, lack of documentation for XOOPS itself. As a developer, and perhaps unlike some, I don't have the time to wade through lines of code to try and figure out what the heck is going on. I have done with XOOPS <=2.0.13 and have written many mods which hopefully are of use to others as well as myself. I have also made the point of providing documentation with thos modules (CDM, SACC etc.) ModGen itself hasn't got much documentation yet because I released it earlier than I normally do in an Alpha stage. The Beta release will have documentation.

My experience with the Metatags module is also instructional. I deliberately left out documentation. Why, primarily to see the reaction. And it is enlightening. Most queries I have had on my support site could have been adequately resolved if I had provided the same level of documentation that I did with my earlier modules. The lesson: Mod devs should write good usage instructions explaining all features to avoid support issues. Time involved answering queries needlessly is time better spent with your family / down the pub or whatever.

Now go check the online documentation available for each of the modules that you have loaded to verify what I am talking about.

In the 2.0 branch of XOOPS the available documentation was sparse, but it was there (it has since disssapeared). In the 2.2 branch it is non existent, and with the uncertainty of where it is going, I for one have decided not to develop for the 2.2/3/4 branch until a/ the XOOPS core team have stabilised the development and b/ the documentation is available for it.

Xoops is now a grown up CMS, not the plaything of a few script kiddies. Serious businesses and serious citizens are depending on it to drive their web development.

Module Development
------------------

McNaz is right. To write a XOOPS module is a developers job. ModGen can write the framework for you which can otherwise typically take a day to a week depending on your input capability (and once you know what you are doing), but it cannot write the application logic. You need to understand PHP and MySQL and all that involves. It took me 9 months to write my first module, primarily due to tracking down documentation and asking questions on a variety of forums (not just Xoops). PHP was a dialect that I hadn't used before. Fortunately programming in SQL and a variety of other languages (Pascal, C, C++, Modula2, Paradox, Assembler, etc etc) were a massive help. But if you haven't done that it is going to take you a lot, lot longer.

However I do see a partial way forward. I've just checked out Formulize and its hookup with Pagemaker. Whilst I haven't got it working yet on XOOPS 2.0.14 (cus they changed things under the covers again), the concept is intriguing and one that is at the back of my mind for the next version of ModGen, i.e the ability to create a module that includes forms and workflow by filling in boxes. You are never going to get away from the need to have a 'real' programmer around to sort out the business logic for the app, but it would be a start (a la Visual C++, VB, Turbo Pascal, Paradox etc.) But that is a huge effort to implement.

Anyone willing to pay my wages for the next year or so?

Regards
A



207
chippyash
Further comments
  • 2006/4/28 7:41

  • chippyash

  • Friend of XOOPS

  • Posts: 501

  • Since: 2004/1/29


Feedback notes on QA sheet V2.0

Logo: I'm not sure that insisting on everyone using the same logo design is right. Devs should be allowed a bit of creative license on this to 'brand' their creations. Perhaps better would be to have guidelines on size and also publish guidelines and template for creating a 'classic' logo.

Header Comment Block: 1/ How do you generate the first line contained between $id and $ 2/ Are you suggesting that every file carries the XOOPS copyright info? 3/ Shouldn't every file also carry the developers own module copyright? And if so then other license variations should be allowed. For instance I like to use the GNU Library GPL for some of my mods as they do in fact behave as library software.

SEO: As previously commented, use XBS MetaTags module by including metatags_info.php file in module root directory.

B9 - No hard code variable: Language dependent variables/constants should be language files (main, modinfo, admin etc). However there are some constant declarations that occur that are not language dependent e.g.

define('TAGS_DIR','xbs_tags');
define('TAGS_PATH',XOOPS_ROOT_PATH."/modules/".TAGS_DIR);
define('TAGS_URL',XOOPS_URL."/modules/".TAGS_DIR);

In my mods I put these always in a defines.php located in /include/ subdirectory of module root. Perhaps a standard can be established for this.

Additional point for security: According to Shifflet (Essential PHP Security) it would be better if a/ all included files had a .inc extension rather than .php and b/ included files are outside of web document root. Point a is relatively easy to enforce (although XOOPS core will require wholesale change to comply.) Point b is not so easy as the XOOPS directory structure will need re-working and it screws up the easy distribution of modules. Not sure we can implement b but a should be easy enough to insist upon.


Regards
Ashley



208
chippyash
Re: 2.0 final of Quality Assurance tool for Modules released !
  • 2006/4/28 7:03

  • chippyash

  • Friend of XOOPS

  • Posts: 501

  • Since: 2004/1/29


Quote:

Marco wrote:

Yep, i have noticed that, great mod, i will have a look at it. That's definitively a feature that should be in core.


Thanks for praise. Hopefully you'll find it well documented but do give me a shout if you need help.

Ashley



209
chippyash
Re: Desert Island...Modules?
  • 2006/4/26 8:04

  • chippyash

  • Friend of XOOPS

  • Posts: 501

  • Since: 2004/1/29


Here's my list

1. Liaise - contact us forms
2. Protector - site security
3. XOOPS Info - site info
4. XBS MetaTags - keyword and page description generation
5. MyAlbum - photo management (this might be core by now)
6. Tiny Content - ultra slim articles
7. Multimenu (for 2.2 sites)
8. Sitemap (if you don't have/use Multimenu)

Not quite 10 yet though

A



210
chippyash
Re: 2.0 final of Quality Assurance tool for Modules released !
  • 2006/4/25 10:19

  • chippyash

  • Friend of XOOPS

  • Posts: 501

  • Since: 2004/1/29


I just found and took a look at this. One thing is the SEO requirement. It requires Hervet's or Marcan's Metagen module. I looked for that and it doesn't exist as far as I can tell.

At the risk of blowing my own trumpet, can I suggest you take a look at my own MetaTags module that does what I think you require. It can be found athttp://dev.xoops.org or viahttp://xoobs.net. This work was inspired by Hervet's major hack that he posted recently and only requires a one line hack to footer.php to work.

BTW, thanks for the document. I learnt a few things that I am going to need to include in my own modules.

Hope it helps.
Ashley




TopTop
« 1 ... 18 19 20 (21) 22 23 24 ... 27 »



Login

Who's Online

97 user(s) are online (55 user(s) are browsing Support Forums)


Members: 0


Guests: 97


more...

Donat-O-Meter

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

Latest GitHub Commits