Hide Admin Online Status & Hide Rank Title (The logo should be seen only)
Is that possible?
Is that possible?
$(function() {
 var admins = ['/u1', '/u2']
for ( var i = 0; i < admins.length; i++ ) {
$('.user:has("[href=\'' + admins[i] + '\']")').find('.user-basic-info')
.contents(':not(img)').remove();
}
});
|
|
Ace 1 wrote:@Skia Drum
Administration Panel >> Modules >> HTML & JavaScript >> Javascript codes management >> Create new javascript
Title: Adminstrator titles
Placement: In the topics
Code:
- Code:
$(function() {
 var admins = ['/u1', '/u2']
for ( var i = 0; i < admins.length; i++ ) {
$('.user:has("[href=\'' + admins[i] + '\']")').find('.user-basic-info')
.contents(':not(img)').remove();
}
});and
- Code:
u1
are the links to your Administrators' accounts.
- Code:
u2
As for the online thing, does your forum show users active in the last XX hours?
(XX could be any number)
Ace 1 wrote:http://pokemongoph.forumtl/u1
http://pokemongoph.forumtl/u2
Those are the accounts that would be treated as administrator accounts.
Ace 1 wrote:Do you have Javascripts enabled?