Hi,
I use a dev verion and for now almost works ok but in the user panel where I can see for which nodes a user voted I get warrings and
I see only admins votes.

Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (line 178 of /.../includes/entity.inc).
Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->cacheGet() (line 354 of /../include

Comments

drewish’s picture

Title: Warnigs and arros on user/*/votes » Finish updating user/*/votes for D7
Status: Active » Needs review
StatusFileSize
new3.3 KB

db_query_rewrite() no longer exists. Let's modernize vud_user_votes(). Switched to DBTNG query, and returning a build array rather than a string.

Status: Needs review » Needs work

The last submitted patch, vud_1402758.patch, failed testing.

drewish’s picture

Status: Needs work » Needs review
StatusFileSize
new3.14 KB

Whoops didn't roll that against the right repo.

Status: Needs review » Needs work

The last submitted patch, vud_1402758.patch, failed testing.

drewish’s picture

Status: Needs work » Needs review
StatusFileSize
new3.15 KB

Okay for real this time...

marvil07’s picture

Status: Needs review » Postponed

@drewish: Thanks for the effort here.

The real reason I was not really looking at this was #1360572: Roadmap for D7 of Vote up/down, and there vud_node would be kind of disappearing, and in fact that menu callback should no be on vud module, but instead on vud_node, since it's specific to it.

Sorry, but postponing until the two issues before 7.x-1.0-beta1 are ready.

Luna Vulpo’s picture

@dresh your patch helped. Thanks.

marvil07’s picture

Title: Finish updating user/*/votes for D7 » Remove user votes page in favour of views
Category: bug » task
Status: Postponed » Fixed
StatusFileSize
new10.12 KB

I have removed this feature from D7.

This is the ind of things views can do it really better for us, I'm attaching an example view for reference. BTW this is about querying voting_api data, so not really vud specific, and if something specific is required voting_api views should really be enough to do it.

klonos’s picture

Some modules include an example view in such cases. Users can simply enable the view and tweak it instead of having to build their own from scratch. This helps to provide a more out-of-the-box experience. Can we do that too?

Is it at least documented someplace (README.txt or documentation here in d.o)?

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.