Welcome Guest [Log In] [Register]
Search Members Calendar | Rules ZB Code Index IF Code Index
ZBCode
  • Navigation
  • ZBCode
  • Coding Resources
  • Zetaboards Modifications
  • Online/Offline Image by Name in Posts
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:

Username:   Password:
Locked Topic
  • Pages:
  • 1
  • 2
  • 3
Online/Offline Image by Name in Posts
Tweet Topic Started: Sep 6 2009, 10:12 PM (2,667 Views)
Dorith Sep 8 2009, 02:20 PM Post #11
Member Avatar
Has just entered the Matrix

Posts:
2,069
Group:
Former Staff
Member
#1,854
Joined:
Dec 23, 2008
Try the code now, changed .prepend() to .before() so it should fix that. If it gives you the image by their IP address again, please link your board for me to see the problem.

Edit: I just realized why it was going into the IP Address, it should be fixed now. Copy the new code on the first post.
Edited by Dorith, Sep 8 2009, 02:52 PM.
Posted Image
Posted Image
(Made emoticon using Codes Rock's Smiley Generator)
Offline Profile Goto Top
 
Kuzco Sep 8 2009, 04:53 PM Post #12
TMX

Posts:
117
Group:
Member
Member
#2,324
Joined:
Feb 14, 2009
Coding language
HTML/CSS
Still doesn't work - it only removed the images from before the IP >.<

Thanks for your assistance (:
Posted Image
Offline Profile Goto Top
 
Dorith Sep 8 2009, 04:58 PM Post #13
Member Avatar
Has just entered the Matrix

Posts:
2,069
Group:
Former Staff
Member
#1,854
Joined:
Dec 23, 2008
What is happening exactly? And could I have a link to your board?
Posted Image
Posted Image
(Made emoticon using Codes Rock's Smiley Generator)
Offline Profile Goto Top
 
God Like Oni Sep 9 2009, 12:08 AM Post #14
Member Avatar


Posts:
299
Group:
Member
Member
#2,786
Joined:
Apr 12, 2009
im using the code
Code:
 
<script type="text/javascript">
//Online/Offline Image by Name in Posts by Dorith of ZBCode
function OnOffImg(imgalt,img_url){
$("img[alt='"+imgalt+"']").each(function(){
$(this).parents(".c_postfoot").prev().prev().prev().find("td.c_username").find("span").before("<img src='"+img_url+"'/> ")
});
}

OnOffImg("PM Online Member","http://z3.ifrm.com/104/14/0/p210225/user_on.png")
OnOffImg("PM Offline Member","http://z3.ifrm.com/104/14/0/p210224/user_off.png")
OnOffImg("Online","http://z3.ifrm.com/104/14/0/p210225/user_on.png")
OnOffImg("Offline","http://z3.ifrm.com/104/14/0/p210224/user_off.png")
</script>


Nothing appears for me.Any ideas ?
Posted Image
Posted Image
Offline Profile Goto Top
 
Kuzco Sep 9 2009, 01:29 AM Post #15
TMX

Posts:
117
Group:
Member
Member
#2,324
Joined:
Feb 14, 2009
Coding language
HTML/CSS
Dorith
Sep 8 2009, 04:58 PM
What is happening exactly? And could I have a link to your board?
It's still exactly the same as this. xD The board is currently offline, though I can create you a test account if need be.
Posted Image
Offline Profile Goto Top
 
Dorith Sep 9 2009, 07:22 PM Post #16
Member Avatar
Has just entered the Matrix

Posts:
2,069
Group:
Former Staff
Member
#1,854
Joined:
Dec 23, 2008
@CrazyJ
Make sure you're posting it "Below the Board." If that doesn't fix it, then please link your board.

@Kuzco
Copy the new code, I just realized what it was, should be working fine now :)
Posted Image
Posted Image
(Made emoticon using Codes Rock's Smiley Generator)
Offline Profile Goto Top
 
Kuzco Sep 11 2009, 09:53 AM Post #17
TMX

Posts:
117
Group:
Member
Member
#2,324
Joined:
Feb 14, 2009
Coding language
HTML/CSS
Still appears the same :x Shall I try refreshing my cache?
Posted Image
Offline Profile Goto Top
 
Kommandant Sep 12 2009, 09:23 AM Post #18


Posts:
10
Group:
Member
Member
#3,368
Joined:
Jul 29, 2009
Coding language
None
Sweet code, good job :D
Posted Image Posted Image Posted Image

Graphic Force now has a coding database, as well as top quality themes
150,000+ posts
500+ members
Offline Profile Goto Top
 
God Like Oni Sep 19 2009, 04:15 AM Post #19
Member Avatar


Posts:
299
Group:
Member
Member
#2,786
Joined:
Apr 12, 2009
It works now , great code Dorith
Posted Image
Posted Image
Offline Profile Goto Top
 
Dorith Oct 21 2009, 07:37 PM Post #20
Member Avatar
Has just entered the Matrix

Posts:
2,069
Group:
Former Staff
Member
#1,854
Joined:
Dec 23, 2008
Thanks guys!
Posted Image
Posted Image
(Made emoticon using Codes Rock's Smiley Generator)
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · Zetaboards Modifications · Next Topic »
Locked Topic
  • Pages:
  • 1
  • 2
  • 3

Track Topic · E-mail Topic Time: 7:40 PM Jul 10
Hosted for free by ZetaBoards · Privacy Policy