An alternative to UBB.threads
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
FLocal/Common/BBCodes/User.cs

20 lines
520 B

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PJonDevelopment.BBCode;
namespace FLocal.Common.BBCodes {
class User : BBCode {
public User()
: base("user") {
}
public override string Format(ITextFormatter formatter) {
var user = dataobjects.User.LoadByName(this.Default);
return String.Format("<a class=\"separate UG_{0}\" href=\"/Users/User/{1}/\">{2}</a>", this.Safe(user.userGroup.name), user.id, this.Safe(user.name));
}
}
}