vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Away message for users (https://vborg.vbsupport.ru/showthread.php?t=33099)

bira 12-15-2001 03:33 PM

OK, Kura

I looked into this and this is actually a bug in the database backup.

The away date is NULL by design but when you download the SQL file, it turns it into NOT NULL.

You will need to open your .sql file for the user table, and find:

Code:

  away tinyint(1) NOT NULL,
  awaydate int(10) unsigned [high]NOT NULL[/high],
  returndate date DEFAULT '0000-00-00' [high]NOT NULL[/high],
  awayreason varchar(200) [high]NOT NULL[/high],

And change it to (the highlighted stuff from above should be deleted):

Code:

  away tinyint(1) DEFAULT '0' NOT NULL,
  awaydate int(10) unsigned,
  returndate date DEFAULT '0000-00-00',
  awayreason varchar(200),

After that, you will have no problems.

I will report this bug on vBulletin.com

Cheers,

Bira

Hooper 12-15-2001 03:43 PM

The hack is nice but my files are just to hacked up to install anymore without the hack installations that include line numbers. The installer doesn't show line numbers. No more installer hacks. Maybe someone could add line numbering to the installer proggie.


The hack is very nice though Bira. ;)

KuraFire 12-15-2001 03:44 PM

Great, thanks, I will try this soon (watching a movie, when it's a break I will do this) and let you know what the outcome is. :)

Thank you :)

bira 12-15-2001 03:51 PM

Hooper line numbers will not help you.

If code x was on line 100, then after you hacked your script it will be on line 108, then how would it help if I gave you line #100 in the installer?

Line numbers work ONLY on a very clean and non-hacked script.

Hooper 12-15-2001 03:56 PM

[QUOTE]Originally posted by bira
Hooper line numbers will not help you.

If code x was on line 100, then after you hacked your script it will be on line 108, then how would it help if I gave you line #100 in the installer?

Line numbers work ONLY on a very clean and non-hacked script.

KuraFire 12-15-2001 04:06 PM

Hooper, you're awfully demanding and picky, ya know that?

Line numbers are not at all useful with hacks. Hacks that say "find **example line** and ADD ABOVE that **hacked code line**" and the like are much better in this aspect, for no matter what line this will be at, you can simply find it and add to it the necessary changes.

Also, when a new version of vbulletin is released which adds about 60-80 lines above this line, the line numbers would be WAY off, but if you just search for the strings it doesn't matter.

bira 12-15-2001 04:16 PM

[QUOTE]Originally posted by Hooper
I just will not install no more hacks that don't display line numbers.

KuraFire 12-15-2001 04:35 PM

W3rd bira :)

Btw, it worked this time, I removed the three NOT NULL's and the dump installed sweetly over my empty install.


Only strange thing, however, was the fact (nothing to do with this hack btw) that... well, this:

I had two vbulletins running on my comp, the Couch and the Couch v.2. I only use the first one for installing hacks in preparation of my new sites and everything. The second one is only installed to simulate when I switch hosts and will have to insert a dumpfile into an empty (fresh) install.

Now, the dump-inserting worked, everything worked smoothly and all. But then I made a thread on the Couch v.2, and went to a site (also on my HD) that runs a query that lists all the threads from one specific forum. It listed the new thread. At first I was "Yay it works!" but then I realised, it was a Whole Different Database! But it STILL took the new thread!

So I checked the other Couch, the original one, and the new thread had appeared there as well.

So when i made a thread on ONE forum, it magically copied itself to the database of the OTHER forum. That database has a different name, a different mySQL user and a different mySQL password.

Any idea why on earth this happened??

bira 12-15-2001 04:40 PM

are you sure you didn't overwrite config.php?

If you are running two databases, you gotta make sure you have two different config.php. That's the gateway to the db :)

KuraFire 12-15-2001 04:48 PM

You're very correct.

I *initially* had a different config.php of course, with the new username and db-name and everything. But then I realised that I took the files from the vB221 zip, and thus was missing out on several files (install_awayusers.php being one of them) and I copied all the files from the first board, to the directory of the second board. And I forgot to exclude the config.php file for the DB-settings. Heh..

Thanks for pointing that out to me. :)


All times are GMT. The time now is 03:20 PM.

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.02476 seconds
  • Memory Usage 1,738KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete