![]() |
I think I may have solved the avatar problem for those that are not storing them in the database.
If anyone who was doing that and having trouble wants to test a revised version PM me. |
Hey bill,
I sent you a PM about an issue I was having with my login system. Its odd in that it will log you in once, but the second you logout and try to relogin, it says it works yet shows you not logged in. Something else thats weird is that even though you are not logged in, it shows you as a active user on the forums. |
alright, my install is completely screwed up. All of the sudden when I login on the home page it wont redirect back to the home page, it keeps going to the forum home.
Also I was playing with the code to only allow usergroup 6 to go to a certain page, If i am not logged in it tells me i dont have permission (as well as "Unable to add cookies, header already sent. File: /home2/grastyz/public_html/comedy.php Line: 6") and if im logged in and in usergroup 6 it lets me view it, and then i tried changing the code to usergroup 9 which is an additional usergroup im in, and it let me go to the page, then i changed the code to usergroup 7 which is a usergroup im not in, and it still let me go to the page. im using this code from the first page Code:
<?php If I login from the home page, it then redirects me to the forum home, so then I would type my home page back in the url, everything looks fine, it shows my avatar, my name, my private messages, etc, but if i then click on the forum link, im not logged into the forums, but im still logged in on the home page. Sorry, I know i went into rant mode on this, but I am getting so frustrated with this. It was working last week, i changed nothing, and now it doesnt work (last week i didnt test putting a usergroup i didnt belong to in the code listed above) |
hello all, i did all the above and still receive erros.....I also need to get the user's name and insert it in an .aspx form so that he/she can log in my chat page.. what do you guys think i should do with this once i get it working ?
thanx "Notice: Undefined index: REQUEST_URI in D:\webscv\sites\page\vbull\includes\class_core.php on line 1944 Notice: Undefined index: REQUEST_URI in D:\webscv\sites\page\vbull\includes\class_core.php on line 1944 Notice: Undefined index: HTTP_REFERER in D:\webscv\sites\page\vbull\includes\class_core.php on line 1594 Unable to add cookies, header already sent. File: D:\webscv\sites\page\vbull\includes\class_core.php Line: 1944 " |
I'm getting the following error...
Fatal error: Call to a member function on a non-object in /home/vertical/public_html/forums/login_inc.php on line 150 Line 150 in the login_inc.php file says this... $getstats = $db->query_read('SELECT threadcount, replycount FROM ' . TABLE_PREFIX . 'forum'); I'm running vB 3.6.1 can anyone help me out with this? |
Here is my code from the page that is calling the include that is bringing up the Fatal Error on line 150...
HTML Code:
<?php |
As you can see I'm running this page off a template in Dreamweaver... The problem with trying to put that PHP code in the template is it won't let you put it before the <html> or <head> tags because that is not considered part of the template and then that PHP code won't be in any other page that uses that template...
|
Quote:
Or, you have the path entered wrong. |
It's not supposed to be in the /forums directory... Let me try taking it out of there... by the way if you want to see for yourself my site is www.verticalterrain.com
|
Fixed this part...
|
Fixed part of it.
|
Ok so this is my final post for the night... I took care of it and got it working on my site...
Check it out here... www.verticalterrain.com It's doing something weird though. If I log in on the main page it redirects me but shows me as still not being logged in. If I go to my forum main page and log in it logs me in and then if I go back to the main page on my site it shows me as logged in... What's up with that? Is this a cookies issue? |
Quote:
|
Hi,
After using this fantastic hack for a while now, we've just installed the vbseo product. Everything is fine other than this line in login_inc.php: PHP Code:
|
Bill,
I fixed all the errors now here is my new problem... Check it out here... www.verticalterrain.com It's doing something weird though. If I log in on the main page it redirects me but shows me as still not being logged in. If I go to my forum main page and log in it logs me in and then if I go back to the main page on my site it shows me as logged in... What's up with that? Is this a cookies issue? |
Quote:
|
Quote:
|
I also think there must be an error in part of the code or something because some of the links work but then some will end up giving me
forums//login.php as an example but if i changed login_inc to have my forums as .net/forums then it will work however then the other links will be forumsprivate.php as an example so i dont know how to fix this problem. |
What I use to get total number of members. Works for me. Posting it here because it seems to be something people really want. Dunno why. I script kiddied the code that Billspaintball used to get thread/post counts, and did a quickie Google search for how to count rows. and mashed them up. /shrugs
Demo: beta.awp-tech.com Code:
// get total number of members Hakaslak figures usage instructions would be nice::rolleyes: # #-----[ OPEN ]------------------------------------------ # Code:
login_inc.php #-----[ FIND ]------------------------------------------ # Code:
$totposts = vb_number_format($totposts); #-----[ AFTER, ADD ]------------------------------------------ # Code:
// get total number of members #-----[ FIND ]------------------------------------------ # Code:
$vbphrase[posts]: $totposts<br /> #-----[ AFTER, ADD ]------------------------------------------ # Code:
$vbphrase[members]: $totusers<br /> |
I've been trying to add the newest user for 3 hours. It's 3:30 and I'm giving up to sleep. Does ANYONE have any idea how to display the newest registerd user???
Google is NOT my friend. |
Quick thing. Any particular reason you used the "+=" operand? I am a newbie so I am guessing, but on my home page, it doubles the value of all my statistics. So instead of 95 posts and 95 threads, the stats say 190 theads and posts. However, when the stat is reporting from a thread in the forums dir, then everything is fine. This is true for the member count stat as well.
Also, I had to change your "+=" operand to "=", and modified your mySQL query in order to get the correct values. Here is what I am using now: Code:
// get total number of posts |
This is the best hack i've ever installed on any vB forum. And trust me ive installed lots ^^
Great work bill!, It took me a while to set it up (major issues with file paths, cookies) but the fixes are in this thread. And example: http://www.snesclassics.com - up top right. Thanks again mate! |
Any idea why this isn't working? I installed it on a test page.
http://talesotaku.com/test.php Code:
<?php |
=/ I'm having problems with getting it to show the users info once logged in
Test login page = http://www.hiphopfame.com/test.php Test login = test Test password = 1Test1 I changed the Suggested Settings for Path to Save Cookies to / btw. And still this problem =( I was also getting this error Quote:
|
also can't get it working.
on www.xboxbase.at everything is okay on the same server there ist a second page, nintendobase, but there I can't get it working: just see www.nintendobase.at i'm always getting the message that I'm logged in, but when it get's back to the main-site I'm logged off. Can anyone help? |
Hmm some tips..
Make sure ALL the file paths are absolute.. I.e /home/public_html/website/login_inc.php etc. If logging into a subdomain.. u need to change the cookie info in vbulletin option to /sitename, not / |
now i'm getting this error... anyone got any ideas?
Fatal error: Call to a member function on a non-object in /home/decimato/public_html/login_inc.php on line 150 |
Whats on line 150?
|
Quote:
.. the paths are absolute. My only conclusion is that.. the fact that the domain is an addon domain to my host.. is what's causing the problem.. like the forum can be accessed from http://www.sdotproductions.com/hiphopfame/ Would that be why I'm experiencing what I'm experiencing? |
I'd like it to show that you have unread pms
Shouldn't be hard right bill? |
Quote:
|
indeed it does, sorry bill :-)
|
I'm trying to rewrite this code:
echo "<a href=\"".$forumpath."private.php?$session[sessionurl] \"> so that it will open in _top no luck though, it causes a parse error when I do something like echo "<a href=\"".$forumpath."private.php?$session[sessionurl] \" target="_top"> I'm sure its something simple like quotations but nothing I've tried works. |
Quote:
Try something like PHP Code:
|
any idea on my prob?
|
Quote:
It looks like a cookie problem. The rest of the script appears setup correctly as it forwards you to the vB login page then redirects back again. It could be the way your host is setup to handle cookies, Im not sure. |
Hi bill. I have used this integration into a cms that i have purchased for the front end of my forums, and all went really well. thanks.
However I have a request, to ask, and I hope it is not too big of a request. I am trying to get several other things to show in the non vb page that are from vbulletin. some examples of things that I am trying are: * Last 5 posts * Last 5 Threads * Latest Polls * Random Arcade Games * Most popular Downloads (From Downloads II) etc. Basically just like modules from vbadvanced, however instead of for them to show on vbadvanced, for them to show on a non vb page. If you could throw something together, or basically any help, advice, etc. would be so much appreciated. (I'm not asking for the lot, just any that you think you could do would be great) Thanks Matt. |
Thats pretty much replicating a few modules from vB advanced.
Its certainlty possible, however I really dont have enougth time at present to look at doing that. |
Quote:
Thanks. |
Sorry, with family life at the moment I really just dont have any spare time. :(
I have another project sitting stalled from lack of time as it is :( |
All times are GMT. The time now is 11:01 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:
|