Plugin Directory

Changeset 418093


Ignore:
Timestamp:
08/01/2011 11:23:10 PM (15 years ago)
Author:
mthomas9
Message:

You can now pull in variable elements directly through wordpress page editor

Location:
purlem-personal-url-marketing/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • purlem-personal-url-marketing/trunk/purlem.php

    r415721 r418093  
    44Plugin URI: http://purlem.com
    55Description: Personalize your blog to visitors and track results with Personalized URLs (PURLs). <strong>The Plugin Requires a <a href='http://www.purlem.com'>Purlem Account</a>.</strong>
    6 Version: 1.0.6
     6Version: 1.0.7
    77Author: Marty Thomas
    88Author URI: http://purlem.com/company
     
    162162    $patterns[$i] = '/#email/'; $i++;
    163163    $patterns[$i] = '/#phone/'; $i++;
    164     $patterns[$i] = '/#fax/'; $i++;
    165164    $patterns[$i] = '/#address1/'; $i++;
    166     $patterns[$i] = '/#address2/'; $i++;
     165    $patterns[$i] = '/#address/'; $i++;
    167166    $patterns[$i] = '/#city/'; $i++;
    168167    $patterns[$i] = '/#state/'; $i++;
     
    172171    $replacements[$i] = $_SESSION['user']->{'firstName'}; $i++;
    173172    $replacements[$i] = $_SESSION['user']->{'lastName'}; $i++;
    174     $replacements[$i] = $_SESSION['user']->{'organization'}; $i++;
    175     $replacements[$i] = $_SESSION['user']->{'position'}; $i++;
    176     $replacements[$i] = $_SESSION['user']->{'email'}; $i++;
    177     $replacements[$i] = $_SESSION['user']->{'phone'}; $i++;
    178     $replacements[$i] = $_SESSION['user']->{'fax'}; $i++;
    179     $replacements[$i] = $_SESSION['user']->{'address1'}; $i++;
    180     $replacements[$i] = $_SESSION['user']->{'address2'}; $i++;
    181     $replacements[$i] = $_SESSION['user']->{'city'}; $i++;
    182     $replacements[$i] = $_SESSION['user']->{'state'}; $i++;
    183     $replacements[$i] = $_SESSION['user']->{'zip'}; $i++;
    184     $replacements[$i] = $_SESSION['user']->{'password'}; $i++;
     173    $replacements[$i] = $_SESSION['user']->{'contact_organization'}; $i++;
     174    $replacements[$i] = $_SESSION['user']->{'contact_position'}; $i++;
     175    $replacements[$i] = $_SESSION['user']->{'contact_email'}; $i++;
     176    $replacements[$i] = $_SESSION['user']->{'contact_phone'}; $i++;
     177    $replacements[$i] = $_SESSION['user']->{'contact_address1'}; $i++;
     178    $replacements[$i] = $_SESSION['user']->{'contact_address1'}; $i++;
     179    $replacements[$i] = $_SESSION['user']->{'contact_city'}; $i++;
     180    $replacements[$i] = $_SESSION['user']->{'contact_state'}; $i++;
     181    $replacements[$i] = $_SESSION['user']->{'contact_zip'}; $i++;
     182    $replacements[$i] = $_SESSION['user']->{'contact_password'}; $i++;
    185183    $convertedContent = preg_replace($patterns, $replacements, $content);
    186184    return $convertedContent;
  • purlem-personal-url-marketing/trunk/readme.txt

    r415721 r418093  
    55Requires at least: 2.1
    66Tested up to: 3.1.3
    7 Stable tag: 1.0.6
     7Stable tag: 1.0.7
    88
    99Personalize your blog to visitors and track results with Personalized URLs (PURLs). The Plugin Requires a Purlem Account.
Note: See TracChangeset for help on using the changeset viewer.