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.

How to add widget Status "Admin/Moderator Online" on forumotion? (phpBB2)

4 posters

Go down

How to add widget Status "Admin/Moderator Online" on forumotion? (phpBB2) Empty How to add widget Status "Admin/Moderator Online" on forumotion? (phpBB2)

Post by sasukekun April 29th 2013, 5:30 pm

Hi All Very Happy
I want to ask Smile

How to add widget Status "Admin/Moderator Online" on forumotion?

more detail you can see this picture Very Happy
How to add widget Status "Admin/Moderator Online" on forumotion? (phpBB2) MPQYICS

Source:
http://dstars.forumid.net/login?logout=1

My Forum:
http://astajim.indonesianforum.net/

Please someone help me Smile

Thanks before bye



Last edited by mostone on May 3rd 2013, 4:30 pm; edited 1 time in total
sasukekun
sasukekun
Forumember

Posts : 253
Reputation : 6
Language : English

Back to top Go down

How to add widget Status "Admin/Moderator Online" on forumotion? (phpBB2) Empty Re: How to add widget Status "Admin/Moderator Online" on forumotion? (phpBB2)

Post by markonilo April 30th 2013, 2:52 am

Bump!
avatar
markonilo
Forumember

Posts : 49
Reputation : 1
Language : serbian

Back to top Go down

How to add widget Status "Admin/Moderator Online" on forumotion? (phpBB2) Empty Re: How to add widget Status "Admin/Moderator Online" on forumotion? (phpBB2)

Post by sasukekun May 1st 2013, 3:21 am

Please someone help me Very Happy

BUMP!
sasukekun
sasukekun
Forumember

Posts : 253
Reputation : 6
Language : English

Back to top Go down

How to add widget Status "Admin/Moderator Online" on forumotion? (phpBB2) Empty Re: How to add widget Status "Admin/Moderator Online" on forumotion? (phpBB2)

Post by E-Mark May 1st 2013, 8:58 am

LG created same script with that.
http://www.avacweb.com/t114-online-list-widget

The script is sensitive, so you should read the whole topic first and follow carefully to make it work Smile.

Or try this one
https://help.forumotion.com/t115845-view-online-staff-in-a-widget
E-Mark
E-Mark
Active Poster

Male Posts : 1412
Reputation : 169
Language : English
Location : Bitcoin

http://coding-spot.darkbb.com/

Back to top Go down

How to add widget Status "Admin/Moderator Online" on forumotion? (phpBB2) Empty Re: How to add widget Status "Admin/Moderator Online" on forumotion? (phpBB2)

Post by sasukekun May 1st 2013, 5:37 pm

omg, mr.mark Very Happy
there's a lot of code, the code is wrong and correct it all into one. (one topic) Smile:

I am confused about which one to try,
can you help me explain it here, where the correct code, and tutorials. Very Happy:

thanks for help me again Wink
thanks before Very Happy
sasukekun
sasukekun
Forumember

Posts : 253
Reputation : 6
Language : English

Back to top Go down

How to add widget Status "Admin/Moderator Online" on forumotion? (phpBB2) Empty Re: How to add widget Status "Admin/Moderator Online" on forumotion? (phpBB2)

Post by Ultron's Vision May 1st 2013, 5:48 pm

Use this link provided: https://help.forumotion.com/t115845-view-online-staff-in-a-widget

Create a new widget (Administration Panel -> Modules -> Forum Widgets Management, then look for a green plus sign), add within it the list of Staff in a separated list, like provided in link above.
Then put the online user widget directly beneath the newly created widget (you can drag and drop the widgets where you need them) and add the script given in the link to your JavaScript pages (Administration Panel -> Modules -> JavaScript Pages -> Create a new JavaScript), save and you should be done.
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

How to add widget Status "Admin/Moderator Online" on forumotion? (phpBB2) Empty Re: How to add widget Status "Admin/Moderator Online" on forumotion? (phpBB2)

Post by sasukekun May 1st 2013, 6:02 pm

yeah, i see about that,

but what I say is about code.
there are many code.

there I do not understand it. I have to try that one??

what I want is:
first go to bla bla bla, place the code to
Code:
example

after, go to bla bla bla, place to JS management,
Code:
example

