vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   prefix for your database tables (https://vborg.vbsupport.ru/showthread.php?t=38030)

Bro_Joey_Gowdy 03-05-2003 02:20 PM

Hmmmm..... Im not doing something right, take a lok at the errors... anythoughts?

Quote:

Warning: Cannot add header information - headers already sent by (output started at /www.joeygowdy.com/gundamarmada/admin/db_mysql.php:163) in /www.joeygowdy.com/gundamarmada/admin/functions.php on line 1652

Warning: Variable passed to reset() is not an array or object in /www.joeygowdy.com/gundamarmada/admin/db_mysql.php on line 163

Warning: Variable passed to each() is not an array or object in /www.joeygowdy.com/gundamarmada/admin/db_mysql.php on line 166
Line 163 is reset ( $ tablenames ) ;

and Line 166 is while ( list ( $ short , $ new ) = each( $ tablenames ) ) {

Also, would useing phpmyadmin help ?

GameCrash 03-05-2003 03:03 PM

Hmm... this would happen if you don't have any table with the prefix... try changing
Code:

    if (!is_array($tablenames)) {
      $len = strlen($this->prefix);

to
Code:

    if (!is_array($tablenames)) {
      $tablenames = array();
      $len = strlen($this->prefix);

- I will add this to the instructions if it works...

Bro_Joey_Gowdy 03-05-2003 07:14 PM

Thanks, Its looking good now - will keep ya informed on any other problems - also im useing vb2.3.0

gmarik 05-17-2003 08:17 PM

Could you put the hack in a .txt file? Uhh?

GameCrash 05-18-2003 02:54 PM

Why? If you own a license you can see the codes in the first post. If not, you can't download any text file ;)

Peakin 10-07-2003 11:35 PM

hmm, new user to vb here, applied this hack to vb 2.3.2 all well and good, works a charm, but, now when posting a msg, a word is the same as a table name eg "access" its replacing it with prefix_access..

this only happens in mid sentence, eg:

access

is ok, but in sentence:

blablbablah vb_access blah

anyway to stop this?

please help.

ps. i should add that i am using a front end for vb (auto account creation in vb) and just had to heavily mod it to work with vb 2.3.2, so i wont be able to use vb3 for some time, so thats not an option...

GameCrash 10-08-2003 06:16 AM

Hm, I'll have a look at it... should be possible to do something here...

Peakin 10-09-2003 02:53 PM

Thanks man, I'd appreciate that =)

geekylucas 04-05-2004 03:59 AM

Quote:

Originally Posted by Peakin
hmm, new user to vb here, applied this hack to vb 2.3.2 all well and good, works a charm, but, now when posting a msg, a word is the same as a table name eg "access" its replacing it with prefix_access..

Did anyone manage to figure out a way to prevent this happening (aside from upgrading to vbulletin 3)? I'm having the same problem. =(


All times are GMT. The time now is 04:37 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.01342 seconds
  • Memory Usage 1,730KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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