Views support improved

Xabi - August 7, 2008 - 08:33
Project:Extra Voting Forms
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:postponed
Description

I have installed Extra Voting Forms and it seems ok; I see the voting widget and I can vote each comment of my site. But, when composing a View, I do not see any "comment votes" item. I just see generic votes or porcents from VotingAPI, but nothing related to comments. What might I do for showing a list with the most voted comments in the last X days with Extra Voting Forms and Views? Thank you!

#1

mercmobily - August 7, 2008 - 17:58
Status:active» fixed

Hi,

I don't know views. However, I am 98% sure that this can't be done in views because you are trying to view comments, whereas views only really reals with node comments.

Keep in mind that extra_voting_forms is simply an interface to VotingAPI. So, the best people to ask this are the votingAPI guys -- or maybe the Views people!

Marking as "fixed" because I answered your question...

Bye,

Merc.

#2

mercmobily - August 17, 2008 - 11:06
Status:fixed» closed

#3

drupaloSa - August 20, 2008 - 17:24
Title:How to list most voted comments of the last X days?» Views support
Version:5.x-1.9» 6.x-1.x-dev
Component:Documentation» Code
Category:support request» feature request
Status:closed» active

Since EVF is now ported to 6.x, i think we can open this issue again as a feature request. It would be nice to do some views tricks with those comments :)

#4

mercmobily - August 20, 2008 - 21:47
Status:active» fixed

Hi,

Sorry, I need to close this because I cannot possibly support the "views" module...
Basically, extra_voting_forms is a GUI for the VotingAPI. All it does is add records "the right way" to the Voting API tables.

So, any queries about views should go to the VotingAPI or the Views guys. It really is outside the scope of this module to deal with this.

Bye!

Merc.

#5

drupaloSa - August 20, 2008 - 22:00
Status:fixed» by design

I wonder how Fivestar does this as you can display star ratings in recent comments view.

#6

mercmobily - August 24, 2008 - 12:16
Status:by design» active

Hi,

Ah...

Views Integration
-----------------
Fivestar depends on the views integration provided by VotinAPI, but adds some
special features to make it work specifically with Fivestar. To display Fivestar
ratings in a view, select the "VotingAPI percent vote result" from the list of
available Fields. This will display the average vote for nodes. Then choose
"Fivestar rating" from the Handler options for the field and the averages will
be displayed as Fivestar ratings.

So, there _is_ a way, and it probably _should_ be done.

Thanks for pointing it out, and... reopening.

Merc.

#7

mercmobily - August 25, 2008 - 16:47
Status:active» by design

Hi,

I've looked into this some more.
It will probably take me a day or so to "port" the fivestar code to extra_voting_forms in order to add the fields to the node view.

However... it doesn't feel right. Something like this doesn't belong to fivestar nor extra_voting_forms, really. It belongs to voting_api, which should provide extra columns as views.

So, it's a "by design" -- sorry.

But I encourage you to open a feature request to the votingapi maintainer who is fantastic and will probably listen (or even give you a solution).

Merc.

#8

drupaloSa - September 6, 2008 - 23:10

OK, i've opened a feature request for the Voting API module here: #304933: Common Views Handler for Voting modules

#9

mercmobily - September 7, 2008 - 00:19
Status:by design» active

Hi,

No, I was full of crap. Sorry.
This is a problem with EVF, and I need to fix it.

Sorry...

How urgently do you need it?

Merc.

#10

drupaloSa - September 7, 2008 - 09:17

It's an important feature but not urgent, so take your time :)

#11

mercmobily - September 7, 2008 - 11:04

Hi,

OK thanks :-D
And sorry again for referring it when I shouldn't have.

Merc.

#12

mikenotmike - September 9, 2008 - 07:05

Just checking in, this module is exactly what I was looking for on Drupal 6, works amazing. THANK YOU FOR PORTING THIS!

The project I hope to finish this week would need views integration, is it possible for the form to actually function from within a views field? I'm using views to display youtube teasers and being able to vote up/down from within the teaser view would make the world of a difference...

