We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[ C ] Member Badges show on profile
Topic Started: Jul 16 2012, 07:38 PM (301 Views)
Deleted User
Deleted User

Board Address: http://w11.zetaboards.com/thebeeandbarb/index/
Board Software: ZetaBoards
Description:

Is it possible for the badges a member has to appear on the profile also? For example, I have 4 badges, Admin, Oblivion Complete, Skyrim Complete and Founding Member as can be seen on

Bee and Barb Example Post

When you click onto my profile

My Profile

The badges don't show, ideally i'd like them to show above the post count etc... like they do on a thread.

Cheers!

Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Team Icons and Ranks in Profile: http://resources.zetaboards.com/topic/5144923/1/
Offline Profile Goto Top
 
Deleted User
Deleted User

Hi Cory, some of the badges I have aren't team icons. For example the Founding member badge is manually given to members using the following code:

Code:
 
<script type="text/javascript">
function Icon(name, image) {
$("tr[id*='post']:contains(" + name + ")").next().find("img[alt='Team Icon']").after("<img src='" + image + "' alt='' />");
}

Icon("Sheogorath", "http://img507.imageshack.us/img507/3386/foundingmember.png");


What could be done to get those type of badges to show? I can get the group badges such as Admin.
Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Code:
 
<script type="text/javascript">
function addIcon(profileID, imageURL) {
if (location.href.indexOf('/profile/' + profileID + '') !== -1) $('table.profile td.c_user').prepend('<div class="usertitle"><img src="' + imageURL + '" alt="Pip" /></div>');
}

addIcon('PROFILE_ID', 'IMAGE_URL');
</script>
Use that to add team icons to profiles by User ID.
Offline Profile Goto Top
 
Deleted User
Deleted User

Hi Cory

When adding pips, it shows more than one. For example I have 56 posts. It's showing pips 1,10,20 and 50. Is there anyway to get it to just show 50?

Code:
 
addPip('1000', 'http://z5.ifrm.com/30126/4/0/t5111057/t5111057.png');
addPip('500', 'http://z5.ifrm.com/30126/4/0/t5111057/t5111057.png');
addPip('350', 'http://z5.ifrm.com/30126/4/0/t5111056/t5111056.png');
addPip('200', 'http://z5.ifrm.com/30126/4/0/t5111055/t5111055.png');
addPip('100', 'http://z5.ifrm.com/30126/4/0/t5111054/t5111054.png');
addPip('50', 'http://z5.ifrm.com/30126/4/0/t5111053/t5111053.png');
addPip('20', 'http://z5.ifrm.com/30126/4/0/t5111052/t5111052.png');
addPip('10', 'http://z5.ifrm.com/30126/4/0/t5111051/t5111051.png');
addPip('1', 'http://z5.ifrm.com/30126/4/0/t5111050/t5111050.png');


Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Code updated with Quozzo's help.
Offline Profile Goto Top
 
Quozzo
Member Avatar
By the blood of Sanguinius!
[ *  *  *  *  * ]
This is slightly off topic but how are you editing your post without the edit by... message? That got me really confused a few posts above as you said you edited it but i didn't see the evidence :stunned:
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
I despise the edit message, it looks tacky, so I have staff members edit out the edit message for me.
Offline Profile Goto Top
 
Deleted User
Deleted User

Cory
Jul 17 2012, 03:26 PM
Code updated with Quozzo's help.
The code update seemed to sort it! Cheers Cory.
Goto Top
 
Steve
Member Avatar
patriot
[ *  *  *  *  *  *  *  *  *  * ]
Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic