Welcome to Gaia! ::

Make a Guide

Back to Guilds

Guide Making support guild 

Tags: Resource, Guide, Color, Reference 

Reply Main Sector
About The Server Move - Image URLs

Quick Reply

Enter both words below, separated by a space:

Can't read the text? Click here

Submit

ladykayra
Captain

Jaded Archivist

PostPosted: Fri Nov 02, 2018 4:38 pm
For my fellow guide makers there is an important note to be made

If you use any of the old item image URLs you should to change them. Old URLs include:
http://s.cdn.gaiaonline.com/ (It looks like this one may be set-up to auto-redirect and thus may not need immediate attention)
http://gaia.hs.llnwd.net/e3/
https://gaia.hs.llnwd.net/e1/
(and potential variations)

It looks like we're now getting:
https://graphics.gaiaonline.com/

As our URL and hopefully it will stay that way. I tested out changing one of my broken images and it went back to normal


---------Update for Jan 2019---------

If your thread if suffering from the icons just being a link this is because Gaia is no longer using the CDN called limelight. This means all images linked with the URL gaia.hs.llnwd.net will no longer work and need to be updated to graphics.gaiaonline.com

You can chose to update by hand.
Use the find and replace function in a document editor.
Or find below a way to edit your posts in the browser:

1. Go to the edit message of the post you want to fix
2. Right click anywhere on the page and then click on Inspect in the dropdown
3. Click on the tab called Console
4. Copy and paste the first bit of code found here:
http://pasted.co/7b0bc237
(sorry Gaia does not format correctly so it must be hosted offsite)
5. Hit enter and it should output some text in the console
(At this stage in chrome it appears it may force you to copy and paste the text into your post. In Firefox it should just replace the text in your post)
6. Preview your post and it should have worked

It should work in Chromium, Chrome, and Firefox. The changes to your post should be almost seamless which is why I suggest a preview to be sure it worked. Replace the first line with: var post = document.getElementById('textInputArea'); for guild posts. If you have questions feel free to post them here.

Posts here in the guild will be updated by ladykayra, you do not need to update them yourself unless you wish to.

**Warning** If your post was just under the character limit it may now go over the character limit. If this is so please see the response to these concerns brought up by angie in the below posts

Additional information from a post from Zeetheus
Image thumbnails:
https://gaia.hs.llnwd.net/e1 gaia_right https://graphics.gaiaonline.com

Item display avs in bundle/item descriptions:
https://gaia.hs.llnwd.net/e2 gaia_right http://w.cdn.gaiaonline.com
(the second is not handled by the script but you could change it to be)

Edit: It appears images are fixed but I would still move away from the old URLs if you have the time  
PostPosted: Sat Nov 03, 2018 11:40 pm
Ahahaha...changing all the links is going to be a nightmare for me with all my item lists. The new URL is also longer than the old ones, which might get some of my lists to go over the post's character limit.  

angie_sash
Vice Captain

Ailurophilic Lolita


Color Scheme Showcase

Sweetest Dabbler

PostPosted: Mon Nov 05, 2018 8:54 am
If you're concerned with characters limits you can get away with doing any of these this:

