Closed (fixed)
Project:
Views Bookmark
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
29 Feb 2008 at 23:09 UTC
Updated:
22 Feb 2009 at 03:55 UTC
I just thought of a really neat feature for this module! I display how many users have bookmarked a particular node on display, but when the user saves/removes it doesn't display instantly (of course). What would it take to get this number to display instantly on user remove/add bookmark? Basically, just like the vote up vote down module. I think this would be a really neat feature, anyone else? :)
Comments
Comment #1
mooffie commentedHere's one way to implement this:
We should implement hook_token_values() to provide a [flag-vbid-count] token that would return the number of times this node was bookmarked (in a certain vbid context). Then, instead of "mark as spam", for the title, you'd enter "mark as spam ([flag-2-count] votes)".
HOWEVER, ultimately, this won't satisfy your needs. You'd won't want to print "0 votes".
I mention this nevertheless, because this module, some day, should probably provide some tokens anyway.
(there's a little technicality: the current AJAX click handler doesn't fetch the new link text from the server. But this can be fixed.)
Comment #2
mooffie commentedHere's an update.
I have this part ready.
And this part too. It'd be posible to do "Mark as spam ([bookmark-bad-count|no votes|@count vote|@count votes])".
That's to be done.
Comment #3
chadchandler commentedVery exciting Moofie. Keeping close tabs on this! Thanks for all your hard work
Comment #4
quicksketchWow, that's pretty hot.
Comment #5
mariusooms commentedSubscribing (+excited)
Comment #6
quicksketchClosing the Views Bookmark queue. This module has been replaced by Flag. If interested in migrating the issue to Flag, please move this issue or open a new issue in the Flag queue.