41
Bananadude
Re: Problem with Register new user
  • 2005/12/15 21:17

  • Bananadude

  • Not too shy to talk

  • Posts: 155

  • Since: 2005/9/16


Do you have Extended Profiles installed? If not, then please install it.

Best Regards,
Bananadude
--- censored by Bananadude ---



42
Bananadude
Re: Who's online gone
  • 2005/12/15 21:11

  • Bananadude

  • Not too shy to talk

  • Posts: 155

  • Since: 2005/9/16


well, when we solve this problem then we maybe motivate you to help other users with similar or other problems. So in the theory, then every question is important

First, make a backup of your database!

You need to create the missing table, if you use phpMyAdmin you can do it like this: Click query window (small "SQL" icon in the left menu), select your XOOPS database fom the dropdown.

Copy and paste this into the query window:

CREATE TABLE `XXXX_online` (
  `
online_uidmediumint(8unsigned NOT NULL default '0',
  `
online_unamevarchar(25NOT NULL default '',
  `
online_updatedint(10unsigned NOT NULL default '0',
  `
online_modulesmallint(5unsigned NOT NULL default '0',
  `
online_ipvarchar(15NOT NULL default '',
  
KEY `online_module` (`online_module`)
ENGINE=MyISAM DEFAULT CHARSET=utf8;


XXXX have to be replaced with your prefix, if your prefix is 87dha0 then it will be 87dha0_online

CHARSET=latin1; should be replaced with the character set you use, if you are unsure on what to write there you can open the backup of your database in Notepad and see the buttom of each table-creation (if you can't read your sql-file because it's messy, then drag and drop it to your browser)

Press Go and your table should be created sucessfully, and hopefully is the problem fixed

Databases isn't my very strongest side, so I hope you made a backup first and someone can validate what I wrote.
I'm not sure, but I think "DEFAULT CHARSET=utf8;" could be left out and that it might should be a "PRIMARY KEY (`online_uid`)," right above "KEY"

Best Regards,
Bananadude
--- censored by Bananadude ---



43
Bananadude
Re: Can I remove Displayname from user registration (xoops 2.2.3)
  • 2005/12/15 19:58

  • Bananadude

  • Not too shy to talk

  • Posts: 155

  • Since: 2005/9/16


Quote:

limap5 wrote:
hi, i have test it, but.. the display name still appear in new member block how to remove that?


It's because the user registered before you enabled this hack.
I think it is possible to edit some code there too, but you can instead do something that is a lot easier.
After you have changed everything that needed to be modified in the short guide above, log in to your admin panel.
Go to Extended Profiles >> Users, then edit the spesific user/s. You don't have to change anything, just save it.

Best Regards,
Bananadude
--- censored by Bananadude ---



44
Bananadude
Re: Can I remove Displayname from user registration (xoops 2.2.3)
  • 2005/12/15 19:57

  • Bananadude

  • Not too shy to talk

  • Posts: 155

  • Since: 2005/9/16


I recently found one more thing that have to be modified (step 6).
I just post all you need to modify to remove displayname in XOOPS 2.2.x here, so it wont be so difficult to follow.
Thanks to baraxas who got the removing of displayname rolling


(1) In modules\profile\register.php, find these lines:
if ($op != "register") {
    
$newuser->setVar('uname', isset($_POST['uname']) ? trim($_POST['[b][color=FF3300]uname[/color][/b]']) : '');
    
$newuser->setVar('loginname', isset($_POST['loginname']) ? trim($_POST['loginname']) : '');
    
$newuser->setVar('email', isset($_POST['email']) ? trim($_POST['email']) : '');


and replace it with:
if ($op != "register") {
    
$newuser->setVar('uname', isset($_POST['uname']) ? trim($_POST['[b][color=FF3300]loginname[/color][/b]']) : '');
    
$newuser->setVar('loginname', isset($_POST['loginname']) ? trim($_POST['loginname']) : '');
    
$newuser->setVar('email', isset($_POST['email']) ? trim($_POST['email']) : '');



(2) Find these lines in your modules\profile\edituser.php :
$edituser->setVar('name'$myts->stripSlashesGPC(trim($_POST['name'])));
$edituser->setVar('uname'$myts->stripSlashesGPC(trim($_POST['[b][color=FF3300]uname[/color][/b]'])));


and replace it with:
$edituser->setVar('name'$myts->stripSlashesGPC(trim($_POST['name'])));
$edituser->setVar('uname'$myts->stripSlashesGPC(trim($_POST['[b][color=FF3300]loginname[/color][/b]'])));



(3) Still in the same file (modules\profile\edituser.php), find:
$avatar->setVar('avatar_file'$uploader->getSavedFileName());
$avatar->setVar('avatar_name'$xoopsUser->getVar('[b][color=FF3300]uname[/color][/b]'));
$avatar->setVar('avatar_mimetype'$uploader->getMediaType());


and change it to:
$avatar->setVar('avatar_file'$uploader->getSavedFileName());
$avatar->setVar('avatar_name'$xoopsUser->getVar('[b][color=FF3300]loginname[/color][/b]'));
$avatar->setVar('avatar_mimetype'$uploader->getMediaType());



(4) Open profile\include\forms.php and comment out with setting two slashes in front of these lines:
$elements[0][] = array('element' => new XoopsFormText(_PROFILE_MA_DISPLAYNAME"uname"$uname_size75$user->getVar('uname''e')), 'required' => true);
$weights[0][] = 0;



(5) In the same file (profile\include\forms.php), comment also out these lines:
$elements[0][] = array('element' => new XoopsFormText(_PROFILE_MA_DISPLAYNAME'uname'2575$user->getVar('uname''e')), 'required' => 0);
$weights[0][] = 0;



(6) Open modules\profile\admin\user.php and find the lines (it should be around line 123):
$user->setVar('uname'$_POST['[b][color=FF3300]uname[/color][/b]']);
$user->setVar('loginname'$_POST['loginname']);


and replace it with:
$user->setVar('uname'$_POST['[b][color=FF3300]loginname[/color][/b]']);
$user->setVar('loginname'$_POST['loginname']);


If you find any more that will need to be modified or get any more "displayname is to short.." messages, please give us a word

Best Regards,
Bananadude
--- censored by Bananadude ---



45
Bananadude
Re: Problem with password lengh in registracion
  • 2005/12/15 17:58

  • Bananadude

  • Not too shy to talk

  • Posts: 155

  • Since: 2005/9/16


is it this:http://www.dhost.info/motorower website?
Registering worked fine for me

If you where stupid, you wouldn't know it! No one can be familiar with something before they learn it

Did you check your register.php or was it that you where struggling with?
Inside your Xoops-folder you will find a folder named modules, open it and then open the folder profile where you will find the file named register.php
Open register.php with any simple texteditor, Notepad for example. In Notepad, press Ctrl+G and enter 75 in the linenumber-field and hit OK.
Control that this line is identical to the bold colered line:
}
[
b][color=FF0033]if (!empty($xoopsModuleConfig['minpass']) && strlen(trim($_POST['pass'])) < $xoopsModuleConfig['minpass']) {[/color][/b]
$stop .= sprintf(_PROFILE_MA_PWDTOOSHORT,$xoopsModuleConfig['minpass'])."<br />";
}


Hope it helps! If not, let us know

Best Regards,
Bananadude
--- censored by Bananadude ---



46
Bananadude
Re: Who's online gone
  • 2005/12/15 17:23

  • Bananadude

  • Not too shy to talk

  • Posts: 155

  • Since: 2005/9/16


It will be solved sooner or later

Have you tried with MySQL debug? Check if you get any errors.

Best Regards,
Bananadude
--- censored by Bananadude ---



47
Bananadude
Re: Problem with password lengh in registracion
  • 2005/12/15 11:56

  • Bananadude

  • Not too shy to talk

  • Posts: 155

  • Since: 2005/9/16


open your modules\profiles\register.php and see what you have on line 75, it should read:
if (!empty($xoopsModuleConfig['minpass']) && strlen(trim($_POST['pass'])) < $xoopsModuleConfig['minpass']) {


Best Regards,
Bananadude
--- censored by Bananadude ---



48
Bananadude
Re: Who's online gone
  • 2005/12/15 11:11

  • Bananadude

  • Not too shy to talk

  • Posts: 155

  • Since: 2005/9/16


Enable debug and see if get any debugmessages.

Best Regards,
Bananadude
--- censored by Bananadude ---



49
Bananadude
Re: security token
  • 2005/12/14 10:35

  • Bananadude

  • Not too shy to talk

  • Posts: 155

  • Since: 2005/9/16


Try with repairing your database, maybe that will help you out.

If you use phpMyAdmin it can be easily done from there.
From phpMyAdmin frontpanel click Databases, click on your XOOPS database, find your session table and mark the box or just go to the buttom and choose "select all".
From the dropdownbox "With selected:" choose Repair table.

Best Regards,
Bananadude
--- censored by Bananadude ---



50
Bananadude
Re: Can I do this???
  • 2005/12/14 10:11

  • Bananadude

  • Not too shy to talk

  • Posts: 155

  • Since: 2005/9/16


Sorry, my fault! I forgot to say that I used AMS in my example.

I don't know if it's possible to do that with th News module, that is why I changed to AMS, but maybe anyone with more knowledge pop in and answer it

Best Regards,
Bananadude
--- censored by Bananadude ---




TopTop
« 1 2 3 4 (5) 6 7 8 ... 13 »



Login

Who's Online

139 user(s) are online (76 user(s) are browsing Support Forums)


Members: 0


Guests: 139


more...

Donat-O-Meter

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

Latest GitHub Commits