WordPress.org

Plugin Directory

Changeset 355624


Ignore:
Timestamp:
03/05/11 08:12:37 (3 years ago)
Author:
MartyThornley
Message:

1.1 Added Album Exposure module

Location:
photographer-connections/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • photographer-connections/trunk/module-sample.php

    r345129 r355624  
    1414*/ 
    1515 
    16  
    17 ?> 
    18  
    19 <?php 
    2016    add_action ('blogsite_connect_extra',               'blogsite_connect_SAMPLE_create_menu'); 
    2117    add_filter ('blogsite_connect_extra_settings',      'blogsite_connect_SAMPLE_settings'); 
     
    4137 
    4238function blogsite_connect_register_SAMPLE_settings() { 
    43     register_setting( 'blogsite_SAMPLE_settings_group', 'blogsite_connect_register_SAMPLE_settings'); 
     39    register_setting( 'blogsite_SAMPLE_settings_group', 'blogsite_SAMPLE_settings'); 
    4440} 
    4541function blogsite_connect_SAMPLE_create_menu() { 
  • photographer-connections/trunk/modules/pictage.php

    r345129 r355624  
    11<?php 
     2 
     3/** 
     4 *  Pictage module for Photographer Connections 
     5 * 
     6 *  Adds short code [pictage_events] 
     7 *  
     8 */ 
    29 
    310    add_action  ('blogsite_connect_extra',              'blogsite_connect_pictage_create_menu'); 
  • photographer-connections/trunk/modules/shootq.php

    r345129 r355624  
    11<?php 
     2 
     3/** 
     4 *  ShootQ module for Photographer Connections 
     5 * 
     6 *  Adds short code [shootq_form], embedding form in page from ShootQ 
     7 *  Adds functionality to Contact Form 7, allowing form data to be sent to ShootQ 
     8 *  
     9 */ 
    210 
    311    add_action ('blogsite_connect_extra',               'blogsite_connect_shootq_create_menu'); 
     
    917 
    1018    add_shortcode('shootq_form',                            'blogsite_add_shootq'); 
    11     //add_filter( 'the_content',                            'last_form_check',9999); 
    12      
    13 function last_form_check() { 
    14     print_r( get_option ('last_form_check')); 
    15 } 
    1619 
    1720function blogsite_connect_add_shootq_functions() { 
  • photographer-connections/trunk/modules/smugmug.php

    r345129 r355624  
    11<?php 
     2 
     3/** 
     4 *  SmugMug module for Photographer Connections 
     5 * 
     6 *  Adds short code [smugmug_albums], embedding form in page from ShootQ 
     7 *  
     8 */ 
     9 
    210    require_once("smugmug/phpsmug/phpSmug.php");  
    311     
  • photographer-connections/trunk/photographer-connections.php

    r345132 r355624  
    55Description: Connect to photography sites: SmugMug, Pictage, ShootQ. 
    66Author: Marty Thornley 
    7 Version: 1.0 
     7Version: 1.1 
    88Author URI: http://martythornley.com/ 
    99*/ 
     
    2626*/ 
    2727 
     28    // Check WP Versions 
     29    global $wp_db_version; 
     30 
     31    $GLOBALS['bsc_version_300'] = 'false'; 
     32    $GLOBALS['bsc_version_305'] = 'false'; 
     33    $GLOBALS['bsc_version_310'] = 'false'; 
     34 
     35 
     36    if ( $wp_db_version > 13000 ) { 
     37        $GLOBALS['bsc_version_300'] = 'true'; //Version 3.0 or greater! 
     38    }    
     39    if ( $wp_db_version >= 15477 ) { 
     40        $GLOBALS['bsc_version_305'] = 'true'; //Version 3.0.5 or greater! 
     41    }    
     42    if ( $wp_db_version >= 17056 ) { 
     43        $GLOBALS['bsc_version_310'] = 'true'; //Version 3.1 or greater! 
     44    }        
     45     
    2846    if (!defined ('BLOGSITE_CONNECT_PLUGIN_BASEDIR')) { define ('BLOGSITE_CONNECT_PLUGIN_BASEDIR', dirname(__FILE__)); }; 
    29  
     47     
     48    $pluginURL = WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); 
     49    if (!defined ('BLOGSITE_CONNECT_PLUGIN_URL')) { define ('BLOGSITE_CONNECT_PLUGIN_URL', $pluginURL); }; 
     50     
    3051    blogsite_connect_include_folder('library/functions'); 
    3152    blogsite_connect_include_folder('modules'); 
    3253 
    33     add_action ('admin_menu',               'blogsite_connect_create_menu'); 
    3454    add_action( 'admin_init',               'blogsite_connect_register_settings' ); 
    3555    add_action( 'admin_init',               'blogsite_connect_update_settings' ); 
    36      
    37 function blogsite_connect_create_menu() { 
    38      
     56 
     57    add_action ('admin_menu',               'blogsite_connect_create_user_menu'); 
     58     
     59    if ( $GLOBALS['bsc_version_310'] == 'true') { 
     60        add_action ('network_admin_menu',   'blogsite_connect_create_super_menu'); 
     61    } 
     62     
     63function blogsite_connect_create_super_menu() { 
     64    // multisite Super Admin Menu 
     65    add_submenu_page('settings.php', 'Photographer Connections', 'Photographer Connections', 10, 'blogsite_photo_connect_settings', 'blogsite_photo_connect_super_admin'); 
     66} 
     67     
     68function blogsite_connect_create_user_menu() { 
    3969    // multisite Supre Admin Menu 
    40     add_submenu_page('ms-admin.php', 'Photographer Connections', 'Photographer Connections', 10, 'blogsite_photo_connect_settings', 'blogsite_photo_connect_super_admin'); 
    41      
     70    if ( $GLOBALS['bsc_version_310'] == 'false') { 
     71        add_submenu_page('ms-admin.php', 'Photographer Connections', 'Photographer Connections', 10, 'blogsite_photo_connect_settings', 'blogsite_photo_connect_super_admin'); 
     72    } 
     73         
    4274    // test version for single user... 
    4375    //add_menu_page('Photographer Connections', 'Photographer Connections', 'administrator', 'blogsite_photo_connect', 'blogsite_photo_connect_super_admin',plugins_url('/icon.jpg', __FILE__)); 
     
    89121    <?php $blogsite_connect_settings = get_option('blogsite_connect_settings'); ?> 
    90122    <?php $blogsite_connect_site_settings = get_site_option('blogsite_connect_site_settings'); ?> 
    91  
    92123        <div class="pane"> 
    93124            <h3>Photography Vendors</h3> 
  • photographer-connections/trunk/readme.txt

    r346717 r355624  
    11=== Photographer Connections === 
    22Contributors: Marty Thornley     
    3 Tags: contact, integration, ShootQ, Pictage, SmugMug, Flickr, Picasa, photography 
     3Tags: contact form 7, ShootQ, Pictage, SmugMug, photography, Album Exposure 
    44Requires at least: 2.9.0 
    5 Tested up to: 3.0.5 
     5Tested up to: 3.1 
    66Stable tag: trunk 
    77 
     
    19191. [pictage_events] 
    20201. [smugmug_albums] 
     211. [album_exposure] 
    2122 
    2223== Installation == 
    2324 
    2425Install and activate the plugin.  
     26 
     27You will need accounts with each site to use them: 
     28* [Pictage](http://pictage.com) 
     29* [ShootQ](http://shootq.com) 
     30* [SmugMug](http://smugmug.com) 
     31* [Album Exposure](http://albumexposure.com) 
    2532 
    2633= General = 
     
    2936* Activate each module you want to use. 
    3037* Currently there is access to Pictage, SmugMug and ShootQ. 
     38 
     39= Album Exposure = 
     40 
     41* Activate Pictage at "Photographer Connections". 
     42* Visit "Photographer Connections->Album Exposure". 
     43* Add your Album Exposure user name. 
     44 
     45Add short code [album_exposure] to any page to embed the Album Exposure app inside your site. 
     46Select the 'Album Exposure' page template to make it go full screen. 
     47If the 'Album Exposure' template was not added to your theme, you can download a sample from 'Photographer Connections->Album Exposure' 
     48 
     49[http://albumexposure.com](http://albumexposure.com) 
    3150 
    3251= Pictage = 
     
    4059Just add the shortcode [pictage_events] to any post or page. 
    4160 
     61[http://pictage.com](http://pictage.com) 
     62 
    4263= SmugMug = 
    4364 
     
    5071 
    5172Look on the SmugMug settings page after you save your account info and it will include shortcodes for all available albums. 
     73 
     74[http://smugmug.com](http://smugmug.com) 
    5275 
    5376= ShootQ = 
     
    6386 
    6487The plugin should also work with the contact forms in ProPhotoBlogs Version 3, but has not been fully tested. 
     88 
     89[http://shootq.com](http://shootq.com) 
    6590 
    6691= ShootQ with Contact Form 7 = 
     
    126151== Changelog == 
    127152 
     153= 1.1 = 
     154 
     155* Ready for 3.1... 
     156* Made admin menus ready for new network dashboard 
     157* fixed a couple typos in sample module. Doesn't effect plugin operation. 
     158 
     159**New Module** 
     160Album Exposure - [visit albumexposure.com](http://albumexposure.com) 
     161 
    128162= 1.0 = 
     163 
    129164* fixed readme, corrected version number, description. 
    130165 
    131166= 0.1 = 
     167 
    132168* Initial upload 
Note: See TracChangeset for help on using the changeset viewer.