|
User Photo 0.9.5.1 File ID: 99329 |
---|
|
| User Photo 0.9.5.1 License: Freeware File Size: 92.2 KB Downloads: 29
Submit Rating: |
|
|
|
User Photo 0.9.5.1 Description |
---|
Description: Allows a user to associate a profile photo with their account through their "Your Profile" page. Admins may add a user profile photo by accessing the "Edit User" page. Uploaded images are resized to fit the dimensions specified on the options page; a thumbnail image correspondingly is also generated. User photos may be displayed within a post or a comment to help identify the author. New template tags introduced are:
* userphoto_the_author_photo() * userphoto_the_author_thumbnail() * userphoto_comment_author_photo() * userphoto_comment_author_thumbnail()
Important: all of these "template tags" must appear inside of PHP script blocks (see examples below). The first two should be placed in the posts loop near the_author(), and the second two in the comments loop near comment_author() (or their respective equivalents). Furthermore, userphoto_the_author_photo() and userphoto_the_author_thumbnail() may be called anywhere (i.e. sidebar) if $authordata is set.
The output of these template tags may be modified by passing four parameters: $before, $after, $attributes, and $default_src, as in: userphoto_the_author_photo($before, $after, $attributes, $default_src). If the user photo exists (or $default_src is supplied), then the text provided in the $before and $after parameters is respectively prefixed and suffixed to the generated img tag (a common pattern in WordPress). If attributes are provided in the $attributes parameter, then they are returned as attributes of the generated img element. For example: userphoto_the_author_photo('', '', array(style => 'border:0')) Just added in 0.8.1 release are these two new template tags:
* userphoto($user, $before = '', $after = '', $attributes = array(), $default_src = '') * userphoto_thumbnail($user, $before = '', $after = '', $attributes = array(), $default_src = '')
By using these, it is uneccessary to set the global $authordata to display a photo. Just pass $authordata, $curauth or whatever variable you have which contains the user object, or (as of version 0.9), pass in a user ID or a user login name.
Here's an example that shows a few ways of inserting a user's photo into the post loop: //this will display the user's avatar if they don't have a user photo,
License: Freeware Related: Account, Display, which contains the, you have which, 039039 after, userphoto, Attributes, arraystyle, Variable, user photo, user profile photo, user photos, userphoto comment author, userphoto author, userquot page uploaded, userphoto thumbnailuser O/S:BSD, Linux, Solaris, Mac OS X File Size: 92.2 KB Downloads: 29
|
|
More Similar Code |
---|
Photo Organizer is a web based, multi user photo management tool backed by a PostgreSQL database. Offers: searchable photo database, with photo submission history, client management, date book, dupe support and printing of barcode labels and brochures.
A plugin to build user communities all around WordPress, mainly itd-deOaos around having a well integrated profiles system. This plugin will provide all needed functions and widgets to make it easy and flexible the ways to show all information...
This is a dating module for phpnuke. The original script was coded by AzDG(http://www.azdg.com) and developed for phpnuke by phpnukedownloads.de. Features: - Quick and easy instalation - Working on MySQL with optimal...
Shuttr is a Ruby on Rails photo manager. It supports multiple user accounts and tagged photostreams. Version 1.0 is planned to support the full Flickr API and modules for importing from Gallery, Coppermine, and other popular photo album software.
This is an ASP based photo album which helps the user to store and retrive their photos in their website. For the selection of photos thumbnails will be created automatically. This has an ASP source code which is helpfull for the user to customize...
The Photo Gallery Generator is really a simple and user friendly script that helps you to create your photo gallery instantly. With the help of the Image Magick library, the images in your folder are copied and resized to create thumbnails and all...
Create a stock photo gallery and allow users to pick an image for their classified ad. Includes stock images and a user-friendly admin area to manage categories.
This powerful flash photo album allows you to fast create a photo gallery and present images. The album wills automatically picking up all the related files and builds the navigation for you, or you can point it to an xml document that you...
PhotoSmash Galleries makes it easy to create photo galleries in posts or pages that your users can upload images to. PhotoSmash has incredibly flexible and simple models for designing custom gallery and form layouts, utilizing your own custom...
Fotobook is a WordPress plugin that will link to your Facebook account(s) and import all of your photo albums for use in your WordPress installation. It uses the Facebook API so importing your photos is a breeze. Requires PHP 5.
|
User Review for User Photo |
|