1
SLEO577
Real Name in Xoops 2.0.13.1
  • 2005/9/2 19:35

  • SLEO577

  • Not too shy to talk

  • Posts: 110

  • Since: 2005/6/27


I have a question on the "Real Name" hack (Click Here to View it.).

It works great, except, once someone has registered, all they have to do is go to "View Account" and remove their Real Name.

Is there a way to make the "Real Name" like the Username and Email where members can't change or remove it?

2
m0nty
Re: Real Name in Xoops 2.0.13.1
  • 2005/9/2 21:39

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


open edituser.php

find on (or around) line 101:

$edituser->setVar('name'$_POST['name']);


change to:

$edituser->setVar('name'$nametrue);


find on line 169(or thereabouts) :

$name_text = new XoopsFormText(_US_REALNAME'name'3060$xoopsUser->getVar('name''E'));
    
$form->addElement($name_text);


change to:

$name_text = new XoopsFormLabel(_US_REALNAME$xoopsUser->getVar('name'));
    
$form->addElement($name_text);


save and you're done.

3
SLEO577
Re: Real Name in Xoops 2.0.13.1
  • 2005/9/2 22:48

  • SLEO577

  • Not too shy to talk

  • Posts: 110

  • Since: 2005/6/27


Thank you mOnty, that did the trick! You're a life saver!

Login

Who's Online

263 user(s) are online (188 user(s) are browsing Support Forums)


Members: 0


Guests: 263


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