Jump to:
| Project: | Ubercart Auction |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
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
#1
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.
#2
did this ever get done?
#3
This JS does only the counter, but no live counter, so you can simply write your views handler as usual.
#4
closed - please reopen, if something isn't clear for you.
#5
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.
#6
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.