MyBB Community Forums

Full Version: Mood Manager
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
how do i add the option to change mood in custom theme. It will on show up in the my defualt theme.
link to forum www.rbdtechzone .com
could you post the header template of the theme here to check...
<a name="top" id="top"></a>
<div id="mainwidth">

<div class="menu" style="margin-top: 0px;">
<ul>
<li id="nav-portal"><a href="{$mybb->settings['bburl']}/portal.php"><i style="font-size: 14px;" class="fa fa-home fa-fw"></i> Home</a></li>

<li id="nav-forums"> <a href="{$mybb->settings['bburl']}/index.php"><i style="font-size: 14px;" class="fa fa-globe fa-fw"></i> Forums</a></li>

<li id="nav-search"> <a href="{$mybb->settings['bburl']}/search.php"><i style="font-size: 14px;" class="fa fa-search fa-fw"></i> Search</a></li>

<li id="nav-member"> <a href="{$mybb->settings['bburl']}/memberlist.php"><i style="font-size: 14px;" class="fa fa-user fa-fw"></i> Members</a></li>

<li id="nav-calendar"> <a href="{$mybb->settings['bburl']}/calendar.php"><i style="font-size: 14px;" class="fa fa-calendar fa-fw"></i> Calendar</a></li>

<li id="nav-help"> <a href="{$mybb->settings['bburl']}/misc.php?action=help"><i style="font-size: 14px;" class="fa fa-life-ring fa-fw"></i> Help</a></li>
<ul>
</div>

<br />

<div id="float_right"> {$welcomeblock}</div>
<div id="logo" style="margin-top: -20px;">
<div class="wrapper">
<div id="float_left"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" /></a></div>
</div>
</div>
<div id="mbox" style="margin-top: -20px;">
<div id="container">
<a name="top" id="top"></a>
<div id="header">
<div id="content">
<div class="wrapper">
<navigation><br />
{$bannedwarning}
{$bbclosedwarning}
{$unreadreports}
{$pending_joinrequests}
{$awaitingusers}
{$pm_notice}

.......
in the template find this part....

<li id="nav-help"> <a href="{$mybb->settings['bburl']}/misc.php?action=help"><i style="font-size: 14px;" class="fa fa-life-ring fa-fw"></i> Help</a></li>


and change it like this....

<li id="nav-help"> <a href="{$mybb->settings['bburl']}/misc.php?action=help"><i style="font-size: 14px;" class="fa fa-life-ring fa-fw"></i> Help</a></li>
{$moodlink}
(2014-12-30, 05:15 PM)mmadhankumar Wrote: [ -> ]in the template find this part....


<li id="nav-help"> <a href="{$mybb->settings['bburl']}/misc.php?action=help"><i style="font-size: 14px;" class="fa fa-life-ring fa-fw"></i> Help</a></li>


and change it like this....


<li id="nav-help"> <a href="{$mybb->settings['bburl']}/misc.php?action=help"><i style="font-size: 14px;" class="fa fa-life-ring fa-fw"></i> Help</a></li>
{$moodlink}

And how would i remove this if i wanted too ?

(2014-12-30, 05:15 PM)mmadhankumar Wrote: [ -> ]in the template find this part....


<li id="nav-help"> <a href="{$mybb->settings['bburl']}/misc.php?action=help"><i style="font-size: 14px;" class="fa fa-life-ring fa-fw"></i> Help</a></li>


and change it like this....


<li id="nav-help"> <a href="{$mybb->settings['bburl']}/misc.php?action=help"><i style="font-size: 14px;" class="fa fa-life-ring fa-fw"></i> Help</a></li>
{$moodlink}

do you know how to add it to the drop down menu next to my profile instead of top header. I would really appreciate if u could help me figure this out.
(2014-12-30, 05:23 PM)noswagbro Wrote: [ -> ]do you know how to add it to the drop down menu next to my profile instead of top header. I would really appreciate if u could help me figure this out.

could you post your header_welcomeblock_member template....
(2014-12-30, 05:49 PM)mmadhankumar Wrote: [ -> ]
(2014-12-30, 05:23 PM)noswagbro Wrote: [ -> ]do you know how to add it to the drop down menu next to my profile instead of top header. I would really appreciate if u could help me figure this out.

could you post your header_welcomeblock_member template....
<div class="float_right" style="margin-top: -20px;">

<font color="#fff">Welcome back, </font>
<div class="dropdown" id="dropdown">
<input type="checkbox" id="drop1" />
<label for="drop1" class="dropdown_button"><font color="#fff">{$mybb->user['username']}
<i style="font-size: 14px;" class="fa fa-angle-down fa-fw"></i></font>
</label>
<ul class="dropdown_content">
<li><a href="{$mybb->settings['bburl']}/usercp.php">&nbsp; User panel</a></li>
<li><a href="{$mybb->settings['bburl']}/member.php?action=logout&amp;logoutkey={$mybb->user['logoutkey']}">&nbsp; Log out</a></li>
<li><a href="{$mybb->settings['bburl']}/usercp.php?action=profile">&nbsp; Edit profile</a></li>
<li><a href="{$mybb->settings['bburl']}/usercp.php?action=options">&nbsp; Edit options</a></li>
<li><a href="{$mybb->settings['bburl']}/usercp.php?action=avatar">&nbsp; Edit avatar</a></li>
<li><a href="{$mybb->settings['bburl']}/usercp.php?action=editsig">&nbsp; Edit signature</a></li>
<li><a href="#" onclick="MyBB.popupWindow('{$mybb->settings['bburl']}/misc.php?action=buddypopup', null, true); return false;">&nbsp; Buddy list</a></li>
<li><a href="{$mybb->settings['bburl']}/search.php?action=getnew">&nbsp; {$lang->welcome_newposts}</a></li>
<li><a href="{$mybb->settings['bburl']}/search.php?action=getdaily">&nbsp; {$lang->welcome_todaysposts}</a></li>
</ul>
</div>

<a href="{$mybb->settings['bburl']}/private.php">
<font color="#fff"><i style="font-size: 16px;" class="fa fa-bell-o fa-fw"></i></font></a>
<a class="inbox" href="{$mybb->settings['bburl']}/private.php" id="pm_notification" title="Private Messages">{$mybb->user['pms_unread']}</a>

{$admincplink}
{$modcplink}
<br />

</div>


<script type="text/javascript">
$(document).click(function (e)
{

var container = $(".dropdown_content");

if ($(e.target).closest('.dropdown').length === 0)
{
container.fadeOut('slow');

}

});

$('.dropdown_button').click( function() {
$(".dropdown_content").fadeToggle('slow');
});
</script>
find this part....

<li><a href="{$mybb->settings['bburl']}/search.php?action=getdaily">&nbsp; {$lang->welcome_todaysposts}</a></li>
 </ul>


and add the moodlink like this....

<li><a href="{$mybb->settings['bburl']}/search.php?action=getdaily">&nbsp; {$lang->welcome_todaysposts}</a></li>
{$moodlink}
 </ul>
Where do I edit $moodlink?