MyBB Community Forums

Full Version: Profile comments
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I installed the profile comments plugin but it comes up twice in the profile. I know I have to delete some sort of code thats added twice but not sure where to find it.

[Image: 7410-1269125131-profilecomments_4.png]


ALSO

On the user cp the game section options are added twice...

[Image: pFCBG.png]

1. Go to Admin CP > Templates & Style > Templates > Your Template Set > Member Templates > member_profile.

2. Copy and paste the contents here.

3. Go to Admin CP > Templates & Style > Templates > Your Template Set > User Control Panel Templates > usercp_nav.

4. Copy and paste the contents here.
Go to your ACP > Templates & Style > Your Theme > Member Templates > member_profile and fine the line below;
<!-- ProfileComments -->{$comments_index}<!-- /ProfileComments -->

If it's listed twice just delete one of them and then it should fix.

For your Game Section problem go into your theme templates again, but this time go to User Control Panel Templates > usercp_nav and find the following lines;
<tbody style="{$collapsed['usercpgames_e']}" id="usercpgames_e">
	<tr><td class="trow1 smalltext"><a href="games.php?action=settings" class="usercp_nav_item usercp_nav_options">{$lang->your_settings}</a></td></tr>
</tbody>

If you see it listed twice then remove one of them. Remember to only remove the duplicate line.
Fixed the profile comment thing thanks koz...

Here the content of my usercp_nav for the second problem...

Quote:<td width="{$lang->ucp_nav_width}" valign="top">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead"><strong>{$lang->ucp_nav_menu}</strong></td>
</tr>
<tr>
<td class="trow1 smalltext"><a href="usercp.php" class="usercp_nav_item usercp_nav_home">{$lang->ucp_nav_home}</a></td>
</tr>
{$usercpmenu}
<tr>
<td class="tcat">
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['usercpgames']}.gif" id="usercpgames_img" class="expander" alt="[-]" title="[-]" /></div>
<div><span class="smalltext"><strong>{$lang->gamesection}</strong></span></div>
</td>
</tr>
<tbody style="{$collapsed['usercpgames_e']}" id="usercpgames_e">
<tr><td class="trow1 smalltext"><a href="games.php?action=settings" class="usercp_nav_item usercp_nav_options">{$lang->your_settings}</a></td></tr>
</tbody>
<tr>
<td class="tcat">
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['usercpgames']}.gif" id="usercpgames_img" class="expander" alt="[-]" title="[-]" /></div>
<div><span class="smalltext"><strong>{$lang->gamesection}</strong></span></div>
</td>
</tr>
<tbody style="{$collapsed['usercpgames_e']}" id="usercpgames_e">
<tr><td class="trow1 smalltext"><a href="games.php?action=settings" class="usercp_nav_item usercp_nav_options">{$lang->your_settings}</a></td></tr>
</tbody>
</table>
</td>
Make this your new usercp_nav

<td width="{$lang->ucp_nav_width}" valign="top">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead"><strong>{$lang->ucp_nav_menu}</strong></td>
</tr>
<tr>
<td class="trow1 smalltext"><a href="usercp.php" class="usercp_nav_item usercp_nav_home">{$lang->ucp_nav_home}</a></td>
</tr>
{$usercpmenu}
<tr>
<td class="tcat">
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['usercpgames']}.gif" id="usercpgames_img" class="expander" alt="[-]" title="[-]" /></div>
<div><span class="smalltext"><strong>{$lang->gamesection}</strong></span></div>
</td>
</tr>
<tbody style="{$collapsed['usercpgames_e']}" id="usercpgames_e">
<tr><td class="trow1 smalltext"><a href="games.php?action=settings" class="usercp_nav_item usercp_nav_options">{$lang->your_settings}</a></td></tr>
</tbody>
</table>
</td>
hero. It worked all solved thanks mate.
It's no problem at all united-news, just here to help.
This looks quite good, does it allow guest comments though?
No guest comments, as far as I know. Only registered users can comment on other's profiles.

http://mods.mybb.com/view/profile-comments
let me start off by saying great mod. I do have the same problem as the last person. I had it comig up twice in the profile itself. I managed to get that fixed by your post. I do however have it twice the navigation. I have looked everywhere it the usercp files and can't see it doubled anywhere. This is on a custom theme I made. any help would be great.

Sorry for double post, it duplicated in the header_welcomeblock_member as well. Took me awhile but got it.