Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#1
|
||||
|
||||
Displaying different usergroup titles on profiles
I wanted to add a title to my members profile pages where it listed what type member they are. So, with the help of my friend, Ittermat, we figured out how to get the call to work that will display whatever the member's group is. I know that's probably to most a very simple code, but I don't know anything about PHP lol I only know HTML and CSS. So, anyway, below is how we got it to work. - Open up your File Manager, and open class_userprofile.php - Go around to about line 116. It should be the Private Function aboutme area. In here is where you can type in whatever you want, but I used 'Title'. So, at the top of the other account information that was already there is where I placed my title area, but you can put it anywhere in here or call it something different. Here is my code:
Quote:
Quote:
Quote:
Note: You can also use this to call other things, too. Similar to the public pet profiles that call rarity and what not. Once I learn more about how to add things that isn't already part of the framework I'll edit this post to also talk about how to go about creating the thing you're wanting to have. Say, you want to be able to use a rarity since that's not something already in the Mysidia framework, you would have to add it to the database and go to a few areas in the files and add some code before it would call and display right. I already have added a rarity system into my site so I can re-look at how I did that and edit this topic with a tutorial. Whelp, that's it! :]
__________________
"You try you fail, you try you fail, but the only true failure is if you stop trying. So try again." - Haunted Mansion Last edited by Micolai; 06-18-2020 at 02:04 PM. |
#2
|
||||
|
||||
Delete this reply post, code is fixed.
__________________
"You try you fail, you try you fail, but the only true failure is if you stop trying. So try again." - Haunted Mansion Last edited by Micolai; 06-17-2020 at 10:05 AM. |
Tags |
display, profile, title, usergroup, usergroups |
|
|
What's New? |
What's Hot? |
What's Popular? |