no vote button

toma - October 2, 2007 - 22:40
Project:Smackdown
Version:5.x-2.x-dev
Component:Documentation
Category:support request
Priority:normal
Assigned:toma
Status:closed
Description

Hi

This great module, i am using with images cck imagefield, and it work fine, but with no button to vote, how i can do the same as you do in your demo website! i am using node vs node and as i can see in your preview, just images

Can u please provide more help, to custom the module, and how to create a button to vote!

Thanks

#1

sirkitree - October 15, 2007 - 18:56

The 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.

#2

toma - October 15, 2007 - 20:16

Thanks 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 ?

#3

sirkitree - October 16, 2007 - 14:26

As 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?

#4

toma - October 16, 2007 - 18:22

Thanks 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

#5

sirkitree - October 16, 2007 - 19:08

I 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.

AttachmentSize
smackd.png 26.4 KB

#6

sirkitree - November 4, 2007 - 03:37
Status:active» closed
 
 

Drupal is a registered trademark of Dries Buytaert.