by Russ TannerGallery Comment Cruncher
Version 1.00
Home | Download | Documentation | Support | History | ^ Software | ^^ Orbis Vitae
Home (1.00) | Installation | General Usage | Prefilling Field Values | Running Commands | System Requirements | License | About
Prefilling Field Values topWhat is This? Let's say you manage a few different galleries. It's pretty inconvenient to have to type in your database credentials every time you want to manage a different gallery. Prefilling fields solves this problem. Just create a web page with links pointing to Comment Cruncher. Make each link contain a query string that prefills your database credentials for you. topHow To Prefill Field Values Let's say you want to prefill the database credential fields using links from another page. In this case, your links would look something like this:
Let's take a look at the query string (everything on the second line). There are 4 variables defined in the query string: DBServer, DBUsername, DBPassword, and DBName. The values that you assign to these variables will automatically be displayed in the Server, Username, Password, and Name fields of the main page. That's all there is to it. Now you can create any number of links into Comment Cruncher to prefill your credentials for every Gallery you manage. Don't forget to replace the host (example.come) and directory (protected-directory) to values that are appropriate for your server. If you decide to prefill field values, make sure your calling page (the page with the links) is hidden in a password-protected area so you aren't exposing your database credentials to the world. You can also prefill the table and column prefix fields. For example:
In fact, you can prefill any fields on the main page except for the Delete-Lists (Subject, Body, Author, IP). These lists are populated from files that are stored in the same directory at the Comment Cruncher script. Here is a comprehensive list of form fields you can prefill. These values may be POSTed or GETed. Database Credentials
Table & Column Prefixes
Analytics: Find Comments
FindComments_Column must be set to the actual table column name. The drop-down box will automatically be changed to the related "friendly" value so long as the user has Javascipt enabled. Valid values are:
Analytics: Find Duplicates
FindDuplicates_Column must be set to the actual table column name. The drop-down box will automatically be changed to the related "friendly" value so long as the user has Javascipt enabled. Valid values are:
Note that "id" is not a valid column for finding duplicates because the "id" column is unique; It never has duplicates. When searching for comments by ID, use the Find Comments feature. |
Copyright 2012, Russ Tanner, All Rights Reserved