I want to allow to new users to register without sending comfirmation email, just let them register instantly clicking on the new registrations line.
I downloaded hack "autoActivateMod".
I changed in modules/Your_account/ index.php for autoActivateMod exactly what was required but when I try to click on the new registrations line I get blank page, as well as clicking on the Your account link.
I was loking for the similar problem in the forum, but with no luck.
Did anybody have such problem and how to solve it out please?
I am not saying that it is wrong. I do know it is a perfect hack. What I am trying to find out why it does not work for me, where could be mistake on my site.
Raven General
Joined: Mar 22, 2003
Posts: 5233
Location: USA
Posted:
Tue Jul 29, 2003 6:59 am
Sorry, that wasn't my intent. I know your weren't saying that. And it's not perfect
Do you have other mods installed or is this the only one?
There is only one. I did it first time and Php-nuke 6.5 is installed fresh new only a few weeks. I am trying just get all working together.
What I did was:
I did open modules>Your_Account> index.php and found the line with function finishNewUser() then I copied whole script from finishNewUser.php file and did paste it in to the place in index.php
Then I went to browser to my site to make a new user, but after clicking on the link to create new user ... I got blank page.
Was it correct?
Raven General
Joined: Mar 22, 2003
Posts: 5233
Location: USA
Posted:
Tue Jul 29, 2003 7:57 am
Were you able to create a new user before you did the mod? If so, then the mod should not matter as it uses 100% the same code that is already in the index.php. So, I would guess that something didn't get copied exactly right. If you never tried the new user function before you tried the mod, restore your original index.php and try adding a new user to see if you still get the blank page. If that works ok, then try the copy and paste again. Make sure that you completely overlay/delete the original finishNewUser function in your index.php. You need to end up with only one function called finishNewUser.
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
die ("You can't access this file directly...");
}
I am sorry, I did not paste the code properly. This was the only problem. You was right. Now it is OK. Thank you very much.
There is only small problem (but this was before as well)
After creating new user, user can gets only
_ACTIVATIONYES
xxxxx: _ACTMSG
what is fine, but it can makes user confusing what to do next. There is not coming welcome text. I thing it can be language conflict ( I do use Slovak language) because in English is everything going well.
I do not know how to make it working.
Raven General
Joined: Mar 22, 2003
Posts: 5233
Location: USA
Posted:
Fri Aug 01, 2003 4:32 am
Edit the Your_Account/language/lang-slovak.php file and add those DEFINES. Also, check the slovenian.php.
Thank you for your advice. I changed it and works perfectly.
I would like you ask for last advice. There is fantastic possibility to make the articles to be printed out using on age button. But I would need it to have it in new window (pop up) (with no links back to the articel or main index page if this is possible ). How could I do this.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum