The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

/viewonline - don't display user

View previous topic View next topic Go down

/viewonline - don't display user

Post by Ultron's Vision on 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
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

Re: /viewonline - don't display user

Post by Sir Chivas™ on 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.



Attention!
- Please provide your forum URL at all times.
- When the issue is solved, please mark it as solved.



Sir Chivas™
Support Moderator
Support Moderator

Male Posts : 6756
Reputation : 428
Language : English, Spanish, and French
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

Re: /viewonline - don't display user

Post by Ultron's Vision on 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
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

Re: /viewonline - don't display user

Post by Sir Chivas™ on 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.








Attention!
- Please provide your forum URL at all times.
- When the issue is solved, please mark it as solved.



Sir Chivas™
Support Moderator
Support Moderator

Male Posts : 6756
Reputation : 428
Language : English, Spanish, and French
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

Re: /viewonline - don't display user

Post by Kaizer Lee on 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
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

Re: /viewonline - don't display user

Post by Sir Chivas™ on 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™
Support Moderator
Support Moderator

Male Posts : 6756
Reputation : 428
Language : English, Spanish, and French
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

Re: /viewonline - don't display user

Post by nextlevelgaming on 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
Forumember

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

http://www.easybbtutorials.forumotion.com

Back to top Go down

Re: /viewonline - don't display user

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

HAHAHAHAH i just realized that Wink did not mean window oops

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

View previous topic View next topic Back to top


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