July 22, 2008
Joomla front side folder structure
-administrator
-cache
-installation (after instatlling remove this)
-components
-editor
-help
-images
-includes
-langauge
-mambots
-media
-modules
-templates
-changlog.php
-configuration.php (This is created during installation)
-configuration.php-dist
-copyright.php
-globals.php
-htaccess.txt
-index.php
-index2.php
-install.php
-licence.php
-mainbody.php
-offline.php
-oflinebar.php
-pathway.php
-robots.txt
Joomla default Administator folder and file structure
-backups
-components
-images
-includes
-modules
-popups
-templates
-index.php
-inex2.php
-index3.php
-logout.php
Leave a Comment » |
Joomla |
Permalink
Posted by raj
July 22, 2008
for making a mambot work in our own componnet
Just Paste this code in your component and change only
$rows[0]->desc, where $rows returns an Object.
global $_MAMBOTS,$params;
$row->text =$rows[0]->desc;
$_MAMBOTS->loadBotGroup(‘content’);
$args = array(&$row, &$params, 0);
$_MAMBOTS->trigger(‘onPrepareContent’, $args, true);
echo $row->text;
Leave a Comment » |
Joomla |
Permalink
Posted by raj
July 12, 2008
These are the compulsory files to built a module :
1.mod_module_name.php
2.mod_module_name.xml
:Extra files are added depends on your need.
Finally make a zip file for all.
Leave a Comment » |
Joomla |
Permalink
Posted by raj
July 12, 2008
How to make a new user registration form for other component?
Note :
- The users.id means “id” filed of “users” table
There are 3 tables are realted with each other when creating a new user are :
1. jos_users
2. jos_core_acl_aro
3. jos_core_acl_groups_aro_map
The relation between each tables and when creating a new user then insert some values in following tables:
1. insert into jos_users
-fields are : id( = autoincrement field), username, name, email, password, gid (18=registered user)
-these are compulsory fields to fillup.
2. insert into jos_core_acl_aro
-fields are : aro_id ( = autoincrement field), section_value(=”users” string), value(=jos_users.id), name=(=jos_users.name)
3. insert into jos_core_acl_groups_aro_map
-fields are : group_id ( =jos_users.gid), aro_id( =jos_core_acl_aro.aro_id)
If you want your own component for registation then make a table like this:
4. insert into your_table.
-fields are : id ( = autoincrement field), user_id ( =jos_users.id), other fields ( =username,name,email,password are stored in users table , so no need to add here)
This information will helpfull for developer to create and make their own component for registration and login.
If possible then don’t modify any joommla core file.
if you want the login form is in your page/component/module then you can copy the conent from mod_login page and modify it in your page and make this type of queries :
- select from users and your_table where your_table.user_id=users.id (=joomla.php->login())
if we have new registration page then see the com_registration folder and files.
3 Comments |
Joomla |
Permalink
Posted by raj