Search

Hey guys, today I found myself in a very complicated situation. Here's the deal:

I developed (on rush) an app for Facebook in which users can vote in one option, and I store the User ID and Vote Option in a section. So far so good.

Also, I wrote a quick JS code to check if the user already voted and forbid him/her to vote again.

The problem is that because of the deadline I coudn't find a really good way to forbid multiple votes, and sometimes, when users refresh the page in specific ways, they can vote again. :(

I was wondering it there's any way I can filter via DS or XSLT only unique entries by User ID.

Here's a sample of my return XML (with a basic DS)

http://pastie.org/4810579

Nevermind, got it!

Just grouped the DS results by User ID, and counted only the first entry of each.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details