vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   VBULLETIN Login Info (https://vborg.vbsupport.ru/showthread.php?t=265919)

Nerrazzuri 06-28-2011 10:44 AM

VBULLETIN Login Info
 
Hi,

I am trying to write a custom php script that will add the logged in username into my mySQL table. Any simple guide/snippet that could help me retrieve the logged in username from different PC? To make it clear, I will need a simple script that could trace for his/her log in username and insert into mySQL table. I am still new to php but I don't need the full piece of script but just a snippet of how to retrieve the logged in forum ID from different PC(probably), and I will do the rest my own, thanks.

Code:

<html>
    <head>
        <title>Database</title>
    </head>
 
    <body>
 
    <form action="welcome.php" method="get">
    HWID: <input type="text" name="HWID" size="30"/><br />
    <input type="submit" name="submit" value="Submit" />
    </form>
 
    </body>
</html>

Above are some snippet that will direct to welcome.php after clicking the "Submit" button and in my welcome.php i will need to search for the username in the "user" table automatically add it up to my mySQL table.

Thanks in advance.

Regards,
Nerrazzuri

kh99 06-28-2011 12:44 PM

I've read this a few times but I'm still not sure what you're asking for. If you are writing something to be a vbulletin plugin or add-on, then getting the user name is easy. But the "from another PC" part confuses me.

Nerrazzuri 06-29-2011 11:39 AM

Sorry to confuse you. I am trying to get the login username of every user when he click the submit button. Thats all.

Regards
Nerrazzuri


All times are GMT. The time now is 12:30 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01644 seconds
  • Memory Usage 1,710KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete