1
bentow
Modifying System Module
  • 2008/11/13 0:32

  • bentow

  • Just popping in

  • Posts: 11

  • Since: 2008/11/13


Hello!
I am developing an Ads Portal, and I would like to modify the System module to do some things.
- Change some rows in the DB->xoops_users.
- Modify other pages in the System Module, like the one to register to put fields like telephone (also include in the DB).

Is this possible? Which is the best way to do it without corrupting my system?

2
ghia
Re: Modifying System Module
  • 2008/11/13 1:11

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Quote:
Change some rows in the DB->xoops_users.

You can use PHPMyAdmin for this, but careless modifications can make XOOPS to fail.Quote:
Modify other pages in the System Module, like the one to register to put fields like telephone (also include in the DB).
For adding user related fields use the standard profile module or some specialised modules as Adresbook, Adresses or Formulize. (and maybe Lexicon)

3
bentow
Re: Modifying System Module
  • 2008/11/13 1:44

  • bentow

  • Just popping in

  • Posts: 11

  • Since: 2008/11/13


Well, the point of my modification is that I`ll change a lot of information. Example: i don`t need to keep ICQ, AIM and others, but info like telephone, surname, and name (instead of full name) would be relevant. Is there a 'beauty' way to do this?
By doing these mods in a nice way i`ll be able to use $xoopsUser->getVar('phone') and others.

Thanks a LOT!

4
Anonymous
Re: Modifying System Module
  • 2008/11/13 8:14

  • Anonymous

  • Posts: 0

  • Since:


Sounds to me like you should be changing language files and templates rather than messing about with the database and other php files.

If you alter the system module's files (other than simple changes to "defines") and the database you will break compatability and, as Ghia says, some things won't work afterwards, particularly if you alter bits that serve many functions.

5
stefan88
Re: Modifying System Module
  • 2008/11/13 9:33

  • stefan88

  • Community Support Member

  • Posts: 1086

  • Since: 2004/9/20


Hi,

if you are using XOOPS 2.3.x why not use profile module and add the extra fields? You can even brake them in to registration steps.
For older versions of XOOPS there is also a profile module built in (2.2.x) and a smartprofile module (2.0.x)...
..

6
bentow
Re: Modifying System Module
  • 2008/11/13 14:44

  • bentow

  • Just popping in

  • Posts: 11

  • Since: 2008/11/13


Thanks for the tip man.

I installed the SmartProfile and for what I see, it has all the functionalities that I need.

Thanks again!

7
stefan88
Re: Modifying System Module
  • 2008/11/13 16:20

  • stefan88

  • Community Support Member

  • Posts: 1086

  • Since: 2004/9/20


Hi,

Quote:
I installed the SmartProfile...


please keep in mind that this module probably will not be developed and it also has some bugs.

If you are startig a new site going for 2.3.x with "User profile" module is safer choice for future updates.
..

8
bentow
Re: Modifying System Module
  • 2008/11/13 16:25

  • bentow

  • Just popping in

  • Posts: 11

  • Since: 2008/11/13


I am using XOOPS 2.0.18.2. Do you thing I would have to change a lot of things on my module development routine to use the 2.3 version?

Thanks.

Login

Who's Online

412 user(s) are online (326 user(s) are browsing Support Forums)


Members: 0


Guests: 412


more...

Donat-O-Meter

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

Latest GitHub Commits