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
Code Review Bundle 1.0
Magento Delivery Date Scheduler 1.0
Devart Excel Add-ins 1.8
Faculty Evaluation System 1.1
dbForge Studio for PostgreSQL 2.0
Yelp Script - Yelp Clone 1.3
Database Workbench Pro 5.4.6
Extensibility Studio 3.0
Bytescout Spreadsheet SDK 3.0.0.1699
Magento 2 Admin Mobile App 1.0
Data Compare for MySQL 5.3
ODBC Driver for Zoho CRM 1.3
ODBC Driver for SugarCRM 1.3
Bytescout PDF To HTML SDK 9.0.0.3079
Azizi search engine script PHP 4.1.10
Top Code
Online Food Ordeing System 1.0
Luxand FaceSDK 6.5.1
Code Review Bundle 1.0
Ether MMORPG 0.1
MATLAB Support Package for Arduino (aka ArduinoIO Package) 1.0
Heart VI1 Simulator Simulink Investigation 22-Monitoring 1.0
Geeks TimePicker 1
Multi-column combobox in datagrid (lynxgrid) 1.0
Code Line Counter Pro - C# Version 6.7
2daybiz Custom t-Shirt Design Script 3.0
RabbitBB - Online Web Storage Project 20060513
i-netsolution School Management Software 1.0.4
File encryption using stream cipher
AJAX Book Reader 1.1
ICPos - Point of sale script 1.1
Top Rated
Output Messenger 1.8.0
Aliexpress Clone- Ec21 Script 1
Indiegogo Clone 3.0
Advanced MLM Software 1.2
Online Food Ordeing System 1.0
PHP Image Resize Script 1.0
Best Spotify Clone 1.0
Get Random Record Based on Weight 1.0.0
PHP Point of sale 10.0
Travel Portal Script 9.29
Excel Add-in for Bigcommerce 1.6
Magento Product Designer 1.0
OFOS - Just Eat Clone Script 1.0
PrestaShop Upload Images Module 1.2.1
Trading Software 1.2.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...



CMS Website whose graphics and design can be easily changed, optimized for SEO, internal search engine, user registration, backup, photo gallery...

Including FCKEditor. Installed in fifteen minutes.



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...



DAlbum - personal PHP photo album, PHP image and video gallery script. Simple, secure, and completely customizable.

Features of DAlbum - personal PHP photo album:
- Does NOT require MySQL.
- Automatic image resizing and...

User Review for User Photo
- required fields
     

Please enter text on the image