Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
.Net Runtime Library for Delphi 6.0.4.0
Scimbo 1.64
AnyMap JS Maps 8.4.2
GetOrgChart 2.5.3
AnyChart JS Charts and Dashboards 8.4.2
OrgChart JS 3.8.0
dbForge Compare Bundle for MySQL 8.1
dbForge Search for SQL Server 2.3
Database Workbench Pro 5.5.0
Luxand FaceSDK 7.0
SSIS Data Flow Components 1.10
Entity Developer Professional 6.3
dbForge Index Manager for SQL Server 1.9
dbForge Data Generator For MySQL 2.2
Magento Australia Post eParcel Extension 1.0
Top Code
MATLAB Support Package for Arduino (aka ArduinoIO Package) 1.0
Betting system 6.x-1.x-dev
Java-2-Pseudo 1.0
Library Management System 1.0
Russian Roulette
soccerbet 1.0
Cuckoo Search (CS) Algorithm 1.0
JEDI Database Desktop 27012002
JAC (Java Asn.1 Compiler) 3.0
CONTRAST CONTROLLER 1.0
ActivePerl 5.8.4.810/5.6.1.638
Analog Clock from Jay 1.0
shopping mall management system 1.0
Stepping stone algorithum for solving the transhipment problem
Equipment Rental Script 1.0
Top Rated
Deals and Discounts Website Script 1.0.2
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Availability Booking Calendar PHP 1.0
PHP GZ Blog Script 1.1
ATN Jobs Software 4.0
ATN Mall 2.0
WeBuilder 2015 13.3
PHP Digital Download Script 1.0.4
User Photo 0.9.5.1
File ID: 99329






User Photo 0.9.5.1
Download User Photo 0.9.5.1http://wordpress.orgReport Error Link
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
- required fields
     

Please enter text on the image