mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
some profile changes, added post count to users and account and some css to account
This commit is contained in:
@@ -273,3 +273,17 @@ footer.footer {
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.account-username{
|
||||
font-size:20px;
|
||||
font-weight:bold;
|
||||
}
|
||||
|
||||
.account-bio-block{
|
||||
display:inline-block;
|
||||
}
|
||||
|
||||
.account-bio-label{
|
||||
display:inline-block;
|
||||
width:100px;
|
||||
}
|
||||
@@ -8,21 +8,36 @@
|
||||
|
||||
<!-- BEGIN user -->
|
||||
|
||||
<img src="{user.picture}" />
|
||||
<br/>
|
||||
<span>{user.username}</span>
|
||||
<br/>
|
||||
<label for="email">Email Address</label><input type="text" placeholder="Enter Email Address" id="email" /><br />
|
||||
<button class="btn btn-primary" id="reset" type="submit">Reset Password</button>
|
||||
<br/>
|
||||
<span>Member for </span>
|
||||
<span id="membersince">{user.joindate}</span>
|
||||
<span class="account-username">{user.username}</span>
|
||||
<br/>
|
||||
|
||||
<span>Reputation </span>
|
||||
<span id="membersince">{user.reputation}</span>
|
||||
<div class="account-bio-block">
|
||||
<img src="{user.picture}?s=128" />
|
||||
</div>
|
||||
|
||||
<div class="account-bio-block">
|
||||
<span class="account-bio-label">Member for </span>
|
||||
<span>{user.joindate}</span>
|
||||
<br/>
|
||||
|
||||
<span class="account-bio-label">Reputation </span>
|
||||
<span>{user.reputation}</span>
|
||||
<br/>
|
||||
|
||||
<span class="account-bio-label">Posts</span>
|
||||
<span>{user.postcount}</span>
|
||||
</div>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<label for="email">Email Address</label><input type="text" placeholder="Enter Email Address" id="email" /><br />
|
||||
<button class="btn btn-primary" id="reset" type="submit">Reset Password</button>
|
||||
|
||||
|
||||
<!-- END user -->
|
||||
|
||||
|
||||
@@ -202,7 +202,10 @@ var RDB = require('./redis.js'),
|
||||
// User Details - move this out later
|
||||
RDB.lpush('uid:' + uid + ':posts', pid);
|
||||
|
||||
if (callback) callback(pid);
|
||||
RDB.db.hincrby(uid, 'postcount', 1);
|
||||
|
||||
if (callback)
|
||||
callback(pid);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -197,7 +197,8 @@ var config = require('../config.js'),
|
||||
'joindate' : new Date().getTime(),
|
||||
'password' : hash,
|
||||
'picture' : User.createGravatarURLFromEmail(email),
|
||||
'reputation': 0
|
||||
'reputation': 0,
|
||||
'postcount': 0
|
||||
});
|
||||
|
||||
RDB.set('username:' + username + ':uid', uid);
|
||||
|
||||
Reference in New Issue
Block a user