DPChallenge: A Digital Photography Contest You are not logged in. (log in or register
 

DPChallenge Forums >> Web Site Suggestions >> DPCmod: Script to highlight new comments
Pages:  
Showing posts 1 - 25 of 34, (reverse)
AuthorThread
12/02/2006 07:48:03 PM · #1
Ok, it's been asked for a hundred times, so I had to do it.

You realize this cost me all Saturday, and now my neck and back are sore from sitting here. =) Good thing my wife is out of town this weekend!

The drill is the same as my Profile Images script: currently only tsted and working in FireFox with the GreaseMonkey Extension installed.

Download it (and anything else I decide to write) from my newly created DPCmod page. There are important notes and installation instructions on this page. Pleae read them.

Here's the screenshot:



Please someone let me know if it works - I've been working with it all day, so I may have done something stupid at the last minute. =)

Cheers!
-Jeff

Edit:
By the way - the first time you use this script, it will remember all your # of comments. So you'll have to get a new comment (you can comment on your own image, or a friend's), and then go back to your profile page, to see it in action.

If you have lots of pages of Challenge and Portfolio entries, you may want to just hit the "Show all" checkbox, and scan for your new comments.

Adding a "Show only new comments" filter checkbox is possibly on the way (cough*cash*cough).

Message edited by author 2006-12-02 19:55:22.
12/02/2006 07:54:16 PM · #2
I've installed it. Now I need a comment to see if it works. :P
12/02/2006 07:55:08 PM · #3
I tested it - it works. This is awesome!

THANKS Jeff
12/02/2006 07:56:28 PM · #4
Originally posted by Giorgio:

I've installed it. Now I need a comment to see if it works. :P


You have a comment waiting (on your perspective entry, but you should be able to find it.)
12/02/2006 07:58:12 PM · #5
Originally posted by smurfguy:

Originally posted by Giorgio:

I've installed it. Now I need a comment to see if it works. :P


You have a comment waiting (on your perspective entry, but you should be able to find it.)


It works! Great job Jeff. GO ImageNation!
12/02/2006 08:03:48 PM · #6
Very very cool! I've been wishing for such a thing for quite some time! I don't know about cash, but this has definitely earned you a spot in my "favorites" section :)
12/02/2006 08:12:09 PM · #7
Yeah, favorites - that's a close second to cash. =)

By the way - since this is a client-side script, there is a multiple-computer implication. You can install this script on multiple machines, if you'd like, but each will track new comments independently.

And in case you didn't read the fine print on my site, the disclaimer that "if the site changes, this script may no longer work" still applies.

-Jeff
12/02/2006 08:25:58 PM · #8
Thanks for all the hard work, no cash here, but fav's WILL do ;-)
12/02/2006 08:35:28 PM · #9
Whoa! Strange occurance resulting from Comments script (verified by turning the script off).

In my profile the portfolio links for my images point to:
//www.dpchallenge.com/portfolio.php?USER_ID=65858&collection_id=12970
instead of:
//www.dpchallenge.com/portfolio.php?USER_ID=49007&collection_id=12970
12/02/2006 08:40:27 PM · #10
Originally posted by _eug:

Whoa! Strange occurance resulting from Comments script (verified by turning the script off).


Ah, thank you, Eugene. A bug indeed. I copied some code from DPC, and apparently it had my USER_ID implanted in it.

I'll have it fixed shortly. By the way - this only affects your view of your profile page, so nobody else sees this problem.

-Jeff

Message edited by author 2006-12-02 20:41:05.
12/02/2006 08:40:52 PM · #11
Originally posted by _eug:

Whoa! Strange occurance resulting from Comments script (verified by turning the script off).

In my profile the portfolio links for my images point to:
//www.dpchallenge.com/portfolio.php?USER_ID=65858&collection_id=12970
instead of:
//www.dpchallenge.com/portfolio.php?USER_ID=49007&collection_id=12970


I didn't get that problem :/
12/02/2006 08:41:14 PM · #12
works beautifully on my end. very nicely done. you've certainly earned a fav from me as well, for your nice scripts and of course for your location :)
12/02/2006 09:08:02 PM · #13
The bug is now fixed and I've called it v1.1. If you have installed the script earlier, I recommend you reinstall so that the collection links in your own view of your portfolio are fixed.

Cheers,
-Jeff
12/02/2006 09:10:07 PM · #14
Interesting item #2:

