1
CBF_Billy
Module question
  • 2007/3/9 10:54

  • CBF_Billy

  • Just popping in

  • Posts: 11

  • Since: 2007/2/27


Hey, I've attempted to use XBS ModGen to create my own Module but it isn't working out for me so I had another idea but I can't seem to find it anywhere. I was wondering if there's any modules that allow you to basically put whatever you want in it? Kinda like a template. Just install it and then turn it into whatever you want?

I don't know if that's possible or not, but if it is could someone show me where to get it? Or if there's any other alternatives to making my own module besides using ModGen it would be greatly appreciated! :) Thanks.

2
wizanda
Re: Module question
  • 2007/3/9 13:15

  • wizanda

  • Home away from home

  • Posts: 1585

  • Since: 2004/3/21


Allot of my modules are very simple, and can act as template, just exchange the html in the Smarty Template and you have a new module.
That what i do often just copy and relabelled everything: folder name, xoopsversion.php, index.php, slogo.png(=paint) and the template file and that’s a module.

3
chippyash
Re: Module question
  • 2007/3/9 14:36

  • chippyash

  • Friend of XOOPS

  • Posts: 501

  • Since: 2004/1/29


Yep, Wizanda has the right approach for very simple mods. Just do something simple and then bend it each time you need it. (However, Modgen does negate the need to hand edit all the files he mentions.) ModGen goes a bit beyond that I guess and is aimed at the people who need to create something a bit more robust. The next version (that I am currently working on) will bring in the ability to define tables. The version after that will allow you to define a variety of forms and displays for each page. It's not a panacea, but it does take a lot of the grunt out of developing mods for Xoops. Oh and heads up - it will be for the 2.0.x branch.

In the meantime, perhaps you can share why Modgen isn't working for you. It maybe something that can be sorted.

Regards
A

4
CBF_Billy
Re: Module question
  • 2007/3/10 0:41

  • CBF_Billy

  • Just popping in

  • Posts: 11

  • Since: 2007/2/27


I posted once before why ModGen wasn't working... Couldn't be sorted and it's okay because this really helps me and I only want to create a simple Module as a section of the website for the band Mudmen. It's sort of like an affiliate program. I help them and they help me.

But anyway .... Thanks for the replies and help :) I really appreciate it.

EDIT: Hey I searched the Module Repository for "wizanda" and didn't find anything. Where do I get your modules?? Sorry if I'm just slow or something, but I figured they'd be in the repository.

EDIT #2: Nevermind. I found them. lol :)

5
CBF_Billy
Re: Module question
  • 2007/3/10 2:54

  • CBF_Billy

  • Just popping in

  • Posts: 11

  • Since: 2007/2/27


Okay I chose to use your Znake Module because it is pretty easy to edit and customize. But now I've run into a small problem.... I want to change znake.html to mudmen.html

I've changed it in the templates folder, and in the files "index.php" and "xoops_version.php" as well as the iframe src in the templates mudmen.html (formerly znake.html too)


What else do I need to change in order to make it show up because it's just coming up blank on the website?

Also... How would I change the module to come up as modules/mudmen/ instead of znake too?

Thanks!

6
iHackCode
Re: Module question

usually changes in the data in xoops_version.php for the modules will not take effect until you 'update' the module.

i dont have experience with changing a module's directory after it is installed. but what about deactivating it and then uninstall it and changed this line to use the new dirname and then install

$modversion['dirname'] = "mudmen";

here is a link to a pdf on how to build a module Link..

there is also some more info on the wiki athttp://dev.xoops.org , feel free to post on this forum is you get stuck.

another linkhttp://www.kaotik.biz/tutorial/buildmodule1.html

-hope that help & have fun
CBB / LatestNews / Publisher / XM-Spotlight

(ノ◕ヮ◕)ノ*:・゚✧

7
CBF_Billy
Re: Module question
  • 2007/3/11 3:59

  • CBF_Billy

  • Just popping in

  • Posts: 11

  • Since: 2007/2/27


Hey thanks for the help. Uninstalling and reinstalling made the Module work perfect even letting me rename the directory! :) Thanks a lot! I appreciate all the help.

8
OnlyBlue
Re: Module question
  • 2007/4/13 9:04

  • OnlyBlue

  • Just popping in

  • Posts: 2

  • Since: 2007/3/11


I am using ModGen 1 final version. The OS is Windows Xp.

At the first time, when I filled the "Target Build Root Directory" field with "c:/mods/xbs_addr", a error occured:

/////////////////////////////////
Field with failed validation
Errors
Field modtargetdir with value c:/mods/xbs_addr failed to meet validation /^[\/a-z][.:a-zA-Z\/]*$/ for object xbs_modgen_Module
/////////////////////////////////

At the second time, when I filled the "Target Build Root Directory" field with "/web/xoops/modules", the parameters was saved successfully. But this time I can't find the directory "/web/xoops/modules" in my computer. So, I think I needn't proceed.

Does anybody else meet such a problem? Could you please help me to solve this problem?

Thanks!

9
OnlyBlue
Re: Module question
  • 2007/4/13 15:47

  • OnlyBlue

  • Just popping in

  • Posts: 2

  • Since: 2007/3/11


I solved the problem above by replace the Regular expression "/^[\/a-z][.:a-zA-Z\/]*$/" with "//" in line 114 in file defines.inc. I know this is not a good solution, but I am not familar with Regular expression. So, let it be.
I'm waiting for the ModGen 2.0

I generated a module xbs_addr accroding to the help file. When I refresh the pagehttp://localhost/xoops/modules/system/admin.php?fct=modulesadmin, some exceptional infomation displayed between the actived box and unactived box.

//////////////////////////////
/* * This file was generated by XBS ModGen, (c) 2006 A Kitson, UK. Seehttp://xoobs.net * ModGen is a Module Code Generator for the XOOPS CMS. Seehttps://xoops.org */ ?> /* * This file was generated by XBS ModGen, (c) 2006 A Kitson, UK. Seehttp://xoobs.net * ModGen is a Module Code Generator for the XOOPS CMS. Seehttps://xoops.org */ ?>Module File for Not Found!Module File for Not Found!Module File for Not Found!Module File for Not Found!Module File for Not Found!
//////////////////////////////

In addition, the icon of the module xbs_addr is a red cross; A tip "Module File for Not Found!" is at the left of installition icon.

When I try to install, the module xbs_addr can't be installed at last.

Any adviced would be appreciated.

Thanks!

10
chippyash
Re: Module question
  • 2007/4/14 6:05

  • chippyash

  • Friend of XOOPS

  • Posts: 501

  • Since: 2004/1/29


Support for Modgen is at the author's sitehttp://xoobs.net

Login

Who's Online

178 user(s) are online (82 user(s) are browsing Support Forums)


Members: 0


Guests: 178


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