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
  • Pages:
  • 1
  • 2
  • 4
[ C ] RPG Character Sheet
Topic Started: Jul 9 2015, 12:17 AM (1,631 Views)
Tyler Dream
Member Avatar
Member
[ *  *  *  * ]
ZB
http://thewizardlycommons.com/index/

I'm looking for a code that would create another profile page which only selected users would have that would display their character's avatar, stats, etc. I don't want profile fields, I'm looking for another profile page.

Thanks! :D
Offline Profile Goto Top
 
Replies:
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Code:
 
$('#RPG div:not(div.left)').addClass('meta_box').css('font-size', '10px');
Change that to this:
Code:
 
$('#RPG div:not(div.left)').css({
'font-size': '10px',
'background': $('table.profile td').css('background-color'),
'border': '1px solid ' + $('table.profile td').css('border-left-color'),
'padding': '10px 25px',
'line-height': '150%',
'margin': '10px 0'
});
Offline Profile Goto Top
 
Tyler Dream
Member Avatar
Member
[ *  *  *  * ]
Way better. Thank you!
Question: Where would I enter the group that would have access to this as mentioned in another post?
I would only this for one group.
Edited by Tyler Dream, Aug 1 2015, 05:42 PM.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Basically you're wanting to hide the profile fields from the Editing Profile page for all user groups but one?
Offline Profile Goto Top
 
Tyler Dream
Member Avatar
Member
[ *  *  *  * ]
Yes
Actually, 5 groups. Since it'll be 5 classes for the roleplay
Edited by Tyler Dream, Aug 5 2015, 03:21 AM.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Admin CP Posted Image Themes Posted Image Board Template Posted Image Below the Board
Code:
 
<script type="text/javascript">
$(function() {
var gIDS = [GROUP_ID, GROUP_ID, GROUP_ID];
var pFields = ['CHARACTER NAME', 'RACE', 'GENDER', 'AGE', 'BIRTHDATE', 'BIRTHSIGN', 'CLASS', 'MOTHER', 'FATHER', 'OTHER FAMILY', 'RELATIONSHIP STATUS', 'SPOUSE', 'HP', 'STA', 'MP', 'WEAPONS AND TOOLS', 'ARMOR AND ACCESSORIES', 'POWERS/ABILITIES', 'MAIN SKILLS', 'PERSONALITY', 'FRIENDS', 'SECRETS', 'AFFILIATIONS', 'TITLES', 'CHARACTER IMAGE', 'BIOGRAPHY', 'LIKES', 'DISLIKES'];

for (var i = 0; i < gIDS.length; i++) {
if ($.zb.stat.gid === gIDS[i]) {
$('#edit_profile td.c_desc').each(function() {
for (var x = 0; x < pFields.length; x++) {
if ($(this).text().toUpperCase() === pFields[x]) {
$(this).parent('tr').hide();
}
}
});
}
}
});
</script>
Change the GROUP_ID's to the group ID's of the user groups you wish to hide the profile fields from.
Offline Profile Goto Top
 
Tyler Dream
Member Avatar
Member
[ *  *  *  * ]
Thank you Cory! :D
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Is that all you needed for this code? Basically, is this request complete?
Offline Profile Goto Top
 
Tyler Dream
Member Avatar
Member
[ *  *  *  * ]
Yup! Thank you :)
Offline Profile Goto Top
 
ARTUR1234
Member
[ * ]
This sounds EXACTLY like what I want...is there any way that I would be able to get this code Cory?
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
You are free to use any codes in the code request forum.
Offline Profile Goto Top
 
Moonface
Member Avatar


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
 
0 users reading this topic
« Previous Topic · Closed Requests · Next Topic »
Locked Topic
  • Pages:
  • 1
  • 2
  • 4