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.

Problem with code for Staff-Online Module

3 posters

Go down

Solved Problem with code for Staff-Online Module

Post by Susanne July 14th 2013, 3:22 pm

Hello Smile

Wanted to post this question in the forum for problems with scripts - but I am locked there.... 

I am wondering why the script in this post https://help.forumotion.com/t124455-modify-staff-online-widget
 shows staff online even if they are offline.... 

I used this script:
Code:
<style>
#onlinestaff a {
  display: none;
}
</style><div id="onlinestaff">
<b>Staff online:</b>
<a href="http://www.weimaraner-verein.com/u1" style="display: block; ">
<img src="http://r12.imgfast.net/users/1216/21/93/56/avatars/1-45.png"></a>
</div>

<script type="text/javascript">
jQuery(document).ready (function () {
  jQuery('#left .forumline:eq(0) .row1 a').each(function () {
    jQuery('#onlinestaff a[href="' + this.href + '"]').css('display','block');
  });
});
</script>

Any help is appreciated Smile

Greetings
Susanne


Last edited by Susanne on July 17th 2013, 6:11 pm; edited 2 times in total
Susanne
Susanne
New Member

Female Posts : 8
Reputation : 1
Language : english
Location : Denmark

http://weimaraner.123.st

Back to top Go down

Solved Re: Problem with code for Staff-Online Module

Post by SLGray July 15th 2013, 1:08 am

Moved to Script Problems


background staff - Problem with code for Staff-Online Module Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51519
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Problem with code for Staff-Online Module

Post by Susanne July 15th 2013, 5:59 am

Thanks, SLGray Smile

I have tried a little yesterday and now it seems to work. 
BUT - only with the online module on top of it Sad and that is pretty annoying. 
Is there a code to hide this module?

My code in the module looks like this right now: 
Code:
<style>
#onlinestaff a {
  display: none;
}
</style><div id="onlinestaff" class="panel"><div align=center>
Admins:

<a href="http://www.weimaraner-verein.com/u1"><img src="http://r12.imgfast.net/users/1216/21/93/56/avatars/1-45.png" style="height:50px; float:center; padding: 2px 2px 2px 5px; "></a>
<a href="http://www.weimaraner-verein.com/u2"><img src="http://r12.imgfast.net/users/1216/21/93/56/avatars/2-45.jpg" style="height:50px; float:left; padding: 2px 2px 2px 5px; "></a>
<a href="http://www.weimaraner-verein.com/u9"><img src="http://r12.imgfast.net/users/1216/21/93/56/avatars/9-64.jpg" style="height:50px; float:left; padding: 2px 2px 2px 5px;"></a>
<a href="http://www.weimaraner-verein.com/u94"><img src="http://r12.imgfast.net/users/1216/21/93/56/avatars/94-85.jpg" style="height:50px; float:left; padding: 2px 2px 2px 5px; "></a></div><div align=center>
Gruppen-Mods:
<a href="http://www.weimaraner-verein.com/u103"><img src="http://r12.imgfast.net/users/1216/21/93/56/avatars/103-61.jpg"style="height:50px; float:left; padding: 2px 2px 2px 5px;"></a>
<a href="http://www.weimaraner-verein.com/u24"><img src="http://r12.imgfast.net/users/1216/21/93/56/avatars/24-67.jpg"style="height:50px; float:left; padding: 2px 2px 2px 5px;"></a></div><div align=center>
Moderatoren:
<a href="http://www.weimaraner-verein.com/u29"><img src="http://r12.imgfast.net/users/1216/21/93/56/avatars/29-80.jpg"style="height:50px; float:left; padding: 2px 2px 2px 5px;"></a>
<a href="http://www.weimaraner-verein.com/u120"><img src="http://r12.imgfast.net/users/1216/21/93/56/avatars/120-11.jpg"style="height:50px; float:left; padding: 2px 2px 2px 5px;"></a>
<a href="http://www.weimaraner-verein.com/u191"><img src="http://r12.imgfast.net/users/1216/21/93/56/avatars/191-30.jpg"style="height:50px; float:left; padding: 2px 2px 2px 5px;"></a>
</div></div></div>

<script type="text/javascript">
jQuery(document).ready (function () {
  jQuery('#left .forumline:eq(0) .row1 a').each(function () {
    jQuery('#onlinestaff a[href="' + this.href + '"]').css('display','block');
  });
});
</script>

Greetings from Susanne
Susanne
Susanne
New Member

Female Posts : 8
Reputation : 1
Language : english
Location : Denmark

http://weimaraner.123.st

Back to top Go down

Solved Re: Problem with code for Staff-Online Module

Post by Susanne July 16th 2013, 4:45 am

bump
Susanne
Susanne
New Member

Female Posts : 8
Reputation : 1
Language : english
Location : Denmark

http://weimaraner.123.st

Back to top Go down

Solved Re: Problem with code for Staff-Online Module

Post by kirk July 17th 2013, 5:29 am

Susanne wrote:Thanks, SLGray Smile

BUT - only with the online module on top of it Sad and that is pretty annoying. 
Is there a code to hide this module?

On top of what?
to hide the module? then how would you see if staff is online or not.

please explain more and post any links or screen shots so we can see.
thanx
kirk
kirk
Forumaster

Male Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

Solved Re: Problem with code for Staff-Online Module

Post by Susanne July 17th 2013, 2:38 pm

Hello,
Sorry, that I didn´t explain correctly ....
It looks like this in my Forum right now:
background staff - Problem with code for Staff-Online Module Weimar11

The "Who-is-online" in top of the new "Staff-online"-Module.
I just wanted to the "Who-is-online"-Module to be invisible but not inaktiv.
Hope I explained so that you understand Smile

Greetings Susanne
Susanne
Susanne
New Member

Female Posts : 8
Reputation : 1
Language : english
Location : Denmark

http://weimaraner.123.st

Back to top Go down

Solved Re: Problem with code for Staff-Online Module

Post by Susanne July 17th 2013, 5:52 pm

I have found the solution Smile
Can be closed.
Thanx
Susanne
Susanne
Susanne
New Member

Female Posts : 8
Reputation : 1
Language : english
Location : Denmark

http://weimaraner.123.st

Back to top Go down

Solved Re: Problem with code for Staff-Online Module

Post by SLGray July 17th 2013, 10:11 pm

Since no solution was given , this topic will be garbaged.


background staff - Problem with code for Staff-Online Module Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51519
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

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