InterOcean Designs
« Active Users in Past 24 Hours Icon Image »

Welcome Guest. Please Login or Register.
May 22, 2013, 1:45am




InterOcean Designs :: ProBoards Codes :: ProBoard Code Database :: Active Users in Past 24 Hours Icon Image
Page 1 of 2 » Jump to page   Go    [Search This Thread] [Share Topic] [Print]
 AuthorTopic: Active Users in Past 24 Hours Icon Image (Read 2,033 times)
SubDevo
Co-Admin
Code Support
member is offline

[avatar]

Creator of LSD...


[homepage]

Joined: Mar 2009
Gender: Male
Posts: 2,594
Location: MI, USA
Karma: 102
 Active Users in Past 24 Hours Icon Image
« Thread Started on Jun 7, 2009, 4:57am »

Active Users in Past 24 Hours Icon Image by SubDevo
Tested in IE, FF, Opera, Safari and Chrome.

This code allows you to use your own custom image for the "Active Users in the Past 24 Hours" section of the Info Center. Simple as that!

Enjoy!!! :)
SubDevo

Preview:
[image]

Just put the URL to your image in this line:
var imgURL="URL TO IMAGE"; // Image URL.

Location: Main Footer
Code:
<script type="text/javascript">
/* Active Users in Past 24 Hours Icon Image by SubDevo */
/* Main Footer - Please leave this header intact. Do not repost. */
/* [url]http://interoceandesigns.com[/url] or [url]http://lsdp.proboards.com[/url] */

var imgURL="URL TO IMAGE"; // Image URL.

if(pb_action=="home"){
&nbsp; &nbsp;for(var tb=document.images,x=tb.length-1;x>0;x--){
&nbsp; &nbsp;&nbsp; &nbsp;if(tb[x].alt=="online"){tb[x].src=imgURL;break;}
}}
</script>
« Last Edit: Jul 1, 2010, 1:01pm by SubDevo »Link to Post - Back to Top  IP: Logged

[image] [image]
[image]
Why are you looking at my signature, [ME]?
Pebble
Code Helper
IOD Supporter
member is offline

[avatar]


[homepage]

Joined: Mar 2011
Gender: Male
Posts: 1,179
Location: Here & There
Karma: 155
 Re: Active Users in Past 24 Hours Icon Image
« Reply #1 on Jun 14, 2011, 5:47pm »

I just got rid of a great big bit of code and replaced it with this tiny bit of wondefullness getting the same result !
Cheers Sub.
Link to Post - Back to Top  IP: Logged

[image]

SubDevo
Co-Admin
Code Support
member is offline

[avatar]

Creator of LSD...


[homepage]

Joined: Mar 2009
Gender: Male
Posts: 2,594
Location: MI, USA
Karma: 102
 Re: Active Users in Past 24 Hours Icon Image
« Reply #2 on Jun 14, 2011, 5:54pm »

You're welcome! Yup, I believe this is the smallest, fastest code for this purpose. ;)
Link to Post - Back to Top  IP: Logged

[image] [image]
[image]
Why are you looking at my signature, [ME]?
JJ
Senior Member
IOD Supporter
member is offline

[avatar]


[homepage]

Joined: Jan 2011
Gender: Female
Posts: 920
Location: Kentucky USA
Karma: 21
 Re: Active Users in Past 24 Hours Icon Image
« Reply #3 on Jun 22, 2011, 7:41pm »

OMG!! Here's JJ doing the happy dance. [image] It has always irked me that those last two images on the bottom of the board were identical.

Honestly, Sub... I looked at this code, looked and looked and went... hmm, I can already put an image there. Then a lightbulb went off and it was like, OMG, I can change the bottom image. I love it. Thank you very much.
Link to Post - Back to Top  IP: Logged

[image]
SubDevo
Co-Admin
Code Support
member is offline

[avatar]

Creator of LSD...


[homepage]

Joined: Mar 2009
Gender: Male
Posts: 2,594
Location: MI, USA
Karma: 102
 Re: Active Users in Past 24 Hours Icon Image
« Reply #4 on Jun 23, 2011, 12:09am »

LMAO You're welcome JJ! :)
Link to Post - Back to Top  IP: Logged

[image] [image]
[image]
Why are you looking at my signature, [ME]?
LunyRed
Senior Member
member is offline

[avatar]


[homepage]

Joined: Sept 2009
Gender: Male
Posts: 542
Location: An archipelago in SE Asia
Karma: 14
 Re: Active Users in Past 24 Hours Icon Image
« Reply #5 on May 10, 2012, 12:25am »

Whelp! So I found a link to this code thanks to Speed and now I'm thinking of trying this one out! ;D

Hmm... Since my forum has multiple skins, I'm assuming I should use the if & else statements on this line?

var imgURL="URL TO IMAGE"; // Image URL.
« Last Edit: May 10, 2012, 12:25am by LunyRed »Link to Post - Back to Top  IP: Logged

[image]
[ME] and I are best buddies~ Unlike me, [ME] is obsessed with Justin Bieber.. o_o'
Pebble
Code Helper
IOD Supporter
member is offline

[avatar]


[homepage]

Joined: Mar 2011
Gender: Male
Posts: 1,179
Location: Here & There
Karma: 155
 Re: Active Users in Past 24 Hours Icon Image
« Reply #6 on May 10, 2012, 12:01pm »


May 10, 2012, 12:25am, LunyRed wrote:
Whelp! So I found a link to this code thanks to Speed and now I'm thinking of trying this one out! ;D

Hmm... Since my forum has multiple skins, I'm assuming I should use the if & else statements on this line?

var imgURL="URL TO IMAGE"; // Image URL.


Yep, that should work fine.

