2015-01-18, 02:07 PM
Experts, i want to create MY Threads Button In Menu Bar. from which when users click my threads button they see their threads. is there any way to do this? if yes, then please please tell me because i am new to mybb.
{$menu_calendar}
<li><a href="{$mybb->settings['bburl']}/misc.php?action=help" class="help">{$lang->toplinks_help}</a></li>
{$menu_calendar}
<li><a href="{$mybb->settings['bburl']}/misc.php?action=help" class="help">{$lang->toplinks_help}</a></li>
<if ($mybb->user['uid'] != 0) then><li><a href="{$mybb->settings['bburl']}/search.php?action=finduserthreads&uid={$mybb->user['uid']}" class="mythreads">MyThreads</a></li></if>
(2015-01-18, 02:32 PM)SvePu Wrote: [ -> ]Hi,
download and install plugin "Template Conditionals".
Go to ACP >> Templates & Styles >> Templates >> YOUR THEME Templates >> Header Templates and open "header" to edit.
Search for:
{$menu_calendar} <li><a href="{$mybb->settings['bburl']}/misc.php?action=help" class="help">{$lang->toplinks_help}</a></li>
Replace this part with:
{$menu_calendar} <li><a href="{$mybb->settings['bburl']}/misc.php?action=help" class="help">{$lang->toplinks_help}</a></li> <if ($mybb->user['uid'] != 0) then><li><a href="{$mybb->settings['bburl']}/search.php?action=finduserthreads&uid={$mybb->user['uid']}" class="mythreads">MyThreads</a></li></if>
Save changes and try it...
<li><a href="search.php?action=finduserthreads&uid={$mybb->user['uid']}">View my threads</a></li>
anywhere between : <ul class="menu user_links">
<li><a href="#" onclick="MyBB.popupWindow('{$mybb->settings['bburl']}/misc.php?action=buddypopup', null, true); return false;">{$lang->welcome_open_buddy_list}</a></li>
<li><a href="{$mybb->settings['bburl']}/search.php?action=getnew">{$lang->welcome_newposts}</a></li>
<li><a href="{$mybb->settings['bburl']}/search.php?action=getdaily">{$lang->welcome_todaysposts}</a></li>
<li><a href="{$mybb->settings['bburl']}/private.php">{$lang->welcome_pms}</a> {$lang->welcome_pms_usage}</li>
</ul>
<ul class="menu user_links">
<li><a href="#" onclick="MyBB.popupWindow('{$mybb->settings['bburl']}/misc.php?action=buddypopup', null, true); return false;">{$lang->welcome_open_buddy_list}</a></li>
<li><a href="{$mybb->settings['bburl']}/search.php?action=getnew">{$lang->welcome_newposts}</a></li>
<a href="search.php?action=finduserthreads&uid={$mybb->user['uid']}">View my threads</a>
<li><a href="{$mybb->settings['bburl']}/search.php?action=getdaily">{$lang->welcome_todaysposts}</a></li>
<li><a href="{$mybb->settings['bburl']}/private.php">{$lang->welcome_pms}</a> {$lang->welcome_pms_usage}</li>
</ul>
(2015-01-18, 02:32 PM)SvePu Wrote: [ -> ]Hi,
download and install plugin "Template Conditionals".
Go to ACP >> Templates & Styles >> Templates >> YOUR THEME Templates >> Header Templates and open "header" to edit.
Search for:
{$menu_calendar} <li><a href="{$mybb->settings['bburl']}/misc.php?action=help" class="help">{$lang->toplinks_help}</a></li>
Replace this part with:
{$menu_calendar} <li><a href="{$mybb->settings['bburl']}/misc.php?action=help" class="help">{$lang->toplinks_help}</a></li> <if ($mybb->user['uid'] != 0) then><li><a href="{$mybb->settings['bburl']}/search.php?action=finduserthreads&uid={$mybb->user['uid']}" class="mythreads">MyThreads</a></li></if>
Save changes and try it...
{$menu_calendar}
<li><a href="{$mybb->settings['bburl']}/misc.php?action=help" class="help">{$lang->toplinks_help}</a></li>
<if ($mybb->user['uid'] != 0) then><li><a href="{$mybb->settings['bburl']}/search.php?action=finduserthreads&uid={$mybb->user['uid']}" class="mythreads">MyThreads</a></li></if>
{$menu_calendar}
<li><a href="{$mybb->settings['bburl']}/misc.php?action=help" class="help">{$lang->toplinks_help}</a></li>
<if ($mybb->user['uid'] != 0) then><li><a href="{$mybb->settings['bburl']}/search.php?action=finduserthreads&uid={$mybb->user['uid']}" class="mythreads">MyThreads</a></li></if>
<li><a href="{$mybb->settings['bburl']}/online.php" class="online">Who is Online</a></li>