Welcome, Guest. Please Login or Register.
May 13, 2025, 05:53:23 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  From registration to profile? « previous next »
Pages: [1] Reply Ignore Print
Author Topic: From registration to profile?  (Read 516 times)
king_killa
Full Member
***
Posts: 132


king killa big wheela cat peela

WWW
From registration to profile?
« on: April 13, 2003, 08:51:55 PM »
Reply with quote

I think it would be nice if when the user registers, It takes them, or has the option of taking them to their profile.
Logged

Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:From registration to profile?
« Reply #1 on: April 13, 2003, 10:51:26 PM »
Reply with quote

thats a good idea :)

edit Register.php, search for                     <form action="' . $cgi . ';action=login2" method="post">
                        <input type="hidden" name="user" value="' . $member['user'] . '" />
                        <input type="hidden" name="passwrd" value="' . $member['passwrd1'] . '" />
                        <input type="hidden" name="cookielength" value="' . $Cookie_Length . '" />
add after                        <input type="hidden" name="loginfrom" value="register" />

edit LogInOut.php, search forfunction Login2()
{
   global $txt, $settings, $username, $cookielength, $Cookie_Length, $user, $passwrd, $cookieneverexp, $db_prefix;
   global $pwseed, $cookiename, $password, $REMOTE_ADDR, $maintenance;
   global $language, $modSettings;
add after   global $loginfrom, $yySetLocation, $scripturl;
search for   if (!($maintenance == 1 && $settings[7] != 'Administrator'))
   {
      WriteLog();
      redirectinternal();
   }
replace with   if (!($maintenance == 1 && $settings[7] != 'Administrator'))
   {
      WriteLog();
      if ($loginfrom == 'register')
      {
         $yySetLocation = $scripturl . '?action=profile;user=' . $username;
         redirectexit();
      }
      else
         redirectinternal();
   }


haven't been tested, but "should" work ;)
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:From registration to profile?
« Reply #2 on: April 14, 2003, 01:33:10 AM »
Reply with quote

spaceman, can you release that as a mod? That would be cool.
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
king_killa
Full Member
***
Posts: 132


king killa big wheela cat peela

WWW
Re:From registration to profile?
« Reply #3 on: April 14, 2003, 01:41:56 AM »
Reply with quote

Thanks  :)
*goes to edit files*
Logged

Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:From registration to profile?
« Reply #4 on: April 14, 2003, 02:24:57 AM »
Reply with quote

Quote from: groundup on April 14, 2003, 01:33:10 AM
spaceman, can you release that as a mod? That would be cool.

sure, i'll test it first
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:From registration to profile?
« Reply #5 on: April 14, 2003, 02:51:00 AM »
Reply with quote

done ;)
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:From registration to profile?
« Reply #6 on: April 14, 2003, 03:01:36 AM »
Reply with quote

danke
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
oldiesmann
YaBB God
*****
Posts: 577


Jesus died for your sins... Have you thanked him?

oldiesmann@oldiesmann.us WWW
Re:From registration to profile?
« Reply #7 on: April 14, 2003, 12:56:06 PM »
Reply with quote

Ah! I will definitely add that... I get so annoyed of having to log in and then edit my profile after I register (one of the reasons I don't use the registration agreement thing). *bookmarks topic*
Logged

"I've sinned greatly, but Christ's for real, baby
It's a wonder He saved me and just didn't hate me
So won't you tell Him "Save me"
Please stand up, please stand up, please stand up..." - J. Jackson (More Info)
tuntis
Jr. Member
**
Posts: 97


Now connecting......Succesfully completed...

tuntis@hotmail.com
Re:From registration to profile?
« Reply #8 on: April 14, 2003, 01:45:21 PM »
Reply with quote

Where is thanks?
Logged

BEEEEEP...Internet connection started...Dialing to www.yabbse.org/community... Dialing to ns1.infodoma.com... Completed...Please wait...Dialing to www.sourceforge.net...Please wait...BEEP BIIP BEEP calling to 2123-13231838423238429489273942312389248...
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  From registration to profile? « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 1.421 seconds with 21 queries.