Plugin Directory

Changeset 2362312


Ignore:
Timestamp:
08/16/2020 10:29:13 AM (6 years ago)
Author:
wpeventmanager
Message:

added tag 1.0

Location:
wp-user-profile-avatar/tags/1.0
Files:
43 added
10 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • wp-user-profile-avatar/tags/1.0/README.md

    r2362307 r2362312  
    1 # wp-event-manager-migration
    2 Migrate your events in few seconds from The Event Calendar, Modern Event Calendar, Event Manager, Meetups, Eventon, Event Expresso and others.
     1# wp-user-profile-avatar
     2WP User Profile Avatar allow you to change default WordPress avatar or User profile picture. You can use any photos uploaded into your Media Library or use custom photo url as an avatar instead of using Gravatar.
     3
     4
  • wp-user-profile-avatar/tags/1.0/readme.txt

    r2362307 r2362312  
    1 === WP Event Manager Migration ===
     1=== WP User Profile Avatar ===
    22
    33Contributors: wpeventmanager,ashokdudhat,hiteshmakvana
    44Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=55FRYATTFLA5N
    5 Tags: event, events migration, migration, calendar, meetups, eventon, event expresso.
     5Tags: avatar, user profile, gravatar,custom profile photo, custom profile picture, profile photo, profile picture, author image, author photo
    66Requires at least: 4.1
    77Tested up to: 5.2.2
    8 Stable tag: 1.0.0
     8Stable tag: 1.0
    99Requires PHP: 5.4
    1010License: GNU General Public License v3.0
    1111License URI: https://www.gnu.org/licenses/gpl-3.0.html
    1212
     13   
    1314== Description ==
    1415
    15 WP Event Manager Migration help you to facilitate the migration of events, venues and organizers from *The Event Calendar, Modern Event Calendar, Events Manager, Meetups, Eventon, Event Expresso* to **WP Event Manager**. Your event data will be exported and saved in CSV files that can be used to import events, venues and organizers.
    16 
    17 You need to have **[WP Event Manager](https://wordpress.org/plugins/wp-event-manager/)** plugin before installing this plugin.
     16
     17WP User Profile Avatar allow you to change default WordPress avatar or User profile picture. You can use any photos uploaded into your Media Library or use custom photo url as an avatar instead of using Gravatar.
     18
     19
     20**Plugin Features**
     21
     22* **Lightweight and easy to use**.
     23* Upload an avatar image from media library or local computer.
     24* Set avatar image using custom path url.
     25* Visibility option whether show avatar or not.
     26* Display user profile avatar shortcode **[user_profile_avatar]**.
     27* Upload avatar shortcode **[user_profile_avatar_upload]**.
     28* Allow anyone *(Contributors & Subscribers)* can upload avatar.
     29* Disable Gravatar and use own custom avatars.
     30* You can rate avatar as G, PG, R, X based on your appropriateness.
     31* Allow to set default avatar. Default Avatar Allows you to pick a default image when no avatar exists.
     32* **SEO & Developer** Friendly.
     33
     34
     35**Set new user profile avatar from admin panel.**
     36
     37* Go Admin Dashboard -> Users -> All Users --> Select any user profile you would like to edit.
     38
     39* Find "WP User Profile Avatar" section, You can give new avatar url path or you can upload avatar using media library.
     40
     41* Update User.
     42
     43
     44**Display new user profile avatar at frontend side.**
     45
     46To retrieve the user avatar/photo on the front-end use one of the following approach in your template page(s). 
     47
     48
     49*1. Using shortcode and pass parameters based on your need.*
     50
     51     Shortcode: [user_profile_avatar]
     52     Parameters: userid, size, align, link, target and caption.
     53     userid : id of the user.
     54     size: original,medium,large,thumbnail.
     55     align: alignleft,aligncenter,alignright.
     56     link: image, attachment, custom.
     57     target: _blank, self,
     58     caption: you can give any text value in between shortcode bracket and it will display below user avtar profile.
     59
     60
     61    1.1  Display default avatar using visual editor.
     62       
     63        You can use the following shortcode in any page and it will show default avatar of the plugin.
     64
     65        [user_profile_avatar]
     66
     67    1.2 Display avatar for the perticular user using visual editor.
     68
     69        if you want to show user profile for the user id 1.
     70
     71        [user_profile_avatar user_id="1"]
     72
     73        You can also set other parameters like size, align, link, target and caption in this shortcode.
     74
     75        Example:
     76
     77        [user_profile_avatar user_id="1" size="original" align="aligncenter" link="image" target="_blank"] Display Name [/user_profile_avatar]
     78
     79    1.3 if you want to assign dynamic user id in shortocde without using visual editor
     80
     81`<?php
     82         //for the logged user, Current user object
     83        $user = wp_get_current_user();
     84
     85        echo do_shortcode('[user_profile_avatar user_id="<?php $user->id ?>" size="original" align="aligncenter" link="image" target="_blank"]'. $user->display_name .'[/user_profile_avatar]');
     86
     87?>`
     88
     89
     90*2. Using the function get_wpupa_url.*
     91
     92You will need to place below code in each area of your theme where you wish to add and retrieve your theme’s custom avatar image.
     93
     94
     95    2.1 At Author page
     96    -------------------
     97
     98`<?php
     99
     100    // Get The Post's Author ID
     101    $authorID = get_the_author_meta('ID');
     102    $authorname = get_the_author_meta('display_name', $authorID);
     103
     104    // Set the image size. Accepts all registered images sizes and array(int, int)
     105    $size = 'thumbnail';
     106    $imgURL='';
     107
     108    // Get the image URL using the author ID and image size params
     109    if (function_exists('get_wpupa_url')) 
     110        $imgURL = get_wpupa_url($authorID, ['size' => $size]);
     111
     112    // display image on the page
     113    echo '<img src="'. $imgURL .'" alt="'. $authorname .'">';
     114
     115?>`
     116
     117    2.2 Except Author page
     118    ----------------------
     119
     120`<?php
     121
     122    // Current user object
     123    $user = wp_get_current_user();
     124
     125    // Set the image size. Accepts all registered images sizes and array(int, int)
     126    $size = 'thumbnail';
     127    $imgURL='';
     128
     129    // Get the image URL using the author ID and image size params
     130    if (function_exists('get_wpupa_url')) 
     131        $imgURL = get_wpupa_url($user->id, ['size' => $size]);
     132
     133    // display image on the page
     134    echo '<img src="'. $imgURL .'" alt="'. $user->display_name .'">';
     135
     136?>`
     137
     138You will need to place above code in each area of your theme where you wish to add and retrieve your theme's custom avatar image.
    18139
    19140= Be a contributor =
    20141
    21 If you want to contribute, go to our [WP Event Manager Migration GitHub Repository](https://github.com/wpeventmanager/wp-event-manager-migration) and see where you can help.
    22 
    23 You can also add a new language via [translate.wordpress.org](https://translate.wordpress.org/projects/wp-plugins/wp-event-manager-migration). We've built a short guide explaining [how to translate and localize the plugin](https://www.wp-eventmanager.com/documentation/translating-wp-event-manager/).
     142If you want to contribute, go to our [WP User Profile Avatar GitHub Repository](https://github.com/wpeventmanager/wp-user-profile-avatar) and see where you can help.
     143
     144You can also add a new language via [translate.wordpress.org](https://translate.wordpress.org/projects/wp-plugins/wp-user-profile-avatar). We've built a short guide explaining [how to translate and localize the plugin](https://www.wp-eventmanager.com/documentation/translating-wp-event-manager/).
    24145
    25146Thanks to all of our contributors.
     
    49170
    50171
     172
    51173= Automatic installation =
    52174
     
    55177
    56178
    57 In the search field type "WP Event Manager Migration" and click Search Plugins. Once you've found the plugin you can view details about it such as the the point release, rating and description. Most importantly of course, you can install it by clicking _Install Now_.
     179In the search field type "WP User Profile Avatar" and click Search Plugins. Once you've found the plugin you can view details about it such as the the point release, rating and description. Most importantly of course, you can install it by clicking _Install Now_.
    58180
    59181
     
    70192* Activate the plugin from the Plugins menu within the WordPress admin.
    71193
     194
     195== Frequently Asked Questions ==
     196
     197
     198= How I can set new user profile avatar from admin panel? =
     199
     200* Go Admin Dashboard -> Users -> All Users --> Select any user profile you would like to edit.
     201
     202* Find "WP User Profile Avatar" section, You can give new avatar url path or you can upload avatar using media library.
     203
     204* Update User.
     205
     206= How I can display new user profile avatar at frontend side? =
     207
     208You can show user profile avatar two ways.
     209
     210*1. Using shortcode and pass parameters based on your need.*
     211
     212     Shortcode: [user_profile_avatar]
     213     Parameters: userid, size, align, link, target and caption.
     214     userid : id of the user.
     215     size: original,medium,large,thumbnail.
     216     align: alignleft,aligncenter,alignright.
     217     link: image, attachment, custom.
     218     target: _blank, self,
     219     caption: you can give any text value in between shortcode bracket and it will display below user avtar profile.
     220
     221
     222    1.1  Display default avatar using visual editor.
     223       
     224        You can use the following shortcode in any page and it will show default avatar of the plugin.
     225
     226        [user_profile_avatar]
     227
     228    1.2 Display avatar for the perticular user using visual editor.
     229
     230        if you want to show user profile for the user id 1.
     231
     232        [user_profile_avatar user_id="1"]
     233
     234        You can also set other parameters like size, align, link, target and caption in this shortcode.
     235
     236        Example:
     237
     238        [user_profile_avatar user_id="1" size="original" align="aligncenter" link="image" target="_blank"] Display Name [/user_profile_avatar]
     239
     240    1.3 if you want to assign dynamic user id in shortocde without using visual editor
     241
     242         //for the logged user, Current user object
     243        $user = wp_get_current_user();
     244
     245        echo do_shortcode('[user_profile_avatar user_id="<?php $user->id ?>" size="original" align="aligncenter" link="image" target="_blank"]'. $user->display_name .'[/user_profile_avatar]');
     246
     247
     248
     249*2. Using the function get_wpupa_url.*
     250
     251You will need to place below code in each area of your theme where you wish to add and retrieve your theme’s custom avatar image.
     252
     253
     254    2.1 At Author page
     255    -------------------
     256
     257    // Get The Post's Author ID
     258    $authorID = get_the_author_meta('ID');
     259    $authorname = get_the_author_meta('display_name', $authorID);
     260
     261    // Set the image size. Accepts all registered images sizes and array(int, int)
     262    $size = 'thumbnail';
     263    $imgURL='';
     264
     265    // Get the image URL using the author ID and image size params
     266    if (function_exists('get_wpupa_url')) 
     267        $imgURL = get_wpupa_url($authorID, ['size' => $size]);
     268
     269    // display image on the page
     270    echo '<img src="'. $imgURL .'" alt="'. $authorname .'">';
     271
     272    2.2 Except Author page
     273    ----------------------
     274
     275    // Current user object
     276    $user = wp_get_current_user();
     277
     278    // Set the image size. Accepts all registered images sizes and array(int, int)
     279    $size = 'thumbnail';
     280    $imgURL='';
     281
     282    // Get the image URL using the author ID and image size params
     283    if (function_exists('get_wpupa_url')) 
     284        $imgURL = get_wpupa_url($user->id, ['size' => $size]);
     285
     286    // display image on the page
     287    echo '<img src="'. $imgURL .'" alt="'. $user->display_name .'">';
     288
     289
     290= How to allow Contributors & Subscribers can upload avatar? =
     291
     292* Go Admin Dashboard -> Users -> Profile Avatar Settings.
     293
     294* Find "Allow Contributors & Subscribers to upload avatars", check it.
     295
     296* Save Changes.
     297
     298
     299== Screenshots ==
     300
     301
     3021. Settings.
     303
     3042. Default Gavatars & set custom default avatar.
     305
     3063. Set custom avatar for user profile example 1.
     307
     3084. Set custom avatar for user profile example 2.
     309
     3105. Display avatar & upload avatar shortcode icon for Visual Editor.
     311
     3126. Generate display user profile avatar shortcode.
     313
     3147. Generate user profile avatar upload shortcode.
     315
     3168. Upload shortcode GUI for the frontend side.
     317
     3189. After uploading avatar successfully, show undo option.
     319
     32010. After refreshing page, remove option show instead of undo option for uploaded avatar.
     321
     32211. After removing uploaded avatar, show message successfully removed avatar.
     323
     324
     325
    72326== Changelog ==
    73327
    74 = 1.0 [July 2nd, 2020] =
    75 
    76 * First release.
    77 
     328= 1.0 [May 23TH, 2020] =
     329
     330* First stable release.
  • wp-user-profile-avatar/tags/1.0/uninstall.php

    r2362307 r2362312  
    55}
    66
    7 $options = array();
     7$options = array(
     8        'wpupa_tinymce',
     9        'wpupa_show_avatars',
     10        'wpupa_rating',
     11        'wpupa_default',
     12        'wpupa_version',
     13        'wpupa_allow_upload',
     14        'wpupa_disable_gravatar',
     15        'wpupa_show_avatars',
     16        'wpupa_attachment_id',
     17);
    818
    9 //as of now we don't have any option stored in db
    10 
    11 /*foreach ( $options as $option ) {
     19foreach ( $options as $option ) {
    1220    delete_option( $option );
    13 }*/
     21}
Note: See TracChangeset for help on using the changeset viewer.