11
codyf
Re: User disappeared
  • 2005/8/27 8:41

  • codyf

  • Just popping in

  • Posts: 24

  • Since: 2005/5/6 4


Ah yes, that was it. He was set to inactive. I was searching for him in the wrong section. Don't know how he got deactivated, though I wonldn't put it past him to deactivate himself. lol

Thanks Mithrandir



12
codyf
User disappeared
  • 2005/8/27 7:47

  • codyf

  • Just popping in

  • Posts: 24

  • Since: 2005/5/6 4


This happened last night and I can't make sence of it. I'm using 2.2.2 One of my users disapeared. When he trys to login is says "The selected user has been deactivated or has not been activated yet. Please contact the administrator for details."

I tryed to edit his account but his name does not display in the "find users" list yet it does display in the pm module.

When I tryed to visit his profile it says "No user selected".

He tryed registering again but it says username in use.

I don't know how this happened. The user has an admin account and said he didn't do anything unusual, it just "stopped working".

Any suggestions?



13
codyf
Re: SQL
  • 2005/8/26 7:38

  • codyf

  • Just popping in

  • Posts: 24

  • Since: 2005/5/6 4


Try this:

https://xoops.org/modules/smartfaq/faq.php?faqid=98



14
codyf
Re: Login in 2.2.2
  • 2005/8/26 7:28

  • codyf

  • Just popping in

  • Posts: 24

  • Since: 2005/5/6 4


You might try the autologin and remember me hack. However, I don't know if they work on 2.2.2

Anyone tryed this on 2.2.2?



15
codyf
Re: Fear of upgrading.
  • 2005/8/25 4:03

  • codyf

  • Just popping in

  • Posts: 24

  • Since: 2005/5/6 4


I upgraded from 2.0.13 to 2.2.2 and everything works fine. I mainly use the AMS module and haven't had a problem with it. I will tell you one thing though. DO NOT turn off your site before the upgrade. I did this and was unable to login to compleate the upgrade. After I restored from backup I upgraded again without turning my site off and had no trouble.



16
codyf
Re: Making real name required in 2.2.2
  • 2005/8/24 11:28

  • codyf

  • Just popping in

  • Posts: 24

  • Since: 2005/5/6 4


Ok, I figured it out and thought i'd share the wealth.

I'm sure there's a better way of going about this but this is how I got it to work.

So here it is:

modules/profiles/include/form.php

Below:

$elements[0][] = array('element' => new XoopsFormText(_PROFILE_MA_DISPLAYNAME"uname"$uname_size75

$user->getVar('uname''e')), 'required' => true);
    
$weights[0][] = 0;


Add:

$elements[0][] = array('element' => new XoopsFormText(_PROFILE_MA_REALNAME"name"$name_size75$user->getVar('name'

'e')), 'required' => true);
    
$weights[0][] = 0;


modules/profiles/register.php

Below:

$newuser->setVar('uname', isset($_POST['uname']) ? trim($_POST['uname']) : '');


Add:

$newuser->setVar('name', isset($_POST['name']) ? trim($_POST['name']) : '');


Below:

echo _PROFILE_MA_DISPLAYNAME.": ".$newuser->getVar('uname')."<br />";


Add:

echo _PROFILE_MA_REALNAME.": ".$newuser->getVar('name')."<br />";


That's it.



17
codyf
Making real name required in 2.2.2
  • 2005/8/23 9:11

  • codyf

  • Just popping in

  • Posts: 24

  • Since: 2005/5/6 4


Has anyone figured out how to make the real name field required in the registration form of 2.2.2 I used the hack in the faq for 2.0.10 but it dosn't work. It looks like it could be adapted but I am not skilled in the ways of php.



18
codyf
Too Many Connection Error
  • 2005/8/7 17:22

  • codyf

  • Just popping in

  • Posts: 24

  • Since: 2005/5/6 4


Hello

I'm using 2.013 (upgraded a few days ago). Today when I went to my homepage it wouldn't load. It came up with couldn't connect to MySQL and error loading databasefactory.php I've never recieved this error before and concluded that it was a MySQL problem. So, I logged into my acount on my hosts website and when I tryed to access the data base it said "warning MySQL said: Too many connections". I couldn't view/restore the database or anything.

After a few minutes everything started working again. I called the host about this and they told me that whatever software I'm running (xoops) probably dosn't handle connections well and that the problem wasn't on there end. So, I would like to know if you think this is a problem with xoop (prehaps I need to "fiddle" with some settings) or if this is a limitation with the host. I think this may be with the host but would like to try to confirm this before switching.

Thank you



19
codyf
Re: Adding realname field to registration form
  • 2005/5/27 22:31

  • codyf

  • Just popping in

  • Posts: 24

  • Since: 2005/5/6 4


It's nice to see that this will be included in 2.2

I feel stupid, I was looking through all the posts for the answers that I overlooked the faq.

For thoughs of you years from now reading this post wondering the samething the answer is here

https://xoops.org/modules/smartfaq/faq.php?faqid=478

So, in short I got it working and just in time as I have to leave for dreaded work in about one minute...

Thanks
Cody



20
codyf
Re: Adding realname field to registration form
  • 2005/5/27 20:04

  • codyf

  • Just popping in

  • Posts: 24

  • Since: 2005/5/6 4


Any ideas on this?

I've been playing around with it but still haven't be able to find a solution.

I added $reg_form->addElement(new XoopsFormText(_US_REALNAME, "name", 26, 25, $name), true); to registerform.php

And <input type='hidden' name='name' value='".$myts->makeTboxData4PreviewInForm($name)."' /> to register.php

I get the realname field in the registration form but when you fill it out and register is dosen't save it. I've seen different variations on the edit to registerform.php but non of them seem to work for me. I'm thinking this change in code was for a previous version of XOOPS and thats why it isn't working in 2.0.10




TopTop
« 1 (2) 3 »



Login

Who's Online

223 user(s) are online (153 user(s) are browsing Support Forums)


Members: 0


Guests: 223


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