Where is this piece of code?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Commander-X
    New Member
    • Nov 2008
    • 19
    • 3.7.x

    Where is this piece of code?

    Hello Im doing my own login script outside vb pages I want to know where is the piece of code that says " Thank you user for logging in blah blah".

    What is the string variable that's holding the session cookies and the username upon sucessfull login? I tried:

    echo $vbulletin->userinfo['username'];

    but it isn't echoing anything but yet I'm logged in

    Please help
  • rossco_2005
    Senior Member
    • Apr 2005
    • 465
    • 4.1.x

    #2
    // do redirect
    do_login_redirect();



    (found in login.php)

    The function can be found in functions_login.php (so if you use it you have to include('includes/functions_login.php');)

    Instead of that function all you really need to do is set $vbulletin->url to the url you want to redirect to, then add this code below:
    eval(print_standard_redirect('redirect_login', true, true, $vbulletin->userinfo['languageid']));


    The user info is in $vbulletin->userinfo. Not sure why you're having a problem, where are you echoing from?

    http://filesharingtalk.com

    Comment

    • Commander-X
      New Member
      • Nov 2008
      • 19
      • 3.7.x

      #3
      Well I just included the global.php before echoing the $vbulletin->userinfo and it worked. Now since I know that the username is passed on my redirection page I can do another mysql query without using any more scripts from vb. I Plan to display the user avatar by just doing a simple query to the databse before echoing anything.

      Qeustion is what table in the database is holding the user avatar data

      Tnx in advance

      Comment

      • peterska2
        Senior Member
        • Oct 2003
        • 8869
        • 3.7.x

        #4
        This requires custom coding which we cannot officially support. Try asking for help with this at the vB Mod site: www.vbulletin.org

        Comment

        • Commander-X
          New Member
          • Nov 2008
          • 19
          • 3.7.x

          #5
          Originally posted by Kerry-Anne
          This requires custom coding which we cannot officially support. Try asking for help with this at the vB Mod site: www.vbulletin.org
          original question: What table in the databse is holding the avatar data?

          I browsed through the database via phpmyadmin and the database table is customavatar and to display the avatar you need the dateline and the userid somthing like this:

          Code:
          <?
           
          echo '<img src=forums/image.php?u='.$userid.'&dateline='. $dateline.'" width="40" height ="40">';
           
          ?>
          which will output something like this:

          <img src="forums/image.php?u=1&dateline=123456" width= "40" height="40>

          Now I don't see any reason for a custom code for that just a simple question of where the avatar data is stored. You keep replying "This requires custom coding which we cannot officially support. Try asking for bla blah blah "

          Almost every inquiry I make in this forums thats the answer I get from you. Will you please quit repeating yourself it doesn't help me and it gets pretty annoying!! If this is your way so you can just have something to say then carry on but pick on somebody else's thread not mine!!
          Last edited by Commander-X; Sat 13 Dec '08, 7:00am.

          Comment

          • goyo
            Senior Member
            • Dec 2002
            • 304
            • 3.8.11

            #6
            Originally posted by Commander-X
            ....
            Almost every inquiry I make in this forums thats the answer I get from you. Will you please quit repeating yourself it doesn't help me and it gets pretty annoying!! If this is your way so you can just have something to say then carry on but pick on somebody else's thread not mine!!
            This is not the right forum to ask questions about custom coding and modifications.
            Use vbulletin.org.

            Comment

            • Commander-X
              New Member
              • Nov 2008
              • 19
              • 3.7.x

              #7
              Originally posted by goyo
              This is not the right forum to ask questions about custom coding and modifications.
              Use vbulletin.org.
              Who's asking custom coding? Me? Will you please read the whole thread before giving me any more lip !!

              I never ask for custom codes I DO my own codes I was just asking where to find this and that in vb and in case you didn't notice it yet all my questions in this thread is already answered... well by ME

              Will sombody please close this thread and stop making any more fuzz

              Comment

              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
              Working...