Welcome, Guest. Please Login or Register.
August 29, 2025, 11:43:13 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  English User Help  |  English Help  |  WHAT THE crappity smack « previous next »
Pages: 1 [2] 3 Reply Ignore Print
Author Topic: WHAT THE crappity smack  (Read 840 times)
P2D
Noobie
*
Posts: 39


I'm not a llama!

zstealer@msn.com WWW
Re:WHAT THE crappity smack
« Reply #15 on: April 23, 2002, 08:18:13 AM »
Reply with quote

The site works half fine, He using the SSI but now half of it works, they hacked the forum only... what a child.... he dosent have a life, I use yabb se 1.31 (Safe-mode) with attachments was on.
Logged
Greg Robson
Training to be like Joseph
YaBB SE Developer
YaBB God
*****
Posts: 1459


Hello!

ICQ - 81390136 WWW
Re:WHAT THE crappity smack
« Reply #16 on: April 23, 2002, 08:21:51 AM »
Reply with quote

I suggest you get in the habit of backing up - until Dave Smulders finishes his backup manager you can use the backup script I have made:

http://www.yabb.info/community/index.php?board=1;action=display;threadid=7224
Logged

You can't have everything... where would you put it? -- Steve Wright
P2D
Noobie
*
Posts: 39


I'm not a llama!

zstealer@msn.com WWW
Re:WHAT THE crappity smack
« Reply #17 on: April 23, 2002, 08:28:57 AM »
Reply with quote

Thank you very much :D
« Last Edit: April 23, 2002, 08:29:17 AM by _Stealer_24k » Logged
P2D
Noobie
*
Posts: 39


I'm not a llama!

zstealer@msn.com WWW
Re:WHAT THE crappity smack
« Reply #18 on: April 23, 2002, 08:39:19 AM »
Reply with quote

When i try to make a backup, i get this errors.

Written by Greg Robson

Connecting to the database...DONE
Opening backup file...DONE
Backing up table 'banned'...
Warning: Supplied argument is not a valid MySQL result resource in /home/virtual/site10/fst/var/www/html/yabbse_backup/backup.php on line 60

Warning: Supplied argument is not a valid MySQL result resource in /home/virtual/site10/fst/var/www/html/yabbse_backup/backup.php on line 62

Logged
Greg Robson
Training to be like Joseph
YaBB SE Developer
YaBB God
*****
Posts: 1459


Hello!

ICQ - 81390136 WWW
Re:WHAT THE crappity smack
« Reply #19 on: April 23, 2002, 08:42:55 AM »
Reply with quote

Well if you're settings are pointing to the correct database I can only assume that it's having trouble finding the banned table? :-\
* Greg is puzzled
Double check the settings... :-\
[edit]
Check the prefix - the default I use is nothing - the installer uses yabbse_
that might be it - you can always check from the forum preferences and settings page in the admin section.
[/edit]
« Last Edit: April 23, 2002, 08:44:33 AM by Greg Robson » Logged

You can't have everything... where would you put it? -- Steve Wright
P2D
Noobie
*
Posts: 39


I'm not a llama!

zstealer@msn.com WWW
Re:WHAT THE crappity smack
« Reply #20 on: April 23, 2002, 08:44:26 AM »
Reply with quote

i get this to all the tables... The table prefix is yabbse_ the host is localhost and the username and password is ......... cant tell you lol

Written by Greg Robson

Connecting to the database...DONE
Opening backup file...DONE
Backing up table 'banned'...
Warning: Supplied argument is not a valid MySQL result resource in /home/virtual/site10/fst/var/www/html/yabbse_backup/backup.php on line 60

Warning: Supplied argument is not a valid MySQL result resource in /home/virtual/site10/fst/var/www/html/yabbse_backup/backup.php on line 62
DONE
Backing up table 'boards'...
Warning: Supplied argument is not a valid MySQL result resource in /home/virtual/site10/fst/var/www/html/yabbse_backup/backup.php on line 60

Warning: Supplied argument is not a valid MySQL result resource in /home/virtual/site10/fst/var/www/html/yabbse_backup/backup.php on line 62
DONE
Backing up table 'categories'...
Warning: Supplied argument is not a valid MySQL result resource in /home/virtual/site10/fst/var/www/html/yabbse_backup/backup.php on line 60

Warning: Supplied argument is not a valid MySQL result resource in /home/virtual/site10/fst/var/www/html/yabbse_backup/backup.php on line 62
DONE
Backing up table 'censor'...
Warning: Supplied argument is not a valid MySQL result resource in /home/virtual/site10/fst/var/www/html/yabbse_backup/backup.php on line 60

blablabla
« Last Edit: April 23, 2002, 08:47:37 AM by _Stealer_24k » Logged
P2D
Noobie
*
Posts: 39


I'm not a llama!

zstealer@msn.com WWW
Re:WHAT THE crappity smack
« Reply #21 on: April 23, 2002, 08:46:12 AM »
Reply with quote

The settings are correct.
Logged
Greg Robson
Training to be like Joseph
YaBB SE Developer
YaBB God
*****
Posts: 1459


Hello!

ICQ - 81390136 WWW
Re:WHAT THE crappity smack
« Reply #22 on: April 23, 2002, 08:51:07 AM »
Reply with quote

If the database name is correct then I don't know what it could be?
Help!?! :-\ ::) :o
Logged

