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.

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

View previous topic View next topic Go down

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

Post by sasukekun on 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


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
Forumember

Posts : 253
Reputation : 6
Language : English

Back to top Go down

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

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

Bump!

markonilo
Forumember

Posts : 49
Reputation : 1
Language : serbian

Back to top Go down

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

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

Please someone help me Very Happy

BUMP!

sasukekun
Forumember

Posts : 253
Reputation : 6
Language : English

Back to top Go down

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

Post by E-Mark on 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
http://help.forumotion.com/t115845-view-online-staff-in-a-widget

E-Mark
Active Poster

Male Posts : 1389
Reputation : 164
Language : English, Tagalog
Location : Republic of the Philippines

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

Back to top Go down

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

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

Posts : 253
Reputation : 6
Language : English

Back to top Go down

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

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

Use this link provided: http://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
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: How to add widget Status "Admin/Moderator Online" on forumotion? (phpBB2)

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

Posts : 253
Reputation : 6
Language : English

Back to top Go down

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

Post by Ultron's Vision on 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
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: How to add widget Status "Admin/Moderator Online" on forumotion? (phpBB2)

Post by sasukekun on 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


please help me Very Happy

sasukekun
Forumember

Posts : 253
Reputation : 6
Language : English

Back to top Go down

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

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

Did you add the default Who is online Widget directly underneath your new widget?

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: How to add widget Status "Admin/Moderator Online" on forumotion? (phpBB2)

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

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

whether this widget can be used in phpBB2?

sasukekun
Forumember

Posts : 253
Reputation : 6
Language : English

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