EDIT: How many skins do you have ? If it's a lot then we could knock up a few lines of code to make it easier to enter the skin id's and image URL's.
« Last Edit: May 10, 2012, 1:46pm by Pebble »Link to Post - Back to Top  IP: Logged

[image]

riccetts
New Member
member is offline

[avatar]


[homepage]

Joined: Feb 2012
Gender: Male
Posts: 16
Location: AL
Karma: 2
 Re: Active Users in Past 24 Hours Icon Image
« Reply #7 on May 10, 2012, 7:21pm »

I suppose you can change the word "online" to what ever serves the need.
Am I right about that ?
Link to Post - Back to Top  IP: Logged
Pebble
Code Helper
IOD Supporter
member is offline

[avatar]


[homepage]

Joined: Mar 2011
Gender: Male
Posts: 1,179
Location: Here & There
Karma: 155
 Re: Active Users in Past 24 Hours Icon Image
« Reply #8 on May 11, 2012, 2:40am »


May 10, 2012, 7:21pm, riccetts wrote:
I suppose you can change the word "online" to what ever serves the need.
Am I right about that ?


What is it you want to do ? I'm going to say no, but it depends on what you mean.
Link to Post - Back to Top  IP: Logged

[image]

RADesign
Administrator
member is offline

[avatar]


[homepage]

Joined: Mar 2009
Gender: Male
Posts: 1,601
Location: IOD
Karma: 136
 Re: Active Users in Past 24 Hours Icon Image
« Reply #9 on May 12, 2012, 1:48am »

Since there is no "online" in either the title nor the code, I assume you are referring to the "Users online" section in the preview image that Sub provided. :-/
If so, then yes, you can change both the icon and/or the title for that section.
Link to Post - Back to Top  IP: Logged

[image]
LunyRed
Senior Member
member is offline

[avatar]


[homepage]

Joined: Sept 2009
Gender: Male
Posts: 542
Location: An archipelago in SE Asia
Karma: 14
 Re: Active Users in Past 24 Hours Icon Image
« Reply #10 on May 22, 2012, 3:31am »


May 10, 2012, 12:01pm, Pebble wrote:

EDIT: How many skins do you have ? If it's a lot then we could knock up a few lines of code to make it easier to enter the skin id's and image URL's.

Ah, my forum currently has 3 forum skins only.
Link to Post - Back to Top  IP: Logged

[image]
[ME] and I are best buddies~ Unlike me, [ME] is obsessed with Justin Bieber.. o_o'
Grand-Pappy
Junior Member
member is online

[avatar]

I am Pro-boards version of alzheimer's in other word i may ask the same question many times.


[homepage]

Joined: Jan 2012
Gender: Male
Posts: 139
Location: Not where i want to-be
Karma: 2
 Re: Active Users in Past 24 Hours Icon Image
« Reply #11 on Jul 20, 2012, 5:33am »

Hi, my first post on here.
This code work 100% for me but as i haven't a clue on how to change the code for it to work on forum statistics & users online icons.
Any help gratefully received.

B10akaPP

Link to Post - Back to Top  IP: Logged

God helps those who help them self's, but God help those who try to help those who are trying to help them self's.
Pebble
Code Helper
IOD Supporter
member is offline

[avatar]


[homepage]

Joined: Mar 2011
Gender: Male
Posts: 1,179
Location: Here & There
Karma: 155
 Re: Active Users in Past 24 Hours Icon Image
« Reply #12 on Jul 20, 2012, 8:31am »


Jul 20, 2012, 5:33am, Grand-Pappy wrote:
Hi, my first post on here.
This code work 100% for me but as i haven't a clue on how to change the code for it to work on forum statistics & users online icons.
Any help gratefully received.

B10akaPP



Hi B10akaPP,
Wlecome to IOD!

The Forum Statistics and Users Online icons can be changed by going to:
Admin> Skins / Forum Colors> Customize Images> Pick skin and continue> and it should be in the images, 2nd box from the bottom.

Link to Post - Back to Top  IP: Logged

[image]

Grand-Pappy
Junior Member
member is online

[avatar]

I am Pro-boards version of alzheimer's in other word i may ask the same question many times.


[homepage]

Joined: Jan 2012
Gender: Male
Posts: 139
Location: Not where i want to-be
Karma: 2
 Re: Active Users in Past 24 Hours Icon Image
« Reply #13 on Jul 20, 2012, 9:01am »

HI Pebble & thanks for the assistance.
It looks like i fallen at the first hurdle, i can not see any of those two images anywhere in the board images you mentioned in the location?

B10akaPP
Link to Post - Back to Top  IP: Logged

God helps those who help them self's, but God help those who try to help those who are trying to help them self's.
Pebble
Code Helper
IOD Supporter
member is offline

[avatar]


[homepage]

Joined: Mar 2011
Gender: Male
Posts: 1,179
Location: Here & There
Karma: 155
 Re: Active Users in Past 24 Hours Icon Image
« Reply #14 on Jul 20, 2012, 10:23am »

It's not obvious due to Proboards changing their icons......

[image]

The statistics image is on the left and the online image is on the right.

There's a code here you might be interested in: http://interoceandesigns.com/index.cgi?b....splay&thread=28 that might be helpful as it shows the images that you actually have on your site.
« Last Edit: Jul 20, 2012, 10:26am by Pebble »Link to Post - Back to Top  IP: Logged

[image]

Page 1 of 2 » Jump to page   Go    [Search This Thread] [Share Topic] [Print]

Click Here To Make This Board Ad-Free


This Board Hosted For FREE By ProBoards
Get Your Own Free Message Boards & Free Forums!
Terms of Service | Privacy Policy | Notice | FTC Disclosure | Report Abuse | Mobile