This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//----------------------------------------------------------------------- | |
// <copyright file="GatherLevels.cs" company="RustFactions"> | |
// Player Gather Level Modifier for Rust Oxide | |
// Written by nevada_scout for Rust Factions (http://reddit.com/r/rustfactions) | |
// Copyright (c) 2015 nevada_scout | |
// </copyright> | |
//----------------------------------------------------------------------- | |
namespace Oxide.Plugins | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static MvcHtmlString GetGravatarForUser(string email, int size = 50) | |
{ | |
var hash = Md5.CreateHash(email); | |
// return new MvcHtmlString(string.Format("https://secure.gravatar.com/avatar/{0}?s=50&d={1}", hash, defaultAvatarUrl)); | |
return new MvcHtmlString(string.Format("https://secure.gravatar.com/avatar/{0}?s={1}", hash, size)); | |
} | |