Login  Register

Polls don't work

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

Polls don't work

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

Re: Polls don't work

GregChapman
3896 posts
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
| More
Print post
Permalink

Re: Polls don't work

Evildaddy
64 posts
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Polls don't work

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

Re: Polls don't work

Evildaddy
64 posts
Thank you.
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Polls don't work

Pedro
2557 posts
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.