(1) 2 »


Creating a Blank/Dummy Module
#1
Quite a regular
Quite a regular


See User information
i want to put some of the existing blocks (from the modules i have installed in my website) in a (new) page (instead of putting them in the top page/other page for example).

the only way i can think of is to create a blank/dummy block so then i can allocate those blocks to the module (thru the blocks management screen).

do you guys have any other better way to achieve that?

how can i create a blank/dummy module too, for the purpose above?

appreciate your feedback and assistance on this. thanks.

Posted on: 2005/1/22 2:52
 Top  Twitter  Facebook    Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: Creating a Blank/Dummy Module
#2
Just popping in
Just popping in


See User information
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
 Top  Twitter  Facebook    Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: Creating a Blank/Dummy Module
#3
Home away from home
Home away from home


See User information
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
 Top  Twitter  Facebook    Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: Creating a Blank/Dummy Module
#4
Just popping in
Just popping in


See User information
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
 Top  Twitter  Facebook    Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: Creating a Blank/Dummy Module
#5
Module Developer
Module Developer


See User information
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
 Top  Twitter  Facebook    Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: Creating a Blank/Dummy Module
#6
Not too shy to talk
Not too shy to talk


See User information
Quote:

PHPhurts wrote:
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!


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
 Top  Twitter  Facebook    Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: Creating a Blank/Dummy Module
#7
Quite a regular
Quite a regular


See User information
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
 Top  Twitter  Facebook    Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: Creating a Blank/Dummy Module
#8
XOOPS is my life!
XOOPS is my life!


See User information
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
 Top  Twitter  Facebook    Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: Creating a Blank/Dummy Module
#9
Quite a regular
Quite a regular


See User information
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
 Top  Twitter  Facebook    Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: Creating a Blank/Dummy Module
#10
XOOPS is my life!
XOOPS is my life!


See User information
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
 Top  Twitter  Facebook    Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 




(1) 2 »



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.

[Advanced Search]


Login
Username:

Password:

Remember me



Lost Password?

Register now!
Search
Recent Posts
Who's Online
136 user(s) are online (102 user(s) are browsing Support Forums)

Members: 0
Guests: 136

more...
Donat-O-Meter
Make donations with PayPal!
Stats
Goal: AU$15.00
Due Date: Jul 31
Gross Amount: AU$0.00
Net Balance: AU$0.00
Left to go: AU$15.00
Latest GitHub Commits
Recent forum posts
Recent Comments
About us
Learn
Use
Develop GitHub
Contribute
Connect
Terms of Use | Privacy Policy | Hosted by Arvixe Hosting | RSS 2.0 Button