|
No, it is back again. I thought perhaps user had document.write somewhere. And it is by the server, see the membership ID being displayed of the member.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
I see it now. Tried editing the entry but it made no difference.
|
|
|
|
|
Not for me.
Same display at home and at work, both with FF
[^]
Patrice
“Everything should be made as simple as possible, but no simpler.” Albert Einstein
|
|
|
|
|
I've had a few goes at editing the question, and I think I've got rid of it.
The problem is with the application/ld+json script block generated for the page. Because the string contains a </script> tag, that seems to close the outer <script type="application/ld+json"> tag, even though it's within a string.
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Question",
"headline": "Is it a code conflict?",
"url": "https://www.codeproject.com/Questions/1172013/Is-it-a-code-conflict",
"discussionUrl": "https://www.codeproject.com/Questions/1172013/Is-it-a-code-conflict",
"isFamilyFriendly": "true",
"image": "https://www.codeproject.com/App_Themes/CodeProject/Img/Article100.png",
"description": "Master script installed on my website contains:<script src=\"https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js\" type=\"text/javascript\"></script><script src=\"https://apis.google.com/js/plusone.js\" type=\"text/javascript\"></script>When I try to add another element with...",
"keywords": "Javascript, jQuery",
"author" : [{
"@type" : "Person",
"name" : "Member 13014674",
"url" : "https://www.codeproject.com/script/Membership/View.aspx?mid=13014674"
}],
"datePublished": "2017-02-21",
"dateCreated": "2017-02-21",
"dateModified": "2017-02-21",
"publisher" : {
"@type" : "Organization",
"name" : "CodeProject"
}
}
</script>
By inserting a space within the closing script tag, it no longer terminates the outer block.
Feel free to delete my (many) revisions once the bug is fixed!
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Nice catch !
Patrice
“Everything should be made as simple as possible, but no simpler.” Albert Einstein
|
|
|
|
|
It's been a long time since I wrote any significant JS, but I recall that having the text </script> in any JavaScript block is interpreted as the end tag, irrespective of whether it is in a comment or a string. The solution that I grew up with was to split the string into two concatenated strings e.g. "<script ...>...</" + "script>" but you can't do that in JSON as that expects a string literal, not an expression. So the best that can be done is to use something like "<script ...>...<\x2fscript>" . But I am guessing that the code is autogenerated when you submit the question, in which case it is up to the hamsters to fix the autogeneration e.g. just replace all "/" with "\x2f" .
P.S. To include the text </script> in the above message, I had to use </script>
|
|
|
|
|
If you go to this post Is it a code conflict?[^]
I see the following on top of the page
When I try to add...", "keywords": "Javascript, jQuery", "author" : [{ "@type" : "Person", "name" : "Member 13014674", "url" : "https://www.codeproject.com/script/Membership/View.aspx?mid=13014674" }], "datePublished": "2017-02-21", "dateCreated": "2017-02-21", "dateModified": "2017-02-21", "publisher" : { "@type" : "Organization", "name" : "CodeProject" } }
Bryian Tan
|
|
|
|
|
Fixed in the post above this one.
This space for rent
|
|
|
|
|
I have recently published 2 posts, and I received an email (or web) notification for none of them. I did receive a notification that they were published (your most recent changes were published), but the intial was not sent.
The benefit of the initial email is that I get to intervene myself and fix a few things in the post, such as category, tags and content etc. so that the post looks fine and then publish it myself. Since I do not get a notification, I am unable to intervene and I have to give pain to moderators.
But, um, is this a site update, or something else? I would love to have it back online.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
We've been hunting down the email notification issue for a few days. It'll get fixed.
cheers
Chris Maunder
|
|
|
|
|
I can see an event "Post a general forum message (undo)" with a link towards This message[^] which was later on deleted by POH[^]. Now I don't really care about the lost point, but since we're displaying them out to everyone in public they should be counted correctly.
|
|
|
|
|
I didn't posted earlier, because I do not care for that lost point, but you are right - it is a bug...
Posted a reply to a post later deleted, and got -1 twice...
20-Feb-17 6:21AM -1 Debator Post a General Forum Message (undo) Forum Message Visual C++
20-Feb-17 6:20AM -1 Debator Post a General Forum Message (undo) Forum Message Visual C++
19-Feb-17 9:36PM 1 Debator Post a General Forum Message Forum Message Re:Visual C++
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
Kornfeld Eliyahu Peter wrote: didn't posted earlier, because I do not care for that lost point
Same here - But IMHO as long as CP is supplying those numbers they should be correct, otherwise they might as well wipe them out.
|
|
|
|
|
BuggyMenu.zip (697.3 KB)
The file in the Zip is an MP4 screencap.
For those unwillig to download it, here are the steps to reproduce:
1. Open Articles menu by hovering your mouse pointer ove "articles"
2. Try to click on "Submit an article or tip".
3. In any case, the "chapters and sections" sub menu expands rapidly and removes any other content in the menu (or blends over or whatever).
Edit: Browsercheck Output:
Quote: User Agent Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36
Browser Chrome
Device Type Desktop
Version string 0.0
Version 0
Platform Win10
Platform Version 10.0
Chrome True
Edge False
IE False
Opera False
Safari False
Blink True
EdgeHTML False
Gecko False
Trident False
WebKit False
Desktop True
Tablet False
Mobile Device False
Small Mobile Device False
Touch Device False
Standard True
Display Mode Normal
Editable Elements False
Modern True
Semi-Modern True
CRC 1988358956
Browscap RegEx ^Mozilla/5\.0 \(.*Windows NT 10\.0.*WOW64.*\) AppleWebKit/.* \(KHTML.* like Gecko\) Chrome/.*Safari/.*$
Cookies OK? True
Edit #2: The Browser check seems to be broken, too - By all means I'm not using Chrome V0.0
(It says 56.0.2924.87 on the Chrome browser page)
Edit #3: The other menus work
modified 20-Feb-17 7:09am.
|
|
|
|
|
Works as normal for me. Chrome Version 57.0.2987.54
|
|
|
|
|
Works fine for me in Chrome 56.0.2924.87 (64-bit). The "chapters" menu opens to the right of the main "articles" menu, even if I shrink the window so that there isn't enough room for it.
The browser check page shows the same as yours, except for:
CRC: 4131454197
Browscap RegEx: ^Mozilla/5\.0 \(.*Windows NT 10\.0.*Win64. x64.*\) AppleWebKit/.* \(KHTML.* like Gecko\) Chrome/.*Safari/.*$
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
The default behavior of the CTRL + S key combination is that it shows the save HTML page dialog. Whereas, it would be much better, to only trigger the save document draft function.
The same function is available on WordPress post editor (the previous WP-Admin one), that has a good UX, as the user can have their post saved as a draft when they press CTRL + S, I think the same would be a good feature on CodeProject as well.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
It is only for those can't overcome old habits... The page saves its content automatically every few minutes...
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
Your both statements are true.
But still, "Save HTML document" is not a good experience. It may be my personal review of the features.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
Message Removed
modified 21-Feb-17 9:22am.
|
|
|
|
|
Hi all - what is the current thinking on whether source code should always be attached/uploaded to CP for articles ?
I've seen articles in moderation which don't have source code, and have been 'released', similarly I've seen the other side of the coin where someone has pointed to Codeplex, but his sourcecode on Codeplex was at that time inaccessible - see ACoreLib.Tracer: Tracing done right
... as Steve Holle points out in the link above (albeit some time after my original comment to the author), do we expect author's to maintain two sets of code ?
My 'take' is, and moving with the times, we probably dont expect authors maintain 2 sets of code, but, we expect that the code is always available - as was the original intent of 'always having a source code attachment/upload' to an article in the first place
I'm happy to follow (gawd I'm going to hate myself) 'whatever makes sense', but having been a member for a while, I don't want to be 'going against the flow on current standards/recommendations'
.. apologies if this has come up before and I've missed it
|
|
|
|
|
We've always allowed members to host the latest version of their code offsite, but we've also always asked members to provide a snapshot of the code we can host locally in case offsite went dark.
Many years ago when we first started CodeProject we had a 100% offsite link breakage rate. It was insane. 100% of links to code offsite eventually broke. Hence the policy.
These days things are vastly different and places like CodePlex and GitHub are usually rock solid. Even so, things change, and it's always safer for everyone to provide a local, emergency copy, even if it's out of date.
cheers
Chris Maunder
|
|
|
|
|
Thanks Chris - it sounds like we're singing from the same hymn book, which is what I intended to check by posing it here
cheers
|
|
|
|
|
I'm not receiving email notifications for messages on my articles. My email address is set correctly. Anyone know why this could be?
Cheers,
Daniel
|
|
|
|
|
This is affecting a lot of people. There are a few reports about this already.
This space for rent
|
|
|
|