Code Monkey home page Code Monkey logo

q2apro-guest-id's Introduction

q2apro-guest-id

Question2Answer Plugin: Gives all anonymous users that are posting in your forum a unique ID

Features

  • gives each anonymous user in your forum a unique id
  • choose from three id options: 5 digits, 2 letters + 2 digits, 2 letters + 3 digits
  • the id gets calculated from the IP address*
  • the default display name for "anonymous" can be changed
  • if you have q2a v1.6 or higher: if anonymous visitor posts specifying a name, the ID gets attached after the name
  • available languages: en, fr, de

How the Algorithm works:

  • at first we convert the IP "123.45.78.22" to integer. In PHP via ip2long() from "123.45.78.22" we get "2066566678"
  • from this integer we take the first and the second digit (2 und 0)
  • both numbers are mapped to an array: array('a','b','c','d','e','f','g','h','i','j','k') - "2" becomes "c" and "0" becomes "a"
  • additionally we take the 3rd and 4th digit from the integer. From 2066566678 we get "66"
  • finally we combine all elements and get "guest ca66"
  • As you can see, it is impossible to conclude the IP from the generated ID "ca66"

Installation

  • Download the ZIP file.
  • Extract the folder q2apro-guest-id from the ZIP file.
  • Move the folder q2apro-guest-id to the qa-plugin folder of your Q2A installation.
  • Use your FTP-Client to upload the folder q2apro-guest-id into the qa-plugin folder of your server.
  • Navigate to your site, go to Admin -> Plugins and check if the plugin "Guest-ID" is listed.
  • Change the options of the plugin if you like, and Save.
  • Congratulations, your new plugin has been installed.

Disclaimer / Copyright

This is beta code. It is probably okay for production environments, but may not work exactly as expected. You bear the risk. Refunds will not be given!

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

All code herein is OpenSource. Feel free to build upon it and share with the world.

q2apro-guest-id's People

Stargazers

 avatar Коцур Роман avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.