News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Register Redirect

Started by K@, August 10, 2010, 07:19:37 PM

Previous topic - Next topic

Propaganistas

Quote from: K@ on August 20, 2010, 05:06:31 PM
But, "This mod seems not to work with these mods." doesn't give us anything to go on.
No, that's just my guess because those are quite huge mods..

Quote from: K@ on August 20, 2010, 05:06:31 PM
You get errors, what?
I didn't get any errors. It just won't redirect after an account activation or registration.. (i tried several times)

kat

Hmmm...

Well, for most of today, I've been involved doing this:

http://www.simplemachines.org/community/index.php?topic=396349.0

As you might imagine, I'm bloody knackered!

Actually, I've got double-vision, which ain't good.

So, I'm afraid I'm just off to bed (It's 22:15, here in England)

In the morning, assuming I can see straight, I'll see what I can think of.

If you give us the URL for your forum, maybe I can even try to register, to see what happens.

Propaganistas

Quote from: K@ on August 20, 2010, 05:17:17 PM
Hmmm...

Well, for most of today, I've been involved doing this:

http://www.simplemachines.org/community/index.php?topic=396349.0

As you might imagine, I'm bloody knackered!

Actually, I've got double-vision, which ain't good.

So, I'm afraid I'm just off to bed (It's 22:15, here in England)

In the morning, assuming I can see straight, I'll see what I can think of.

If you give us the URL for your forum, maybe I can even try to register, to see what happens.

www.uhrator.be

Note that default forum language is set to Dutch.

Normally, only a specific email provider is accepted at registration, but I'll disable this until 21/08/2010, 18h00 so you can take a look..

kat

Yep.

Just the normal "Bedankt voor het registreren. Je ontvangt een e-mail met een link om je account te activeren. Als je na verloop van tijd geen e-mail hebt ontvangen, check dan je spamfolder."

I wonder if the "By activation" could be a problem...

I'll check some things and get back to you.

Propaganistas

Quote from: K@ on August 21, 2010, 05:02:30 AM
Yep.

Just the normal "Bedankt voor het registreren. Je ontvangt een e-mail met een link om je account te activeren. Als je na verloop van tijd geen e-mail hebt ontvangen, check dan je spamfolder."

I wonder if the "By activation" could be a problem...

I'll check some things and get back to you.
Ok, thanks K@ :)

kat

Sorry for the delay.

My wife got carted off to hospital,  today, with chest pains. It's 22:30, here. Just got back. :(

They're keeping her in, overnight.

Depending on what happens, in the morning, I'll get back to as soon as I can.

Propaganistas

Quote from: K@ on August 21, 2010, 05:30:21 PM
Sorry for the delay.

My wife got carted off to hospital,  today, with chest pains. It's 22:30, here. Just got back. :(

They're keeping her in, overnight.

Depending on what happens, in the morning, I'll get back to as soon as I can.

I'm sorry to read that..
Thanks :)

kat

Just got her back. :)

Tomorrow, I should be OK, for this. :)

cicka

Quote from: Propaganistas on August 14, 2010, 11:17:41 AM
Hi,

I'm using SMF RC3, AeMe 2.0 and SP 2.3.2. This mod seems not to work with these mods.

I also took a look at the code and found this:
Quote<operation>
         <search position="replace"><![CDATA[function Activate()
{
   global $context, $txt, $modSettings, $scripturl, $sourcedir, $smcFunc, $language;]]></search>
         <add><![CDATA[function Activate()
{
   global $context, $txt, $modSettings, $scripturl, $sourcedir, $smcFunc, $language;
   
   if (!empty($modSettings['instant_register_enable']) && !empty($modSettings['activate_register_url'])){
   $_SESSION['login_url'] = $modSettings['activate_register_url'];
}]]></add>
      </operation>

this has to be the following as we're talking about Account Activation:
Quote<operation>
         <search position="replace"><![CDATA[function Activate()
{
   global $context, $txt, $modSettings, $scripturl, $sourcedir, $smcFunc, $language;]]></search>
         <add><![CDATA[function Activate()
{
   global $context, $txt, $modSettings, $scripturl, $sourcedir, $smcFunc, $language;
   
   if (!empty($modSettings[activate_register_enable']) && !empty($modSettings['activate_register_url'])){
   $_SESSION['login_url'] = $modSettings['activate_register_url'];
}]]></add>
      </operation>

Fixing this doesn't solve the broken redirection.

What did you fix there? There was nothing to fix in the code of the mod. The mod is working well. If you have problems with other mods then I think it is better to post at their threads instead :)

cicka

Quote from: K@ on August 22, 2010, 01:45:15 PM
Just got her back. :)

Tomorrow, I should be OK, for this. :)

I am sorry to hear your wife is not feeling well. I wish her a speedy recovery :)

cicka

Quote from: Bugo on August 16, 2010, 05:02:48 AM
What about Redirect on Login and/or Logout mod?

This is something entirely different. It redirect on login and logout and K@'s addon redirects on registration. I can not see what is the connection between those 2 things.

kat

Quote from: cicka on August 24, 2010, 03:13:28 PMI am sorry to hear your wife is not feeling well. I wish her a speedy recovery :)

Ta, darlin'!

NOT a heart-attack, thank Omnipotent Being!

Still having tests, to see what it is, though. :(

Propaganistas

#32
Quote from: cicka on August 24, 2010, 03:12:44 PM
What did you fix there? There was nothing to fix in the code of the mod. The mod is working well. If you have problems with other mods then I think it is better to post at their threads instead :)

I thought that your edits in Register.php are wrong because in function Register() you write the following:
if (!empty($modSettings['instant_register_enable']) && !empty($modSettings['instant_register_url'])){ (instant + instant)

while in function Activate() I think there's a mixed setting:
if (!empty($modSettings['instant_register_enable']) && !empty($modSettings['activate_register_url'])){ (instant + activate)

After checking the other code edits, I found that there's a checkbox called activate_register_enable. Because this box id hasn't been used, methinks it belongs to function Activate(), replacing instant_register_enable.

As a result, the checkbox with id activate_register_enable has a purpose of being there..

Don't you think so?

kat

As It works, for everyone but you, could it be a mod clash, somewhere?

Not sure where to check, to be honest.

Propaganistas

Quote from: K@ on August 25, 2010, 08:05:39 AM
As It works, for everyone but you, could it be a mod clash, somewhere?

Not sure where to check, to be honest.
Weird.. I disabled every mod and then tried this, but it still doesn't work..

kat

Without access to your admin panel, I'm kind blind, with this, I'm afraid.

rocknroller

#36
greetings,

After i was install other mod, Welcome Topic

Register Redirect does not work anymore. That two mods will be great to work together.


I am on 2.0RC2.

Tnx

EDIT: put ] on right place.

kat

What I'd do, if I was in your place, would be to go to the mod's parser and make sure the edits that it made are still there and in the right place.

Installing the second mod may have altered the first.

Fortunately, this mod doesn't have many edits. So, it should be pretty easy to check. :)

rocknroller

Quote from: K@ on August 28, 2010, 03:50:14 PM
What I'd do, if I was in your place, would be to go to the mod's parser and make sure the edits that it made are still there and in the right place.

Installing the second mod may have altered the first.

Fortunately, this mod doesn't have many edits. So, it should be pretty easy to check. :)

lines is diferent in each mod. no conflict between file edits, nothing what can i see.

Maybe i should install new SMF on local, and test same situation.

kat

When you say "Register Redirect does not work anymore", what do you mean, exactly?

Advertisement: