Add your own alternative version
Stats
135.6K views 1.6K downloads 67 bookmarked
Posted
22 Mar 2010
|
Comments and Discussions
|
|
|
|
I read CodeProject has yet again changed the way they HTML-encode article lists, and that is why CP Vanity isn't able to list them any longer. A Web Service is the only real solution, and CP may or may not provide that in an unspecified time period.
Sorry, I am not going to adapt CP Vanity any time soon; hunting moving targets is not what I fancy right now. If you want, you can figure out what has changed and try and adapt the relevant method(s); all the source files are available in the download.
|
|
|
|
|
For the curious, in CPSite GetArticles:
change
string pattern = "<span id=\"ctl\\d*_MC_.R_ctl\\d*_MAS[\\s\\S]*?</div>\\s*?</span>";
to
string pattern = "<span id=\"ctl\\d*_MC_.R_ctl\\d*_CAR[\\s\\S]*?</div>\\s*?</span>";
and
Regex rURL= new Regex("_AT\" href=\"([-a-zA-Z_/\\#0-9.:]*?)\">([\\s\\S]*?)<");
becomes
Regex rURL= new Regex("_Title\" href=\"([-a-zA-Z_/\\#0-9.:]*?)\">([\\s\\S]*?)<");
10 PRINT "Software is hard. - D. Knuth"
20 GOTO 10
modified 13-Jan-13 11:49am.
|
|
|
|
|
is available in the new and improved CP Vanity version 2.4
Luc Pattyn [My Articles] Nil Volentibus Arduum
The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Please use <PRE> tags for code snippets, they improve readability. CP Vanity has been updated to V2.4
|
|
|
|
|
Sorry CP Vanity showed up on the home page again, nothing has been added or changed, except for an obsolete ZIP file that was removed from the associated files (it did show up under "Browse Code", potentially confusing the reader, so I had to remove it).
Luc Pattyn [My Articles] Nil Volentibus Arduum
The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Please use <PRE> tags for code snippets, they improve readability. CP Vanity has been updated to V2.3
|
|
|
|
|
Does CodeProject give a ranking based on individual category items e.g. Author etc.?
Its the man, not the machine - Chuck Yeager
|
|
|
|
|
if you mean: can one obtain the Who's Who ranked by a single rep component, the answer alas is no. That is why, when sorting by a rep component in CP Vanity, you may be missing a few high-ranked members. Fictitious example: someone with few or no articles, few or no messages, one rather high rep component in a not so popular category (say 10,000 enquirer points), but nothing much in the other components, hence total rep about 10K too, such a member would not show at all in CP Vanity.
If CP were to provide ranking by each of the components, CP Vanity could be made to get say the top-50 of each category, merge them all (as is done now already for rank by articles, by message count, and by total rep), then show a much more accurate list of top achievers.
Luc Pattyn [My Articles] Nil Volentibus Arduum
The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Please use <PRE> tags for code snippets, they improve readability. CP Vanity has been updated to V2.3
modified on Friday, June 10, 2011 8:49 PM
|
|
|
|
|
Any chance of petitioning CP for this feature?
Its the man, not the machine - Chuck Yeager
|
|
|
|
|
You can post your ideas, wishes and complaints at the "Site Bugs and Suggestions" forum. That is the forum CP staff reads.
Luc Pattyn [My Articles] Nil Volentibus Arduum
The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Please use <PRE> tags for code snippets, they improve readability. CP Vanity has been updated to V2.3
|
|
|
|
|
I need a mirror to make sure my hair is in place before I use your software to check on all the rep points I don't have.
--
** You don't hire a handyman to build a house, you hire a carpenter.
** Jack of all trades and master of none.
|
|
|
|
|
Alas not. However you probably have a mirror app on your smart phone, so no more excuses for your hairy mess or messy hair.
Luc Pattyn [My Articles] Nil Volentibus Arduum
The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Please use <PRE> tags for code snippets, they improve readability. CP Vanity has been updated to V2.3
|
|
|
|
|
Just an FYI, this doesn't work when I try it from my work computer. It's probably a proxy/firewall issue or something, but thought I'd let you know. When I enter my member ID under "One Account" and click "Go", I get the message:
Could not access
http://www.codeproject.com
mid=3750834
It really wraps like that, and I'm sure there's more to the URL but it gets cut off. Also, when I click "Go" on the "Highest Achievers" section, nothing happens. I just see a blank page.
I will make sure to give it a try when I get home.
|
|
|
|
|
The executable-only ZIP didn't have the config file, I fixed that, maybe it solves your problem.
If not, there are a couple of things about proxies in the article. Did you have to patch the eerlier code to get it to work? if not, it should still work.
Cheers.
Luc Pattyn [My Articles] Nil Volentibus Arduum
The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Please use <PRE> tags for code snippets, they preserve indentation an improve readability. CP Vanity has been updated to V2.3
|
|
|
|
|
Once I got the new ZIP with the config, it worked like a charm.
|
|
|
|
|
Very nice!
Thanks for sharing. 
|
|
|
|
|
I'm glad you liked it.
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
A useful tool
Just because the code works, it doesn't mean that it is good code.
|
|
|
|
|
Sorry to say but for all versions up to and including V2.2 the article-oriented table on the first tab page shows erroneous counts for votes, bookmarks, and downloads whenever the actual individual numbers exceed 999 (the web scraping did not recognize the thousand separator).
[ADDED]
This has been fixed in the new version 2.3
[/ADDED]
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
modified on Tuesday, May 24, 2011 4:22 PM
|
|
|
|
|
Not sure its' a bug in this, Now the application showing extra points in authority category(For me it's showing excess 10 points also in the total....My CP points is 45150 but in Vanity it's 45160).
|
|
|
|
|
No way, CP Vanity is always right, enjoy the extra points.
I can't really comment on the exact situation (it is changing all the time), however your account shows a 10-point difference between tabular and graphical numbers. All CP Vanity does is fetching some of the Who's Who pages and scrape them.
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
Luc Pattyn wrote: No way, CP Vanity is always right,
Yeah, because also I said not sure about that.
Luc Pattyn wrote: All CP Vanity does is fetching some of the Who's Who pages and scrape them.
That makes sense.
Let's see Luc, Thanks for your quick reply.
|
|
|
|
|
|
Thanks Mika.
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
That's not vanity - it's usefulness
cheers,
marcelo
|
|
|
|
|
|
General News Suggestion Question Bug Answer Joke Praise Rant Admin
Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.
|
|