Script: php Site Recommender
Property: © Big Lick Media - BigLickMedia.com
Author: D Stewart
[You will need]:
1. A PHP enabled host
Easy to install and configure
Will allow your visitors to recommend your site to as many recipients as you specify (only one required).
Default messages are easily modified.
Look and feel is customizable via the stylesheet.
You can choose to be notified when your site has been recommended.
Notification will show recipient(s) AND the message!
Contains error checking and validation.
1. Edit/rename any of the four web files as needed (make certain you edit the "config" section in "inc.recommend.php").
2. Reference inc.recommend.php as a popup window (see script and href in recommend.php).
3. Modify/use the included stylesheet (recommend.css) or merge into your existing styles.
4. Upload files to host (no chmod necessary).
5. That's it!
recommend.php is not mandatory. It is included in the zip file to demonstrate how to reference Site Recommender as a popup window.
*Feel free to use alternative popup window code. This particular script is very effective, however, and will center your popup window.
1: Cut and paste the below script into the <head> section of your page:
- <a href="recommend.popup.php" onclick="NewWindow(this.href,'BigLickMedia.com','450','450','no','center');return false" onfocus="this.blur()">Recommend Us</a>*
Please rate us!
var formerrormsg="You\'ve attempted to submit the form multiple times.\n Please reload page if you need to resubmit form."
if (typeof formerrormsg!="undefined")
2: With the script installed, all that remains is to add an onClick attribute:
<input type="submit" value="Submit" onClick="return checksubmit(this)">