![]() |
Alright i downloaded this a few days ago so i should have every update made. I inserted the code into my index.php file, in the spot i want it, the username and password fields show up great, but just under the "Submit Query" button im 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 I dont know why, and i know nothing about coding, so any help would be much appreciated (I have VB 3.5.4 if that makes a difference) |
somewhere else on these forums i found a suggestion to change $db-> to $vbulletin->db but that didnt work so i changed it back
|
Quote:
|
Quote:
Is this page and your forums located on the same server? Have you used the simple troubleshooting test page? If so, did you still have the slow loads and random timeouts? |
Quote:
Also, can you post your pages code here so I see if there is anything obvious. |
Hey, we run our site on multiple servers, Meaning I would like to use this script, but instead of a server path. (Since the are broken up between servers) Is there a way to provide the ability for external server support to lock in and do everything?
I would assume its just a simple connect to the sql database and fetch the data. |
Quote:
I dont see what the difference is. But here is my code anyway This is lines 144-159 PHP Code:
|
Hi. I know you aren't required to provide support for third party software and I don't expect you to but I was hoping you could help me out.
I'm using CMSMS (Content Management System Made Simple) and I'm trying to use your hack. The CMS lets me define php tags to use in the template code so that's no problem. However, when I execute the chdir call, it gives me this: Code:
Warning: array_keys() [function.array-keys]: The first argument should be an array in /includes/functions.php on line 3291 Line 3291 is foreach (array_keys($vbulletin->forumcache) AS $forumid) and I don't see how that conflicts with CMSMS... I'd appreciate your input. Hope to hear a reply from you one way or the other. Thanks. Edit: For reference, I set up a test.php page on my site (manually, not via the CMS) and it worked perfectly. |
Quote:
|
Disregard my previous post, I solved the problem by putting the page into an iframe on the CMS template.
Great hack, thanks. |
Any word on if my idea can work? We would love to use this on our site, which we run on a seperate server from the forums. Would love to be able to access usergroup permissions to setup usergroup page content on the site itself, but need to be able to do remote server access.
|
Quote:
vB has cross site logins off by default as a security measure. Have a look in the troubleshooting section here https://vborg.vbsupport.ru/showpost....49&postcount=2 to see what you can try. |
Quote:
You error may appear around there, but be caused elsewhere on the page. Quote:
The error on your page is probably stopping it fron doing that. |
Yea I have the site www.qj.net which we have on a seperate server from the forums, which means the main site and the forums wont BE on the same host and ftp. So meaning, the main site would 1st need to call the data off the SQL tables I assume, then apply it.
I would assume all one needs to use is the command in a php page for. Code:
<?php I mean what would you think? Cause its not a matter of cross site on same host, its about crossing onto a different host server with same domain ending. Edit: After more studies.. I wonder if somehow we can replace the local path settings with a remote SQL calling. (Which I know sadly requires a IP for the sql server which I dont know if thats really easy to setup with most hosts) Code:
// connect |
PHP Code:
|
Thanks Bill - this is a great mod. Worked perfect :)
It would be great it it would also grab the total member count, and users online (members and guests). That would be even more perfect :) |
Would love to see a screen shot of it in action
|
Quote:
|
Quick question -
I'm using PHP Code:
|
Quote:
The user passwords for vB are encrypted when they are stored in the database so you cant authenticate just like that. |
Quote:
Thats were the problem will be. |
Hi I keep ketting this error
Fatal error: Call to a member function on a non-object in /home/saiyanli/public_html/login_inc.php on line 150 |
Quote:
Let me know if that works. |
PHP Code:
|
Ok, looks like you skipped the first half of part one of the instructions. :)
Change PHP Code:
PHP Code:
|
i didnt think i needed that because i wasnt restricting access to that page. That is the index page
And that fixed the error, but when i log in it still doesnt redirect back to where i logged in from, it goes to the forum home. Nevermind, apparently sometimes it goes to the forum index, sometimes to where i logged in from. Is there a way to make it go back to the home page (not forum home) on logout???? it doesnt do that for me |
brilliant, just what i needed, /me clicks install
|
What is the code that evaluates the users additional usergroups. Is it possible to check and see if they are part of an additional usergroup?
What should i change $vbulletin->userinfo['usergroupid'] == '5' to? |
Hey with this code. I could technically connect to my user profiles and pull "x" profile field from it to display in a page table of my site, right?
|
will this work on 3.6 forums?
|
I'm having some trouble, and it's probably due to my lack of knowledge...
Could you please provide instructions on how to use iframes to include this on non-PHP pages? My front end content engine is shtml based. |
Quote:
|
Quote:
|
*edit* Thanks for the GREAT mod Bill! but Ive suddenly got a problem. One of my workstations (WinXPpro, all windows updates, IE6 etc) is not being redirected back to the custom .php page I made. It's just going straight to the index.php for the forums. Although one of my other workstations (same specs) is being redirected. I cleared cookies etc but it's still not working. Ive made no major changes. Without me posting a bunch of my code here - any thoughts? Im certain my paths are correct etc because this was working before and still works on my other PC...
Thanks in advance! |
Well I managed to fix this. on about line 154 there was this:
echo"<br />... Which I changed to take out the /: echo"</br>... Would this have helped? |
Well that seemes to work once - now I am not redirecting anymore. This is so frustrating...
*edit* I have determined that my problem is this: I can log into my custom page (home.php) 1 time and get redirected back to that page after logging in. Subsequent logins (after clearing cookies etc) take me directly to the forums index.php page. I have no idea whats wrong. I made a new profile on my PC and logged into it so it was a fresh user. I then logged into my home.php which includes the basic require_once info etc and got redirected back to that page - the avatar displaying correctly etc. I logged out and cleared cookies and immediately logged back in and instead of being redirected I get the forum index.php page... I have done all of the troubleshooting recommended by Bill and I KNOW my paths are correct. I just realized also that I was having the double // problem which I fixed in the login_inc.php. Ive also tried verifying there was no spyware on my PC (AdAware), no windows firewall turned on (WinXPpro), doing Windows Updates, I even tried Firefox (didnt work either), my VB cookie path has always been / and not /forums/ etc... Im lost as to what to try next... |
Quote:
|
Quote:
I havent had time yet to look at how vB handles secondary groups. Its on the todo list, but no ETA as yet. |
can you fix this code.. on my regular pages, i've got a redirect code in the form field that redirects to the usercp during login. i've tried using the same code in the login_inc.php file, but it doesn't seem to work:
<input name="url" type="hidden" value="/usercp.php" /> |
What error do you get?
What happens if you use the full url instead of just /usercp.php ? |
All times are GMT. The time now is 09:57 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|