sahduk Posted October 19, 2014 Share Posted October 19, 2014 So I just bought a website template called synergy from themeforest. I cant open this website on Dreamweaver. I tried on my browser and I get that error message above in the title. I looked through the documents I got from the website asking me to change the base url in my js folder in a file called mc.modules.animation but I dont have a website to host on so its a bit pointless? Link to comment Share on other sites More sharing options...
niche Posted October 19, 2014 Share Posted October 19, 2014 Get a free local host at wampserver.com. That will solve your problem Link to comment Share on other sites More sharing options...
sahduk Posted October 19, 2014 Author Share Posted October 19, 2014 Get a free local host at wampserver.com. That will solve your problem Can I not just edit offline on dreamweaver? Also thanks for the advice Link to comment Share on other sites More sharing options...
Ingolme Posted October 19, 2014 Share Posted October 19, 2014 If your website requires a server-side language then you can't preview it in the browser with dreamweaver, it has to be hosted on a server that supports the language. Link to comment Share on other sites More sharing options...
sahduk Posted October 19, 2014 Author Share Posted October 19, 2014 If your website requires a server-side language then you can't preview it in the browser with dreamweaver, it has to be hosted on a server that supports the language. So I installed the wampserver with the defualt settings. Then went back to my mc.modules.animation to change the line that said http://themes.mediacreed.com/html/synergy to "your.domain.com and still nothing. Link to comment Share on other sites More sharing options...
niche Posted October 19, 2014 Share Posted October 19, 2014 You' ll need to do some testing to make sure your wampserver works. Then place your file in the wamp/www folder and execute by loading your file into your browser's url : localhost/yourFileHere Link to comment Share on other sites More sharing options...
sahduk Posted October 19, 2014 Author Share Posted October 19, 2014 You' ll need to do some testing to make sure your wampserver works. Then place your file in the wamp/www folder and execute by loading your file into your browser's url : localhost/yourFileHere The wamp server works I think. I loaded up the original index file and it worked in my browser. I went through some tutorials and it said to delete the files in the www folder and replace them with my ones, which I did. Then I turned on all services on the wamp icon in my tray. And its still asking me to change the baseURL Should I be making a custom url through wamp somehow? Link to comment Share on other sites More sharing options...
niche Posted October 19, 2014 Share Posted October 19, 2014 Does it say which url it can't find? Link to comment Share on other sites More sharing options...
sahduk Posted October 19, 2014 Author Share Posted October 19, 2014 (edited) Does it say which url it can't find? It says it cant find the template url base path. Edited October 19, 2014 by sahduk Link to comment Share on other sites More sharing options...
niche Posted October 19, 2014 Share Posted October 19, 2014 what path is it? Link to comment Share on other sites More sharing options...
sahduk Posted October 19, 2014 Author Share Posted October 19, 2014 Link to comment Share on other sites More sharing options...
sahduk Posted October 19, 2014 Author Share Posted October 19, 2014 The path in my js is: var templateBaseURL = "null";/*"http://www.your_domain.com/"*/ Link to comment Share on other sites More sharing options...
dsonesuk Posted October 19, 2014 Share Posted October 19, 2014 Have you downloaded your template folder and files, to folder in wamp/www folder? Your template base would be http://localhost/xxxxxxx/ where xxxxxxx is the name of the folder you placed all you template files in.You can't link to domain outside your local server. Link to comment Share on other sites More sharing options...
sahduk Posted October 19, 2014 Author Share Posted October 19, 2014 Have you downloaded your template folder and files, to folder in wamp/www folder? Your template base would be http://localhost/xxxxxxx/ where xxxxxxx is the name of the folder you placed all you template files in.You can't link to domain outside your local server. Yes I downloaded all the files from my template folder into the wamp.www folder. I changed the template base to: var templateBaseURL = "null";/*"http://localhost/www/"*/ since I extracted it to that folder. still nothing Link to comment Share on other sites More sharing options...
dsonesuk Posted October 19, 2014 Share Posted October 19, 2014 Right! first thing 'www' is not required as 'localhost' is reference to that folder, and remove '/*' and '*/' this just turns whatever is within it as a comment and is ignored as as such and not treated as code to read the base url. Link to comment Share on other sites More sharing options...
niche Posted October 19, 2014 Share Posted October 19, 2014 What's the filename? Link to comment Share on other sites More sharing options...
sahduk Posted October 19, 2014 Author Share Posted October 19, 2014 What's the filename? I just put all the files in the www folder. C:wampwww Link to comment Share on other sites More sharing options...
niche Posted October 19, 2014 Share Posted October 19, 2014 (edited) Without all the code for that function, you might get by "localhost/" EDIT: Else, "localhost" (possibly). Edited October 19, 2014 by niche Link to comment Share on other sites More sharing options...
dsonesuk Posted October 19, 2014 Share Posted October 19, 2014 (edited) LOOK! where is says "null" is where you place your domain, in this case because you are using a local server it would be var templateBaseURL ="http://localhost/", if it was placed in a folder 'synergy' it would be var templateBaseURL ="http://localhost/synergy/"; as mention /* blah blah blah */ is just a comment to give you example on what you should be entering it does nothing placing your local url here as you have discovered. Edited October 19, 2014 by dsonesuk Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now