/viewonline - don't display user
4 posters
Page 1 of 1
/viewonline - don't display user
Basically, topic title.
I wanted to know if there's a code to hide a user from that list without having to hide the a[href] completely from the whole site...
If I have, for example, forum URL: http://duelacademy.net/viewonline and I don't want to display a certain userlink, how's that done?
Thanks in advance.
I wanted to know if there's a code to hide a user from that list without having to hide the a[href] completely from the whole site...
If I have, for example, forum URL: http://duelacademy.net/viewonline and I don't want to display a certain userlink, how's that done?
Thanks in advance.
Re: /viewonline - don't display user
Hi,
I guess the only way is to put the preferences for that user as hidden. I don't think there's another way. I might be wrong.
I guess the only way is to put the preferences for that user as hidden. I don't think there's another way. I might be wrong.
Re: /viewonline - don't display user
I've been looking for a CSS Code that allows me to do so...
Something involving display:none;
Something involving display:none;
Re: /viewonline - don't display user
Maybe using this code:
But replacing .gensmall to the correct one. Which I have no idea what it is. Once I get home from school. I'll try helping you out, that's if you still don't have an answer.
- Code:
.gensmall a[href="/u#"]{
display:none;
But replacing .gensmall to the correct one. Which I have no idea what it is. Once I get home from school. I'll try helping you out, that's if you still don't have an answer.
Re: /viewonline - don't display user
That's prolly something to do with a template code, just not sure. Though, he is right, I mean, if the user IS hidden, he'll only appear to an admin or a mod or whatever, but to the normal members, he won't.
Re: /viewonline - don't display user
Template won't do it. Since it works with HTML and PHP, and usually works with the whole members. Messing around with CSS might do the trick.
Re: /viewonline - don't display user
Is this resolved? If not please post, I will look into something for you.
Go to ACP>DISPLAY>GENERAL>VIEWONLINE_BODY
find this:
add class to the first td like so
Then add this Javascript to your javascripts management codes
Then add the css code to your stylesheet
That will hide the users tr that you want to hide.
Hope that helped my friend
Go to ACP>DISPLAY>GENERAL>VIEWONLINE_BODY
find this:
- Code:
<!-- BEGIN reg_user_row -->
<tr>
<td class="{reg_user_row.ROW_CLASS}" width="35%"><span class="gen"><a class="gen" href="{reg_user_row.U_USER_PROFILE}">{reg_user_row.USERNAME}</a></span></td>
<td class="{reg_user_row.ROW_CLASS}" align="center" nowrap="nowrap" width="25%"><span class="gen">{reg_user_row.LASTUPDATE}</span></td>
<td class="{reg_user_row.ROW_CLASS}" width="40%"><span class="gen"><a class="gen" href="{reg_user_row.U_FORUM_LOCATION}">{reg_user_row.FORUM_LOCATION}</a></span></td>
</tr>
<!-- END reg_user_row -->
add class to the first td like so
- Code:
<!-- BEGIN reg_user_row -->
<tr>
<td class="{reg_user_row.ROW_CLASS} checker" width="35%"><span class="gen"><a class="gen" href="{reg_user_row.U_USER_PROFILE}">{reg_user_row.USERNAME}</a></span></td>
<td class="{reg_user_row.ROW_CLASS}" align="center" nowrap="nowrap" width="25%"><span class="gen">{reg_user_row.LASTUPDATE}</span></td>
<td class="{reg_user_row.ROW_CLASS}" width="40%"><span class="gen"><a class="gen" href="{reg_user_row.U_FORUM_LOCATION}">{reg_user_row.FORUM_LOCATION}</a></span></td>
</tr>
<!-- END reg_user_row -->
Then add this Javascript to your javascripts management codes
- Code:
$(window).ready(function() {
var $NLG = $('td .checker');
$NLG.filter(':contains("USERNAME")').closest('tr').addClass('noDisp');
});
Then add the css code to your stylesheet
- Code:
.noDisp{display:none;}
That will hide the users tr that you want to hide.
Hope that helped my friend
Similar topics
» i cannot or dont know how to display my categories
» I dont want to display calender
» Ads are enabled, but dont display !
» Dont Display Post
» Widgets dont display on the right?
» I dont want to display calender
» Ads are enabled, but dont display !
» Dont Display Post
» Widgets dont display on the right?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum