Polls don't work

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Polls don't work

Evildaddy
Hello, when posting a poll, I cannot vote. It just says login to vote.
Reply | Threaded
Open this post in threaded view
|

Re: Polls don't work

GregChapman
What forum does this happen on?
Volunteer Helper - but recommending that users move off the platform!
Once the admin for GregHelp now deleted.
Reply | Threaded
Open this post in threaded view
|

Re: Polls don't work

Evildaddy
Reply | Threaded
Open this post in threaded view
|

Re: Polls don't work

Pedro
Ok, I'll run some tests in your forum.
My test forum.
Reply | Threaded
Open this post in threaded view
|

Re: Polls don't work

Evildaddy
Thank you.
Reply | Threaded
Open this post in threaded view
|

Re: Polls don't work

Pedro
You have something wrong in your post_count_js macro. I think this code do what you want:
<override_macro name="post_count_js">
    <n.param_loop. param="postCount">
        <n.if.not.page_user.is_deactivated>
            <then>
               
                $('div.post-count<n.page_user.user_tag_id/>')
                    .html('<n.one_or_many n="[n.page_user.post_count_value/]" one_text="[t]post[/t]" many_text="[t]posts[/t]"/>');
            
                
                var div = $('div.post-count<n.page_user.user_tag_id/>');
 
                
                div.append("<br/>");  
                var postCount = <n.page_user.post_count_value/>;  
                if (postCount > 20)  
                    div.append("Member");  

            </then>
        </n.if.not.page_user.is_deactivated>
    </n.param_loop.>
</override_macro>

Replace it in your marco if you want.
My test forum.