You can't have everything... where would you put it? -- Steve Wright
P2D
Noobie
*
Posts: 39


I'm not a llama!

zstealer@msn.com WWW
Re:WHAT THE crappity smack
« Reply #23 on: April 23, 2002, 08:54:21 AM »
Reply with quote

yup the database name is correct

$settings['db_name'] = '24kteam_saburovo_com';
$settings['db_user'] = 'stealer';
$settings['db_password'] = '(Hidden)';
$settings['db_host'] = 'localhost';
$settings['tb_prefix'] = 'yabbse_';
$settings['recreate_structure'] = 1;
$settings['backup_file'] = 'backup.sql';
$settings['settings_path'] = '/home/virtual/site10/fst/var/www/html/yabbse/Settings.php';
Logged
Greg Robson
Training to be like Joseph
YaBB SE Developer
YaBB God
*****
Posts: 1459


Hello!

ICQ - 81390136 WWW
Re:WHAT THE crappity smack
« Reply #24 on: April 23, 2002, 09:07:17 AM »
Reply with quote

Aha!

Got it!

Look in subs.php for this...
function add_prefix(&$tables)
{
   if ($settings['tb_prefix'] != '')
   {
      for ($i = 0; $i < count($tables); $i++)
         $tables[$i] = $settings['tb_prefix'] . $tables[$i];
   }
I didn't globalise $settings['tb_prefix'] so the prefix isn't added! (Or rather it is - but it's an empty string)
It should read
function add_prefix(&$tables)
{
   global $settings['tb_prefix'];

   if ($settings['tb_prefix'] != '')
   {
      for ($i = 0; $i < count($tables); $i++)
         $tables[$i] = $settings['tb_prefix'] . $tables[$i];
   }
}

That should fix it :)
Logged

You can't have everything... where would you put it? -- Steve Wright
P2D
Noobie
*
Posts: 39


I'm not a llama!

zstealer@msn.com WWW
Re:WHAT THE crappity smack
« Reply #25 on: April 23, 2002, 09:12:02 AM »
Reply with quote

Parse error: parse error, expecting `','' or `';'' in /home/virtual/site10/fst/var/www/html/yabbse_backup/subs.php on line 48

YaBB SE Backup System
Written by Greg Robson

Connecting to the database...DONE
Opening backup file...DONE

Fatal error: Call to undefined function: add_prefix() in /home/virtual/site10/fst/var/www/html/yabbse_backup/backup.php on line 50

 :-\
Logged
P2D
Noobie
*
Posts: 39


I'm not a llama!

zstealer@msn.com WWW
Re:WHAT THE crappity smack
« Reply #26 on: April 23, 2002, 09:12:56 AM »
Reply with quote

Line 48:   global $settings['tb_prefix'];
Logged
Greg Robson
Training to be like Joseph
YaBB SE Developer
YaBB God
*****
Posts: 1459


Hello!

ICQ - 81390136 WWW
Re:WHAT THE crappity smack
« Reply #27 on: April 23, 2002, 09:14:29 AM »
Reply with quote

Yep - that's it.
* Greg makes a note to himself to fix it in the downloadable release

btw: thanks for being a beta tester ;)
Logged

You can't have everything... where would you put it? -- Steve Wright
P2D
Noobie
*
Posts: 39


I'm not a llama!

zstealer@msn.com WWW
Re:WHAT THE crappity smack
« Reply #28 on: April 23, 2002, 09:15:39 AM »
Reply with quote

I dont think it is possible to global array in that way...
« Last Edit: April 23, 2002, 09:19:45 AM by _Stealer_24k » Logged
P2D
Noobie
*
Posts: 39


I'm not a llama!

zstealer@msn.com WWW
Re:WHAT THE crappity smack
« Reply #29 on: April 23, 2002, 09:18:23 AM »
Reply with quote

YAY i changed the line to
global $settings;

and it worked fine.


Written by Greg Robson

Connecting to the database...DONE
Opening backup file...DONE
Backing up table 'yabbse_banned'...DONE
Backing up table 'yabbse_boards'...DONE
Backing up table 'yabbse_categories'...DONE
Backing up table 'yabbse_censor'...DONE
Backing up table 'yabbse_instant_messages'...DONE
Backing up table 'yabbse_log_activity'...DONE
Backing up table 'yabbse_log_banned'...DONE
Backing up table 'yabbse_log_boards'...DONE
Backing up table 'yabbse_log_clicks'...DONE
Backing up table 'yabbse_log_errors '...DONE
Backing up table 'yabbse_log_floodcontrol'...DONE
Backing up table 'yabbse_log_karma'...DONE
Backing up table 'yabbse_log_mark_read'...DONE
Backing up table 'yabbse_log_online'...DONE
Backing up table 'yabbse_log_topics'...DONE
Backing up table 'yabbse_membergroups'...DONE
Backing up table 'yabbse_members'...DONE
Backing up table 'yabbse_messages'...DONE
Backing up table 'yabbse_polls'...DONE
Backing up table 'yabbse_reserved_names'...DONE
Backing up table 'yabbse_settings'...DONE
Backing up table 'yabbse_topics'...DONE
Closing file...DONE
Closing database connection...DONE

Logged
Pages: 1 [2] 3 Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  WHAT THE crappity smack « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.031 seconds with 16 queries.