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.

Staff online widget

Page 2 of 2 Previous  1, 2

View previous topic View next topic Go down

In progress Staff online widget

Post by Bokssha on October 30th 2013, 9:56 pm

First topic message reminder :

Hello...  
 I accidentally came across some topics related to problems with "Staff online widget"...
 Can someone tell me what is Staff online widget,how can we make it,and for what version of forums is it?
 Thank you.

Bokssha
Forumember

Female Posts : 157
Reputation : 0
Language : Serbian
Location : Srbia / Belgrade

http://drekavac.serbianforum.info/

Back to top Go down


In progress Re: Staff online widget

Post by SLGray on November 2nd 2013, 8:14 pm

Thanks. Did you remove the online image from the posts? I do not see it in any of your posts.


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


SLGray
Administrator
Administrator

Male Posts : 35629
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

In progress Re: Staff online widget

Post by Bokssha on November 2nd 2013, 8:16 pm

No...i didnt remove anything... What do you mean?
In the code?

Bokssha
Forumember

Female Posts : 157
Reputation : 0
Language : Serbian
Location : Srbia / Belgrade

http://drekavac.serbianforum.info/

Back to top Go down

In progress Re: Staff online widget

Post by SLGray on November 2nd 2013, 8:18 pm

Never mind. I was looking at the wrong thing when I posted.

Could you add me to the administrator group?


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


SLGray
Administrator
Administrator

Male Posts : 35629
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

In progress Re: Staff online widget

Post by Bokssha on November 2nd 2013, 8:25 pm

Sure... I will do it now...
Is it possible that images on that code must be same like images on the forum?

Bokssha
Forumember

Female Posts : 157
Reputation : 0
Language : Serbian
Location : Srbia / Belgrade

http://drekavac.serbianforum.info/

Back to top Go down

In progress Re: Staff online widget

Post by SLGray on November 2nd 2013, 8:36 pm

If you add the widget to the forum, it works. So for some reason it will not work on the portal.


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


SLGray
Administrator
Administrator

Male Posts : 35629
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

In progress Re: Staff online widget

Post by Bokssha on November 2nd 2013, 8:41 pm

hmm...InterestingVery Happy Well,ok... that should be enough.

Thank you very much SLGray for your time!flower

Bokssha
Forumember

Female Posts : 157
Reputation : 0
Language : Serbian
Location : Srbia / Belgrade

http://drekavac.serbianforum.info/

Back to top Go down

In progress Re: Staff online widget

Post by SLGray on November 2nd 2013, 8:42 pm

You're welcome.

Would you like to wait and see if someone can solve the issue?


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


SLGray
Administrator
Administrator

Male Posts : 35629
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

In progress Re: Staff online widget

Post by Bokssha on November 2nd 2013, 8:45 pm

Sure,why not... there are other people who need this too,I think...

Very Happy

Bokssha
Forumember

Female Posts : 157
Reputation : 0
Language : Serbian
Location : Srbia / Belgrade

http://drekavac.serbianforum.info/

Back to top Go down

In progress Re: Staff online widget

Post by SLGray on November 2nd 2013, 8:45 pm

Ok. I will leave it open to see if a solution can be found.


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


SLGray
Administrator
Administrator

Male Posts : 35629
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

In progress Re: Staff online widget

Post by runawayhorses on November 3rd 2013, 4:22 am

Try putting the javascript in javascript management, and the html in the widgets.

In javascript management add the code below and tick the box for "in all pages".

AP>>Modules>>Javascript management.
Code:
jQuery(function() {
  var x = jQuery('.forumline', document.getElementById('right'))[0].innerHTML;
  var y = jQuery('.staffname', document.getElementById('onlineStaff'));
  for (var i=0, l = y.length; i<l; i++) {
  if (x.indexOf(y[i].innerHTML) > 0) {
 
y[i].innerHTML+=' <img src="http://hitskin.com/themes/13/76/80/i_folder_new.gif">';
  } else { y[i].innerHTML+='<img src="http://hitskin.com/themes/13/76/80/i_folder.gif">'; }
  }
  });

Then add the html on the portal and forum widgets:

