Announcement

Collapse
No announcement yet.

Where is this piece of code?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #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


    • #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


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

        Twitter Blog

        www.peterska2.com www.worldnewszone.com www.popularusenetgroups.com www.superclickers.co.uk www.forumsforchrist.com www.browsergameplanet.com

        Comment


        • #5
          Originally posted by Kerry-Anne View Post
          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


          • #6
            Originally posted by Commander-X View Post
            ....
            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


            • #7
              Originally posted by goyo View Post
              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...
              X