Jump to content

Show More/Hide button does not work


Sweeeeet Ronny D
 Share

Recommended Posts

https://politicsandwar.com/nation/id=61253

 

Adrienne, Master of Hacks was somehow able using her supreme hack skills, disabled the Show More/Hide link on her nation page so now we cant see beyond her first 3 cities.

I am on to you Adrienne!  Your IQ level cheating will not go unpunished!

 

(note if its not obvious i am joking about the hacking part, but the button legit doesnt work, we had multiple people confirm it.)

  • Upvote 3
Link to comment
Share on other sites

  • Administrators

Something in the nation description is the source of the problem, likely an image. I am having our developer work on debugging why this sometimes breaks the javascript on the page.

Is there a bug? Report It | Not understanding game mechanics? Ask About It | Got a good idea? Suggest It

Forums Rules | Game Link

Link to comment
Share on other sites

  • Administrators

@Adrienne I think that there is something about your second image that is causing the issue. You could try re-saving and re-adding the file, and that may fix this issue.

Like I said, the developer and I are trying to figure out why this happens - as it has been happening (albeit very infrequently) sporadically.

Is there a bug? Report It | Not understanding game mechanics? Ask About It | Got a good idea? Suggest It

Forums Rules | Game Link

Link to comment
Share on other sites

7 hours ago, Alex said:

@Adrienne I think that there is something about your second image that is causing the issue. You could try re-saving and re-adding the file, and that may fix this issue.

Like I said, the developer and I are trying to figure out why this happens - as it has been happening (albeit very infrequently) sporadically.

I didn't upload anything special though. All my city images are in-game images. I tried reselecting them and the issue is still there.

Edited by Adrienne

BrOQBND.jpg

Link to comment
Share on other sites

Is it to do with the images in the nation description? They have weird super long image addresses, if that's even what those are. I'm talking about these ones...

uNHpPhg.png

Link to comment
Share on other sites

1 hour ago, Zephyr said:

Is it to do with the images in the nation description? They have weird super long image addresses, if that's even what those are. I'm talking about these ones...

Will try it. I uploaded them directly though, so idk why that'd be the issue.

BrOQBND.jpg

Link to comment
Share on other sites

13 hours ago, Adrienne said:

Will try it. I uploaded them directly though, so idk why that'd be the issue.

Maybe so, but they're certainly weird. They don't seem to specify a domain host, and copy pasting the first one into Microsoft Word reveals it's over 274,000 characters long!

Okay, found an answer on Stack Overflow: https://stackoverflow.com/questions/5242319/what-does-this-mean-image-pngbase64

Quote

It's an inlined image (png), encoded in base64. It can make a page faster: the browser doesn't have to query the server for the image data separately, saving a round trip.

(It can also make it slower if abused: these resources are not cached, so the bytes are included in each page load.)

Maybe backup your current nation description then try replacing the first image with http://i.imgur.com/2VHxoOl.png and the second with http://i.imgur.com/Mo895cC.png and see if the page behaviour is improved, it will at least rule out these unusual inline images as the problem.

Edited by Zephyr
Link to comment
Share on other sites

1 hour ago, Zephyr said:

Maybe so, but they're certainly weird. They don't seem to specify a domain host, and copy pasting the first one into Microsoft Word reveals it's over 274,000 characters long!

Okay, found an answer on Stack Overflow: https://stackoverflow.com/questions/5242319/what-does-this-mean-image-pngbase64

Maybe backup your current nation description then try replacing the first image with http://i.imgur.com/2VHxoOl.png and the second with http://i.imgur.com/Mo895cC.png and see if the page behaviour is improved, it will at least rule out these unusual inline images as the problem.

It's working now that I've switched back to imgur but that's kinda weird that uploading the images directly would stop the show/hide button from working.

Edited by Adrienne

BrOQBND.jpg

Link to comment
Share on other sites

4 hours ago, Adrienne said:

It's working now that I've switched back to imgur but that's kinda weird that uploading the images directly would stop the show/hide button from working.

Did you use the links I shared? Because I see that your images aren't working...

MbtQN3U.png

You have to use 'http' and not 'https' for Imgur links. So use:

http://i.imgur.com/2VHxoOl.png
http://i.imgur.com/Mo895cC.png

