1
anlace
Edit Users - Is There Any Way to Lose Most of the Fields?
  • 2004/7/28 18:37

  • anlace

  • Just popping in

  • Posts: 43

  • Since: 2004/7/27


Greetings,

Is there any way to lose most of the fields in the "Edit Users" section of the XOOPS admin? All that I need under Add New User is Nickname, Name, Email, Location (optional), and password. All the rest could go away and I would be happy about that for this web site. Do I disable something in the database? Or in the template? Where do I find it?

Thanks for any assistence!
Gail

2
koertzen
Re: Edit Users - Is There Any Way to Lose Most of the Fields?
  • 2004/7/28 18:43

  • koertzen

  • Just popping in

  • Posts: 79

  • Since: 2003/10/22


There is no way to easily customize this in the user/admin interface. You have to customize several pages/templates, which is no easy feat when you're new to Xoops.

If you can, I recommend waiting until XOOPS 2.1 (the beta) and 2.2 (release) versions are available. From my understanding, this next version will have enhanced capabilities for user profiles, just as you have requested here. Take a look at the World of XOOPS (WOX) newsletter #5 for more details (under "Herko's World").

3
anlace
Re: Edit Users - Is There Any Way to Lose Most of the Fields?
  • 2004/7/28 18:57

  • anlace

  • Just popping in

  • Posts: 43

  • Since: 2004/7/27


Thanks for the reply.

Unfortunately this web site project needs to be finished by August 9th so looks like I'll be updating to that version when it's released.

I'd really like to know which pages/templates would need customizing. Although I am new to Xoops, I have worked with PHP somewhat and html a lot, I always back up my work do that I can fix something that's broken.

Peace,
Gail

4
dheltzel
Re: Edit Users - Is There Any Way to Lose Most of the Fields?
  • 2004/7/28 20:16

  • dheltzel

  • Not too shy to talk

  • Posts: 164

  • Since: 2003/1/8 1


You will need to edit the following file:

modules/system/admin/users/userform.php

About halfway in the file, you'll find lines like:

$timezone_select = new XoopsFormSelectTimezone(_US_TIMEZONE, "timezone_offset", $timezone_value);
$icq_text = new XoopsFormText(_AM_ICQ, "user_icq", 15, 15, $icq_value);
$aim_text = new XoopsFormText(_AM_AIM, "user_aim", 18, 18, $aim_value);
$yim_text = new XoopsFormText(_AM_YIM, "user_yim", 25, 25, $yim_value);
$msnm_text = new XoopsFormText(_AM_MSNM, "user_msnm", 30, 100, $msnm_value);
$location_text = new XoopsFormText(_AM_LOCATION, "user_from", 30, 100, $location_value);
$occupation_text = new XoopsFormText(_AM_OCCUPATION, "user_occ", 30, 100, $occ_value);
$interest_text = new XoopsFormText(_AM_INTEREST, "user_intrest", 30, 150, $interest_value);

Commenting out these lines will remove the corresponding lines from the form. You can also use this to reorder them if desired.

Dennis

5
anlace
Re: Edit Users - Is There Any Way to Lose Most of the Fields?
  • 2004/7/28 22:54

  • anlace

  • Just popping in

  • Posts: 43

  • Since: 2004/7/27


Commenting out a line in PHP is using a semi-colon ; correct?

Or is it as in Linux and commented out with #?

Thanks so much for the help!
Gail

Login

Who's Online

279 user(s) are online (167 user(s) are browsing Support Forums)


Members: 0


Guests: 279


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