Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

#1 2017-09-25 17:58:08, last edited by SirJosh3917 (2017-09-25 17:58:35)

SirJosh3917
Formerly ninjasupeatsninja
From: USA
Joined: 2015-04-05
Posts: 2,095

[ Breaking the image on the main page ]

In the site's JQUERY, it has a feature that you type ? and then the background name.

Doing so breaks the logo, goto:

http://everybodyedits.com/?ajoin

This is because it tries to load the site's logo from "http://playerio-a.akamaihd.net/everybody-edits-su9rn58o40itdbnw69plyw/Everybody%20Edits%20Website/images/logosmallnew._v4ajoin.png?2"

Offline

#2 2017-09-25 18:01:34

LukeM
Member
From: England
Joined: 2016-06-03
Posts: 3,009
Website

Re: [ Breaking the image on the main page ]

This isn't really a bug... Typing in an invalid URL will break a lot of things, and it can't really happen unless you're trying to do it

Offline

Wooted by:

#3 2017-09-25 19:17:57

SirJosh3917
Formerly ninjasupeatsninja
From: USA
Joined: 2015-04-05
Posts: 2,095

Re: [ Breaking the image on the main page ]

destroyer123 wrote:

This isn't really a bug... Typing in an invalid URL will break a lot of things, and it can't really happen unless you're trying to do it

$(document).ready(function setBG() {
    console.log(window.location.href.toLowerCase().indexOf("?") >= 0);
    if(window.location.href.toLowerCase().indexOf("?") >= 0) {
        event = window.location.href.split('?')[1];
    }
    if(event.replace(/[0-9]/g, '') != "") {
        $.each($("img.logo"), function() {
            $(this).attr("src", $(this).attr("src").replace(".png", event + ".png?2"));
        });
    }

Offline

#4 2017-09-25 21:48:07

LukeM
Member
From: England
Joined: 2016-06-03
Posts: 3,009
Website

Re: [ Breaking the image on the main page ]

ninjasupeatsninja wrote:
destroyer123 wrote:

This isn't really a bug... Typing in an invalid URL will break a lot of things, and it can't really happen unless you're trying to do it

$(document).ready(function setBG() {
    console.log(window.location.href.toLowerCase().indexOf("?") >= 0);
    if(window.location.href.toLowerCase().indexOf("?") >= 0) {
        event = window.location.href.split('?')[1];
    }
    if(event.replace(/[0-9]/g, '') != "") {
        $.each($("img.logo"), function() {
            $(this).attr("src", $(this).attr("src").replace(".png", event + ".png?2"));
        });
    }

?
Don't see how that makes it a bug...

Offline

LukeM1506372487678215

Board footer

Powered by FluxBB

[ Started around 1713520588.5518 - Generated in 0.058 seconds, 12 queries executed - Memory usage: 1.42 MiB (Peak: 1.53 MiB) ]