SMF For Free Support Forum

SMF For Free Support => SMF For Free Codes and Support => Topic started by: Agent Moose on June 27, 2009, 05:38:25 pm

Title: Important!! - Code Updater
Post by: Agent Moose on June 27, 2009, 05:38:25 pm
Due to Google closing Google Pages, you will need to have some of your codes updated, since some of my codes are uploaded to Google Pages.

If you have one or more of the following codes in your headers, you will need to follow the instructions below to keep that code working!

 - Shop
 - UserPage
 - UserBlog
 - Shoutbox (Build B)
 - Shoutbox (Build B) Portal
 - Code Panel

If your a Firefox user, you may use Method #1.
If your a Internet Explorer User, you MUST use Method #2.

Method #1: (Firefox Users)
1. Copy this Code to the very bottom of your footers!:
Code: [Select]
<script type="text/javascript">
/*
==Start Code Updater
==Fixes errors with the Following codes:
===Shop, UserPage, UserBlog, Shoutbox (Build B), Shoutbox (Build B) Portal, Code Panel
*/
var Area = document.getElementsByTagName("textarea");
for(x=0;x<Area.length;x++){
if(Area[x].name == "txtfooters" && Area[x].innerHTML.match("'(.*)/shop1.js")) Area[x].innerHTML = Area[x].innerHTML.replace(RegExp.$1,"http://209.85.62.24/365/94/0/f367133");
if(Area[x].name == "txtfooters" && Area[x].innerHTML.match("'(.*)/UserPage.js")) Area[x].innerHTML = Area[x].innerHTML.replace(RegExp.$1,"http://209.85.62.24/365/94/0/f367129");
if(Area[x].name == "txtfooters" && Area[x].innerHTML.match("'(.*)/UserBlog.js")) Area[x].innerHTML = Area[x].innerHTML.replace(RegExp.$1,"http://209.85.62.24/365/94/0/f367130");
if(Area[x].name == "txtfooters" && Area[x].innerHTML.match("'(.*)/CodePanel.js")) Area[x].innerHTML = Area[x].innerHTML.replace(RegExp.$1,"http://209.85.62.24/365/94/0/f367138");
if(Area[x].name == "txtfooters" && Area[x].innerHTML.match("'(.*)/BuildB.js")) Area[x].innerHTML = Area[x].innerHTML.replace(RegExp.$1,"http://209.85.62.24/365/94/0/f367135");
if(Area[x].name == "txtfooters" && Area[x].innerHTML.match("'(.*)/BuildBPortal.js")) Area[x].innerHTML = Area[x].innerHTML.replace(RegExp.$1,"http://209.85.62.24/365/94/0/f367137");
};
/*
==End Code Updater
==Fixes errors with the Following codes:
===Shop, UserPage, UserBlog, Shoutbox (Build B), Shoutbox (Build B) Portal, Code Panel
*/
</script>

2. Save your Headers/Footers.
3. Go back to your Headers and Footers.
4. Click Save Again.
5. Go back to the Headers and Footers, and remove the code (there will be a slight different in the code, but don't worry about that).
6. Save the Headers/Footers once again.
7. Your done!

When you've done this, all the following codes (if you had them on your forum) should still work.

NOTE FOR FIREFOX USERS: If you get some text added at the very top of you footers, you may remove it.

Method #2: (Internet Explorer Users)
For all the Internet Explorer users, you got it kinda tough.  Meaning, you will need to search through the code until you find the right line.  The line you need should be the very last line (still inside the </script> tag).

If you have the UserPage code on your forum, search for this line:
Code: [Select]
document.write("<script src='http://smcodes0" + Math.floor(Math.random() * 9) + ".googlepages.com/UserPage.js'><\/script>");Replace that line, with this one:
Code: [Select]
document.write("<script src='http://209.85.62.24/365/94/0/f367129/UserPage.js'><\/script>");

If you have the UserBlog code on your forum, search for this line:
Code: [Select]
document.write("<script src='http://smcodes0" + Math.floor(Math.random() * 9) + ".googlepages.com/UserBlog.js'><\/script>");Replace that line, with this one:
Code: [Select]
document.write("<script src='http://209.85.62.24/365/94/0/f367130/UserBlog.js'><\/script>");

If you have the Shop code on your forum, search for this line:
Code: [Select]
document.write("<script src='http://smcodes0" + Math.floor(Math.random() * 9) + ".googlepages.com/shop1.js'><\/script>");Replace that line, with this one:
Code: [Select]
document.write("<script src='http://209.85.62.24/365/94/0/f367133/shop1.js'><\/script>");

If you have the Shoutbox (Build B) code on your forum, search for this line:
Code: [Select]
document.write("<script src='http://smcodes0" + Math.floor(Math.random() * 9) + ".googlepages.com/BuildB.js'><\/script>");Replace that line, with this one:
Code: [Select]
document.write("<script src='http://209.85.62.24/365/94/0/f367135/BuildB.js'><\/script>");

If you have the Shoutbox (Build B) Portal code on your forum, search for this line:
Code: [Select]
document.write("<script src='http://smcodes0" + Math.floor(Math.random() * 9) + ".googlepages.com/BuildBPortal.js'><\/script>");Replace that line, with this one:
Code: [Select]
document.write("<script src='http://209.85.62.24/365/94/0/f367137/BuildBPortal.js'><\/script>");

If you have the Code Panel code on your forum, search for this line:
Code: [Select]
document.write("<script src='http://smcodes0" + Math.floor(Math.random() * 9) + ".googlepages.com/CodePanel.js'><\/script>");Replace that line, with this one:
Code: [Select]
document.write("<script src='http://209.85.62.24/365/94/0/f367138/CodePanel.js'><\/script>");


If you have any Questions or Problems, please tell :)
Title: Re: Important!! - Code Updater
Post by: Seldom Fail on June 28, 2009, 12:01:45 pm
Wait won't the pages still work?

