【 exhausted!】how to change temporary domain to formal domain?

Started by caocao, September 28, 2019, 05:57:49 AM

Previous topic - Next topic

caocao

please,wish somebody can tell me where the url code below is?

I installed the website with temporary domain hxxp:qxu1649210473.my3w.com [nonactive], then edit the settings.php and settings.template.php with hxxp:www.newtianwen.com [nonactive] to replace the temporary domain. also do replace work in 4 cache php documents. I use notepad to search, and find no other php documents with word hxxp:qxu1649210473.my3w.com [nonactive].

the problem: use pc to visit, everytime the display of index is correct, but  sometimes i use mobile to visit, the img can't be shown(see attachment), sometime is normal. and i check the index code, find there  still exsit the temporary domain in mangy sentenses.

could some buddy can tell me where to change the smf_theme_url,smf_default_theme_url and <img id="upshrink" ?

thank you very much. look forward to your kind help.


---<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" type="text/css" href="http://qxu1649210473.my3w.com/Themes/default/css/index.css?fin20" />
<script type="text/javascript" src="http://qxu1649210473.my3w.com/Themes/default/scripts/script.js?fin20"></script>
<script type="text/javascript" src="http://qxu1649210473.my3w.com/Themes/default/scripts/theme.js?fin20"></script>
<script type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "http://qxu1649210473.my3w.com/Themes/default";
var smf_default_theme_url = "http://qxu1649210473.my3w.com/Themes/default";
var smf_images_url = "http://qxu1649210473.my3w.com/Themes/default/images";
var smf_scripturl = "http://www.newtianwen.com/index.php";
var smf_iso_case_folding = false;
var smf_charset = "UTF-8";
var ajax_notification_text = "Loading...";
var ajax_notification_cancel_text = "Cancel";
// ]]></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="description" content="&#22825;&#38382;&#31038;&#21306;-&#26032;&#21271;&#20140;&#20154;&#39640;&#30693;&#31038;&#21306; - Index" />
<title>&#22825;&#38382;&#31038;&#21306;-&#26032;&#21271;&#20140;&#20154;&#39640;&#30693;&#31038;&#21306; - Index</title>
<link rel="canonical" href="http://www.newtianwen.com/index.php" />
<link rel="help" href="http://www.newtianwen.com/index.php?action=help" />
<link rel="search" href="http://www.newtianwen.com/index.php?action=search" />
<link rel="contents" href="http://www.newtianwen.com/index.php" />
<link rel="alternate" type="application/rss+xml" title="&#22825;&#38382;&#31038;&#21306;-&#26032;&#21271;&#20140;&#20154;&#39640;&#30693;&#31038;&#21306; - RSS" href="http://www.newtianwen.com/index.php?type=rss;action=.xml" />
</head>
<body>
<div id="wrapper" style="width: 90%">
<div id="header"><div class="frame">
<div id="top_section">
<h1 class="forumtitle">
<a href="http://www.newtianwen.com/index.php">&#22825;&#38382;&#31038;&#21306;-&#26032;&#21271;&#20140;&#20154;&#39640;&#30693;&#31038;&#21306;</a>
</h1>
<img id="upshrink" src="http://qxu1649210473.my3w.com/Themes/default/images/upshrink.png" alt="*" title="Shrink or expand the header." style="display: none;" />
<img id="smflogo" src="http://qxu1649210473.my3w.com/Themes/default/images/smflogo.png" alt="Simple Machines Forum" title="Simple Machines Forum" />


Aleksi "Lex" Kilpinen

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

shadav

Quote from: Aleksi "Lex" Kilpinen on September 28, 2019, 06:09:06 AM
What is repair_settings.php?

You do NOT usually change theme settings by editing files.

when using this tool, it is a good idea to Set SMF default theme as overall forum default for all users, just until you get everything up and working on the new domain

if you have any mods installed, make sure to go through their settings as well in the admin and change anythings that needs to be changed
for instances, I believe default avatar mod and avatars on boards and message index need changed, pretty urls would need updated and run again, inline attachments mod, just to give you some ideas.... basically if you have mods installed and not sure which ones may need changed to new url or homedir path, just run through all of your admin settings to make sure.... after that then test default theme to make sure everything seems to be running smooth, then switch to your custom template and make sure everything seems to be working

caocao

Quote from: Aleksi "Lex" Kilpinen on September 28, 2019, 06:09:06 AM
What is repair_settings.php?

You do NOT usually change theme settings by editing files.


Thank you very much. I download the repair_settings file, and use ftp upload to host, and open domain/repair_settings.php, and choose all the recommand values except the db server(recommand local host,but if you choose this, can't successfully save, so here i didn't change). then save, use mobile to visit,  very good. it becomes normal again.

Thank you very much. really really want to drink with you,friend. :laugh:

caocao

Quote from: shadav on September 28, 2019, 07:18:45 AM
Quote from: Aleksi "Lex" Kilpinen on September 28, 2019, 06:09:06 AM
What is repair_settings.php?

You do NOT usually change theme settings by editing files.

when using this tool, it is a good idea to Set SMF default theme as overall forum default for all users, just until you get everything up and working on the new domain

if you have any mods installed, make sure to go through their settings as well in the admin and change anythings that needs to be changed
for instances, I believe default avatar mod and avatars on boards and message index need changed, pretty urls would need updated and run again, inline attachments mod, just to give you some ideas.... basically if you have mods installed and not sure which ones may need changed to new url or homedir path, just run through all of your admin settings to make sure.... after that then test default theme to make sure everything seems to be running smooth, then switch to your custom template and make sure everything seems to be working


Thank you very much. very nice of you. :laugh:

shadav

Quote from: caocao on September 28, 2019, 09:33:00 AM
Quote from: shadav on September 28, 2019, 07:18:45 AM
Quote from: Aleksi "Lex" Kilpinen on September 28, 2019, 06:09:06 AM
What is repair_settings.php?

You do NOT usually change theme settings by editing files.

when using this tool, it is a good idea to Set SMF default theme as overall forum default for all users, just until you get everything up and working on the new domain

if you have any mods installed, make sure to go through their settings as well in the admin and change anythings that needs to be changed
for instances, I believe default avatar mod and avatars on boards and message index need changed, pretty urls would need updated and run again, inline attachments mod, just to give you some ideas.... basically if you have mods installed and not sure which ones may need changed to new url or homedir path, just run through all of your admin settings to make sure.... after that then test default theme to make sure everything seems to be running smooth, then switch to your custom template and make sure everything seems to be working


Thank you very much. very nice of you. :laugh:

:) no problem, I just moved my forum not only to a new domain but a new subfolder so had to do the same exact thing just last week ;)

Aleksi "Lex" Kilpinen

Quote from: caocao on September 28, 2019, 09:30:54 AM

Thank you very much. really really want to drink with you,friend. :laugh:

You're welcome, and I'm always up for a drink :P If you happen to find yourself in my neighborhood that is.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Advertisement: