Closed (fixed)
Project:
Node Vote
Version:
4.6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
28 Sep 2005 at 15:04 UTC
Updated:
18 Oct 2005 at 16:20 UTC
Jump to comment: Most recent file
Ahoy,
I've fixed a bug that prevented it from working with CVS HEAD, and changed the logic of nodeapi around a bit to do the checking in load and the theming in view. This allows me to customise the appearance far more in my theme in a less code and database intensive manner.
I've just noticed a few patches that may have hit the system since the version I downloaded, hence this patch may need review.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | nodevote_improvements_unified.patch | 3.05 KB | telex4 |
| nodevote_improvements.patch | 1.42 KB | telex4 |
Comments
Comment #1
kbahey commentedThanks for taking the time to provide a patch.
As for the HEAD compatibility, I will not do this change until 4.7 is branched off.
As for the rest of the changes, they sound reasonable.
If you submit a proper patch format "cvs diff -u", then I will apply them. Please do so against the most current version.
Comment #2
telex4 commentedHere it is in unified format, though I couldn't do a CVS diff because I don't have a repository checked out.
I also noticed that you'll need to filter out some regressions that my patch causes (a quick glance showed NODEVOTE_TYPE => NODE_TYPE). But I'm afraid I don't have time to go through and sort this out... use it if you want :)
Comment #3
kbahey commentedYou forget to attach it.
Comment #4
telex4 commentedOh, urm, oops, oh well here goes again.
Comment #5
kbahey commentedHi
Before I commit this, I have a few questions:
1. Why did you use $object here?
+ $object['nodevote']->vote_display = 1;
+ $object['nodevote']->vote_do .= 1;
And not here?
+ if ($node->nodevote->vote_display) {
+ if ($node->nodevote->vote_do) {
2. Have you tested this?
Comment #6
telex4 commentedAhoy,
On (1) there's no particular reason I can remember. If there's a more correct way then go ahead and change it :)
(2) - Yes, it's running as you see it on http://www.remixreading.org . See for example:
http://www.remixreading.org/taxonomy/term/49
http://www.remixreading.org/node/639
Comment #7
kbahey commentedFixed implemented, except for the 4.7 way of listing nodes. This will be one when 4.7 is out.
Comment #8
(not verified) commented