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

mooffie’s picture

Here'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.)

mooffie’s picture

Assigned: Unassigned » mooffie

Here's an update.

We should implement hook_token_values() to provide a [bookmark-vbid-count] token
[...]
this module, some day, should probably provide some tokens anyway.

I have this part ready.

You'd won't want to print "1 votes"

And this part too. It'd be posible to do "Mark as spam ([bookmark-bad-count|no votes|@count vote|@count votes])".

there's a little technicality: the current AJAX click handler doesn't fetch the new link text from the server [so the count shown doesn't update]

That's to be done.

chadchandler’s picture

Very exciting Moofie. Keeping close tabs on this! Thanks for all your hard work

quicksketch’s picture

Mark as spam ([bookmark-bad-count|no votes|@count vote|@count votes])

Wow, that's pretty hot.

mariusooms’s picture

Subscribing (+excited)

quicksketch’s picture

Status: Active » Closed (fixed)

Closing 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.