Changeset 2362312
- Timestamp:
- 08/16/2020 10:29:13 AM (6 years ago)
- Location:
- wp-user-profile-avatar/tags/1.0
- Files:
-
- 43 added
- 10 deleted
- 3 edited
-
LICENSE (added)
-
README.md (modified) (1 diff)
-
admin/lib (deleted)
-
admin/templates (added)
-
admin/templates/shortcode-popup.php (added)
-
admin/wp-user-profile-avatar-admin.php (added)
-
admin/wp-user-profile-avatar-settings.php (added)
-
admin/wpem-migration-admin.php (deleted)
-
admin/wpem-migration-import.php (deleted)
-
assets/css/admin.css (deleted)
-
assets/css/admin.min.css (deleted)
-
assets/css/backend.css (added)
-
assets/css/backend.min.css (added)
-
assets/css/frontend.css (added)
-
assets/css/frontend.min.css (added)
-
assets/images (added)
-
assets/images/wp-user-admin.png (added)
-
assets/images/wp-user-avatar.png (added)
-
assets/images/wp-user-medium.png (added)
-
assets/images/wp-user-original.png (added)
-
assets/images/wp-user-thumbnail.png (added)
-
assets/js/admin-avatar.js (added)
-
assets/js/admin-avatar.min.js (added)
-
assets/js/admin-migration.js (deleted)
-
assets/js/admin-migration.min.js (deleted)
-
assets/js/frontend-avatar.js (added)
-
assets/js/frontend-avatar.min.js (added)
-
includes (added)
-
includes/wp-user-profile-avatar-install.php (added)
-
includes/wp-user-profile-avatar-user.php (added)
-
languages/wp-event-manager-migration.pot (deleted)
-
languages/wp-user-profile-avatar-de_AT.mo (added)
-
languages/wp-user-profile-avatar-de_AT.po (added)
-
languages/wp-user-profile-avatar-de_CH.mo (added)
-
languages/wp-user-profile-avatar-de_CH.po (added)
-
languages/wp-user-profile-avatar-de_DE.mo (added)
-
languages/wp-user-profile-avatar-de_DE.po (added)
-
languages/wp-user-profile-avatar-en_AU.mo (added)
-
languages/wp-user-profile-avatar-en_AU.po (added)
-
languages/wp-user-profile-avatar-en_GB.mo (added)
-
languages/wp-user-profile-avatar-en_GB.po (added)
-
languages/wp-user-profile-avatar-en_NZ.mo (added)
-
languages/wp-user-profile-avatar-en_NZ.po (added)
-
languages/wp-user-profile-avatar-en_US.mo (added)
-
languages/wp-user-profile-avatar-en_US.po (added)
-
languages/wp-user-profile-avatar.pot (added)
-
readme.txt (modified) (4 diffs)
-
shortcodes (added)
-
shortcodes/wp-user-profile-avatar-shortcodes.php (added)
-
templates/admin (deleted)
-
templates/wp-avatar-upload.php (added)
-
templates/wp-user-avatar.php (added)
-
uninstall.php (modified) (1 diff)
-
wp-event-manager-migration.php (deleted)
-
wp-user-profile-avatar-functions.php (added)
-
wp-user-profile-avatar.php (added)
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 2 WP 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 === 2 2 3 3 Contributors: wpeventmanager,ashokdudhat,hiteshmakvana 4 4 Donate 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.5 Tags: avatar, user profile, gravatar,custom profile photo, custom profile picture, profile photo, profile picture, author image, author photo 6 6 Requires at least: 4.1 7 7 Tested up to: 5.2.2 8 Stable tag: 1.0 .08 Stable tag: 1.0 9 9 Requires PHP: 5.4 10 10 License: GNU General Public License v3.0 11 11 License URI: https://www.gnu.org/licenses/gpl-3.0.html 12 12 13 13 14 == Description == 14 15 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 17 WP 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 46 To 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 92 You 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 138 You 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. 18 139 19 140 = Be a contributor = 20 141 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/).142 If 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 144 You 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/). 24 145 25 146 Thanks to all of our contributors. … … 49 170 50 171 172 51 173 = Automatic installation = 52 174 … … 55 177 56 178 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_.179 In 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_. 58 180 59 181 … … 70 192 * Activate the plugin from the Plugins menu within the WordPress admin. 71 193 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 208 You 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 251 You 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 302 1. Settings. 303 304 2. Default Gavatars & set custom default avatar. 305 306 3. Set custom avatar for user profile example 1. 307 308 4. Set custom avatar for user profile example 2. 309 310 5. Display avatar & upload avatar shortcode icon for Visual Editor. 311 312 6. Generate display user profile avatar shortcode. 313 314 7. Generate user profile avatar upload shortcode. 315 316 8. Upload shortcode GUI for the frontend side. 317 318 9. After uploading avatar successfully, show undo option. 319 320 10. After refreshing page, remove option show instead of undo option for uploaded avatar. 321 322 11. After removing uploaded avatar, show message successfully removed avatar. 323 324 325 72 326 == Changelog == 73 327 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 5 5 } 6 6 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 ); 8 18 9 //as of now we don't have any option stored in db 10 11 /*foreach ( $options as $option ) { 19 foreach ( $options as $option ) { 12 20 delete_option( $option ); 13 } */21 }
Note: See TracChangeset
for help on using the changeset viewer.