hi:

i am using the voteup/down module to implement something like digg. the problem is that i would like to have the vote results just below the arrows and not under links which is too far and difficult to see.

i could change the font and everything for that but dont know how to make it appear where i want.

thanks in advance.

Comments

srodriguez’s picture

what I ended up doing to get similar results was to change the widget to call the points function and then place the output that call within the arrow box. It's not that hard when you get those two to work together.

ezichko’s picture

but how to do that?
thanks

srodriguez’s picture

Do you know anything about PHP? if so then just call the points function and then print the output inside the widgets function.It's going to take a bit of rewritting some code but it's really only 2 lines. The only reason I didn't copy and paste some of my code is because I modified mine so much that it would be confusing to you.

ezichko’s picture

i know where to put it but not the correct function name etc. any example would be appreciated.

it is just the last step to finish the site. :s

thanks.

pd. or maybe somebody can do a nicer widget and just post the code. Something like in digg.com?

srodriguez’s picture

it's vote_up_down_points and vote_up_down_widget. I gave you the function names before. I just didn't say the hook because I figured you knew it would have the hook in front of it or at least do a search for the widget and points function, they are at the bottom of the module.

$output .=_vote_up_down_points($cid, $type); adding that right below the div layer to discribe the widget should get the number into the widget. It worked for me when I was testing to make a digg.com type widget

StubbyElvis’s picture

Hi ezichko,

I'm also working on a Digg style community for rating weird videos on my humor community site. Perhaps we could share notes. What's the link to your digg project?

Good Luck,
Mark