News:

Wondering if this will always be free?  See why free is better.

Main Menu

Register Redirect

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

Previous topic - Next topic

Propaganistas

Quote from: K@ on September 05, 2010, 02:12:24 PM
Out of curiosity, how do you know it's Aeva that's the problem?
As I said before: it's just a wild guess. It could be Aeva, it could be SimplePortal, it could be something else... I only thought it could be aeva or simpleportal because those are huge mods..

kat

Well, I have SP on my forum and the Register mod went without a problem.

So, yeah, maybe it's AEVA.

Can AEVA be disabled?

If so, does this work, if you disable AEVA?

Propaganistas

Still no luck..

I'm going to try your mod on a freshly installed system.. If that doesn't work, it's server-related, if it does work i'll install some mods one by one..

Propaganistas

Ok, I got some information.

On a fresh forum, the mod works out of the box for immediate registration, but only works for activation when BOTH checkboxes are ticked.

Sadly, ticking both on my current forum doesn't make it work. I'll install other mods one by one in the next few days.

kat

I'm working on the mod, to see if I can figure something.

I'll try and put an update on, tomorrow.

kat

The array key name may have been affecting other mods.

That's been fixed, in this version (attached).

Propaganistas

#66
Quote from: K@ on September 07, 2010, 04:35:20 PM
The array key name may have been affecting other mods.

That's been fixed, in this version (attached).
The direct registration method now redirects, but activation by mail still doesn't have any luck.. :(

Actually, I'd like to test the redirecting at activation by hardcoding this instead of some settings in the admin panel. That way, it should be clear if it's server-related/variable-related?

Is this the correct code change for hardcoding redirect at activation?:
FINDfunction Activate()
{
global $context, $txt, $modSettings, $scripturl, $sourcedir, $smcFunc, $language;

REPLACEfunction Activate()
{
global $context, $txt, $modSettings, $scripturl, $sourcedir, $smcFunc, $language;

   $_SESSION['login_url'] = "http://www.google.com";


Propaganistas

I just tried hardcoding the piece above but it didn't work..

Propaganistas

Nevermind. I found a workaround by adding menu tabs which are only visible to certain groups.

kat

Thanks for sharing that.

Might be useful, that!

Propaganistas

#70
FYI:

write everything your members NEED to read after registration/activation in a custom page (eg. SimplePortal pages), then do the following:

in $sourcedir/Subs.php

EDIT 1
FIND
'home' => array(
    'title' => $txt['home'],
    'href' => $scripturl,
    'show' => true,


REPLACE
'home' => array(
    'title' => $txt['home'],
    'href' => $scripturl,
    'show' => !in_array(0, $user_info['groups']),

If your Home button is modded (like SimplePortal does), find the part which defines your home/forum button and then add at the end of the 'show' => -line this snippet:&& !in_array(0, $user_info['groups'])

SimplePortal example:
Quote'show' => in_array($modSettings['sp_portal_mode'], array(1, 3)) && empty($context['disable_sp']) && $context['allow_edit_profile'],
BECOMES
'show' => in_array($modSettings['sp_portal_mode'], array(1, 3)) && empty($context['disable_sp']) && $context['allow_edit_profile'] && !in_array(0, $user_info['groups']),

EDIT 2
FIND
'help' => array(
    'title' => $txt['help'],
    'href' => $scripturl . '?action=help',
    'show' => true,
    'sub_buttons' => array(
    ),
),


ADD BEFORE
'postregister' => array(
    'title' => $txt['home'],
    'href' => $scripturl . '?page=postregister',
    'show' => in_array(0, $user_info['groups']) && empty($user_info['posts']),
    'sub_buttons' => array(
    ),
),

in which ?page=postregister  refers to the custom page.




OPTIONAL EDIT 3

I've also set up a custom tab for members that have made some posts but don't have a primary group anymore. That way, they can't view the forum either without selecting a primary group.

'selectgroup' => array(
    'title' => $txt['home'],
    'href' => $scripturl . '?page=selectgroup',
    'show' => in_array(0, $user_info['groups']) && !empty($user_info['posts']),
    'sub_buttons' => array(
    ),
),

in which ?page=selectgroup  refers to the custom page.




Greetz :)

kat

Wow!

You've been working hard!

Thanks!

Spacecadet

I know this will sound like a dumb question but where do i find the forms after i create them?

kat

You lost me.

You can put these forms, whatever they are, wherever you want them, surely?

Spacecadet

Ok but there has to be an actual file right? Where do i see the finished version of the form and where do i direct the link to, to use the form?

Spacecadet

In the main section before the forms is created is says:

"View Forms Text"

If I type in the word "Forms" is that supposed to show a link on my main page now to access the forms I created? I have entered "Forms" in both fields and tried other options and cannot find a link to actually access or use the form.

Spacecadet

I think I have sort of figured out whats going on. After reading this:

"This setting allows you to chose the title for the action/page that shows the list of forms to a user (at "index.php?action=forms"). By default 'Custom Forms' will be the title."

However I have no such link anywhere on the page, either that or I don't know where to find it. Can someone throw me a bone please? WOOF!

kat

The idea is that you make such a page, yourself.

Spacecadet

lol OMG K you're killing me, let me say this in a diffrent way. How do i see the finished version of the form?

kat

I must be dim, today.

Go to the page that you made? ;)

Or, perhaps, log out of your forum and register?

Advertisement: