![]() |
Quote:
Without this cookie your addition to Tubes hack will not work. So if you have his hack (with your addition) on your main page, and someone visits there who has never visited your forums they will get the error above. But his hack does work fine "without" your additions for new visitors. This is a known problem, and has caused a lot of headaches in most of the "who's online on another page" hacks also. :( |
tubedogg:
Since you are working on hacks how about looking over the memberlist.php file to see if you can add alpha listings instead of just by page number. That is if you click on the letter A you get those members will the last name stating with A and so forth. It can get really tedious when you have over 17,000 registered members to go through page after page by the number of the page. Thanks again for the this hack. Parker |
Quote:
I just found when using the option to display the message that gets posted and the person has used the vbcode in their message that it will display the code as well. Oh, well. Thanks again for the heads up on this. Parker |
Robert and tubedogg:
I just logged off my board and then manually deleted the cookie I had for the forum from my hard drive and got back on the board. I was not cookied for the forum then and I clicked on the link to take me to the last10.php file. I did not get the cannot add header error message from the database with using the bbparsecode for the message. In fact the page came up just fine as before. Have you tried this on your own board to see if you get the error message? Just thought that I would let you know. Parker |
Quote:
|
Can anyone help with a problem I'm having with this script? I keep getting "Can't select database" error every time. All of the variables are set correct, but I still get this. In the last10.php file I see the code:
"mysql_select_db($dbname) or die("Can't select database");" This is where the error is at and the script dies there. I havn't changed anything else other than what it said to do. Why is it having troulbe at that line? Thanks for any input. Jeff |
If you're getting that far, then all your variables are indeed set correctly. Can you try something for me? I've attached a zip file to this message - open it, edit the username, password, database host ($dbhost), and database name ($dbname) in both files (testmysql1.php and testmysql2.php) and put both files on your server where the last10.php file is, then go to testmysql1.php in a web browser, e.g. http://www.yoursite.com/path/to/testmysql1.php and tell me what happens.
Then go to testmysql2.php e.g. http://www.yoursite.com/path/to/testmysql2.php and tell me what happens. Sorry you're having problems. Hopefully this will solve it! |
Both test files now say they selected database ok when called from a browser. Now, how to fix in the other to call it ok instead of the error?
Jeff |
congrats!!!
It's just maybe too big :/ I will modify that |
Jeff: Hmm. I was expecting those two files to fail. What doesn't make sense is if they worked, why the other one wouldn't. Or, more succinctly, why the other one fails where it does. If it's having problems connecting, it should fail at the connect step, not at the select database step.
Here's what I suggest. Since the only thing I'm pulling from the vB files for this is username, password, db host, and database name, put these up at the top of the last10.php file as so: Find Code:
// let's get connected Code:
// let's get connected :scratching head: |
All times are GMT. The time now is 06:37 AM. |
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:
|