PDA

View Full Version : I need help - I screwed up


eflaws
Jul-06-2007, 04:57 PM
Greetings,
I have been busy updating and looking at tuturials to make many changes to my smugmug site for the past two weeks. It's getting closer to what I want it to look like but still have a lot of work to do.

I screwed up a code tonight though. I have been trying to have my domain name www.elliotmflaws.com when typed into the address bar stop changing to www.eflaws.smugmug.com. I have followed the tuturial for the GoDaddy site with creating the CName and everything but I never got it to work.

I found this tuturial
http://www.dgrin.com/showthread.php?p=402384#post402384
thinking this would do the trick and changed what I thought had to be changed. I logged out and when I checked it, the screen goes white and just searches for my site. So, I am not able to access anything, even viewing my site, therfore I cannot delete the code

Here is what I put in the java script box:

function redirectPath() {
re = /(eflaws.smugmug.com)/;
tmp = window.location.href;
if (re.test(tmp)) {
tmp = tmp.replace(re, 'www.elliotmflaws.com');
window.location.href = tmp;
}
}
redirectPath();

Anybody know how I can fix this problem? Your help will be greatly appreciated.

Thank You
Elliot

www.elliotmflaws.com
www.eflaws.smugmug.com

oxy8384
Jul-06-2007, 06:41 PM
Looks like you've gotten yourself into an endless loop. I have no idea how to break out of it, so I can't help. Rather than your normal URL, I would try going straight into one of your galleries. If you can login from there and get to the control panel, remove the call to redirectPath() at the end of your code, there, and place it in your footer code within script tags...

Bill

eflaws
Jul-06-2007, 07:04 PM
Well, I just tried going straight into a couple of my galleries to see if I can get to the control panel from there and the same white screen appears and it still seems to be searching for my site in an endless loop.

Allen
Jul-06-2007, 08:33 PM
Well, I just tried going straight into a couple of my galleries to see if I can get to the control panel from there and the same white screen appears and it still seems to be searching for my site in an endless loop.
Can you disable javascript in the browser you're using? I can with WebDev in
Firefox and your page loads.

richW
Jul-06-2007, 09:26 PM
Ok, now that I'm dizzy from the endless JS looping. I've removed the script for you.

function redirectPath() {
re = /(eflaws.smugmug.com)/;
tmp = window.location.href;
if (re.test(tmp)) {
tmp = tmp.replace(re, 'www.elliotmflaws.com');
window.location.href = tmp;
}
}
redirectPath();

If you want help with your custom domain name at goDaddy, email the help desk and one of us will set it up for you, we do it all the time.
Provide us with the info to get into your account:

Customer # or Login name:

Password:

http://www.smugmug.com/help/emailreal (help at smugmug.com)

While logged in you can access your control panel here: http://www.smugmug.com/homepage/controlpanel.mg

Better yet, check out Javier Rinaldi's (http://www.jrinaldiphotography.com/) SmugManager (http://www.jrinaldiphotography.com/gallery/2057692), great tool to put into Firefox.

oxy8384
Jul-07-2007, 07:23 AM
Can you disable javascript in the browser you're using? I can with WebDev in
Firefox and your page loads.

Obvious and brilliant in its simplicity!:bow Of course, I never woulda thought of it...:rolleyes

eflaws
Jul-07-2007, 09:35 PM
Thank you guys for giving me a helping hand. It really frustrates me when things like this happen to me (it happens way to often). I'm glad to know that there are people out there willing to help. Chances are you'll probably see me around in the near future.

Thanks Again, it's all greatly appreciated,

Elliot