vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Linking vbulletin log in to other pages (https://vborg.vbsupport.ru/showthread.php?t=212248)

gorejos 04-26-2009 09:41 PM

Linking vbulletin log in to other pages
 
Hello,

My site team is trying to create a browser based game but we was wondering if there was a way to link our forum login to the site so that the users can use there forum password to sign in. If this can be done please tell us how. I found and tried this on the vbulletin page i found it in a topic but when users sign in the box still appears. Can we make it to where it will say welcome, [username]

Quote:

<!-- login form -->
<form action="forums/login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5pa ssword,vb_login_md5password_utf)">
<div align="right">
<script type="text/javascript" src="forums/clientscript/vbulletin_md5.js"></script>
<span class="style2"><strong>Username: </strong></span>
<input type="text" class="button" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="1" value="Username" onfocus="if (this.value == 'Username') this.value = '';" />
<input type="checkbox" name="cookieuser" value="1" tabindex="3" id="cb_cookieuser_navbar" accesskey="c" checked="checked" />
<span class="style9">Remember Me</span><br />
<span class="style9">Password:</span>
<input type="password" class="button" name="vb_login_password" size="10" accesskey="p" tabindex="2" />
<input type="submit" class="button" value="Login" tabindex="4" title="" accesskey="s" />
<input type="hidden" name="s" value="" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="forceredirect" value="1" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
<input type="hidden" name="url" value="http://www.findingjesustoday.com" />
</div>
</form>
thanks

Dismounted 04-27-2009 05:59 AM

You can include global.php to get the current user's info and status.

gorejos 04-27-2009 08:25 PM

Well I have the same file you mentioned above in the game file and it don't get the user information

gsmph 04-28-2009 12:49 AM

Quote:

Originally Posted by gorejos (Post 1799573)
Hello,

My site team is trying to create a browser based game but we was wondering if there was a way to link our forum login to the site so that the users can use there forum password to sign in. If this can be done please tell us how. I found and tried this on the vbulletin page i found it in a topic but when users sign in the box still appears. Can we make it to where it will say welcome, [username]



thanks

you can try this

https://vborg.vbsupport.ru/showthrea...hlight=c_login

br
gsmph

gorejos 05-01-2009 01:19 AM

So do I just upload the php file they give me into the files and make the right changes? Is there anything else? I hope I understand them

Dismounted 05-01-2009 05:31 AM

If you are needing support with a modification - you should post in that modification's release thread.

gorejos 05-01-2009 12:48 PM

K thanks both of ya you have been a big help

zirzirnet 05-02-2009 07:32 AM

thanks


All times are GMT. The time now is 11:32 AM.

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.01109 seconds
  • Memory Usage 1,725KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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