Remove the protocol (http/https) from the links, works on both the url and img link
[url=//www.gaiaonline.com/marketplace/itemdetail/10505816/][img]//graphics.gaiaonline.com/images/thumbnails/new/62/62535a52a04e58.png[/img][/url]

User Image

These actually broke so only the one option remains

Remove also the "//" from the links
[url=www.gaiaonline.com/marketplace/itemdetail/10505816/][img]graphics.gaiaonline.com/images/thumbnails/new/62/62535a52a04e58.png[/img][/url]

User Image - Blocked by "Display Image" Settings. Click to show.

Also remove the "www" from the marketplace links
[url=gaiaonline.com/marketplace/itemdetail/10505816/][img]graphics.gaiaonline.com/images/thumbnails/new/62/62535a52a04e58.png[/img][/url]

User Image - Blocked by "Display Image" Settings. Click to show.


Removing the protocol is probably the safest and least likely to break. It could lead to some issues if there isn't both an http and https version but with Gaia being mostly https these days it should be okay
Removing the "//" makes the path relative and could lead to issues depending on browser
Removing the "www" could cause issues, as were noted during the server move, if the site's routing goes wonky


edit: Looks like the last two broke
 
PostPosted: Mon Nov 05, 2018 5:04 pm
Bwahahahahahahahahahaha

Now You'll still have to update post by post but here's a little code snippet you can put in your browser console to update URLs

Quote:
var post = document.getElementById('message');
var newContent = post.textContent.replace(/http(?:s)*://s.cdn.gaiaonline.com/|http(?:s)*://gaia.hs.llnwd.net/ed//gm, 'https://graphics.gaiaonline.com/');
post.textContent = newContent;



What this will do is update the post you are editing so it has the new URL without you having to lift a finger (hopefully). The first line gets a reference to the post and names it post. The second line makes new content for the post by replacing the known old URLs with the new URL and puts it in a variable called newContent. The third line replaces the current content of post with your new content.

Hopefully this is helpful and please let me know if it breaks

There is also this regex if you have a text editor/IDE like Atom that allows you to find and replace by regex (if you’d rather find and replace in a controlled manner outside the gaia post)

Quote:
http(?:s)*://s.cdn.gaiaonline.com/|http(?:s)*://gaia.hs.llnwd.net/ed/
 

ladykayra
Captain

Jaded Archivist


ladykayra
Captain

Jaded Archivist

PostPosted: Thu Dec 13, 2018 3:31 pm
No-one told me the above weren't working. It appears Gaia removes one of the slashes when it actually posts, causing the code to break

I found a site to host it if you still want it: http://pasted.co/7b0bc237

I'll be going through and updating any guild threads with icon links at some point (so you only have to do your own threads)  
PostPosted: Fri Jan 25, 2019 9:20 am
User Image
aaah thank you so much for this!
i wanted to cry when i saw most of my images weren't working anymore  


Fureiny


Hungry Kitten


ladykayra
Captain

Jaded Archivist

PostPosted: Fri Jan 25, 2019 10:31 am
Fureiny
User Image
aaah thank you so much for this!
i wanted to cry when i saw most of my images weren't working anymore

It worked for you? I'm so glad if it did! I haven't had people really confirm if it works for them or not  
PostPosted: Fri Jan 25, 2019 10:41 am
User Image
ladykayra
Fureiny
User Image
aaah thank you so much for this!
i wanted to cry when i saw most of my images weren't working anymore

It worked for you? I'm so glad if it did! I haven't had people really confirm if it works for them or not

yes! i fixed my ivory list and adjusted the code to fix my avi gallery too~  


Fureiny


Hungry Kitten


angie_sash
Vice Captain

Ailurophilic Lolita

PostPosted: Fri Jan 25, 2019 7:27 pm
ladykayra

1. Go to the edit message of the post you want to fix
2. Right click anywhere on the page and then click on Inspect in the dropdown
3. Click on the tab called Console
4. Copy and paste the first bit of code found here:
http://pasted.co/7b0bc237
(sorry Gaia does not format correctly so it must be hosted offsite)
5. Hit enter and it should output some text in the console
6. Preview your post and it should have worked

For me, after doing step 5, I had to click the copy button that appears after I've hit enter, and then delete my old post in the field by Ctrl+a and delete keyboard button, then Ctrl+v to paste the new code. That's when I hit the preview post to check before submitting. It doesn't work for me if I don't do that.  
PostPosted: Fri Jan 25, 2019 10:48 pm
angie_sash

For me, after doing step 5, I had to click the copy button that appears after I've hit enter, and then delete my old post in the field by Ctrl+a and delete keyboard button, then Ctrl+v to paste the new code. That's when I hit the preview post to check before submitting. It doesn't work for me if I don't do that.

Would you happen to be using Chrome? And also would it be in private browsing mode?
I had someone else mention that but I can't seem to reproduce it  

ladykayra
Captain

Jaded Archivist


angie_sash
Vice Captain

Ailurophilic Lolita

PostPosted: Sat Jan 26, 2019 5:46 am
ladykayra
angie_sash

For me, after doing step 5, I had to click the copy button that appears after I've hit enter, and then delete my old post in the field by Ctrl+a and delete keyboard button, then Ctrl+v to paste the new code. That's when I hit the preview post to check before submitting. It doesn't work for me if I don't do that.

Would you happen to be using Chrome? And also would it be in private browsing mode?
I had someone else mention that but I can't seem to reproduce it

Yes, I use Chrome, but not in private browsing mode.  
PostPosted: Sat Jan 26, 2019 8:03 am
angie_sash
ladykayra
angie_sash

For me, after doing step 5, I had to click the copy button that appears after I've hit enter, and then delete my old post in the field by Ctrl+a and delete keyboard button, then Ctrl+v to paste the new code. That's when I hit the preview post to check before submitting. It doesn't work for me if I don't do that.

Would you happen to be using Chrome? And also would it be in private browsing mode?
I had someone else mention that but I can't seem to reproduce it

Yes, I use Chrome, but not in private browsing mode.

I’m guessing it’s a chrome “security” feature. I’ll keep looking into to try and make it easier for you. See if I can find anyone else having the issue with chrome in general. For now I put a note at that stage. Feel free to reword it a little if that isn’t quite what you’re experiencing  

ladykayra
Captain

Jaded Archivist

Reply
Main Sector

 
Manage Your Items
Other Stuff
Get GCash
Offers
Get Items
More Items
Where Everyone Hangs Out
Other Community Areas
Virtual Spaces
Fun Stuff
Gaia's Games
Mini-Games
Play with GCash
Play with Platinum