1
bapapapa
Don´t allow editing the account
  • 2004/2/19 16:51

  • bapapapa

  • Just popping in

  • Posts: 37

  • Since: 2004/1/2 2


Hi,

we are using XOOPS on a school-server.
Is it possible to disable the editing of the account for the real name (only)?
We could avoid some trouble.

Thanks

Marc

2
djsckizo
Re: Don´t allow editing the account
  • 2004/2/19 17:59

  • djsckizo

  • Just can't stay away

  • Posts: 401

  • Since: 2003/5/9 8


Question: are they putting in their real name originally or are you putting in their name? Easier way to ask this would be to say are you inputing the users or are they signing up?

3
bapapapa
Re: Don´t allow editing the account
  • 2004/2/19 18:20

  • bapapapa

  • Just popping in

  • Posts: 37

  • Since: 2004/1/2 2


Hi,

Quote:
Easier way to ask this would be to say are you inputing the users or are they signing up?

I´m creating the accounts manually. They cannot signup.

I could avoid the trouble by using the real name as the username. But they like to be called all these funny names like "starstriker", "don" a.s.o.
So I look for another solution unless there isn´t any other solution.

Marc

4
djsckizo
Re: Don´t allow editing the account
  • 2004/2/19 19:05

  • djsckizo

  • Just can't stay away

  • Posts: 401

  • Since: 2003/5/9 8


Well, I'd say the easiest way to do it would be to remove it from the page all together.

just delete line 153 in edituser.php

It looks like this:
Quote:
$name_text = new XoopsFormText(_US_REALNAME, 'name', 30, 60, $xoopsUser->getVar('name', 'E'));

5
mvandam
Re: Don´t allow editing the account
  • 2004/2/19 19:43

  • mvandam

  • Quite a regular

  • Posts: 253

  • Since: 2003/2/7 2


I'd have to look more carefully, but I think you will need to use XoopsFormHidden; otherwise when the form is submitted, it would likely write a blank realname to the database.

6
djsckizo
Re: Don´t allow editing the account
  • 2004/2/19 20:50

  • djsckizo

  • Just can't stay away

  • Posts: 401

  • Since: 2003/5/9 8


Good point...so I checked. I submited my name in the field to make sure it was in the database in the correct cell. After that I edited the page and resubmitted it again with the Real Name field missing. I looked back at the database again and my name was still there.

7
bapapapa
Re: Don´t allow editing the account
  • 2004/2/20 16:31

  • bapapapa

  • Just popping in

  • Posts: 37

  • Since: 2004/1/2 2


Hi,
I like to get back in the ring, but ...
Quote:
I looked back at the database again and my name was still there.

what does it mean? Can anyone translate this into simple words?
- Sorry guys, but I can´t follow your discussion.

Does your solution work out fine? I don´t want to mess up my system.

Cheers

Marc

8
djsckizo
Re: Don´t allow editing the account
  • 2004/2/20 23:04

  • djsckizo

  • Just can't stay away

  • Posts: 401

  • Since: 2003/5/9 8


Sometimes I can't follow my own discussions between just me and myself... lol

What the thinking was is basically that if you submit a forum with a missing field (the Real Name one), than it might fill that in with a blank answer in the database. I tried it, and it left my name in the database and did not overwrite it with a blank space.

Easily said, I tried it and it worked. To be completely safe though, it is always a good idea to keep a back up of the files you edit, which in this case would only be the edituser.php file.

Login

Who's Online

193 user(s) are online (106 user(s) are browsing Support Forums)


Members: 0


Guests: 193


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