mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +01:00
some profile changes, added post count to users and account and some css to account
This commit is contained in:
@@ -272,4 +272,18 @@ footer.footer {
|
|||||||
color: rgb(100,100,100);
|
color: rgb(100,100,100);
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.account-username{
|
||||||
|
font-size:20px;
|
||||||
|
font-weight:bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.account-bio-block{
|
||||||
|
display:inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.account-bio-label{
|
||||||
|
display:inline-block;
|
||||||
|
width:100px;
|
||||||
}
|
}
|
||||||
@@ -7,21 +7,36 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- BEGIN user -->
|
<!-- BEGIN user -->
|
||||||
|
|
||||||
<img src="{user.picture}" />
|
<span class="account-username">{user.username}</span>
|
||||||
<br/>
|
|
||||||
<span>{user.username}</span>
|
|
||||||
<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>
|
<div class="account-bio-block">
|
||||||
<br/>
|
<img src="{user.picture}?s=128" />
|
||||||
<span>Member for </span>
|
</div>
|
||||||
<span id="membersince">{user.joindate}</span>
|
|
||||||
|
<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/>
|
||||||
|
|
||||||
<span>Reputation </span>
|
|
||||||
<span id="membersince">{user.reputation}</span>
|
|
||||||
<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 -->
|
<!-- END user -->
|
||||||
|
|||||||
@@ -202,7 +202,10 @@ var RDB = require('./redis.js'),
|
|||||||
// User Details - move this out later
|
// User Details - move this out later
|
||||||
RDB.lpush('uid:' + uid + ':posts', pid);
|
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(),
|
'joindate' : new Date().getTime(),
|
||||||
'password' : hash,
|
'password' : hash,
|
||||||
'picture' : User.createGravatarURLFromEmail(email),
|
'picture' : User.createGravatarURLFromEmail(email),
|
||||||
'reputation': 0
|
'reputation': 0,
|
||||||
|
'postcount': 0
|
||||||
});
|
});
|
||||||
|
|
||||||
RDB.set('username:' + username + ':uid', uid);
|
RDB.set('username:' + username + ':uid', uid);
|
||||||
|
|||||||
Reference in New Issue
Block a user