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.

Problem with code for Staff-Online Module

View previous topic View next topic Go down

Solved Problem with code for Staff-Online Module

Post by Susanne on 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 http://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
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 on July 15th 2013, 1:08 am

Moved to Script Problems


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


SLGray
Administrator
Administrator

Male Posts : 36657
Reputation : 2443
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: Problem with code for Staff-Online Module

Post by Susanne on 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
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 on July 16th 2013, 4:45 am

bump

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 on 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
Forumaster

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

Back to top Go down

Solved Re: Problem with code for Staff-Online Module

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

Hello,
Sorry, that I didn´t explain correctly ....
It looks like this in my Forum right now:


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
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 on July 17th 2013, 5:52 pm

I have found the solution Smile
Can be closed.
Thanx
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 on July 17th 2013, 10:11 pm

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


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


SLGray
Administrator
Administrator

Male Posts : 36657
Reputation : 2443
Language : English
Location : United States

http://ztwds.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