Automatic redirect to profile

Started by LOLwut, March 16, 2008, 02:08:57 PM

Previous topic - Next topic

LOLwut

So when I go on my site, it makes you go automatically to your profile area.
www.TizeMe.com

The #1 place to show off your website/forum/blog/youtube channel, you name it!

- ALL FOR FREE.

Eliana Tamerin

Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

LOLwut

What I meant was, right when They hit the homepage
www.TizeMe.com

The #1 place to show off your website/forum/blog/youtube channel, you name it!

- ALL FOR FREE.

Eliana Tamerin

That will. When they log in, they'll be redirected to their profile. If you do it when they first get to your site, you'll get errors, since guests don't have a profile.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

LOLwut

Would it be in SSI.php

And I would change it to

$_SESSION['login_url'] = profile
www.TizeMe.com

The #1 place to show off your website/forum/blog/youtube channel, you name it!

- ALL FOR FREE.

Eliana Tamerin

I'm not sure, I'm not familiar with SSI. You could check out the Basic, Advanced, and Expert SSI FAQs.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

LOLwut

I just meant what PHP is it in, that redirets
www.TizeMe.com

The #1 place to show off your website/forum/blog/youtube channel, you name it!

- ALL FOR FREE.

Eliana Tamerin

Again, I'll reiterate, I'm not familiar with the SSI features. You would have to inquire in the FAQ files, or use the search function. I'm sure I've seen another topic asking about SSI login redirection. So I don't know what the syntax for the SSI php markup would be.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

LOLwut

Well if you dont know, please dont respond with a useless post.
www.TizeMe.com

The #1 place to show off your website/forum/blog/youtube channel, you name it!

- ALL FOR FREE.

Eliana Tamerin

I'm not. I'm telling you to ask in the FAQ topics, which I linked you to three posts up. Either do that, or search for something like "SSI Login redirect" which should find a few topics related to your question.

I don't know, I can't tell you exactly what to write. I can tell you what to do to find your answer.

Additionally, if you're a charter member, you should have a dedicated support area/support tickets where you can get a more personalized response. Somebody there should be able to help you.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

LOLwut

WEll, I searched and found one that was suppose to work, but didnt work on my version (the newest one)

I just need a redirection to

http://www.halocemaps.net/index.php?action=profile
www.TizeMe.com

The #1 place to show off your website/forum/blog/youtube channel, you name it!

- ALL FOR FREE.

Eliana Tamerin

I'm guessing you could probably try ssi_login('index.php?action=profile')

Otherwise, it would probably be in the loginout.php file in your sources.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

LOLwut

// Just like whosOnline except it also logs the online presence.
function ssi_logOnline($output_method = 'echo')
{
   writeLog();

   if ($output_method != 'echo')
      return ssi_whosOnline($output_method);
   else
      ssi_whosOnline($output_method);
}

// Shows a login box.
function ssi_login($redirect_to = '', $output_method = 'echo')
{
   global $scripturl, $txt, $user_info, $context;

   if ($redirect_to != '')
      $_SESSION['login_url'] = $redirect_to;

   if ($output_method != 'echo' || !$user_info['is_guest'])
      return $user_info['is_guest'];

   echo '
      <form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '">
         <table border="0" cellspacing="1" cellpadding="0" class="ssi_table">
            <tr>
               <td align="right"><label for="user">', $txt[35], ':</label>&nbsp;</td>
               <td><input type="text" id="user" name="user" size="9" value="', $user_info['username'], '" /></td>
            </tr><tr>
               <td align="right"><label for="passwrd">', $txt[36], ':</label>&nbsp;</td>
               <td><input type="password" name="passwrd" id="passwrd" size="9" /></td>
            </tr><tr>
               <td><input type="hidden" name="cookielength" value="-1" /></td>
               <td><input type="submit" value="', $txt[34], '" /></td>
            </tr>
         </table>


Cant find it
www.TizeMe.com

The #1 place to show off your website/forum/blog/youtube channel, you name it!

- ALL FOR FREE.

Eliana Tamerin

Where are you looking? That code is contained in the SSI.php.

If you just want a typical redirect from your forum login page, you would alter the loginout.php source file.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

LOLwut

where is the loginout.php contained?
www.TizeMe.com

The #1 place to show off your website/forum/blog/youtube channel, you name it!

- ALL FOR FREE.

Eliana Tamerin

Your sources folder. /forumpath/Sources/LogInOut.php
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

LOLwut

ssi_login('index.php?action=profile')


is not in the document at all.
www.TizeMe.com

The #1 place to show off your website/forum/blog/youtube channel, you name it!

- ALL FOR FREE.

Eliana Tamerin

No, it's not. You'll have to alter the redirectexit line, I think.

redirectexit('action=login2;sa=check;member=' . $memberID, $context['server']['needs_login_fix']);
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

LOLwut

Replace this

ssi_login('index.php?action=profile')

With this

redirectexit('action=login2;sa=check;member=' . $memberID, $context['server']['needs_login_fix']);
www.TizeMe.com

The #1 place to show off your website/forum/blog/youtube channel, you name it!

- ALL FOR FREE.

Advertisement: