vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   last 10 problems since upgrading to 3.53 (https://vborg.vbsupport.ru/showthread.php?t=105015)

kath 01-10-2006 09:55 PM

last 10 problems since upgrading to 3.53
 
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

Quote:

Originally Posted by Paul M
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

Quote:

Originally Posted by Danny.VBT
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/showt...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


All times are GMT. The time now is 07:54 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
  • Page Generation 0.02938 seconds
  • Memory Usage 1,721KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete