Register Redirect

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

Previous topic - Next topic

kat

Well, with your particular problem, I really have no ideas.

Would making the url a tiny one help?

http://tinyurl.com

Spacecadet

Interesting, never seen that before, but it didn't work.

Are there any other options other than the 2 check boxes and the url's? I must be missing something ovious. Can you give a quick breakdown of all the settings or is it just the 2 in 'Features and Options'?

Spacecadet

K can you explain this to me please? I have very little knowledge of PHP. Is this what I need to do? Is it a mod conflict?

Quote from: Propaganistas on September 23, 2010, 04:55:52 AM
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

Honest answer?

I honestly don't know. :(

Spacecadet

In other words stop bugging you? Got it! Thanks for trying.

Whats the word I'm looking for if I were english? Well I'm Canadian, close enough!

"Codswallop"

hehehe

kat

No. As I said, that was an honest answer.

I REALLY don't have a clue, I'm afraid. :(

Spacecadet

This works for my wife, hang on a sec.

:'( :'( :'(

Would that girl "cicka" know? Is she ever on here anymore or did she finally get tired of guys telling her she was cute and leave lol.

kat

I'm in contact.

I'll ask her. :)

choloman05

I just installed this on a 2.0RC4 forum and now I'm kinda locked out of my forum.  When I login I get redirected to my portal page (index.html) and when I try to go back to my forum I find that I'm logged out. Had it working on the same forum just fine before I updated.

The only other mod I had installed was Simple Portal 2.3.3 with a portal page at myurl/index.html . I uninstalled the mod manually (register.php, managesettings.php, modifications.english,php) but I'm still staying logged out.

???

kat

I don't see how this can be doing that.

Any errors?

I'm going to upload a new version, if I can figure out how...

kat

OK. Done.

New version tested and found to work with RC4 and v1.1.12. :)

Spacecadet

K I'm going to uninstall the one I have installed now and install the new version. I'll let you know, thanks.

Spacecadet


kat


Spacecadet

Yes same problem, it simply does nothing. I'm sure the MOD works fine, it must be a conflict with another MOD. I tried to uninstall the red the rules on regsiter mod and it gave me a ton of error codes. I'll have to do it manually and let you know if that help.

kat


endomorph

Can confirm also that this does not work on my RC£ either which is a REAL shame as I really could do with this.

Would it have anything to do with EZportal ?

kat

When you say "this does not work on my RC£", what do you mean, exactly?

endomorph

Sorry, held shift for too long, RC3

kat

Yeah. What do you mean by "Does not work", though?

Advertisement: