Plugin Directory

Changeset 502879


Ignore:
Timestamp:
02/09/2012 07:27:08 PM (14 years ago)
Author:
lagally
Message:

New version 1.1

Location:
buy-a-brick
Files:
13 added
7 edited

Legend:

Unmodified
Added
Removed
  • buy-a-brick/trunk/buyabrick-header.php

    r478165 r502879  
    11<?php
     2//version 1.1 of the plugin
     3
    24//load the external XML file and fill arrays with parsed data
    35$count = 0;
  • buy-a-brick/trunk/buyabrick.php

    r496250 r502879  
    66The plugin parses this file and displays the data in the admin tools menu as a form for editing as bricks are purchased. 
    77Once edited, the plugin saves the new file to the original location, overwriting the original file.  Compatible with Wordpress 2.7+
    8 Version: 1.0
     8Version: 1.1
    99Author: Eric Lagally
    1010Author URI: http://eric.lagallyconsulting.com
     
    1616
    1717
    18 /*  Copyright 2011  Eric Lagally  (email : [email protected])
     18/*  Copyright 2012  Eric Lagally  (email : [email protected])
    1919
    2020    This program is free software; you can redistribute it and/or modify
     
    6868    add_settings_section('buybrick_main', 'Buy a Brick Settings', 'buybrick_section_text', 'buybrickplugin');
    6969    add_settings_field('buybrick_xmlpath', '<strong>Path to XML file</strong><br />Enter the name of the XML file to edit as a path from your website\'s home directory.', 'buybrick_xmlpath_string', 'buybrickplugin', 'buybrick_main');   
    70     add_settings_field('buybrick_numfields', '<strong>Fundraising Levels</strong><br />Enter the various fundraising levels represented in the bricks, separated by commas.', 'buybrick_numfields_string', 'buybrickplugin', 'buybrick_main');
    71     add_settings_field('buybrick_linkpath', '<strong>Purchase Links Path</strong><br />Enter the full path (including http://) to the links that the bricks connect to.', 'buybrick_setting_string', 'buybrickplugin', 'buybrick_main');
    72     add_settings_field('buybrick_bricklinks', '<strong>Individual Brick Links</strong><br />For each brick amount, enter the link the brick will direct to, separated by commas.', 'buybrick_link_string', 'buybrickplugin', 'buybrick_main');
     70    add_settings_section('buybrick_main', 'Brick Levels and Links', 'buybrick_links_text', 'buybrickplugin');
     71    add_settings_field('buybrick_numfields', '<strong>Fundraising Levels</strong><br />Enter the various fundraising levels represented in the bricks, separated by commas (5 levels maximum).', 'buybrick_numfields_string', 'buybrickplugin', 'buybrick_main');
     72    add_settings_field('buybrick_bricklinka', '<strong>Individual Brick Links</strong><br />For the first brick fundraising level, enter the link that bricks of that level will direct to.', 'buybrick_link_a', 'buybrickplugin', 'buybrick_main');
     73    add_settings_field('buybrick_bricklinkb', '<strong>Individual Brick Links</strong><br />For the second brick fundraising level, enter the link that bricks of that level will direct to.', 'buybrick_link_b', 'buybrickplugin', 'buybrick_main');
     74    add_settings_field('buybrick_bricklinkc', '<strong>Individual Brick Links</strong><br />For the third brick fundraising level, enter the link that bricks of that level will direct to.', 'buybrick_link_c', 'buybrickplugin', 'buybrick_main');
     75    add_settings_field('buybrick_bricklinkd', '<strong>Individual Brick Links</strong><br />For the fourth brick fundraising level, enter the link that bricks of that level will direct to.', 'buybrick_link_d', 'buybrickplugin', 'buybrick_main');
     76    add_settings_field('buybrick_bricklinke', '<strong>Individual Brick Links</strong><br />For the fifth brick fundraising level, enter the link that bricks of that level will direct to.', 'buybrick_link_e', 'buybrickplugin', 'buybrick_main');
    7377    add_settings_field('buybrick_imagepath', '<strong>Image Path</strong><br />Enter the full path (including http://) to the fundraising image.  See help for image requirements.', 'buybrick_imgpath_string', 'buybrickplugin', 'buybrick_main');
    7478   add_settings_field('buybrick_imghigh', '<strong>Image Height</strong><br />Enter the height (in pixels) of the uncovered fundraising image.', 'buybrick_imghigh_string', 'buybrickplugin', 'buybrick_main');
     
    8589}
    8690
     91 function buybrick_links_text() {
     92    echo '<p>Here you can specify the various fundraising levels for bricks within the Buy-a-Brick image map as well as the URLs that bricks of each level link to.  If you are using Paypal button code, please select the "Email" tab within the Paypal button wizard and modify it as shown on the <a href="http://www.ghtech.org/tools/plugins.html">main plugin page</a>.  If you do not wish to use all of the five levels, please leave the corresponding settings fields blank.</p>';
     93}
     94
    8795function buybrick_xmlpath_string() {
    8896    $options = get_option('buybrick_options');
     
    9098}
    9199
    92 function buybrick_setting_string() {
    93     $options = get_option('buybrick_options');
    94     echo "<input id='buybrick_linkpath' name='buybrick_options[linkpath]' size='40' type='text' value='{$options['linkpath']}' />";
    95 }
    96 
    97100function buybrick_numfields_string() {
    98101    $options = get_option('buybrick_options');
     
    100103}
    101104
    102 function buybrick_link_string() {
    103     $options = get_option('buybrick_options');
    104     echo "<input id='buybrick_bricklinks' name='buybrick_options[bricklinks]' size='40' type='text' value='{$options['bricklinks']}' />";   
     105function buybrick_link_a() {
     106    $options = get_option('buybrick_options');
     107    echo "<input id='buybrick_bricklink1' name='buybrick_options[bricklink1]' size='40' type='text' value='{$options['bricklink1']}' />";   
     108}
     109
     110function buybrick_link_b() {
     111    $options = get_option('buybrick_options');
     112    echo "<input id='buybrick_bricklink2' name='buybrick_options[bricklink2]' size='40' type='text' value='{$options['bricklink2']}' />";   
     113}
     114
     115function buybrick_link_c() {
     116    $options = get_option('buybrick_options');
     117    echo "<input id='buybrick_bricklink3' name='buybrick_options[bricklink3]' size='40' type='text' value='{$options['bricklink3']}' />";   
     118}
     119
     120function buybrick_link_d() {
     121    $options = get_option('buybrick_options');
     122    echo "<input id='buybrick_bricklink4' name='buybrick_options[bricklink4]' size='40' type='text' value='{$options['bricklink4']}' />";   
     123}
     124
     125function buybrick_link_e() {
     126    $options = get_option('buybrick_options');
     127    echo "<input id='buybrick_bricklink5' name='buybrick_options[bricklink5]' size='40' type='text' value='{$options['bricklink5']}' />";   
    105128}
    106129
     
    149172    $patterns[0] = '/\$/';
    150173//  $patterns[1] = '/[a-z]/';
    151     $patterns[3] = '/[@\\\]/'; 
     174    $patterns[3] = '/[?@\\\]/';
     175   
    152176    $buybrick_options['xmlpath'] = preg_replace( $patterns, '', $buybrick_options['xmlpath'] );
    153177    $buybrick_options['numfields'] = preg_replace( $patterns, '', $buybrick_options['numfields'] );
    154     $buybrick_options['linkpath'] = preg_replace( $patterns, '', $buybrick_options['linkpath'] );
    155     $buybrick_options['bricklinks'] = preg_replace( $patterns, '', $buybrick_options['bricklinks'] );
     178    $buybrick_options['bricklinka'] = htmlentities($buybrick_options['bricklinka']);
     179    $buybrick_options['bricklinka'] = str_replace('&',"&amp;",$buybrick_options['bricklinka']);
     180    $buybrick_options['bricklinkb'] = htmlentities($buybrick_options['bricklinkb']);
     181    $buybrick_options['bricklinkb'] = str_replace('&',"&amp;",$buybrick_options['bricklinkb']);
     182    $buybrick_options['bricklinkc'] = htmlentities($buybrick_options['bricklinkc']);
     183   $buybrick_options['bricklinkc'] = str_replace('&',"&amp;",$buybrick_options['bricklinkc']); 
     184    $buybrick_options['bricklinkd'] = htmlentities($buybrick_options['bricklinkd']);
     185   $buybrick_options['bricklinkd'] = str_replace('&',"&amp;",$buybrick_options['bricklinkd']); 
     186    $buybrick_options['bricklinke'] = htmlentities($buybrick_options['bricklinke']);
     187   $buybrick_options['bricklinke'] = str_replace('&',"&amp;",$buybrick_options['bricklinke']); 
    156188    $buybrick_options['imagepath'] = preg_replace( $patterns, '', $buybrick_options['imagepath'] );
    157189    $buybrick_options['pbrickimg'] = preg_replace( $patterns, '', $buybrick_options['pbrickimg'] );
  • buy-a-brick/trunk/buybrickparser.php

    r478165 r502879  
    11<?php
     2// version 1.1 of the plugin
    23//loads the XML file from disk and converts to several arrays for displaying on Wordpress settings form
    34    $count = 0;
     
    1314    $file = $options['xmlpath'];
    1415    $numfields = explode(',',$options['numfields']);
    15     $bricklinks = explode(',',$options['bricklinks']);
    1616    $fullpath = array();
    17     foreach ($bricklinks as $key=>$val) {
    18         $fullpath[$key] = $options['linkpath'].$val;
    19     }
     17    //make fullpath array from bricklink options fields
     18    foreach ($numfields as $key=>$val) {
     19        $index = $key + 1;
     20        $fullpath[$key] = $options['bricklink'.$index];
     21    }
    2022    $imagespath = $options['imagespath'];
    2123    $pbrickimg = $imagespath.$options['pbrickimg'];
     
    9496            // if the full link to the brick purchase page from the file matches one of the paths stipulated in the settings...
    9597            if ($xml_links[$key] == $value) {
     98                //write our dropdown option of value of brick and make it selected
    9699                echo '<option selected="selected" value="'.$value.'">$'.$numfields[$index].' Brick</option>';
    97100            }
    98101            else {
     102                // otherwise just write out dropdown option of value of brick
    99103                echo '<option value="'.$value.'">$'.$numfields[$index].' Brick</option>';
    100104            }
  • buy-a-brick/trunk/pills.xml

    r496250 r502879  
    11<?xml version="1.0" encoding="utf-8"?>
    22<bricks>
    3 <item id="mc1" product_name="Purchase your Brick now $100" link_brick="http://www.google.com/test1" type="1" top="0" left="0" width="36" height="24" raised="$5,000.00"/>
    4 <item id="mc2" product_name="Purchase your Brick now $100" link_brick="http://www.google.com/test1" type="1" top="0" left="37" width="36" height="24"/>
    5 <item id="mc3" product_name="Purchase your Brick now $100" link_brick="http://www.google.com/test1" type="1" top="0" left="74" width="36" height="24"/>
    6 <item id="mc4" product_name="Purchase your Brick now $100" link_brick="http://www.google.com/test1" type="1" top="0" left="111" width="36" height="24"/>
    7 <item id="mc5" product_name="Purchase your Brick now $100" link_brick="http://www.google.com/test1" type="1" top="0" left="148" width="36" height="24"/>
    8 <item id="mc6" product_name="Purchase your Brick now $100" link_brick="http://www.google.com/test1" type="1" top="0" left="185" width="36" height="24"/>
    9 <item id="mc7" product_name="Purchase your Brick now $100" link_brick="http://www.google.com/test1" type="1" top="0" left="222" width="36" height="24"/>
    10 <item id="mc8" product_name="Purchase your Brick now $100" link_brick="http://www.google.com/test1" type="1" top="0" left="259" width="36" height="24"/>
    11 <item id="mc9" product_name="Purchase your Brick now $100" link_brick="http://www.google.com/test1" type="1" top="0" left="296" width="36" height="24"/>
    12 <item id="mc10" product_name="Purchase your Brick now $100" link_brick="http://www.google.com/test1" type="1" top="0" left="333" width="36" height="24"/>
    13 <item id="mc11" product_name="Purchase your Brick now $100" link_brick="http://www.google.com/test1" type="1" top="25" left="0" width="36" height="24"/>
    14 <item id="mc12" product_name="Purchase your Brick now $100" link_brick="http://www.google.com/test1" type="1" top="25" left="37" width="36" height="24"/>
    15 <item id="mc13" product_name="Purchase your Brick now $100" link_brick="http://www.google.com/test1" type="1" top="25" left="74" width="36" height="24"/>
    16 <item id="mc14" product_name="Purchase your Brick now $100" link_brick="http://www.google.com/test1" type="1" top="25" left="111" width="36" height="24"/>
    17 <item id="mc15" product_name="Purchase your Brick now $100" link_brick="http://www.google.com/test1" type="1" top="25" left="148" width="36" height="24"/>
    18 <item id="mc16" product_name="Purchase your Brick now $100" link_brick="http://www.google.com/test1" type="1" top="25" left="185" width="36" height="24"/>
    19 <item id="mc17" product_name="Purchase your Brick now $100" link_brick="http://www.google.com/test1" type="1" top="25" left="222" width="36" height="24"/>
    20 <item id="mc18" product_name="Purchase your Brick now $100" link_brick="http://www.google.com/test1" type="1" top="25" left="259" width="36" height="24"/>
    21 <item id="mc19" product_name="Purchase your Brick now $100" link_brick="http://www.google.com/test1" type="1" top="25" left="296" width="36" height="24"/>
    22 <item id="mc20" product_name="Purchase your Brick now $100" link_brick="http://www.google.com/test1" type="1" top="25" left="333" width="36" height="24"/>
    23 <item id="mc21" product_name="Purchase your Brick now $100" link_brick="http://www.google.com/test1" type="1" top="50" left="0" width="36" height="24"/>
    24 <item id="mc22" product_name="Purchase your Brick now $100" link_brick="http://www.google.com/test1" type="1" top="50" left="37" width="36" height="24"/>
    25 <item id="mc23" product_name="Purchase your Brick now $100" link_brick="http://www.google.com/test1" type="1" top="50" left="74" width="36" height="24"/>
    26 <item id="mc24" product_name="Purchase your Brick now $100" link_brick="http://www.google.com/test1" type="1" top="50" left="111" width="36" height="24"/>
    27 <item id="mc25" product_name="Purchase your Brick now $100" link_brick="http://www.google.com/test1" type="1" top="50" left="148" width="36" height="24"/>
    28 <item id="mc26" product_name="Purchase your Brick now $100" link_brick="http://www.google.com/test1" type="1" top="50" left="185" width="36" height="24"/>
    29 <item id="mc27" product_name="Purchase your Brick now $100" link_brick="http://www.google.com/test1" type="1" top="50" left="222" width="36" height="24"/>
    30 <item id="mc28" product_name="Purchase your Brick now $100" link_brick="http://www.google.com/test1" type="1" top="50" left="259" width="36" height="24"/>
    31 <item id="mc29" product_name="Purchase your Brick now $100" link_brick="http://www.google.com/test1" type="1" top="50" left="296" width="36" height="24"/>
    32 <item id="mc30" product_name="Purchase your Brick now $100" link_brick="http://www.google.com/test1" type="1" top="50" left="333" width="36" height="24"/>
    33 <item id="mc31" product_name="Purchase your Brick now $250" link_brick="http://www.google.com/test2" type="1" top="75" left="0" width="36" height="49"/>
    34 <item id="mc32" product_name="Purchase your Brick now $250" link_brick="http://www.google.com/test2" type="1" top="75" left="37" width="36" height="49"/>
    35 <item id="mc33" product_name="Purchase your Brick now $250" link_brick="http://www.google.com/test2" type="1" top="75" left="74" width="36" height="49"/>
    36 <item id="mc34" product_name="Purchase your Brick now $250" link_brick="http://www.google.com/test2" type="1" top="75" left="111" width="36" height="49"/>
    37 <item id="mc35" product_name="Purchase your Brick now $250" link_brick="http://www.google.com/test2" type="1" top="75" left="148" width="36" height="49"/>
    38 <item id="mc36" product_name="Purchase your Brick now $250" link_brick="http://www.google.com/test2" type="1" top="75" left="185" width="36" height="49"/>
    39 <item id="mc37" product_name="Purchase your Brick now $250" link_brick="http://www.google.com/test2" type="1" top="75" left="222" width="36" height="49"/>
    40 <item id="mc38" product_name="Purchase your Brick now $250" link_brick="http://www.google.com/test2" type="1" top="75" left="259" width="36" height="49"/>
    41 <item id="mc39" product_name="Purchase your Brick now $250" link_brick="http://www.google.com/test2" type="1" top="75" left="296" width="36" height="49"/>
    42 <item id="mc40" product_name="Mrs. Testing Bricks" link_brick="http://www.google.com/test2" type="2" top="75" left="333" width="36" height="49"/>
    43 <item id="mc41" product_name="Mrs. Testing Bricks" link_brick="http://www.google.com/test3" type="2" top="125" left="0" width="73" height="49"/>
    44 <item id="mc42" product_name="Mr. Testing Bricks" link_brick="http://www.google.com/test3" type="2" top="125" left="74" width="73" height="49"/>
    45 <item id="mc43" product_name="Mrs. Testing Bricks" link_brick="http://www.google.com/test3" type="2" top="125" left="148" width="73" height="49"/>
    46 <item id="mc44" product_name="Mrs. Testing Bricks" link_brick="http://www.google.com/test3" type="2" top="125" left="222" width="73" height="49"/>
    47 <item id="mc45" product_name="Mrs. Testing Bricks" link_brick="http://www.google.com/test3" type="2" top="125" left="296" width="73" height="49"/>
    48 <item id="mc46" product_name="Mrs. Testing Bricks" link_brick="http://www.google.com/test3" type="2" top="175" left="0" width="73" height="49"/>
    49 <item id="mc47" product_name="Mrs. Testing Bricks" link_brick="http://www.google.com/test3" type="2" top="175" left="74" width="73" height="49"/>
    50 <item id="mc48" product_name="Mr. Testing Bricks" link_brick="http://www.google.com/test3" type="2" top="175" left="148" width="73" height="49"/>
    51 <item id="mc49" product_name="Mr. Testing Bricks" link_brick="http://www.google.com/test3" type="2" top="175" left="222" width="73" height="49"/>
    52 <item id="mc50" product_name="Mr. Testing Bricks" link_brick="http://www.google.com/test3" type="2" top="175" left="296" width="73" height="49"/>
    53 <item id="mc51" product_name="Mr. Testing Bricks" link_brick="http://www.google.com/test3" type="2" top="225" left="0" width="73" height="49"/>
    54 <item id="mc52" product_name="Mr. Testing Bricks" link_brick="http://www.google.com/test3" type="2" top="225" left="74" width="73" height="49"/>
    55 <item id="mc53" product_name="Mrs. Testing Bricks" link_brick="http://www.google.com/test3" type="2" top="225" left="148" width="73" height="49"/>
    56 <item id="mc54" product_name="Mrs. Testing Bricks" link_brick="http://www.google.com/test3" type="2" top="225" left="222" width="73" height="49"/>
    57 <item id="mc55" product_name="Mrs. Testing Bricks" link_brick="http://www.google.com/test3" type="2" top="225" left="296" width="73" height="49"/>
    58 <item id="mc56" product_name="Mrs. Testing Bricks" link_brick="http://www.google.com/test4" type="2" top="275" left="0" width="73" height="74"/>
    59 <item id="mc57" product_name="Mrs. Testing Bricks" link_brick="http://www.google.com/test4" type="2" top="275" left="74" width="73" height="74"/>
    60 <item id="mc58" product_name="Mrs. Testing Bricks" link_brick="http://www.google.com/test4" type="2" top="275" left="148" width="73" height="74"/>
    61 <item id="mc59" product_name="Mrs. Testing Bricks" link_brick="http://www.google.com/test4" type="2" top="275" left="222" width="73" height="74"/>
    62 <item id="mc60" product_name="Mrs. Testing Bricks" link_brick="http://www.google.com/test4" type="2" top="275" left="296" width="73" height="74"/>
    63 <item id="mc61" product_name="Mrs. Testing Bricks" link_brick="http://www.google.com/test4" type="2" top="350" left="0" width="73" height="74"/>
    64 <item id="mc62" product_name="Mr. Testing Bricks" link_brick="http://www.google.com/test4" type="2" top="350" left="74" width="73" height="74"/>
    65 <item id="mc63" product_name="Mr. Testing Bricks" link_brick="http://www.google.com/test4" type="2" top="350" left="148" width="73" height="74"/>
    66 <item id="mc64" product_name="Mrs. Testing Bricks" link_brick="http://www.google.com/test4" type="2" top="350" left="222" width="73" height="74"/>
    67 <item id="mc65" product_name="Mr. Testing Bricks" link_brick="http://www.google.com/test4" type="2" top="350" left="296" width="73" height="74"/>
    68 <item id="mc66" product_name="Mr. Testing Bricks" link_brick="http://www.google.com/test4" type="2" top="425" left="0" width="73" height="74"/>
    69 <item id="mc67" product_name="Mr. Testing Bricks" link_brick="http://www.google.com/test4" type="2" top="425" left="74" width="73" height="74"/>
    70 <item id="mc68" product_name="Mr. Testing Bricks" link_brick="http://www.google.com/test4" type="2" top="425" left="148" width="73" height="74"/>
    71 <item id="mc69" product_name="Mr. Testing Bricks" link_brick="http://www.google.com/test4" type="2" top="425" left="222" width="73" height="74"/>
    72 <item id="mc70" product_name="Mr. Testing Bricks" link_brick="http://www.google.com/test4" type="2" top="425" left="296" width="73" height="74"/>
     3<item id="mc1" product_name="Purchase your Brick now $100" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=100%2e00&currency_code=USD&currency_code=USD" type="1" top="0" left="0" width="36" height="24" raised="$5,000.00"/>
     4<item id="mc2" product_name="Purchase your Brick now $100" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=100%2e00&currency_code=USD&currency_code=USD" type="1" top="0" left="37" width="36" height="24"/>
     5<item id="mc3" product_name="Purchase your Brick now $100" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=100%2e00&currency_code=USD&currency_code=USD" type="1" top="0" left="74" width="36" height="24"/>
     6<item id="mc4" product_name="Purchase your Brick now $100" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=100%2e00&currency_code=USD&currency_code=USD" type="1" top="0" left="111" width="36" height="24"/>
     7<item id="mc5" product_name="Purchase your Brick now $100" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=100%2e00&currency_code=USD&currency_code=USD" type="1" top="0" left="148" width="36" height="24"/>
     8<item id="mc6" product_name="Purchase your Brick now $100" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=100%2e00&currency_code=USD&currency_code=USD" type="1" top="0" left="185" width="36" height="24"/>
     9<item id="mc7" product_name="Purchase your Brick now $100" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=100%2e00&currency_code=USD&currency_code=USD" type="1" top="0" left="222" width="36" height="24"/>
     10<item id="mc8" product_name="Purchase your Brick now $100" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=100%2e00&currency_code=USD&currency_code=USD" type="1" top="0" left="259" width="36" height="24"/>
     11<item id="mc9" product_name="Purchase your Brick now $100" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=100%2e00&currency_code=USD&currency_code=USD" type="1" top="0" left="296" width="36" height="24"/>
     12<item id="mc10" product_name="Purchase your Brick now $100" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=100%2e00&currency_code=USD&currency_code=USD" type="1" top="0" left="333" width="36" height="24"/>
     13<item id="mc11" product_name="Purchase your Brick now $100" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=100%2e00&currency_code=USD&currency_code=USD" type="1" top="25" left="0" width="36" height="24"/>
     14<item id="mc12" product_name="Purchase your Brick now $100" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=100%2e00&currency_code=USD&currency_code=USD" type="1" top="25" left="37" width="36" height="24"/>
     15<item id="mc13" product_name="Purchase your Brick now $100" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=100%2e00&currency_code=USD&currency_code=USD" type="1" top="25" left="74" width="36" height="24"/>
     16<item id="mc14" product_name="Purchase your Brick now $100" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=100%2e00&currency_code=USD&currency_code=USD" type="1" top="25" left="111" width="36" height="24"/>
     17<item id="mc15" product_name="Purchase your Brick now $100" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=100%2e00&currency_code=USD&currency_code=USD" type="1" top="25" left="148" width="36" height="24"/>
     18<item id="mc16" product_name="Purchase your Brick now $100" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=100%2e00&currency_code=USD&currency_code=USD" type="1" top="25" left="185" width="36" height="24"/>
     19<item id="mc17" product_name="Purchase your Brick now $100" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=100%2e00&currency_code=USD&currency_code=USD" type="1" top="25" left="222" width="36" height="24"/>
     20<item id="mc18" product_name="Purchase your Brick now $100" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=100%2e00&currency_code=USD&currency_code=USD" type="1" top="25" left="259" width="36" height="24"/>
     21<item id="mc19" product_name="Purchase your Brick now $100" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=100%2e00&currency_code=USD&currency_code=USD" type="1" top="25" left="296" width="36" height="24"/>
     22<item id="mc20" product_name="Purchase your Brick now $100" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=100%2e00&currency_code=USD&currency_code=USD" type="1" top="25" left="333" width="36" height="24"/>
     23<item id="mc21" product_name="Purchase your Brick now $100" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=100%2e00&currency_code=USD&currency_code=USD" type="1" top="50" left="0" width="36" height="24"/>
     24<item id="mc22" product_name="Purchase your Brick now $100" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=100%2e00&currency_code=USD&currency_code=USD" type="1" top="50" left="37" width="36" height="24"/>
     25<item id="mc23" product_name="Purchase your Brick now $100" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=100%2e00&currency_code=USD&currency_code=USD" type="1" top="50" left="74" width="36" height="24"/>
     26<item id="mc24" product_name="Purchase your Brick now $100" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=100%2e00&currency_code=USD&currency_code=USD" type="1" top="50" left="111" width="36" height="24"/>
     27<item id="mc25" product_name="Purchase your Brick now $100" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=100%2e00&currency_code=USD&currency_code=USD" type="1" top="50" left="148" width="36" height="24"/>
     28<item id="mc26" product_name="Purchase your Brick now $100" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=100%2e00&currency_code=USD&currency_code=USD" type="1" top="50" left="185" width="36" height="24"/>
     29<item id="mc27" product_name="Purchase your Brick now $100" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=100%2e00&currency_code=USD&currency_code=USD" type="1" top="50" left="222" width="36" height="24"/>
     30<item id="mc28" product_name="Purchase your Brick now $100" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=100%2e00&currency_code=USD&currency_code=USD" type="1" top="50" left="259" width="36" height="24"/>
     31<item id="mc29" product_name="Purchase your Brick now $100" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=100%2e00&currency_code=USD&currency_code=USD" type="1" top="50" left="296" width="36" height="24"/>
     32<item id="mc30" product_name="Purchase your Brick now $100" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=100%2e00&currency_code=USD&currency_code=USD" type="1" top="50" left="333" width="36" height="24"/>
     33<item id="mc31" product_name="Purchase your Brick now $250" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=250%2e00&currency_code=USD&currency_code=USD" type="1" top="75" left="0" width="36" height="49"/>
     34<item id="mc32" product_name="Purchase your Brick now $250" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=250%2e00&currency_code=USD&currency_code=USD" type="1" top="75" left="37" width="36" height="49"/>
     35<item id="mc33" product_name="Purchase your Brick now $250" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=250%2e00&currency_code=USD&currency_code=USD" type="1" top="75" left="74" width="36" height="49"/>
     36<item id="mc34" product_name="Purchase your Brick now $250" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=250%2e00&currency_code=USD&currency_code=USD" type="1" top="75" left="111" width="36" height="49"/>
     37<item id="mc35" product_name="Purchase your Brick now $250" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=250%2e00&currency_code=USD&currency_code=USD" type="1" top="75" left="148" width="36" height="49"/>
     38<item id="mc36" product_name="Purchase your Brick now $250" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=250%2e00&currency_code=USD&currency_code=USD" type="1" top="75" left="185" width="36" height="49"/>
     39<item id="mc37" product_name="Purchase your Brick now $250" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=250%2e00&currency_code=USD&currency_code=USD" type="1" top="75" left="222" width="36" height="49"/>
     40<item id="mc38" product_name="Purchase your Brick now $250" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=250%2e00&currency_code=USD&currency_code=USD" type="1" top="75" left="259" width="36" height="49"/>
     41<item id="mc39" product_name="Purchase your Brick now $250" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=250%2e00&currency_code=USD&currency_code=USD" type="1" top="75" left="296" width="36" height="49"/>
     42<item id="mc40" product_name="Mrs. Testing Bricks" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=250%2e00&currency_code=USD&currency_code=USD" type="2" top="75" left="333" width="36" height="49"/>
     43<item id="mc41" product_name="Mrs. Testing Bricks" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=500%2e00&currency_code=USD&currency_code=USD" type="2" top="125" left="0" width="73" height="49"/>
     44<item id="mc42" product_name="Mr. Testing Bricks" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=500%2e00&currency_code=USD&currency_code=USD" type="2" top="125" left="74" width="73" height="49"/>
     45<item id="mc43" product_name="Mrs. Testing Bricks" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=500%2e00&currency_code=USD&currency_code=USD" type="2" top="125" left="148" width="73" height="49"/>
     46<item id="mc44" product_name="Mrs. Testing Bricks" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=500%2e00&currency_code=USD&currency_code=USD" type="2" top="125" left="222" width="73" height="49"/>
     47<item id="mc45" product_name="Mrs. Testing Bricks" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=500%2e00&currency_code=USD&currency_code=USD" type="2" top="125" left="296" width="73" height="49"/>
     48<item id="mc46" product_name="Mrs. Testing Bricks" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=500%2e00&currency_code=USD&currency_code=USD" type="2" top="175" left="0" width="73" height="49"/>
     49<item id="mc47" product_name="Mrs. Testing Bricks" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=500%2e00&currency_code=USD&currency_code=USD" type="2" top="175" left="74" width="73" height="49"/>
     50<item id="mc48" product_name="Mr. Testing Bricks" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=500%2e00&currency_code=USD&currency_code=USD" type="2" top="175" left="148" width="73" height="49"/>
     51<item id="mc49" product_name="Mr. Testing Bricks" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=500%2e00&currency_code=USD&currency_code=USD" type="2" top="175" left="222" width="73" height="49"/>
     52<item id="mc50" product_name="Mr. Testing Bricks" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=500%2e00&currency_code=USD&currency_code=USD" type="2" top="175" left="296" width="73" height="49"/>
     53<item id="mc51" product_name="Mr. Testing Bricks" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=500%2e00&currency_code=USD&currency_code=USD" type="2" top="225" left="0" width="73" height="49"/>
     54<item id="mc52" product_name="Mr. Testing Bricks" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=500%2e00&currency_code=USD&currency_code=USD" type="2" top="225" left="74" width="73" height="49"/>
     55<item id="mc53" product_name="Mrs. Testing Bricks" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=500%2e00&currency_code=USD&currency_code=USD" type="2" top="225" left="148" width="73" height="49"/>
     56<item id="mc54" product_name="Mrs. Testing Bricks" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=500%2e00&currency_code=USD&currency_code=USD" type="2" top="225" left="222" width="73" height="49"/>
     57<item id="mc55" product_name="Mrs. Testing Bricks" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=500%2e00&currency_code=USD&currency_code=USD" type="2" top="225" left="296" width="73" height="49"/>
     58<item id="mc56" product_name="Mrs. Testing Bricks" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=1000%2e00&currency_code=USD&currency_code=USD" type="2" top="275" left="0" width="73" height="74"/>
     59<item id="mc57" product_name="Mrs. Testing Bricks" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=1000%2e00&currency_code=USD&currency_code=USD" type="2" top="275" left="74" width="73" height="74"/>
     60<item id="mc58" product_name="Mrs. Testing Bricks" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=1000%2e00&currency_code=USD&currency_code=USD" type="2" top="275" left="148" width="73" height="74"/>
     61<item id="mc59" product_name="Mrs. Testing Bricks" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=1000%2e00&currency_code=USD&currency_code=USD" type="2" top="275" left="222" width="73" height="74"/>
     62<item id="mc60" product_name="Mrs. Testing Bricks" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=1000%2e00&currency_code=USD&currency_code=USD" type="2" top="275" left="296" width="73" height="74"/>
     63<item id="mc61" product_name="Mrs. Testing Bricks" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=1000%2e00&currency_code=USD&currency_code=USD" type="2" top="350" left="0" width="73" height="74"/>
     64<item id="mc62" product_name="Mr. Testing Bricks" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=1000%2e00&currency_code=USD&currency_code=USD" type="2" top="350" left="74" width="73" height="74"/>
     65<item id="mc63" product_name="Mr. Testing Bricks" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=1000%2e00&currency_code=USD&currency_code=USD" type="2" top="350" left="148" width="73" height="74"/>
     66<item id="mc64" product_name="Mrs. Testing Bricks" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=1000%2e00&currency_code=USD&currency_code=USD" type="2" top="350" left="222" width="73" height="74"/>
     67<item id="mc65" product_name="Mr. Testing Bricks" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=1000%2e00&currency_code=USD&currency_code=USD" type="2" top="350" left="296" width="73" height="74"/>
     68<item id="mc66" product_name="Mr. Testing Bricks" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=1000%2e00&currency_code=USD&currency_code=USD" type="2" top="425" left="0" width="73" height="74"/>
     69<item id="mc67" product_name="Mr. Testing Bricks" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=1000%2e00&currency_code=USD&currency_code=USD" type="2" top="425" left="74" width="73" height="74"/>
     70<item id="mc68" product_name="Mr. Testing Bricks" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=1000%2e00&currency_code=USD&currency_code=USD" type="2" top="425" left="148" width="73" height="74"/>
     71<item id="mc69" product_name="Mr. Testing Bricks" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=1000%2e00&currency_code=USD&currency_code=USD" type="2" top="425" left="222" width="73" height="74"/>
     72<item id="mc70" product_name="Mr. Testing Bricks" link_brick="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZC6N9V793CPLQ&lc=US&item_name=Eric%20Lagally&amount=1000%2e00&currency_code=USD&currency_code=USD" type="2" top="425" left="296" width="73" height="74"/>
    7373</bricks>
  • buy-a-brick/trunk/readme.txt

    r496250 r502879  
    55Requires at least: 2.7.0
    66Tested up to: 3.3
    7 Stable tag: 1.0.5
     7Stable tag: 1.1
    88
    99Plugin used to dynamically create CSS image maps for use in fundraising.  Admin panel includes XML editor for updating fundraising information. 
     
    2626== Installation ==
    2727
    28 1.  Create and upload the sprite image, popup image, and XML file for use with the plugin. 
     281.  Create and upload the sprite image, popup image, and XML file for use with the plugin.  See the [official plugin site](http://www.ghtech.org/tools/plugins.html) for details on how to do this, especially if you will be linking to Paypal from your image map.
    2929
    30302.  Edit the `brickstatic.css` file to match your Wordpress theme or fundraising page.  Replace the existing CSS file in the .zip file with the file you edited.
     
    38386.  Edit the header.php file for the Wordpress theme you are using.  Add the following lines somewhere above the `</head>` tag:
    3939
    40 `<link type="text/css" href="<?php echo home_url().'/wp-content/plugins/buyabrick/brickstatic.css'; ?>" rel="stylesheet" media="screen">`
     40`<link type="text/css" href="<?php echo home_url().'/wp-content/plugins/buy-a-brick/brickstatic.css'; ?>" rel="stylesheet" media="screen">`
    4141
    4242`<?php
    4343    if (is_page('[PAGE_SLUG]')) {
    44         require_once(ABSPATH.'wp-content/plugins/buyabrick/buyabrick-header.php');
     44        require_once(ABSPATH.'wp-content/plugins/buy-a-brick/buyabrick-header.php');
    4545}
    4646?>`
     
    5151
    5252`<?php
    53     require_once(ABSPATH.'/wp-content/plugins/buyabrick/buyabrick-page.php');
     53    require_once(ABSPATH.'/wp-content/plugins/buy-a-brick/buyabrick-page.php');
    5454?>`
    5555
     
    9797== Changelog ==
    9898
     99= 1.1 =
     100* Revised settings to allow for five fundraising levels and specification of completely different URLs to link to from each level.  This is for compatibility with Paypal buttons.
     101
    99102= 1.0.5 =
    100103* Updated plugin to handle Paypal donation or purchase link within image map.
     
    104107
    105108== Upgrade Notice ==
     109
     110= 1.1 =
     111This version allows specification of different Paypal button URLs for each of five fundraising levels in the image map while retaining the original functionality for users not linking to Paypal.
    106112
    107113= 1.0.5 =
Note: See TracChangeset for help on using the changeset viewer.