vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Change Forum URL in database (https://vborg.vbsupport.ru/showthread.php?t=317602)

Nano_ 03-03-2015 02:45 AM

Change Forum URL in database
 
Hi, a time ago, some people created a full backup of our old server. Today, i got that backup and i restored in our new server.

Forum is working, but the problem is: In database we have old domain and we don't have access to that domain anymore. Site is accessible by new domain, but css and js files don't load ('cause point to old domain) and i can't login because that process point to old domain too.

How i can change that entries directly in database?

Edit
Infos: vB 4.1.12.
Tools.php is working, i disabled the forum there. Already resetted cookie domian.


Sorry for bad english, btw.

kh99 03-03-2015 02:58 AM

You can edit the bburl in the database, but it's in the datastore table where title='options', and it's stored as a serialized array, so it's a little tricky. A less tricky way would be to edit the settings table where varname = 'bburl', then upload tools.php to your admincp directory, and use "[Options Cache]" to rebuild the datastore from the settings (you also have to upload the install directory if you've previously removed it).

Nano_ 03-03-2015 11:26 AM

An
Code:

UPDATE `my_db`.`setting` SET `value` = 'http://www.newdomain.com/forum' WHERE `setting`.`varname` = 'bburl';
Works, thanks! :)


All times are GMT. The time now is 04:48 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.01017 seconds
  • Memory Usage 1,708KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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