Registered users can click here to access more content / Geregistreerde gebruikers kunnen hier klikken om in te loggen.

12React

This script gives the possibility to write a reaction to other web pages and as such can also function as a guestbook. It gives visitors the possibility to fill in some personal data and a comment. The administrator can block, delete and approve the reactions. Either before they are placed or afterwards.

Nota Bene

Due to lack of time (and interest, I'll be honest), I've decided to terminate any further development and support on this project. I'll still keep this page online for those of you who want to still use or try my script. Good luck!

What do I need?

The script uses apart from php also a MySQL database to store the reactions. You don't need any knowledge from MySQL to install the database and/or to use 12react. You do need a host that supports MySQL and PHP. You also need to ask your host some details about the MySQL server. But more about that later.

Who can use the script?

Unlike all other content on my site, my plugins and scripts are released under a GNU General Public License. A copy of the full license text is included with your Wordpress distribution and can also be found here. I appreciate it when you let me know if and how you use my script.

Installation?

The first thing you need to do is gather some necessary information from your host about MySQL. You need to know some MySQL parameters:

  • The name of your database host. Often localhost, but it can also be anything else.
  • The username to access this host.
  • The password that goes with the username.
  • The name of your database (not always necessary, see later).

Now we can create the appropriate table using a small script called 12createdbase.php. Open this file in your favourite text editor and alter the variables $yourUserName, $yourPassWord, $yourHostName and $yourDbName with the values above.

If you are allowed to create your own database(s) you can alter the variable $create_db to "yes". Save 12createdbase.php and upload it to your server. (It doesn't matter where). Call the script in your browser. If there are no conflicts or problems 12createdbase.php will create the dbase with the necessary table for you. After the table is created, you must remove the file 12createdbase.php immediately from your server.

Now open both 12react.php and 12react-admin.php in your text editor. Alter in both the dbase variables again. In both there are some other variables. What they do is explained in the code. The texts that are used in the script are all placed in an array. You can alter the texts by altering the the variable $r_texts. Upload both files to your server. They don't have to be in the same folder. I suggest you place 12react-admin.php in a protected directory for extra safety.

You can activate the script in a few ways. Important variables in calling the script are $r_ax and $r_to The first determines the action the script takes, the second determines where the reaction is to. If you only use the script for reactions to one page or as a guestbook. You can set $r_to in the script. The value of $r_to should reflect the usage of the script. If you use 12react as a guestbook, call it guestbook, if you use it to react to a proposal call it proposal. In the admin script you can manage the reactions according to this variable.

If you would like to call the reaction form immediately you should create a link to: path/to/12react.php?r_ax=react&r_to=value4r_to If you set $r_to in the script you can leave away &r_to=value4r_to.

12react.php can be integrated in an existing page. Let's say you have a file called proposal.html, below the proposal you want to show the reactions to it. This works as follows:

1. Rename proposal.html to proposal.php.
2. Open proposal.php in your text editor
3. Paste the following code on top of the file

<?php
include("relative/path/to/12react.php");
?>

4. In the spot where you wish to place the reactions paste this:

<?
r_print_reactions("value4r_to");
?>

5. Save proposal.php and open 12react.php in the text editor.
6. Set the value for $r_inc to the name of file 12react is
included to*.

7. Save the 12react.php and call proposal.php in your browser to check
the result.

* Make sure the path is correct
NB. Make sure you plan the width of the reactions in your proposal.php equal to the value of $r_tablewidth. Also notice that the script either functions as a stand-alone or integrated, not both together! Good luck!

Download the script

You can download the script as a zip-file. In this zip-file are 7 files:

  • 12react.php; the script itself
  • 12react-admin; the administration part of the script.
  • images/linespacer.gif: image to create separation line
  • images/email.gif: image to make email link
  • images/homepage.gif: image to make homepage link
  • 12creatdbase.php: small file to easily create dbase and/or table
  • 12readmefirst.txt: text file with a copy of this text.

The current version is 1.0: download 12react_v1.0.zip

Problems / Questions / Suggestions / Support?

Sorry, but I do longer give support for this plugin. Development has been dead for 2 years and this page is nothing more than an archive.