The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Help with Login stuff
alright im trying to redesign my website and one of the things im trying to do is make it possible for users to login on the index of the site (non vb page) it needs to log them into the forums.
The reason i want to do this is because im also in the process of installing a hack by BillsPaintball which allows you to allow only certain usergroups to access non vb pages. So therefore I want to be able to login from the index.php page (which is a non vb page) I am running VB 3.5.4 And also keep in mind i know nothing about php, so if you ask me a whole bunch of questions about coding, i will get lost. I used Dreamweaver so it coded everything for me. And any explanations and instructions are going to need to be detailed. ok i got the login menu showing up and i can login fine with it. But im also getting this error Fatal error: Call to a member function query_read() on a non-object in /home2/grastyz/public_html/login_inc.php on line 149 And heres my code for lines 148-151 Code:
// get total number of threads and posts $getstats = $db->query_read('SELECT threadcount, replycount FROM ' . TABLE_PREFIX . 'forum'); while ($forum = $db->fetch_array($getstats)) { |
#2
|
||||
|
||||
did u copy login.php and create login_inc.php?
if so, the simplest way to login is just use the html form provided by vbulletin. it will submit to login.php and then redirect back the page which the request was sent from. anyways the reason for your error is because it has no backend, no global.php to setup the connection to the database. |
#3
|
|||
|
|||
the login_inc.php is from a hack i downloaded here. all i did was take the file, change the forumpath and upload it and it gives me the error. i did notice that if i put in random characters for the forum path it still gives me the same error. But anyway, im still a little confused here
|
#4
|
|||
|
|||
Where is the html form you mention?
|
#5
|
||||
|
||||
Quote:
The problem lies on the page that includes the login_inc.php file. Post your code for that page (not login_inc.php) in the hacks forum and I will look at it for you. Edit: Seen your code, posted the fix |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|