PDA

View Full Version : Linking vbulletin log in to other pages


gorejos
04-26-2009, 09:41 PM
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]

<!-- login form -->
<form action="forums/login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5password,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
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/showthread.php?t=144626&highlight=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