There would be multiple teasers on the same page too.. (is that like multiple axes being discussed here for fivestar? http://drupal.org/node/185074)

Thanks again

#13

mercmobily - September 9, 2008 - 07:11

Hi,

Thank you minenotmike. My goodness, I am managing and porting so many modules I had a bit of trouble figuring out what you were talking about :-D

I have just been battling Views for FriendList (another fantastic module of mine... if *I* say so! :-D ) last night for 6 hours. UGH.

I honestly don't know what can and can't be done. What I *can* do is copy what FiveStars did, and see what happens. So:

* How badly do you need it?
* Are you able to pay for a small bounty for it? If not, that's _totally_ fine, I will still bump up this request
* Are you willing to help me test it, to see if it fits your needs?

Bye,

Merc.

#14

mikenotmike - September 11, 2008 - 07:57

Well fivestar appears to be actually broken too, http://drupal.org/node/277409#comment-1005829... I need to quit driving myself in circles looking for a solution to my problem, I believe doing a fivestar form will actually work for what I need to do, but in it's current condition I can't use it in D6, so I'm reverting to D5 I guess. Now I get to learn how to theme all over again since nothing appears to be the same...

#15

mercmobily - September 11, 2008 - 10:41

Hi,

Mikenotmike: in order to interface to VotingAPI'a views bit, modules need to hook themselves to VotingAPI.
I can give this priority if it's urgent to you. If you can put money towards a bounty, I'd be even happier.

Please let me know.

Merc.

#16

Flying Drupalist - September 13, 2008 - 23:50

I wonder how this would stack up to Plus1? I'm trying to decide whether to wait for EVF to integrate views, or just go ahead and use Plus1, which already has views integration.

#17

mercmobily - September 14, 2008 - 01:41

Hi,

Can you have a look at Plus1's code and tell me if you think it'd be easy to just "steal" it for EVF?

Merc.

#18

Flying Drupalist - September 14, 2008 - 02:11

Sorry I have not a clue, I wish I was a developer, then I could be much more useful to drupal. But alas.

#19

mercmobily - September 14, 2008 - 06:54

Hi,

Hang on a second... Plus1 has Views integration as much as EVF does. I checked the source code -- it doesn't provide _anything_ extra compared to EVF.

5star does -- and I am a little challenged in terms of understanding exactly how to do what 5star does :-D

So... can I ask you: what does plus1 do that EVF doesn't? Keep in mind that EVF has general Views integration.

Bye,

Merc.

#20

mercmobily - September 14, 2008 - 07:05
Title:Views support» Views support improved

Hi,

Changing title.
The views support is already there wit the voting API. What's missing. is *improved* views support... However, Views is RC1, the API has changed quite a lot recently, and theree is no point in me trying to do things before there's an official release of Views.

Merc.

#21

Flying Drupalist - September 14, 2008 - 14:17

Sorry, I wasn't able to test out plus1 because of the aforementioned api change, so I was just misinformed about what views support consisted of. Looking at both modules, plus1 seems to just be just a clone of EVF, so I'll just be using EVF. Thanks for clearing things up!

#22

mercmobily - September 14, 2008 - 14:49

Hi,

I wouldn't call it "clone" :-D
Please note that using the latest Views snapshot (which you should use) and the latest VotingAPI (which you should use) will give an unexpected result: VotingAPI does NOT export any views (!). VotingAPI's maintainer said that the very next commit will fix this.

The only thing EVF doesn't do, that Fivestar does, is provide advanced "viewing" options where you can view more than just the value -- you can see the whole voting form. I was all set to do it, and then... I discovered that I couldn't even test it because VotingAPI is not talking to Views properly :-D

That's why I changed the title of the bug :-D

Bye!

Merc.

#23

mercmobily - June 3, 2009 - 05:52
Status:active» postponed

Hi,

I am not able to code this, and I am therefore postponing it.
Chipping in most welcome.

Merc.

 
 

Drupal is a registered trademark of Dries Buytaert.