|
My reputation history shows me posting a message March 2, 2012 @ 11:52AM. Though the link points to this message[^]. I posted that back in August 2010.
Chris Meech
I am Canadian. [heard in a local bar]
In theory there is no difference between theory and practice. In practice there is. [Yogi Berra]
posting about Crystal Reports here is like discussing gay marriage on a catholic church’s website.[Nishant Sivakumar]
|
|
|
|
|
|
|
We moved a bunch of comments into forums as part of the UI update to tips and tricks. Since we moved them yesterday, that's when the rep points were awarded.
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
Thanks Chris.
Did the comments then get moved back? And wouldn't the points be removed if the comment was moved back out of a forum. What's confusing is that it isn't a forum message, but rather an article comment.
It's not a big deal. Just my thick skull trying to understand.
Chris Meech
I am Canadian. [heard in a local bar]
In theory there is no difference between theory and practice. In practice there is. [Yogi Berra]
posting about Crystal Reports here is like discussing gay marriage on a catholic church’s website.[Nishant Sivakumar]
|
|
|
|
|
No, the comments haven't been moved back (they still exist).
We actually have two comment systems: The original forum system, which is used to allow comments to be made to articles, and a lighter weight Comment system that is used for Quick Answers (and previously Tips).
Tips used to have comments attached to them. We've ditched this and instead moved to having Forums attached to tips (same as articles) and so we've imported the comments attached to tips into the new forums we've created for each tip.
I hope that, um, clears it up.
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
Thanks Chris.
It's beginning to sound like something I don't want to understand.
Chris Meech
I am Canadian. [heard in a local bar]
In theory there is no difference between theory and practice. In practice there is. [Yogi Berra]
posting about Crystal Reports here is like discussing gay marriage on a catholic church’s website.[Nishant Sivakumar]
|
|
|
|
|
I just visited my alternate tip: No More Session Variable Misspellings.
Issue #1. When I do so, I noticed that the "Tip" tab is highlighted, even though it's not the primary tip. Maybe add a dynamic tab "Alternate Tip" that only displays when viewing an alternate tip? I suspect this also applies to articles, though I haven't seen any alternate articles yet.
Issue #2. When I visit the latest articles page, there are checkboxes for everything except for "Alternative Article".
|
|
|
|
|
Fixed, and will be fixed this afternoon.
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
When I paste a link to a Code Project article, the title is filled in for me. Looks like you probably use some AJAX to to ask the server for the title, which takes a second or two. You could probably avoid that AJAX call as follows...
When I paste a link to an article, I typically have the article open in another window. That means you could drop a cookie when a user visits an article to associate the article ID (or even the full URL) with an article title. When a user pastes a link to that article, the cookie can be inspected to get the article title. As a fallback, you could still hit the server with some AJAX.
|
|
|
|
|
If you are editing a message in window 1, then visit window 2 which drops a cookie, do you have access to that new cookie in window 1 immediately? I doubt you would. It's also extremely hit and miss.
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
I'm not sure, but I suspect so (I'll try make time to create a quick test this weekend). Though, cookies are sent to the server with each page request. If a user views enough articles, that data could grow and slow down their page load times a bit. One possible way to overcome that would be to only store info on the last 25 articles viewed.
I don't think it would be very hit and miss. How often do you think users paste article URL's without having recently viewed that article? I usually copy the URL's directly from the browser address bar.
|
|
|
|
|
You can copy a URL from a favorite button, i.e. without opening the page. Your articles are amongst your favorites, aren't they?
|
|
|
|
|
Nope, I use Code Project's bookmark feature. Also, that doesn't seem to work from IE9 (I suspect IE copies the shortcut file rather than the text URL). Unless you are talking about going to the properties for the favorite and copying the link from there, which somebody COULD do. And I'm sure somebody COULD view an article in one browser then paste it into a different browser, or they COULD have a giant list of URL's stored in a text file... but I doubt that happens often.
|
|
|
|
|
I was referring to the bookmarks bar as it exists in FireFox, Chrome, and probably the others as well. Just right-click and choose "Copy".
And no, I seldom use the "CP bookmark feature", as that only works for CP material; I have a universal bookmark system in place, with an actual database so I can store whatever I choose, then search, list, sort, etc.
|
|
|
|
|
Chris Maunder wrote: If you are editing a message in window 1, then visit window 2 which drops a cookie, do you have access to that new cookie in window 1 immediately?
Yes. Here's how I demonstrated that... create Page1.aspx:
<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Page 1</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js"></script>
</head>
<body>
<form id="form1" runat="server">
<div>
<p><a href="#" class="setCookie">Set Cookie</a></p>
<p><a href="#" class="showCookie">Show Cookie</a></p>
</div>
</form>
<script type="text/javascript">
<!--
function setCookie () {
var expires = new Date((new Date()).getTime() + 1000 * 60 * 60 * 24);
document.cookie = "recent_pages=123,456;expires=" + expires.toGMTString() + ";path=/";
}
function showCookie () {
alert(document.cookie);
}
$(function () {
$(".setCookie").click(function () {
setCookie();
return false;
});
$(".showCookie").click(function () {
showCookie();
return false;
});
});
</script>
</body>
</html>
Then create Page2.aspx:
<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Page 2</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js"></script>
</head>
<body>
<form id="form1" runat="server">
<div>
<p><a href="#" class="setCookie">Set Cookie</a></p>
<p><a href="#" class="showCookie">Show Cookie</a></p>
</div>
</form>
<script type="text/javascript">
<!--
function setCookie () {
var expires = new Date((new Date()).getTime() + 1000 * 60 * 60 * 24);
document.cookie = "recent_pages=789,987;expires=" + expires.toGMTString() + ";path=/";
}
function showCookie () {
alert(document.cookie);
}
$(function () {
$(".setCookie").click(function () {
setCookie();
return false;
});
$(".showCookie").click(function () {
showCookie();
return false;
});
});
</script>
</body>
</html>
Run them both in the same web application. Click "Set Cookie" in Page1.aspx, then click "Show Cookie" in Page2.aspx. You will note that Page2.aspx displays the cookie set in Page1.aspx.
|
|
|
|
|
Hi there,
I just completed a long article which took a good 2 hours to write. The website told me it had "Autosaved" the article. On submission an error occurred and it now appears to be lost.
Can you please have a look into this and let me know if the article has been saved in part?
Best regards,
Andrew
|
|
|
|
|
|
|
It's great to know the auto-save works. It's painful to hear of members losing work due to browser crashes.
Let us know if there's anything else you need.
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
Yep, it works. A little difficult to find. Usually with forum posts I copy/paste HTML into notepad precisely because it can fail. Autosave gave me confidence to post without doing that - but then I was gutted I didn't take a backup!
Fortunately all ok now. Thanks!
|
|
|
|
|
Dr. Andrew Burnett-Thompson wrote: A little difficult to find.
Our thinking was that if the submission page failed you'd start again by following the trail back to the initial submissions welcome page (Submit.aspx) so it's on that page we listed the auto-saved drafts.
What would be more convenient in your mind?
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
My reputation history shows current date but the logs are from 6 months back!
For a moment, I thought my account was hacked as I saw pretty weird forum posts! (Later turned it was just ME, 6 months back!)
-
Just that something can be done, doesn't mean it should be done. Respect developers and their efforts!
Jk
|
|
|
|
|
|
My MVP certificate turned up today. Thanks. It means so much to me.
|
|
|
|