MyBB Community Forums

Full Version: Profile coding?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am new to MyBB and Icyboards, so I know not a lot about anything so I am going to need a lot of help.

I am looking for help with coding on my site, a profile remodel, as I am working on a roleplay site and would like our characters to have an actual profile and not just a thread with their details on a thread.

Is there anyone who can help me, because I'm lost.
You have profile field named bio, you can find it at ACP -> Configuration -> Custom Profile Fields. That can maybe be something like you are searching.

In profile you should go to User Cp -> Edit profile to edit that.

Also at ACP you can make it required Field at registration or show it on user's profile and / or add more profile fields and all.

Just say what exactly you need so I (or someone here) will try to suggest best way to da that and help you or create everything for you.
Sadly I'm not sure I understand anything of that.
Here is what I have, what I would like to be on a member's profile to fill in; http://prntscr.com/hhh8ah
Here is what it shows when a member edits their profile, it shows everything that I would like for them to fill in; http://prntscr.com/hhh917
But this is what it shows on the profile once saved; http://prntscr.com/hhh9b7

My site URL is; https://enendrrpg.icyboards.net/index.php

@ikerepc
I believe you want to display custom fields that you have added in Admin CP, to add those in profile go to your member_profile template and check if {$profilefields} is present. If not, add this to the template and save it.
(2017-11-30, 10:42 PM)Snyette Wrote: [ -> ]Sadly I'm not sure I understand anything of that.
Here is what I have, what I would like to be on a member's profile to fill in; http://prntscr.com/hhh8ah
Here is what it shows when a member edits their profile, it shows everything that I would like for them to fill in; http://prntscr.com/hhh917
But this is what it shows on the profile once saved; http://prntscr.com/hhh9b7

My site URL is; https://enendrrpg.icyboards.net/index.php

@ikerepc

Well, have you any changes in templates? I mean, did you changed something on your own or it is just theme?

Please check your member_profile template (can be found at ACP -> Templates and Style -> Templates -> Member Templates

And check if you have variable {$profilefields} somewhere inside it
[quote pid='1290753' dateline='1512103153']
Ikerepc
Well, have you any changes in templates? I mean, did you changed something on your own or it is just theme?

Please check your member_profile template (can be found at ACP -> Templates and Style -> Templates -> Member Templates

And check if you have variable {$profilefields} somewhere inside it

[/quote]

I cannot seem to locate {$profilefields} in that code for the Run & Hide theme.

Is there a way a MyBB Admin/Mod can edit the coding to accommodate what I'm after at all?

Here is the whole coding from in ACP - Templates and Style - Templates - Run and Hide Templates - Member Templates - Member Profile


Quote:<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->profile}</title>
{$headerinclude}
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/report.js?ver=1800"></script>
</head>
<body>
{$header}
    
    <!-- BEGIN PROFILE -->
    <table width="100%" class="tborder" cellpadding="0" cellspacing="0" style="padding-bottom: 0px;">
        <tr>
            <td valign="center" align="center" class="thead" colspan="2">
                {$formattedname}
            </td>
        </tr>
        <tr>
            <td valign="top" align="top" width="250">
                
<!-- BEING MINI-PROFILE AREA-->
<div class="pb_holder" style="margin: 10px;">
<div class="pb_container">
<div class="pb_content">

<div class="pb_avatar" style="background:url({$useravatar['image']});"></div>
    
    <div class="pb_info">
<!-- THIS IS THE MINI-AVATAR -->        
    <img src="{$userfields['fid4']}" width="199">
<!-- END OF MINI-AVATAR -->

<center><span class="usertitle">
        
        <!-- USERTITLE- THIS IS THE TEXT THAT
               APPEARS DIRECTLY BENEATH
               THE MINI-AVATAR -->
                    {$usertitle}
        <!-- END USERTITLE -->
        
</span></center>

<!-- THIS IS THE LINE BREAK -->
        <h1></h1>
<!-- END OF LINE BREAK -->

<div style="padding-left: 10px;">
    
        <!-- PROFILE FIELDS - USE pb_full
               FOR A FIELD THAT SPANS THE
               WIDTH OF THE ENTIRE PROFILE,
               USE pb_half FOR A FIELD THAT
               SPANS ONLY HALF -->
                    <div class="pb_half">{$memprofile['postnum']} Posts</div>
                    <div class="pb_half">{$memprofile['threadnum']} Threads</div>
                    <div class="pb_full">{$userfields['fid3']}</div>
                    <div class="pb_full">Registered: {$memregdate}</div>
        <!-- END OF PROFILE FIELDS -->
    
</div>

<!-- THIS IS THE LINE BREAK -->
        <h1></h1>
<!-- END OF LINE BREAK -->

<div style="padding-left: 10px;">
    
        <!-- PROFILE LINKS -->
            {$userfields['fid2']}
        <!-- END PROFILE LINKS -->
    
</div>

<!-- THIS IS THE LINE BREAK -->
        <h1></h1>
<!-- END OF LINE BREAK -->

<div class="pb_player">
    
    <!-- PLAYER NAME -->
        {$userfields['fid1']}
    <!-- END PLAYER NAME -->
    
</div>
</div>
</div>
</div>                
<!-- END MINI-PROFILE AREA -->
                    
            </td>
            <td valign="top" align="top">
                
                <!-- BEGIN BIOGRAPHY AND ACCOUNT INFORMATION AREA -->
                    <table width="98.5%" cellpadding="5" cellspacing="0" style="margin: 10px 10px 10px 0px; height: 400px;">
                        <tr>
                            <td valign="top" align="top" height="18" class="tcat">
                                Name
                            </td>
                            <td valign="top" align="top" height="18" class="tcat" width="250">
                                Age
                            </td>
                        </tr>
                        <tr class="forum_container">
                            <td valign="top" align="top">
                                <div style="padding-right: 5px; height: 330px; text-align: justify; overflow: auto;">
                                    
                                    <!-- BIOGRAPHY -->
                                        {$userfields['fid5']}
                                    <!-- END BIOGRAPHY -->
                                    
                                </div>
                            </td>
                            <td valign="top" align="top">
                                
                                <!-- ACCOUNT INFORMATION,
                                       EACH SEGMENT NEEDS TO HAVE
                                       <div class="profile_right"></div>
                                       SURROUNDING IT -->
                                
                                            
                                
                                </td>
                                    <!-- LINKED ACCOUNTS -->
                                        <i>Linked Accounts:</i> {$ibprofilelist}
                                    <!-- END LINKED ACCOUNTS -->
                                    
                                </span>
                            </td>
                        </tr>
                </table>
            <!-- END BIOGRAPHY AND ACCOUNT INFORMATION -->
                
            </td>
        </tr>
    </table>
    <!-- END PROFILE -->
    <p>
            {$modoptions}{$last_visit}
            {$adminoptions}
            <div style="text-align: center">{$buddy_options}{$ignore_options}{$report_options}</div>
        </td>
    </tr>
</table>
{$footer}
</body>
</html>