Code:
<style>.staffname{display:block}</style><div id="onlineStaff">
  <span class="staffname">Bokssha</span>
  </div>

runawayhorses
Hyperactive

Male Posts : 2537
Reputation : 162
Language : English
Location : United States

http://runawayhorses.alldiscussion.net/

Back to top Go down

In progress Re: Staff online widget

Post by Van-Helsing on November 3rd 2013, 4:38 am

I ve just tested in my phpbb2 and not working.

Best Regards,
Dark-Avenger

Van-Helsing
Hyperactive

Male Posts : 2198
Reputation : 82
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

In progress Re: Staff online widget

Post by runawayhorses on November 3rd 2013, 5:06 am

Well those codes I posted are just copied from page 1, they can be considered an example, if they are accurate or not I do not know because they've been altered with images and whatnot, but my point was to try putting the javascript that works in javascript management (without the script tags <script></script>) and the html in the widgets. It was my theory that the script in order to work on the portal so it knows when someone is logged in may need to be in javascript management "in all pages". But the actual javascript codes I'm not sure about. Its placement I was addressing.

runawayhorses
Hyperactive

Male Posts : 2537
Reputation : 162
Language : English
Location : United States

http://runawayhorses.alldiscussion.net/

Back to top Go down

In progress Re: Staff online widget

Post by BL@DE on November 11th 2013, 9:26 pm

didany one ever get this work in for phpbb2 ? i dont want it on the portal i want it on the forum.

BL@DE
Forumember

Male Posts : 153
Reputation : 10
Language : English
Location : England

Back to top Go down

In progress Re: Staff online widget

Post by Van-Helsing on November 11th 2013, 9:34 pm

Hi all,
At my phpbb2 dont works at forum and portal. Has someone fix the code?

Best Regards,
Dark-Avenger


Last edited by Dark-Avenger on November 12th 2013, 12:47 am; edited 1 time in total

Van-Helsing
Hyperactive

Male Posts : 2198
Reputation : 82
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

In progress Re: Staff online widget

Post by Luffy on November 12th 2013, 12:04 am

Mine Works Just Fine! I Think This Code Works Ok. (But I Also Think That It Is The Same!! Very HappyVery Happy)

Code:
<style>.staffname{display:block}</style><div id="onlineStaff">
<span class="staffname">Marios94</span>
</div>

<script type="text/javascript">
 jQuery(function() {
  var x = jQuery('.module', document.getElementById('right'))[0].innerHTML;
  var y = jQuery('.staffname', document.getElementById('onlineStaff'));
  for (var i=0, l = y.length; i<l; i++) {
  if (x.indexOf(y[i].innerHTML) > 0) {
 
  y[i].innerHTML+=' <img src="http://hitskin.com/themes/13/76/80/i_folder_new.gif">';
  } else { y[i].innerHTML+='<img src="http://hitskin.com/themes/13/76/80/i_folder.gif">'; }
  }
  });
</script>



I Think You Have To Have The Widget On The Top To Work!!! Very Happy

Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down

In progress Re: Staff online widget

Post by Bokssha on November 12th 2013, 12:25 am

Someone say put it to be second,someone first... idk....
For me,it doesnt work.It shows that I m always online...
And for my friend/second admin that he is always offline... lies,lies,terrible lies... Very Happy


Well...thats mycode... si..its same... Smile

Bokssha
Forumember

Female Posts : 157
Reputation : 0
Language : Serbian
Location : Srbia / Belgrade

http://drekavac.serbianforum.info/

Back to top Go down

In progress Re: Staff online widget

Post by Van-Helsing on November 12th 2013, 2:08 pm

It stills not working on my phpbb2 and I facing the same problems with Bokssha

Best Regards,
Dark-Avenger

Van-Helsing
Hyperactive

Male Posts : 2198
Reputation : 82
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

In progress Re: Staff online widget

Post by BL@DE on November 12th 2013, 9:39 pm

looks like we can not have this on our sites thenboys and girls Sad

BL@DE
Forumember

Male Posts : 153
Reputation : 10
Language : English
Location : England

Back to top Go down

Page 2 of 2 Previous  1, 2

View previous topic View next topic Back to top


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