Closed (fixed)
Project:
Smackdown
Version:
5.x-2.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
2 Oct 2007 at 22:40 UTC
Updated:
4 Nov 2007 at 03:37 UTC
Jump to comment: Most recent file
Comments
Comment #1
sirkitree commentedThe vote button is part of the module and can be customized by overriding the theme_smackdown_vote_ref_1() and theme_smackdown_vote_ref_2() functions.
These are called within the smackdown_form_widget() where the formAPI allows you to theme a form element with the #theme property.
Your widget (which has the vote buttons) should show up when you view your smackdown by default.
Comment #2
toma commentedThanks a lot for your reply, but i can't see any vote button, is there any custom function that i have to add in my template ?
Comment #3
sirkitree commentedAs I mentioned, you can add the theme_smackdown_vote_ref_1() and theme_smackdown_vote_ref_2() to your template.php (make sure you rename it to {your_theme_name}_smackdown_vote_ref_1() and _2() respectively) and you can control what the button markup is. but do me a favor and try a fresh install of drupal and throw in just this module and the required votingapi module and see if you get the buttons when you generate some content and create a smackdown out of them. I suspicion is that there is some other module you have conflicting with smackdown and I'd love to know what... maybe you can also give me a list of all enabled modules on your site?
Comment #4
toma commentedThanks a lot for your support, i just sent you an email with username and password so you can see what makes no button vote appear
Comment #5
sirkitree commentedI wrote you back toma, but just so other people reading may know, these buttons are showing up. They are the buttons you see that have the node id's as their values. I know they're not very pretty though, and if anyone has any better default styling ideas, I'm all ears.
Comment #6
sirkitree commented