The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

/viewonline - don't display user

4 posters

Go down

/viewonline - don't display user Empty /viewonline - don't display user

Post by Ultron's Vision November 19th 2012, 3:57 pm

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.
Ultron's Vision
Ultron's Vision
Forumember

Male Posts : 634
Reputation : 45
Language : English | German | HTML | JavaScript | PHP | C++ | Perl | Java
Location : Vienna, Austria

http://duelacademy.net

Back to top Go down

/viewonline - don't display user Empty Re: /viewonline - don't display user

Post by Sir Chivas™ November 19th 2012, 4:02 pm

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.
Sir Chivas™
Sir Chivas™
Helper
Helper

Male Posts : 6983
Reputation : 457
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||

https://aforums.org

Back to top Go down

/viewonline - don't display user Empty Re: /viewonline - don't display user

Post by Ultron's Vision November 19th 2012, 4:05 pm

I've been looking for a CSS Code that allows me to do so...

Something involving display:none; :/
Ultron's Vision
Ultron's Vision
Forumember

Male Posts : 634
Reputation : 45
Language : English | German | HTML | JavaScript | PHP | C++ | Perl | Java
Location : Vienna, Austria

http://duelacademy.net

Back to top Go down

/viewonline - don't display user Empty Re: /viewonline - don't display user

Post by Sir Chivas™ November 19th 2012, 4:15 pm

Maybe using this code:
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.





Sir Chivas™
Sir Chivas™
Helper
Helper

Male Posts : 6983
Reputation : 457
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||

https://aforums.org

Back to top Go down

/viewonline - don't display user Empty Re: /viewonline - don't display user

Post by Kaizer Lee November 19th 2012, 9:05 pm

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.
Kaizer Lee
Kaizer Lee
Active Poster

Female Posts : 1064
Reputation : 54
Language : English, Tagalog, Spanish and Chinese
Location : Philippines

http://www.medievalchaos.net/forum

Back to top Go down

/viewonline - don't display user Empty Re: /viewonline - don't display user

Post by Sir Chivas™ November 20th 2012, 3:56 pm

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.
Sir Chivas™
Sir Chivas™
Helper
Helper

Male Posts : 6983
Reputation : 457
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||

https://aforums.org

Back to top Go down

/viewonline - don't display user Empty Re: /viewonline - don't display user

Post by nextlevelgaming November 25th 2012, 12:37 am

Is this resolved? If not please post, I will look into something for you.

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

nextlevelgaming
nextlevelgaming
Forumember

Male Posts : 989
Reputation : 38
Language : English|CSS|HTML5|javascript|
Location : New York

http://www.easybbtutorials.forumotion.com

Back to top Go down

/viewonline - don't display user Empty Re: /viewonline - don't display user

Post by nextlevelgaming November 25th 2012, 11:21 pm

HAHAHAHAH i just realized that Wink did not mean window oops
nextlevelgaming
nextlevelgaming
Forumember

Male Posts : 989
Reputation : 38
Language : English|CSS|HTML5|javascript|
Location : New York

http://www.easybbtutorials.forumotion.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum