Log in

View Full Version : last 10 problems since upgrading to 3.53


kath
01-10-2006, 09:55 PM
I installed the last 10 hack while running a previous version. I updated yesterday to 3.53 and am now getting an error on my non-vb page :

Warning: Access denied for user: 'www-data@localhost' (Using password: NO) in /var/www/sites/mysite.com/last104.php on line 14

Warning: MySQL Connection Failed: Access denied for user: 'www-data@localhost' (Using password: NO) in /var/www/sites/mysite.com/last104.php on line 14
Can't open connection to MySQL

Can anyone please tell me what I need to do to get this working? This is my FAVORITE hack.
Thanks!
Kath

Paul M
01-10-2006, 10:25 PM
What is the "last 10" hack ?

kath
01-10-2006, 10:27 PM
A hack that shows the last 10 postings on a non-vb page. I use it on my homepage to show the last 10 postings made on my forum.

Kath

Guest190829
01-10-2006, 10:33 PM
What is the "last 10" hack ?

Yes, and more importantly is the hack sopposed to be compatible with 3.5.x?

Paul M
01-10-2006, 10:40 PM
Yes, and more importantly is the hack sopposed to be compatible with 3.5.x?Well I was actually hoping for a link in the reply, to be able to determine that - but more to the point, where it gets it's mysql user/password from, since that error message indicates there is a problem with them.

kath
01-12-2006, 04:45 PM
I'm not sure it was compatible in 3.53. For that matter, I don't think it was compatible in that previous version but we got it to work. There is a last104config file and a last104 file. Line 14 of the config files states:
1.<?
2.
3.//...........Last X Posts v1.0.5...........\\
4.//......by Kevin (kevin@tubescan.com)......\\
5.
6.// For vBulletin version 2 (betas 3, 4, 5, RC1, RC2, RC3)
7.// (c) 2001 Jelsoft Enterprises, Ltd.
8.
9.// vBulletin.com thread: http://www.vbulletin.com/forum/showthread.php?threadid=12324
10.
11.// let's get connected
12.require("last104config.php");
13.require("$path/config.php");
14.$db=mysql_connect($servername,$dbusername,$dbpa ssword) or die("Can't open connection to MySQL");
15.mysql_select_db($dbname) or die("Can't select database");

I'm not real experienced in reading these codes. So please bear with me but the error message says:
Warning: Access denied for user: 'www-data@localhost' (Using password: NO) in /var/www/sites/mysite.com/last104.php on line 14

Warning: MySQL Connection Failed: Access denied for user: 'www-data@localhost' (Using password: NO) in /var/www/sites/mysite.com/last104.php on line 14
Can't open connection to MySQL

Any ideas on what might be wrong?
Thanks,
Kath