After installing the Tiny Portal I wondered how can I add the "Forum" link on the top menu, so I can have access to it since I can't no longer see it on the Index page.
Thanks guys. :uglystupid2:
You needed to go into this file "index.template.php" to add the button for the forum in the theme you are using.
You need to found this
// Show the [home] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td nowrap="nowrap" valign="top" class="maintab_' , $current_action == 'home' ? 'active_back' : 'back2' , '">
<a href="', $scripturl, '">' , $txt[103] , '</a>
</td>' , $current_action == 'home' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
if($settings['TPortal_front_type']!='boardindex')
// Show the [forum] button.
echo ($current_action=='forum' || $context['browser']['is_ie4']) ? '<td class="maintab_active_first"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action=='forum' ? 'active_back' : 'back2' , '">
<a href="', $scripturl, '?action=forum">'.$txt['tp-forum'].'</a>
</td>' , $current_action=='forum' ? '<td class="maintab_active_last"> </td>' : '';
// Show the [help] button.
echo ($current_action == 'help' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td nowrap="nowrap" valign="top" class="maintab_' , $current_action == 'help' ? 'active_back' : 'back2' , '">
<a href="', $scripturl, '?action=help">' , $txt[119] , '</a>
</td>' , $current_action == 'help' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// How about the [search] button?
if ($context['allow_search'])
echo ($current_action == 'search' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td nowrap="nowrap" valign="top" class="maintab_' , $current_action == 'search' ? 'active_back' : 'back2' , '">
<a href="', $scripturl, '?action=search">' , $txt[182] , '</a>
</td>' , $current_action == 'search' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo ($current_action == 'admin' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td nowrap="nowrap" valign="top" class="maintab_' , $current_action == 'admin' ? 'active_back' : 'back2' , '">
<a href="', $scripturl, '?action=admin">' , $txt[2] , '</a>
</td>' , $current_action == 'admin' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo ($current_action == 'profile' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td nowrap="nowrap" valign="top" class="maintab_' , $current_action == 'profile' ? 'active_back' : 'back2' , '">
<a href="', $scripturl, '?action=profile">' , $txt[79] , '</a>
</td>' , $current_action == 'profile' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo ($current_action == 'pm' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td nowrap="nowrap" valign="top" class="maintab_' , $current_action == 'pm' ? 'active_back' : 'back2' , '">
<a href="', $scripturl, '?action=pm">' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</a>
</td>' , $current_action == 'pm' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// The [calendar]!
if ($context['allow_calendar'])
echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td nowrap="nowrap" valign="top" class="maintab_' , $current_action == 'calendar' ? 'active_back' : 'back2' , '">
<a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a>
</td>' , $current_action == 'calendar' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// the [member] list button
if ($context['allow_memberlist'])
echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td nowrap="nowrap" valign="top" class="maintab_' , $current_action == 'mlist' ? 'active_back' : 'back2' , '">
<a href="', $scripturl, '?action=mlist">' , $txt[331] , '</a>
</td>' , $current_action == 'mlist' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo ($current_action == 'login' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td nowrap="nowrap" valign="top" class="maintab_' , $current_action == 'login' ? 'active_back' : 'back2' , '">
<a href="', $scripturl, '?action=login">' , $txt[34] , '</a>
</td>' , $current_action == 'login' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo ($current_action == 'register' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td nowrap="nowrap" valign="top" class="maintab_' , $current_action == 'register' ? 'active_back' : 'back2' , '">
<a href="', $scripturl, '?action=register">' , $txt[97] , '</a>
</td>' , $current_action == 'register' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo ($current_action == 'logout' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td nowrap="nowrap" valign="top" class="maintab_' , $current_action == 'logout' ? 'active_back' : 'back2' , '">
<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">' , $txt[108] , '</a>
</td>' , $current_action == 'logout' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// The end of tab section.
If you have Admin>Settings>Front Page set to 'Go directly to forum index' the Forum button will not show because 'Home' & 'Forum' are the same thing.
Oh, Yea, if you set it to directly to the forum...
If you don't have the forum and home button its probably because you're using a theme that hasn't been converted for TP.
Thanks for the responses, adding the code that Queen gave me I could see the Forum, but it looks very ugly.
see it for yourselves: www.consolemaniak.com
here's my current theme code "SoftMC_Blue":
// Show the start of the tab section.
echo '
<table cellpadding="0" cellspacing="0" border="0">
<tr>';
// Show the [home] button.
echo '
<td align="center" valign="top"><img src="' . $settings['images_url'] . '/menu_devider.gif" width="31" height="28" alt="" /></td>
<td class="mainNav"><a href="', $scripturl, '">' , $txt[103] , '</a></td>';
if($settings['TPortal_front_type']!='boardindex')
// Show the [forum] button.
echo ($current_action=='forum' || $context['browser']['is_ie4']) ? '<td class="maintab_active_first"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action=='forum' ? 'active_back' : 'back2' , '">
<a href="', $scripturl, '?action=forum">'.$txt['tp-forum'].'</a>
</td>' , $current_action=='forum' ? '<td class="maintab_active_last"> </td>' : '';
// Show the [help] button.
echo '
<td align="center" valign="top"><img src="' . $settings['images_url'] . '/menu_devider.gif" width="31" height="28" alt="" /></td>
<td class="mainNav"><a href="', $scripturl, '?action=help">' , $txt[119] , '</a></td>';
// How about the [search] button?
if ($context['allow_search'])
echo '
<td align="center" valign="top"><img src="' . $settings['images_url'] . '/menu_devider.gif" width="31" height="28" alt="" /></td>
<td class="mainNav"><a href="', $scripturl, '?action=search" onClick="return overlay(this, \'subcontent\',\'bottom\')">' , $txt[182] , '<img src="', $settings['images_url'], '/search_down.gif" width="10" height="10" /></a>
<!--Do not remove outer most DIV tag with id="subcontent"-->
<DIV id="subcontent" style="position:absolute; border: 2px solid #3d3d3d; background-color: white; width: 210px; padding: 2px; display:none">
<table width="100%" border="0" cellpadding="0" cellspacing="1">
<tr>
<td class="catbg" align="left" valign="middle" style="color:#ffffff;height:20px;line-height:16px;">Quick Search</td>
</tr>
<tr>
<td height="26" align="left" valign="middle" class="windowbg">
<form action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '" style="margin: 0;">
<input type="text" name="search" value="" style="width: 150px;" />
<input type="submit" name="submit" value="GO" />
<input type="hidden" name="advanced" value="0" />';
// Search within current topic?
if (!empty($context['current_topic']['allow_search']))
echo '
<input type="hidden" name="topic" value="', $context['current_topic'], '" />';
// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']['allow_search']))
echo '
<input type="hidden" name="brd[', $context['current_board'], ']" value="', $context['current_board'], '" />';
if ($context['allow_search'])
echo '
</form></td>
</tr>
<tr>
<td height="20" align="center" valign="middle" class="windowbg"><a class="subNav-link" href="', $scripturl, '?action=search;advanced">Advanced Search</a></td>
</tr>
</table>
<div align="right" style="font-size:10px;"><a style="color:#000000;" href="#" onClick="overlayclose(\'subcontent\'); return false">[Close]</a></div>
</DIV>
</td>';
// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo '
<td align="center" valign="top"><img src="' . $settings['images_url'] . '/menu_devider.gif" width="31" height="28" alt="" /></td>
<td class="mainNav"><a href="', $scripturl, '?action=admin">' , $txt[2] , '</a></td>';
// The [calendar]!
if ($context['allow_calendar'])
echo '
<td align="center" valign="top"><img src="' . $settings['images_url'] . '/menu_devider.gif" width="31" height="28" alt="" /></td>
<td class="mainNav"><a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a></td>';
// the [member] list button
if ($context['allow_memberlist'])
echo '
<td align="center" valign="top"><img src="' . $settings['images_url'] . '/menu_devider.gif" width="31" height="28" alt="" /></td>
<td class="mainNav"><a href="', $scripturl, '?action=mlist">' , $txt[331] , '</a></td>';
// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo '
<td align="center" valign="top"><img src="' . $settings['images_url'] . '/menu_devider.gif" width="31" height="28" alt="" /></td>
<td class="mainNav"><a href="', $scripturl, '?action=login">' , $txt[34] , '</a></td>';
// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo '
<td align="center" valign="top"><img src="' . $settings['images_url'] . '/menu_devider.gif" width="31" height="28" alt="" /></td>
<td class="mainNav"><a href="', $scripturl, '?action=register">' , $txt[97] , '</a></td>';
// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo '
<td align="center" valign="top"><img src="' . $settings['images_url'] . '/menu_devider.gif" width="31" height="28" alt="" /></td>
<td class="mainNav"><a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">' , $txt[108] , '</a></td>';
// How about the [quick links] button?
if ($context['user']['is_logged'])
echo '
<td align="center" valign="top"><img src="' . $settings['images_url'] . '/menu_devider.gif" width="31" height="28" alt="" /></td>
<td class="mainNav"><a href="', $scripturl, '#quicklinks" onClick="return overlay(this, \'quicklinks\',\'bottom\')">Quick Links<img src="', $settings['images_url'], '/search_down.gif" width="10" height="10" /></a>
<!--Do not remove outer most DIV tag with id="quicklinks"-->
<DIV id="quicklinks" style="position:absolute; border: 2px solid #3d3d3d; background-color: white; width: 150px; padding: 2px; display:none">
<table width="100%" border="0" cellpadding="0" cellspacing="1">
<tr>
<td class="catbg" align="left" valign="middle" style="color:#ffffff;height:20px;line-height:16px;">Quick Links</td>
</tr>
<tr>
<td height="20" align="left" valign="middle" class="windowbg"><a class="subNav-link" href="', $scripturl, '?action=unread">New Posts</a></td>
</tr>
<tr>
<td height="20" align="left" valign="middle" class="windowbg"><a class="subNav-link" href="', $scripturl, '?action=unreadreplies">New Replies</a></td>
</tr>
<tr>
<td class="catbg" align="left" valign="middle" style="color:#ffffff;height:20px;line-height:16px;">User Settings</td>
</tr>
<tr>
<td height="20" align="left" valign="middle" class="windowbg"><a class="subNav-link" href="', $scripturl, '?action=profile">View Profile</a></td>
</tr>
<tr>
<td height="20" align="left" valign="middle" class="windowbg"><a class="subNav-link" href="', $scripturl, '?action=profile;u=', $context['user']['id'], ';sa=account">Account Settings</a></td>
</tr>
<tr>
<td height="20" align="left" valign="middle" class="windowbg"><a class="subNav-link" href="', $scripturl, '?action=profile;u=', $context['user']['id'], ';sa=forumProfile">Edit Profile</a></td>
</tr>
</table>
<div align="right" style="font-size:10px;"><a style="color:#000000;" href="#" onClick="overlayclose(\'quicklinks\'); return false">[Close]</a></div>
</DIV>
</td>';
// The end of tab section.
Thanks!!
PS: Is there a way to combine, both portal and forum with this theme? I can't see the blocks.
Well, You needed to use a TP Theme version for your forum.
To me you are using a SMF theme only and it's will cause major problem's for you too.
And IchBinâ„¢ is right about that theme too.
Yes, there's more to the TP version than just adding a button. You'll need to add the code for the sidebars unless this theme has already been done.
So sad, I loved this theme :( I'll try to find info about a custom TP version, if not I guess I'll have to stick with the news system of SMF.
Thanks guys ^^
Just a minute, I think it's okay to have to portal like that, for the other reasons I still have the forum right? So would you guys lend me some help to make the "Forum" link just like the others, is it possible?
Amazing what you can find when you use the search feature that every SMF forum has built in...
http://www.tinyportal.net/index.php?topic=11033.0
Im sorry, You have to have the TP theme Version on your forum. Plus you don't have the copyright for TP on the forum too. Here a screenshot.
A SMF Version Only. WOnt show nothing for TP.. It's willl cause major problem's and I know because I have happen to me few time's
PLease install the TP THeme Version on your forum.
You have to have the copy right for TP.
here a screenshot with the copy right with TP too
First screenshot have no copy right with TP on his forum
Sceand screenshot have the copy right with TP on this forum
Im not trying to be mean or rude.
Oh my! Simply beatiful, thanks for the link Chuck I'm gonna try it right now!
Wow WoW Wooooow!! All the features that now it has!!
Sorry I can't control myself, the shout box! :P
Thanks guys, the problem is solved.
Guys, I have a little problem here, it seems like the index_template is no longer for google ads, nor the banners I had from the beginning. I've tried to locate the TinyPortal v0.9.8 text in all the phps but I can't find it. Should be on the Default Theme, but there's so many phps :o
Please start a separate topic for other questions instead of making a topic go all different directions with different problems.
You are right. The topic ends here, thanks.
your most welcome