Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-10-2006, 09:55 PM
kath kath is offline
 
Join Date: Jan 2005
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 01-10-2006, 10:25 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What is the "last 10" hack ?
Reply With Quote
  #3  
Old 01-10-2006, 10:27 PM
kath kath is offline
 
Join Date: Jan 2005
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 01-10-2006, 10:33 PM
Guest190829
Guest
 
Posts: n/a
Default

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?
Reply With Quote
  #5  
Old 01-10-2006, 10:40 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 01-12-2006, 04:45 PM
kath kath is offline
 
Join Date: Jan 2005
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:58 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04382 seconds
  • Memory Usage 2,209KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (5)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete