Deleted
Member Bio
Currently: Offline
Joined: January 1970
Gender: Undisclosed
Posts: 0
|
Post by Deleted on Dec 4, 2013 21:04:11 GMT 1
I've seen this on other sites (ProBoards) which I'm not a member of and would like to have it up and running within my shoutbox. Having said....I'm at a total loss on how to get the and right of the avatar images to show only when one is online or offline: This is the code I have in Shoutbox > Individual Posts (at present and I know this does not work) <img src="http://i1043.photobucket.com/albums/b436/army83_2010/misc/online.png"><img src="http://i1043.photobucket.com/albums/b436/army83_2010/misc/offline.png"> | just below $[shoutbox_post.edited]} title="$[shoutbox_post.edited]"{/if}> I tried this {if $[user.is_online]}<img src="http://i1043.photobucket.com/albums/b436/army83_2010/misc/online.png">{else}<img src="http://i1043.photobucket.com/albums/b436/army83_2010/misc/offline.png">{/if};{if $[user.is_online]}{/if} which did not work either. For now, what I have, is on my test site: link
|
|
IOD Supporter
Member Bio
Currently: Offline
Joined: March 2011
Gender: Male
Posts: 2,442
SemiTrans Signature URL - Theme id 13: http://storage.proboards.com/2815617/i/4VPN0K_NOTLnvUJjv0Dy.png
Badges
|
Post by <i>pebble</i> on Dec 4, 2013 22:39:50 GMT 1
Mmmm.... Interesting I'll take a look at this.
|
|
Deleted
Member Bio
Currently: Offline
Joined: January 1970
Gender: Undisclosed
Posts: 0
|
Post by Deleted on Dec 4, 2013 22:44:14 GMT 1
Thanks @<i>pebble</i>league
|
|
IOD Supporter
Member Bio
Currently: Offline
Joined: March 2011
Gender: Male
Posts: 2,442
SemiTrans Signature URL - Theme id 13: http://storage.proboards.com/2815617/i/4VPN0K_NOTLnvUJjv0Dy.png
Badges
|
Post by <i>pebble</i> on Dec 4, 2013 23:23:39 GMT 1
Here you go! {if $[shoutbox_post.created_by.is_online]} <img src="http://i1043.photobucket.com/albums/b436/army83_2010/misc/online.png"> {else} <img src="http://i1043.photobucket.com/albums/b436/army83_2010/misc/offline.png">{/if}
I like this and think I'm going to add it to my own site!
|
|
Deleted
Member Bio
Currently: Offline
Joined: January 1970
Gender: Undisclosed
Posts: 0
|
Post by Deleted on Dec 4, 2013 23:34:48 GMT 1
Thanks much and I think it is a nice feature for the shoutbox.
Edit: works like a charm!
|
|
Member Bio
Currently: Offline
Joined: January 2011
Gender: Male
Posts: 121
Badges
|
Post by CåñåÐå™ on Dec 5, 2013 3:39:08 GMT 1
Thanks much and I think it is a nice feature for the shoutbox. Edit: works like a charm! This is a nice idea @army83 would you mind if others use this as well?
|
|
Deleted
Member Bio
Currently: Offline
Joined: January 1970
Gender: Undisclosed
Posts: 0
|
Post by Deleted on Dec 5, 2013 14:36:56 GMT 1
Hello CåñåÐå™By all means go for it! As stated, it is something I saw on other ProBoards sites and wanted to implement it on my site and could not figure out how to get it up and running. Thanks to @<i>pebble</i>league, it's working just great! @<i>pebble</i>... if one wanted to place a image like those above for showing (indicating) staff members, how would that be accomplished within the code you did?
|
|
IOD Supporter
Member Bio
Currently: Offline
Joined: March 2011
Gender: Male
Posts: 2,442
SemiTrans Signature URL - Theme id 13: http://storage.proboards.com/2815617/i/4VPN0K_NOTLnvUJjv0Dy.png
Badges
|
Post by <i>pebble</i> on Dec 5, 2013 16:37:54 GMT 1
I'm not sure what you mean. Show the online/offline images only for staff? Only staff can see them? Or do you mean something else?
|
|
Deleted
Member Bio
Currently: Offline
Joined: January 1970
Gender: Undisclosed
Posts: 0
|
Post by Deleted on Dec 5, 2013 17:50:58 GMT 1
The mod would also show a image of staff beside the online / offline image.
|
|
IOD Supporter
Member Bio
Currently: Offline
Joined: March 2011
Gender: Male
Posts: 2,442
SemiTrans Signature URL - Theme id 13: http://storage.proboards.com/2815617/i/4VPN0K_NOTLnvUJjv0Dy.png
Badges
|
Post by <i>pebble</i> on Dec 5, 2013 18:22:43 GMT 1
Oh, ok Give me an example image you want added and I'll put it in there. I need to know the sort of size as there are a lot of positioning to take into consideration or your text etc will end up on different lines. I actually started writing a guide ( first of many I hope ) to altering the shout box. So all these sorts of mods will be included.
|
|
Deleted
Member Bio
Currently: Offline
Joined: January 1970
Gender: Undisclosed
Posts: 0
|
Post by Deleted on Dec 5, 2013 19:14:28 GMT 1
Image example would be: The size I'm using is 12x12 pixels. Great on the making of a guide.
|
|
IOD Supporter
Member Bio
Currently: Offline
Joined: March 2011
Gender: Male
Posts: 2,442
SemiTrans Signature URL - Theme id 13: http://storage.proboards.com/2815617/i/4VPN0K_NOTLnvUJjv0Dy.png
Badges
|
Post by <i>pebble</i> on Dec 5, 2013 21:33:53 GMT 1
OK, with something so small you should be able to add this to where you want it:
{if $[shoutbox_post.created_by.is_staff]} staff {/if}
PS : When I say guide... It's more of a thread/post with all the shoutbox info in it, to keep things in the same place. As questions get asked they'll be added to the guide.
|
|
IOD Supporter
Member Bio
Currently: Offline
Joined: March 2011
Gender: Male
Posts: 2,442
SemiTrans Signature URL - Theme id 13: http://storage.proboards.com/2815617/i/4VPN0K_NOTLnvUJjv0Dy.png
Badges
|
Post by <i>pebble</i> on Dec 5, 2013 22:48:37 GMT 1
Just wondering... Would actually showing the group name be of benefit? instead of just showing a staff symbol? IMO, there's room for it. Image: Ignore the colours and sizes etc. They can easily be changed with a little CSS.
|
|
Deleted
Member Bio
Currently: Offline
Joined: January 1970
Gender: Undisclosed
Posts: 0
|
Post by Deleted on Dec 5, 2013 23:24:27 GMT 1
Something to think about and the group name is indeed a benefit if one wants that. I lean more toward the legend I have at the bottom of this image, far right of Character Limit: which is quite simple and all one has to do is add another color image to reflect staff members when online or offline. Of course that staff member color image will also show beside their avatar.
|
|
IOD Supporter
Member Bio
Currently: Offline
Joined: March 2011
Gender: Male
Posts: 2,442
SemiTrans Signature URL - Theme id 13: http://storage.proboards.com/2815617/i/4VPN0K_NOTLnvUJjv0Dy.png
Badges
|
Post by <i>pebble</i> on Dec 5, 2013 23:26:34 GMT 1
I didn't realise you had a legend - That's why I was thinking it might not make sense just to have a dot there!
|
|