1
just4fun
XGen - Xoops Module Generator is here
  • 2007/2/9 1:45

  • just4fun

  • Just popping in

  • Posts: 55

  • Since: 2003/7/28


Module generator for Xoops, coz I know how boring it'll be to do the same coding again and again. Its not like any other generators try it you'll know. Included a sample xml file with all functionality to generate a module.

Features

* CRUD functionality for all tables
* MySQL sql file generation
* Admin functionality with image type field handling (including file upload)
* Module config file and xoops_version.php will be generated.
* Models will be created for each table to simplyfy C[reate] R[etrieve] U[pdate] D[elete]
* Data Grid like functionality to browse records. Sorry no pagenation yet.


Requirements

* Java 1.5
* Right now Windows Only

License

* Feel free to use for any purpose
* No copyright message in the generated code.
* XoopsGrid is based on baaGrid by Barry Andrew (http://members.aol.com/barryaandrew/baaLic.html)


Instructions to Run and Install

* Download XGen
* Unzip to XGen directory
* Thats it you are all set create an xml file for your module and set values as per your needs


Command Line

* Assuming you unzipped XGen in C:\XGen
* C:\XGen> XGen c:\XGen\recipes.xml

You'll see log messages and lots of information just ignore and go to the directory you specified in xml

Voila your admin functionality for the module is ready after intalling your generated module as any other module.

[X]Oops here is the download link XGen - XOOPS Module Generator

Leave me your comments.

Thanks
Just4Fun
In theory there is no difference between theory and practice but in practice it does...



2
just4fun
Re: My site keep refreshing itself using IE
  • 2006/9/28 20:38

  • just4fun

  • Just popping in

  • Posts: 55

  • Since: 2003/7/28


I faced similar situation earlier. Its because of your theme.

You might be using lots of divs instead of tables. Please test your theme's html outside XOOPS using IE and FF and then port it to XOOPS theme.

Just4Fun
In theory there is no difference between theory and practice but in practice it does...



3
just4fun
Re: Best IDE for php/xoops development? (OS X)
  • 2005/11/21 0:02

  • just4fun

  • Just popping in

  • Posts: 55

  • Since: 2003/7/28


Check here and find out your self...

http://www.php-editors.com/review/
In theory there is no difference between theory and practice but in practice it does...



4
just4fun
Re: Using mod_rewrite to remove "modules" from URL's?
  • 2005/9/15 23:26

  • just4fun

  • Just popping in

  • Posts: 55

  • Since: 2003/7/28


Sorry for the delay, i was busy with my work.

I'll prepare news module with all the hacks and post the zip file by tomorrow morning.
In theory there is no difference between theory and practice but in practice it does...



5
just4fun
Re: Using mod_rewrite to remove "modules" from URL's?
  • 2005/9/14 23:01

  • just4fun

  • Just popping in

  • Posts: 55

  • Since: 2003/7/28


Bassman

I did lot of customization on my site to achieve 100% SEO urls... but it requires changes to include/common.php file and your module files.

My work

Step 1

Replace all your links in a module with identible key for that module and make it as simple html link

example : - News

news.html
news_<categoryname>_<categoryid>.html
news_view_<articleid>.html

Step 2

Xoops uses request Url to identify which module user is trying to access and gets a module handler on that. So we need to change that as our new seo ready links wont be having any modules/<modname>/.

Search for this code in include/common.php

if (file_exists('./xoops_version.php')) {

        
$url_arr explode('/',strstr($xoopsRequestUri,'/modules/'));
        
$module_handler =& xoops_gethandler('module');


next to that you need to do some thing like this..

// default behaviour
        
if(is_array($url_arr) && count($url_arr) > 1) {
           
$xoopsModule =& $module_handler->getByDirname($url_arr[2]);
        } else {
          if(
strpos($xoopsRequestUri,"news") != false) {
               
$xoopsModule =& $module_handler->getByDirname("news");
          } else if(
strpos($xoopsRequestUri,"forums") != false) {
               
$xoopsModule =& $module_handler->getByDirname("forums");
          } 
        .....
        unset(
$url_arr);


Step 3

Prepare your .htaccess file

RewriteEngine on
RewriteRule 
^index.html index.php
RewriteRule 
^newshtml /modules/news/index.php
RewriteRule 
^news_[A-Za-z]*_([0-9][0-9]*).html /modules/news/index.php?storytopic=$1
RewriteRule 
^news_view_([0-9][0-9]*).html /modules/news/article.php?storyid=$1


Thats it and your site will have 100% seo html links

Some of the working examples on my site

http://www.dealwithdeals.com/computers-deals-2.html ( using deals module )

http://www.dealwithdeals.com/latest_deals.html ( using deals module )

http://www.dealwithdeals.com/stores.html ( using stores module )


If any of you guys are interested in this hack lemme know i'll publish steps in detail...
In theory there is no difference between theory and practice but in practice it does...



6
just4fun
Re: How can i use xoops as framework with out modules ?
  • 2005/7/27 19:55

  • just4fun

  • Just popping in

  • Posts: 55

  • Since: 2003/7/28


bluenova

i wanna use XOOPS as a framework for building one application without module directory structure...think of application will have only one module and that serves the need for the application...but i dont want it to be in modules directory...

hope i explained clearly....
In theory there is no difference between theory and practice but in practice it does...



7
just4fun
How can i use xoops as framework with out modules ?
  • 2005/7/27 19:07

  • just4fun

  • Just popping in

  • Posts: 55

  • Since: 2003/7/28


I wanna develop an application using XOOPS ( coz i love flexibility in XOOPS ) with out any modules...

How can i use XOOPS as framework with out modules ? But still i wanna use all the core framework templates, caching, dbobjects, permissions, comments and notifications...

Please let me know... i tried in all possible ways but no luck...
In theory there is no difference between theory and practice but in practice it does...



8
just4fun
Re: What's wrong with my html?
  • 2005/3/30 23:03

  • just4fun

  • Just popping in

  • Posts: 55

  • Since: 2003/7/28


this is why...

<table height="1537" width="719" border="0">

              <!-- 
comment or delete next lines //-->
              
<tr>
                <
td><br>
              <!-- 
upto here //-->

                  
<!--DWLayoutTable-->
                  <
br>
                  <
tbody>
                    <
tr>



9
just4fun
Re: How do I prevent my site from being display in an iframe in other's page?
  • 2005/2/26 1:40

  • just4fun

  • Just popping in

  • Posts: 55

  • Since: 2003/7/28


<script language="JavaScript" type="text/javascript">
<!--
function 
FrameBuster(){
  if (
top !=self)top.location=self.location;
}
// -->
</script>


add FrameBuster to onload event of body

<body onload="FrameBuster()">





10
just4fun
Re: Different colors in theme based on module
  • 2005/2/22 16:26

  • just4fun

  • Just popping in

  • Posts: 55

  • Since: 2003/7/28


Hmm how did i miss that.

Thank You talunceford.




TopTop
(1) 2 »



Login

Who's Online

250 user(s) are online (171 user(s) are browsing Support Forums)


Members: 0


Guests: 250


more...

Donat-O-Meter

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

Latest GitHub Commits