Hey, welcome to ZBCode, the premier coding forum for ZB. Here you fill find some of the best Invisionfree and Zetaboards Codes on the network! Unfortunately, you're sorta hovering around in guest mode at the moment; why not join in on the fun? Register an account and you can start accessing the wealth of resources we have available here. Enjoy your stay at ZBCode, and remember to tell all your friends about us; the more members, the more codes available. ![]() Interested in joining? Click here. If you are already a member of ZBCode, feel free to login right here: |
| Online/Offline Image by Name in Posts | |
|---|---|
| Tweet Topic Started: Sep 6 2009, 10:12 PM (2,669 Views) | |
| Dorith | Sep 6 2009, 10:12 PM Post #1 |
![]()
Has just entered the Matrix
![]()
|
Online/Offline Image by Name in Posts Ever wanted to have Online/Offline Images right by the users' name like in IPB Boards? Well here's your chance. Just add this code to your board and you should have that ![]() Preview: ![]() ![]()
Add to Below the Board. Your images should have the "alt" already, so it shouldn't be a problem. Online and Offline are for the groups/people that don't allow for PMs, so you might want to have those for them too ;) If you have any problems or anything with this code feel free to post here or send me a PM. Edited by Dorith, Sep 9 2009, 07:18 PM.
|
![]() (Made emoticon using Codes Rock's Smiley Generator) | |
![]() |
|
| Desire Law | Sep 6 2009, 10:49 PM Post #2 |
![]()
|
Cool code! Thanks. |
![]() |
|
| Nuke of Nukia | Sep 7 2009, 05:40 AM Post #3 |
![]()
|
Nice job, Dorith. |
| My board: UniverseWars | |
![]() |
|
| Gorgor | Sep 7 2009, 06:05 AM Post #4 |
|
Hello
![]()
|
Very nice code Dorith! ![]() I'd use it on my forums but then all I'd see would be the offline images. (They're almost dead )
|
![]() |
|
| Kuzco | Sep 7 2009, 06:36 AM Post #5 |
|
TMX
![]()
|
How would I go about adding a space between the image and the username? Tried working it out myself but failed miserably
|
| |
![]() |
|
| Lout | Sep 7 2009, 07:25 AM Post #6 |
![]() ![]()
|
You could just make the image size a bit wider and set to the left so there is a transparent space to the right. |
| |
![]() |
|
| Kitsueki | Sep 7 2009, 08:02 AM Post #7 |
![]()
♠ Aizu
![]()
|
Nice one Dorith, im using it ^_~ |
|
Kingdom of Etruria Spoiler: click to toggle
| |
![]() |
|
| Gorgor | Sep 7 2009, 08:12 AM Post #8 |
|
Hello
![]()
|
Add a space after <img src='"+img_url+"'/> in the following line:
|
![]() |
|
| Dorith | Sep 7 2009, 12:40 PM Post #9 |
![]()
Has just entered the Matrix
![]()
|
Yeah, if you want some space, just do what Gorgor did: add some space in between the .prepend() and the <img src>. And I'm glad everyone likes it.
|
![]() (Made emoticon using Codes Rock's Smiley Generator) | |
![]() |
|
| Kuzco | Sep 8 2009, 05:37 AM Post #10 |
|
TMX
![]()
|
Thanks for that, though I seem to be having a slight problem with the code now. It appears fine for all staff (both global and regular moderators), as well as administrators, though it isn't displaying correctly for regular members. I've attached an example below:- Spoiler: click to toggle Here's what it looks like on both a regular member and a member with the following Suffix:
It also appears next to all user IP's (not sure if this is supposed to happen, but regardless I like it). Example: ![]() Thanks for the assistance
|
| |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| Go to Next Page | |
| « Previous Topic · Zetaboards Modifications · Next Topic » |






















)






7:41 PM Jul 10