Quote from: Google Pages
2. I have an existing Page Creator site, will it continue to work?

Yes, existing users can continue to use Google Page Creator. We are just closing new sign-ups at this time.

That was taken from this link: http://pages.google.com/-/about.html#faq2
Title: Re: Important!! - Code Updater
Post by: Andrew on June 28, 2009, 12:03:19 pm
Sign-ups has been closed for awhile now. I've been trying to go there for months now, and theres a message say "Google Pages is no longer taking sign-ups"
Title: Re: Important!! - Code Updater
Post by: Seldom Fail on June 28, 2009, 12:04:31 pm
Yes I know sign-ups have ended. I'm saying the existing pages will continue to work ;)
Title: Re: Important!! - Code Updater
Post by: simply sibyl on June 28, 2009, 12:22:43 pm
Seldom -   I have a Googlepage.. never used it for much but did have a js file stored on it, as Moose does for his codes.   I recieved the email from Google also and in it they did say that urls will have to be changed.    The pages will still work but the files uploaded to them like those js files are not going to work from the original location and have to be changed.  Google Sites does not support hosting .js files.
Title: Re: Important!! - Code Updater
Post by: simply sibyl on June 28, 2009, 12:33:28 pm
Seldom this should explain it:

Googlepages supported hosting those js files.
Google Sites does not - those links will no longer work

Quote
Dear Google Page Creator User,
As was previously announced, Google will soon be discontinuing operation of the Google Page Creator product. We will be migrating your Page Creator sites over to Google Sites so that they continue to operate with no work on your part. However, we've identified you as using Google Page Creator to host files that Sites doesn't support. We are writing to inform you that, as part of this migration, if you take no action to address this, your hosted files will likely break. If they are important then we suggest you move them to a different hosting service.Contrary to what was posted in the blog post, the shut down and migration of Google Page Creator has been extended and will begin in a few weeks.
Thank you for your patience during this migration.
Sincerely,
The Google Sites Team
Title: Re: Important!! - Code Updater
Post by: Seldom Fail on June 28, 2009, 12:34:23 pm
Oh ok thanks Sibyl.
Title: Re: Important!! - Code Updater
Post by: Andrew on June 28, 2009, 01:32:01 pm
Agent Im using the userpage one, I dont think the document.write part needs to be in it. I go to my userpage, and it shows this at the bottom:
Code: [Select]
document.write("
So would it just be?:
Code: [Select]
<script src='http://209.85.62.24/365/94/0/f367129/UserPage.js'><\/script>?
Title: Re: Important!! - Code Updater
Post by: Agent Moose on June 28, 2009, 03:54:19 pm
Correct.

For the UserPage code, and ONLY the userpage code, you can replace the whole code with this:
Code: [Select]
<script src='http://209.85.62.24/365/94/0/f367129/UserPage.js'><\/script>
You can't do that to any of the other codes listed above.
Title: Re: Important!! - Code Updater
Post by: ipwnedx on November 23, 2009, 08:48:17 pm
Good.
Title: Re: Important!! - Code Updater
Post by: K I L L A on May 22, 2010, 06:58:34 pm
www.globalgamereviews.smfforfree.com


Umm..I just did this and it completely erased my footers..with all of my codes gone..
Title: Re: Important!! - Code Updater
Post by: simply sibyl on May 22, 2010, 10:39:44 pm
www.globalgamereviews.smfforfree.com


Umm..I just did this and it completely erased my footers..with all of my codes gone..

This post is from almost a year ago.. may need to find out from Moose if it still applys or not.   Afraid theres no way to get your codes back... you didnt happen to have a backup of them did you?
Title: Re: Important!! - Code Updater
Post by: K I L L A on May 25, 2010, 06:29:24 pm
www.globalgamereviews.smfforfree.com


Umm..I just did this and it completely erased my footers..with all of my codes gone..

This post is from almost a year ago.. may need to find out from Moose if it still applys or not.   Afraid theres no way to get your codes back... you didnt happen to have a backup of them did you?
No, I sadly didn't..I didn't have many codes..but..whatever..It's fine.
Title: Re: Important!! - Code Updater
Post by: Agent Moose on May 26, 2010, 10:34:10 pm
Yes, this topic really doesn't need to be here anymore.  Closing time!