Welcome Guest [Log In] [Register]
Search Members Calendar | Rules ZB Code Index IF Code Index
ZBCode
  • Navigation
  • ZBCode
  • Coding Resources
  • Zetaboards Modifications
  • [SC] Group Icons per member
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
[SC] Group Icons per member
Tweet Topic Started: Jan 24 2009, 03:04 PM (1,049 Views)
HolySavior Jan 24 2009, 03:04 PM Post #1
Member Avatar
Modifying The World Around You

Posts:
2,488
Group:
Distinguished Coder
Member
#7
Joined:
Jul 2, 2008
Coding language
Everything
Here is a member Icon code! want to give only acouple members a special icon? here you can!

Code:
 
<script type="text/javascript">
/* Created by HolySavior of ZBcode */
mygroup = new Array();
// myusers[X]=["USER ID", "IMAGE URL"];
mygroup[0]=["177895", "URL HERE"];
mygroup[1]=["187000", "URL HERE"];

$(".usertitle").each( function() {;

theid = $(this).parent("td.c_user").parent().prev().children(".c_username ").children().attr("href");
userid = theid.split("/");

for(x=0;x<mygroup.length;x++){
if(userid[4] == mygroup[x][0]) {
var ximage = mygroup[x][1];
$(this).append("<img src='"+ximage+"'>");
}
}
});
</script>
Edited by Reid, Jun 15 2009, 08:21 PM.
Offline Profile Goto Top
 
PIWYRCOM Jan 24 2009, 03:27 PM Post #2
Member Avatar
PrideInWhatYouRide

Posts:
368
Group:
Member
Member
#53
Joined:
Jul 17, 2008
Coding language
None
Dan I see this part to edit

// myusers[X]=["USER ID", "IMAGE URL"];


what do you do here ?

mygroup[0]=["177895", "URL HERE"];
mygroup[1]=["187000", "URL HERE"];
» TEST FORUM »
FIND IT HERE !
Spoiler: click to toggle

→ Infinite Results (themes)
→ ZBThemeZone (themes)

→ Big Boards (codes/themes)
→ ZBCodes (codes/themes)
→ The Coding Zone (codes/themes)

→ Code Index ('Official')
→ ZetaDoc's ('Official - How To Info')

Posted Image

Offline Profile Goto Top
 
HolySavior Jan 24 2009, 03:59 PM Post #3
Member Avatar
Modifying The World Around You

Posts:
2,488
Group:
Distinguished Coder
Member
#7
Joined:
Jul 2, 2008
Coding language
Everything
first part ( the number part) is the user # the second part is the image you want them to have.
Offline Profile Goto Top
 
PIWYRCOM Jan 24 2009, 06:49 PM Post #4
Member Avatar
PrideInWhatYouRide

Posts:
368
Group:
Member
Member
#53
Joined:
Jul 17, 2008
Coding language
None
Sorry Dan was really..really tired when I posted that.

(Homer DUH)
This was telling me that: // myusers[X]=["USER ID", "IMAGE URL"];


» TEST FORUM »
FIND IT HERE !
Spoiler: click to toggle

→ Infinite Results (themes)
→ ZBThemeZone (themes)

→ Big Boards (codes/themes)
→ ZBCodes (codes/themes)
→ The Coding Zone (codes/themes)

→ Code Index ('Official')
→ ZetaDoc's ('Official - How To Info')

Posted Image

Offline Profile Goto Top
 
PD.Phoenix Jan 26 2009, 08:43 AM Post #5
Member Avatar
Kokuhyou no Tentei

Posts:
326
Group:
Member
Member
#602
Joined:
Aug 15, 2008
Coding language
HTML/CSS
Where do we put this code?
Phoenix Designz is now open
Looking for staff and classers PM me here or on PD if interested.

Want to win some easy money? Enter Phoenix Designz tournaments. Learn more here ->> click


Posted Image
| My dA | Vote PD Top 100 |
Offline Profile Goto Top
 
PIWYRCOM Jan 26 2009, 11:50 AM Post #6
Member Avatar
PrideInWhatYouRide

Posts:
368
Group:
Member
Member
#53
Joined:
Jul 17, 2008
Coding language
None
BELOW THE BOARD or ABOVE THE COPYRIGHT
(for almost ALL codes unless stated differently)
» TEST FORUM »
FIND IT HERE !
Spoiler: click to toggle

→ Infinite Results (themes)
→ ZBThemeZone (themes)

→ Big Boards (codes/themes)
→ ZBCodes (codes/themes)
→ The Coding Zone (codes/themes)

→ Code Index ('Official')
→ ZetaDoc's ('Official - How To Info')

Posted Image

Offline Profile Goto Top
 
PD.Phoenix Jan 27 2009, 12:55 AM Post #7
Member Avatar
Kokuhyou no Tentei

Posts:
326
Group:
Member
Member
#602
Joined:
Aug 15, 2008
Coding language
HTML/CSS
Is there anyway to make that code and this code

Code:
 
<script type="text/javascript">
function Icons(group,img){
$(".user_info dd:contains('"+group+"')").parent().prev().append("<img src='"+img+"'>").next().find("dt:contains('Group')").empty().next().empty();
}

Icons("Group","Image URL");
</script>


Work together? As that was my original request when you wrote this one.
Phoenix Designz is now open
Looking for staff and classers PM me here or on PD if interested.

Want to win some easy money? Enter Phoenix Designz tournaments. Learn more here ->> click


Posted Image
| My dA | Vote PD Top 100 |
Offline Profile Goto Top
 
HolySavior Jan 27 2009, 06:48 PM Post #8
Member Avatar
Modifying The World Around You

Posts:
2,488
Group:
Distinguished Coder
Member
#7
Joined:
Jul 2, 2008
Coding language
Everything
use both of them. they should work together.
Offline Profile Goto Top
 
PD.Phoenix Jan 27 2009, 07:06 PM Post #9
Member Avatar
Kokuhyou no Tentei

Posts:
326
Group:
Member
Member
#602
Joined:
Aug 15, 2008
Coding language
HTML/CSS
They dont.

I had the icons per group one on and then tried this one with my ID and it didn't show up
Phoenix Designz is now open
Looking for staff and classers PM me here or on PD if interested.

Want to win some easy money? Enter Phoenix Designz tournaments. Learn more here ->> click


Posted Image
| My dA | Vote PD Top 100 |
Offline Profile Goto Top
 
Hours. Mar 2 2009, 07:42 AM Post #10


Posts:
4
Group:
Member
Member
#2,487
Joined:
Mar 2, 2009
Coding language
ASP.Net
Cool, This would be cool if you had a marketplace or a shop & a member purchased a custom team icon.
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

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