Seems if you copy those links to your clipboard it will paste them as 'https' and not 'http', so double check what you've got in your nation description. Double check your nation page using private browsing so your browser isn't just using a cached image (which is why it might appear to be working for you, but actually not visible to others visiting your nation page).

Link to comment
Share on other sites

55 minutes ago, Zephyr said:

Did you use the links I shared? Because I see that your images aren't working...

See, this is exactly why I switched to doing it the other way in the first place... >.<

Yes, it's using http instead of https. It's still not working again, so I'm just gonna go back to the other way. @Alex, you should take a look at this cause this shouldn't be happening.

Edited by Adrienne

BrOQBND.jpg

Link to comment
Share on other sites

1 hour ago, Adrienne said:

See, this is exactly why I switched to doing it the other way in the first place... >.<

Yes, it's using http instead of https. It's still not working again, so I'm just gonna go back to the other way. @Alex, you should take a look at this cause this shouldn't be happening.

Really? I just tested one on my own nation page and it appears to work.

Link to comment
Share on other sites

  • Administrators
15 hours ago, Adrienne said:

See, this is exactly why I switched to doing it the other way in the first place... >.<

Yes, it's using http instead of https. It's still not working again, so I'm just gonna go back to the other way. @Alex, you should take a look at this cause this shouldn't be happening.

I wouldn't recommend using Imgur, as they tend to block their images from showing up on P&W's site.

The images when uploaded directly through the editor are encoded and included in the page. There's nothing inherently wrong with this, but we have noticed sporadically that some images seem to break javascript on the rest of the page, which is why the show/hide button isn't working.

I'm pretty sure that in this case, the image that is causing the problem is this one: image.png

Try removing it from your nation description, and then re-saving and see if that fixes the problem.

As I said, the developer and I are trying to figure out how an image can break javascript on the rest of the page anyway.

Is there a bug? Report It | Not understanding game mechanics? Ask About It | Got a good idea? Suggest It

Forums Rules | Game Link

Link to comment
Share on other sites

3 minutes ago, Alex said:

I wouldn't recommend using Imgur, as they tend to block their images from showing up on P&W's site.

The images when uploaded directly through the editor are encoded and included in the page. There's nothing inherently wrong with this, but we have noticed sporadically that some images seem to break javascript on the rest of the page, which is why the show/hide button isn't working.

I'm pretty sure that in this case, the image that is causing the problem is this one: image.png

Try removing it from your nation description, and then re-saving and see if that fixes the problem.

As I said, the developer and I are trying to figure out how an image can break javascript on the rest of the page anyway.

I tried removing the second one and, before readding it again, checked the page and it was still broken. Removed the first one and it worked. Readded the second one and left the first off and it worked. So it's the first one. Reuploading it didn't fix it though. It still breaks the page.

  • Like 1

BrOQBND.jpg

Link to comment
Share on other sites

  • Administrators
28 minutes ago, Adrienne said:

I tried removing the second one and, before readding it again, checked the page and it was still broken. Removed the first one and it worked. Readded the second one and left the first off and it worked. So it's the first one. Reuploading it didn't fix it though. It still breaks the page.

Thanks for letting me know - I was wrong then in what I figured was causing the issue. I really don't know what it is about your first image that breaks javascript for the whole page (but lets the image show up fine.)

I've uploaded your image directly through the game, and it's here: 1f9be055b5389cc9b7ada2a7d4d20a61ea99bb91

Try inserting the image via URL with this link: https://politicsandwar.com/uploads/1f9be055b5389cc9b7ada2a7d4d20a61ea99bb91141.png and I think that will solve this.

  • Like 1
  • Upvote 1

Is there a bug? Report It | Not understanding game mechanics? Ask About It | Got a good idea? Suggest It

Forums Rules | Game Link

Link to comment
Share on other sites

2 minutes ago, Alex said:

Thanks for letting me know - I was wrong then in what I figured was causing the issue. I really don't know what it is about your first image that breaks javascript for the whole page (but lets the image show up fine.)

I've uploaded your image directly through the game, and it's here: 1f9be055b5389cc9b7ada2a7d4d20a61ea99bb91

Try inserting the image via URL with this link: https://politicsandwar.com/uploads/1f9be055b5389cc9b7ada2a7d4d20a61ea99bb91141.png and I think that will solve this.

That worked. Thank you!

  • Like 1

BrOQBND.jpg

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and the Guidelines of the game and community.