If I use my dandy new Profile Image link (instead of going ALL the way to the top of the page), my profile page contains my USERID in the URL like this:
//www.dpchallenge.com/profile.php?USER_ID=49007

The script doesn't show me anything when I do that. I assume the fix would be to add the complete URL as a include URL, right?

Interesting item #3:
It's possible to reach ones profile using the form:
username.dpchallenge.com which strangely is redirecting to //www.dpchallenge.com/profile.php?USER_ID= (Yes that is an empty USERID...) I don't recall it redirecting before, but maybe Langdon changed things.

Message edited by author 2006-12-02 21:19:09.
05/31/2007 09:42:42 PM · #15
The new-comment greasemonkey script isn't working with the latest updated version of Firefox (2.0.0.4).

It worked fine prior to this update.
05/31/2007 09:45:34 PM · #16
Why can we not just have this be an embedded feature of the site?
05/31/2007 10:01:24 PM · #17
Originally posted by breadfan35:

Why can we not just have this be an embedded feature of the site?


The more stuff the site loads, the more server and bandwidth intensive it is. Embedded may not be the way to go, especially for many non-western countries, where the bandwidth access fees can be per Kbit based.
06/14/2007 10:51:08 PM · #18
Will someone please leave me a comment to see if it works? I'm using Firefox 2.0 and nothing has shown as new yet.
06/15/2007 10:22:17 PM · #19
Hi Kat,

I just checked, and it is indeed broken. Apparently a change in the DPC website (since DPCmod's rely on DPC's functions and structure sometimes.)

Anyway, I've fixed it - download version 1.2 from my DPCmod site.

Sorry about that! (Though it's a real possibility that scripts may stop working due to changes in the website.)

Cheers,
-Jeff
06/15/2007 11:11:31 PM · #20
Alright, I was modifying the code anyway, so I had to add a feature. To make new comments a little more obvious (don't have to look through all your pages of images, and so you know the script is doing something), it now modifies the section titles in your profile, like so:

Originally posted by Your Profile Page:





You'll find it in v1.3.

Cheers,
-Jeff
06/16/2007 12:07:50 AM · #21
Whoops. Other site changes got busted, too.

The arrow toggles for displaying the images in the table are being called with the wrong parameters, now.

ETA:

The onclick should be:

onclick="showHideThumb(challengeList, challengeList.dataList[' + i +'], ' + myObj.dataList[i][0] + ')"

and

onclick="showHideThumb(portfolioList, portfolioList.dataList[' + i + '], ' + myObj.dataList[i][0] + ')"

Formatted for your script, so you don't need to escape, etc. (I fixed mine locally)

Message edited by author 2007-06-16 00:14:09.
06/16/2007 12:28:12 AM · #22
Thanks, Jay. I've integrated your changes (still listed as 1.3)

Edit: Since it's not immediately obvious, the bug Jay was referring to was that you couldn't open image thumbnails with the little arrow icon.

...

Maybe langdon should ask me before he goes and changes his site! =D

Message edited by author 2007-06-16 00:33:27.
06/21/2007 09:37:54 PM · #23
chimericvisions has contributed a cool new feature to this script: it now highlights new favorites received, too. Download v1.4 for this update.

Thanks, Jay!
06/21/2007 09:43:01 PM · #24
Jeff I love your mods but this one i don't use much. I tend to check my comment total vs those on each photo. any chance this can be fixed to show new comments there?
06/21/2007 10:31:55 PM · #25
Originally posted by Elvis_L:

Jeff I love your mods but this one i don't use much. I tend to check my comment total vs those on each photo. any chance this can be fixed to show new comments there?

Great idea, Elvis. Done! Now highlights new comments in the left bar under "received"

v1.5

(Of course, if you and Crystal use the same computer and browser, this addition may get mixed up because each of you visit "profile.php" with different numbers for comments received... Let me know if this is a problem, maybe I can also key it off your user id)
Pages:  
Current Server Time: 08/05/2025 07:22:51 AM

Please log in or register to post to the forums.


Home - Challenges - Community - League - Photos - Cameras - Lenses - Learn - Help - Terms of Use - Privacy - Top ^
DPChallenge, and website content and design, Copyright © 2001-2025 Challenging Technologies, LLC.
All digital photo copyrights belong to the photographers and may not be used without permission.
Current Server Time: 08/05/2025 07:22:51 AM EDT.