please help me, Very Happy
thanks before bye
sasukekun
sasukekun
Forumember

Posts : 253
Reputation : 6
Language : English

Back to top Go down

How to add widget Status "Admin/Moderator Online" on forumotion? (phpBB2) Empty Re: How to add widget Status "Admin/Moderator Online" on forumotion? (phpBB2)

Post by Ultron's Vision May 1st 2013, 7:30 pm

That's a bit tricky...

This is your example code.

Place this in your widgets, I explained how to create a widget in my last post:
Code:
<style>.staffname { display: block; }</style>
<div id="onlineStaff">
<span class="staffname">Admin</span>
<span class="staffname">gloryglorymanunited</span>
<!-- continue this until you have placed all Staff members in the fashion explaied above -->
</div>
<script type="text/javascript">
 jQuery(function() { var x = document.getElementById('right').getElementsByTagName('table')[8]; // get the ninth table within the element with the id "right"
var y = document.getElementById('onlineStaff').getElementsByTagName('span'); // get all the staff names you defined above
for (i=0; i<y.length; i++) { // loop through all the staff names
if (x.innerHTML.indexOf(y[i].innerHTML) == 1) // if there is a true index in the ninth table within #right
y[i].innerHTML+=" - Online"; // add " - Online" at the end of the name
else // otherwise, display " - Offline"
y[i].innerHTML+=" - Offline"; } }); </script>

Credits to above code go to LGforum, I just allowed myself to comment it for those who may not have the necessary knowledge.

After you have created that widget, place the "Who is Online" widget (provided to you by forumotion) directly underneath the newly created widget which you put on top of all widgets.
So far understandable or do you need more help?
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

How to add widget Status "Admin/Moderator Online" on forumotion? (phpBB2) Empty Re: How to add widget Status "Admin/Moderator Online" on forumotion? (phpBB2)

Post by sasukekun May 2nd 2013, 5:58 am

Ultron's Vision wrote:That's a bit tricky...

This is your example code.

Place this in your widgets, I explained how to create a widget in my last post:
Code:
<style>.staffname { display: block; }</style>
<div id="onlineStaff">
<span class="staffname">Admin</span>
<span class="staffname">gloryglorymanunited</span>
<!-- continue this until you have placed all Staff members in the fashion explaied above -->
</div>
<script type="text/javascript">
 jQuery(function() { var x = document.getElementById('right').getElementsByTagName('table')[8]; // get the ninth table within the element with the id "right"
var y = document.getElementById('onlineStaff').getElementsByTagName('span'); // get all the staff names you defined above
for (i=0; i<y.length; i++) { // loop through all the staff names
if (x.innerHTML.indexOf(y[i].innerHTML) == 1) // if there is a true index in the ninth table within #right
y[i].innerHTML+=" - Online"; // add " - Online" at the end of the name
else // otherwise, display " - Offline"
y[i].innerHTML+=" - Offline"; } }); </script>

Credits to above code go to LGforum, I just allowed myself to comment it for those who may not have the necessary knowledge.

After you have created that widget, place the "Who is Online" widget (provided to you by forumotion) directly underneath the newly created widget which you put on top of all widgets.
So far understandable or do you need more help?

I done try this code, but failed Smile

more details you can see this picture
How to add widget Status "Admin/Moderator Online" on forumotion? (phpBB2) 5ZfT34f

please help me Very Happy
sasukekun
sasukekun
Forumember

Posts : 253
Reputation : 6
Language : English

Back to top Go down

How to add widget Status "Admin/Moderator Online" on forumotion? (phpBB2) Empty Re: How to add widget Status "Admin/Moderator Online" on forumotion? (phpBB2)

Post by Ultron's Vision May 2nd 2013, 8:13 am

Did you add the default Who is online Widget directly underneath your new widget?
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

How to add widget Status "Admin/Moderator Online" on forumotion? (phpBB2) Empty Re: How to add widget Status "Admin/Moderator Online" on forumotion? (phpBB2)

Post by sasukekun May 3rd 2013, 4:26 pm

yes, I immediately added, is why? but fail Smile

whether this widget can be used in phpBB2?
sasukekun
sasukekun
Forumember

Posts : 253
Reputation : 6
Language : English

Back to top Go down

Back to top


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