Closed (fixed)
Project:
Extra Voting Forms
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
2 Apr 2008 at 20:28 UTC
Updated:
15 Apr 2008 at 23:11 UTC
Jump to comment: Most recent file
Comments
Comment #1
breaklaw commentedComment #2
sikjoy commentedI'm hesitant to make this a module feature because I don't want to have an overwhelming module settings form (feature creep.)
Unfortunately, the XHTML markup is embedded into the module here. It really needs to be wrapped in a theme function. That way a title attribute can be set in your theme to give you the functionality that you want.
It might take me a little while, but it really should be done. I'll yank the XHTML out of the function that it's embedded in and package it in a theme function so you can get at it without hacking the module. How does that sound?
--sicjoy
Comment #3
mercmobily commentedHi
I think this is the perfect solution.
(An an aside: I am a little drigged-out after yesterday... BTW. 14 hours straight made me go a little "peculiar". I wasn't even able to do any paid work today. So, I will take it easy over the week end.)
Merc.
Comment #4
sikjoy commentedOK - I have your theme functions. Assuming you are using the drigg_theme and the 2 button voting form, here's what you need to do:
$>patch -p0 < extra_voting_forms-241950-1.patch<label. The first is for the up arrow and the second is for the down arrow<label title="Hello, world!" class="karma_up'.($default>0?'_clicked':'not_clicked').$clickable_string.'" for="u'.$o->sk_id.'">Thats it!
--sicjoy
Comment #5
mercmobily commentedHi,
Sincjoy, for consistency, I would make sure all of them have a number at the end, even _1 and _2. So, we end up having:
theme_extra_voting_forms_1
theme_extra_voting_forms_2
theme_extra_voting_forms_3
theme_extra_voting_forms_4
Even if one of them is a stub. Just for consistency!
But, _great_ patch! This should be committed before we release the new Drigg (still battling Drupal so that we don't get gazillions of support requests...)
Merc.
Comment #6
mercmobily commentedHi,
Sicjoy, I noticed that you marked this as "fixed", but didn't actually commit the code to CVS!
I assume it was a mistake... marking it as "patch needs work" (although it needs a TINY amount of work :D )
Merc.
Comment #7
sikjoy commentedHi,
I did commit this to 5.x-dev, but I mistakenly put the wrong issue number in the comment. Do you know how to alter the comment for a previous CVS commit?
--sicjoy
Comment #8
sikjoy commentedOK - I added separate theme functions for form 1 & form 2 - committed it to 5.x-dev - marking fixed.
Comment #9
mercmobily commentedFantastic, thanks sicjoy!
Merc.
Comment #10
mercmobily commentedHi,
sicjoy, I don't see the code committed to the DRUPAL-5 branch.
Maybe you forgot or...?
Please apply this patch to the DRUPAL-5 branch of extra_voting_forms!
Merc,
Comment #11
sikjoy commentedIt's there:
http://drupal.org/cvs?commit=110531
--sicjoy
Comment #12
mercmobily commentedHi,
?!?!?!?
How come I don't get an updated module when I run:
cvs update -dP
...?!?
Merc.
Comment #13
mercmobily commentedHi sicjoy,
Any chances of you coming to IM for a minute, before I go completely bonkers?
Have a look here:
http://drupal.org/project/cvs/202707
Merc.
Comment #14
mercmobily commentedHi,
I *think* there is a chance you applied the patch to the dead DRUPAL-5-2 branch of the module...
Merc,
Comment #15
mercmobily commentedHi,
...except, there is no 5-2 branch for this. OK, I just don't know...
Merc.
Comment #16
mercmobily commentedHi,
From the CVS messages, it's apparent that I have been committing to the wrong branch, HEAD, rather than DRUPAL-5.
All of the releases have been based on HEAD. Ugh.
sicjoy... help. Can you please:
* Check out the latest extra_voting_forms (1.9)
* Make sure *that* becomes the DRUPAL-5 version of extra_voting_forms, so that we ABANDON HEAD
* Reapply your patches (sorry...)
...?
That way, I will just checkout the DRUPAL-5 version of the module, check that the code is what I expect it to be, and we will be working on the same branch (DRUPAL-5) from now on...
This is totally my fault. I apologise.
Merc.
Comment #17
mercmobily commentedHi,
Sicjoy, did you see this?
Please let me know, so that we can get this out of the way!
Merc.
Comment #18
sikjoy commentedI believe our CVS issues are straightened out now.