Re: Creating a Blank/Dummy Module
|
||||
---|---|---|---|---|
Just popping in
![]() ![]() ![]() |
Dealing with the same design issue's... The Xoop's for Dummies documentation addresses this and solved the dummy module issue though...
You first create a new folder in the Modules directory named for the dummy module... Then create index.php file with the following basic code: _____________________________ include("../../mainfile.php"); include(XOOPS_ROOT_PATH."/header.php"); $xoopsOption['show_rblock'] = 1; ?> include(XOOPS_ROOT_PATH."/footer.php"); ?> ______________________________ Then create a file called xoops_version.php with the following code: ______________________________ $modversion['name'] = "Dummy Module";//name of module $modversion['version'] = 1.01; $modversion['description'] = "Dummy Module"; $modversion['author'] = ""; $modversion['credits'] = ""; $modversion['help'] = ""; $modversion['license'] = "GPL see LICENSE"; $modversion['official'] = 0; $modversion['image'] = "yourlogo.JPG"; $modversion['dirname'] = "dummy";//name of directory // Admin things $modversion['hasAdmin'] = 0; $modversion['adminpath'] = ""; // Menu // Menu for submenus in main menu when page loads $modversion['hasMain'] = 1;//0 to remove from main menu $modversion['sub'][1]['name'] = _MI_MYPAGE_SMNAME1;//define in language/english/global.php $modversion['sub'][1]['url'] = "../../modules/ipboard/"; $modversion['sub'][2]['name'] = _MI_MYPAGE_SMNAME2;//define in language/english/global.php $modversion['sub'][2]['url'] = "../../modules/weblog/"; ?> _______________________ You also place your little logo in the dummy directory. This acts as the icon to install the module from in the module admin page... Good Luck, and if there is a more refined solution, I'm looking to, so report it here please!
Posted on: 2005/1/22 4:34
|
|||
|
Re: Creating a Blank/Dummy Module
|
||||
---|---|---|---|---|
Home away from home
![]() ![]() ![]() |
Look at http://worldware.com then check out xoopermod. It makes a complete module framework based on certain inputs from the user.
Posted on: 2005/1/22 9:18
|
|||
|
Re: Creating a Blank/Dummy Module
|
||||
---|---|---|---|---|
Just popping in
![]() ![]() ![]() |
Thanks for the link carnuke!! I can see that there is a wide XOOPS world out there, I have only scratched the surface... Glad to see others employeeing XOOPS in the ecommerce area... Thats where I'm headed... I'll post a link to my wonderful new site when it actually has content!!
Any other mod development tools are appreciated.. The more novice the better!
Posted on: 2005/1/22 15:16
|
|||
|
Re: Creating a Blank/Dummy Module
|
||||
---|---|---|---|---|
Module Developer
![]() ![]() ![]() |
Xoopermod is great.
![]() Another way I have done what the initial post requires, where you just want to put a special block on a separate page of your site, is use WF-channel and simply make one blank page in it, turn off the link to us and refer a friend standard pages, and turn on the block I want for display in WF-channel only. This saves you having to make a blank module yourself just to display a block. If you already have WF-Channel installed for other purposes on your site, or you want more than one section of your site handled this way, you can use our handy Perl script to clone WF-Channel. Details here: https://xoops.org/modules/newbb/viewtopic.php?topic_id=26041 Note: we have not tested the script with WF-channel 1.07. Details about compatibility (and a possible update to the script) will be posted shortly. --Julian
Posted on: 2005/1/22 20:04
|
|||
|
Re: Creating a Blank/Dummy Module
|
||||
---|---|---|---|---|
Not too shy to talk
![]() ![]() ![]() |
Quote:
Adding $xoopsOption['template_main'] = 'dummy_mydummy.html'; in index.php and a blank html file called dummy_mydummy.html in yourmodule/templates folder you can add you own html in the module using the templates system ![]()
Posted on: 2005/1/22 22:26
|
|||
|
Re: Creating a Blank/Dummy Module
|
||||
---|---|---|---|---|
Quite a regular
![]() ![]() ![]() |
thank you all for the recommendation/solutions. i will try all those and see which one fits my requirement best. thank you, once again.
Posted on: 2005/1/23 7:24
|
|||
|
Re: Creating a Blank/Dummy Module
|
||||
---|---|---|---|---|
XOOPS is my life!
![]() ![]() ![]() |
jan304 also submitted a dummy module aswell a while ago..
it's still in the modules list on the sourceforge.net site under this name > xoops2-mod_sample_module_v1_0_jan304.zip
Posted on: 2005/1/23 8:06
|
|||
|
Re: Creating a Blank/Dummy Module
|
||||
---|---|---|---|---|
Quite a regular
![]() ![]() ![]() |
thank you m0nty.
i have tried the recommendation provided by all of you above and today is another milestone in my XOOPS life: i created my first module, a dummy module! ![]() i manage to create the module (using the suggestion PHPHurts and banned have provided) and it fit my requirement perfectly. thanks to you all.
Posted on: 2005/1/23 13:17
|
|||
|
Re: Creating a Blank/Dummy Module
|
||||
---|---|---|---|---|
XOOPS is my life!
![]() ![]() ![]() |
thats good to hear :) i was looking at xoopsmodder last night after reading this thread, nice piece of software :)
Posted on: 2005/1/23 17:00
|
|||
|
You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You can vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.