Hello Garrett,

I was trying to read through the view hooks that you wrote and got a feeling from the way the handlers have been written that if I create a custom view, I should be able to see the active expiration countdown timer based on js there as well. That was my assumption after reading the "uc_auction_handler_field_expires.inc" file. Is the assumption incorrect? If not, is there a way I can enable this?

I have been trying to implement views theming and have modified the entire look and feel of the page. My initial hope was that I could just replicate what you've done in the node/% callback to implement the timer but while reading through the views files, it seems you've already coded what I was planning to implement but somehow it isn't showing up.

p.s. Javascript is already enabled in the views

Ravdeep

Comments

Garrett Albright’s picture

I believe you're saying you want the expiration date and times as displayed in Views listings to update as they do for the standard product pages, right?

No, I haven't done anything special to enable this, though it shouldn't be impossible. You'll need to tweak, replace or supplement UC Auction's standard JavaScript file, though.

ocamp’s picture

did this ever get done?

jepster_’s picture

Status: Active » Fixed

This JS does only the counter, but no live counter, so you can simply write your views handler as usual.

jepster_’s picture

Status: Fixed » Closed (fixed)

closed - please reopen, if something isn't clear for you.

oren102’s picture

sorry, i know this is closed but i'm trying to accomplish the same thing as Garret.
Basically, i have an auction site and instead of refreshing the views every second to update the auction timer, I would like to use the built in javascript already coded in the auction module.
All help is appreciated.

oren102’s picture

I actually figured out a solution using some custom php and javascript.
This javascript helped me out: http://andrewu.co.uk/clj/countdown/pro/
Also, I had to disable AJAX because it was conflicting with the view pager.