| | |
Vbulletin login box on a non vbulletin page
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Feb 2008
Posts: 1
Reputation:
Solved Threads: 0
I am looking for a script which will allow me to place a vbulletin login box on a non vbulletin page. There are couple of scripts, but they are for older versions. I am using v3.6.8
Does anyone know where to find one for 3.6.8?
The closest I could find was this:
http://forums.clantemplates.com/show...ght=code+login
(offcourse I will ask them permission before using it as I'm not using it on one of their templates)
I tested it and it worked, but I have a problem.
When I'm logged out of my forum I go to the page that I inserted the script in, I then log in, and it redirects me to the forum page, logs me in and redirects me back, just how it should.
I am logged into the forum then, but it doesn't show on the page that I'm logged in, it still shows the login form. So, all we need to do is to tell the script that when the user is logged in, it must replace the login box with this:
My programing knowlege is not very good.... Anyone who will give me a tip or two here?
Does anyone know where to find one for 3.6.8?
The closest I could find was this:
http://forums.clantemplates.com/show...ght=code+login
(offcourse I will ask them permission before using it as I'm not using it on one of their templates)
I tested it and it worked, but I have a problem.
When I'm logged out of my forum I go to the page that I inserted the script in, I then log in, and it redirects me to the forum page, logs me in and redirects me back, just how it should.
I am logged into the forum then, but it doesn't show on the page that I'm logged in, it still shows the login form. So, all we need to do is to tell the script that when the user is logged in, it must replace the login box with this:
•
•
•
•
Welcome, Deidre.
You last visited: Today at 07:03 PM
Private Messages: Unread 0, Total 0.
Having the login form is no problem. However, when you start talking about it knowing when you're logged in, and displaying your user information, now you're talking about a dynamic page that pulls information from the database. Since you self-acknowledged you're not a PHP programmer, I would check out vBulletin.org and, more specifically, the vBAdvanced CMPS product. It might be just what you're looking for.
html Syntax (Toggle Plain Text)
<!-- login form --> <form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, 0)"> <script type="text/javascript" src="clientscript/vbulletin_md5.js?v=370b5h"></script> <table cellpadding="0" cellspacing="3" border="0"> <tr> <td class="smallfont"><label for="navbar_username">User Name</label></td> <td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="User Name" onfocus="if (this.value == 'User Name') this.value = '';" /></td> <td class="smallfont" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />Remember Me?</label></td> </tr> <tr> <td class="smallfont"><label for="navbar_password">Password</label></td> <td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="10" tabindex="102" /></td> <td><input type="submit" class="button" value="Log in" tabindex="104" title="Enter your username and password in the boxes provided to login, or click the 'register' button to create a profile for yourself." accesskey="s" /></td> </tr> </table> <input type="hidden" name="s" value="" /> <input type="hidden" name="do" value="login" /> <input type="hidden" name="vb_login_md5password" /> <input type="hidden" name="vb_login_md5password_utf" /> </form> <!-- / login form -->
Dani the Computer Science Gal 
Follow my Twitter feed! twitter.com/DaniWeb
And if you're interested in Internet marketing there is twitter.com/DaniWebAds

Follow my Twitter feed! twitter.com/DaniWeb
And if you're interested in Internet marketing there is twitter.com/DaniWebAds
![]() |
Other Threads in the PHP Forum
- Previous Thread: Run time error!!!!!! Pls help...
- Next Thread: ftp upload from server to server
Views: 4832 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary broken cakephp checkbox class cms code cron curl database date datepart directory display download dynamic echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla jquery limit link list login loop mail menu methods mlm mod_rewrite multiple mysql oop parse password paypal pdf php problem query radio random recursion regex remote script search select seo server sessions sms soap source space speed sql structure syntax system table tutorial update updates upload url validation validator variable video web webdesign xml youtube






