E ovako odlučio instalirati ovu sjajnu temu ApolloBB, sve modove uspješno dodao, ali jedan neče, to je Website button
treba izmjeniti index.themeplate.php, ja to sve uradim ali i se onda ovo dogodi
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg68.imageshack.us%2Fimg68%2F7074%2Fproblemtc7.jpg&hash=d5802810892ae3cf8de2db121a959842b0806b1e)
evo Index.themeplate.php, tačnije jedan dio u kojem sam dodao website button
// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"...
// Has a nice, cool style from Apollo.
function theme_linktree()
{
global $context, $settings, $options, $txt;
echo '
<table width="100%" cellspacing="1" cellpadding="0" border="0" align="center" class="nav" style="width:100%;margin:2px 0">
<tr>
<td class="nav" style="padding-left:4px" align="left">';
// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];
$navcond = '';
// If we're at the last link, make the link discolored.
if ($link_num == count($context['linktree']) -1)
$navcond = 'nav-current';
// Show the link, including a URL if it should have one.
echo '<strong>', $settings['linktree_link'] && isset($tree['url']) ? '<a href="' . $tree['url'] . '" class="nav '.$navcond.'">' . $tree['name'] . '</a>' : $tree['name'], '</strong>';
// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];
// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo ' » ';
}
echo '
</td>
</tr>
</table><br />';
}
// Show WebsiteButton
function show_websiteButton()
{
global $context, $txt, $modSettings;
echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '"> </td>' : '', '
<td valign="top" class="maintab_back">
<a href="', isset($modSettings['websiteButton_url']) ? $modSettings['websiteButton_url'] : 'http://www.roadrunner.cx', '" alt="', isset($txt['websiteButtonAlt_txt']) ? $txt['websiteButtonAlt_txt'] : 'Website', '">',
isset($txt['websiteButton_txt']) ? $txt['websiteButton_txt'] : 'Website', '</a>
</td>';
}
// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;
// Work out where we currently are.
$current_action = 'home';
if (in_array($context['current_action'], array('admin', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers')))
$current_action = 'admin';
if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))
$current_action = $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action = 'search';
if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';
// Open up our <div>.
echo'
<div id="bg_nav_links">';
// Show the [website] button.
show_websiteButton();
// Show the [home] button.
echo '
<a href="', $scripturl, '" ' , $current_action == 'home' ? 'class="nav_important"' : '' , '>' , $txt[103] , '</a> |';
// Show the [help] button.
echo '
<a href="', $scripturl, '?action=help" ' , $current_action == 'help' ? 'class="nav_important"' : '' , '>' , $txt[119] , '</a> |';
// How about the [search] button?
if ($context['allow_search'])
echo '
<a href="', $scripturl, '?action=search" ' , $current_action == 'search' ? 'class="nav_important"' : '' , '>' , $txt[182] , '</a> |';
// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo '
<a href="', $scripturl, '?action=admin" ' , $current_action == 'admin' ? 'class="nav_important"' : '' , '>' , $txt[2] , '</a> |';
// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo '
<a href="', $scripturl, '?action=profile" ' , $current_action == 'profile' ? 'class="nav_important"' : '' , '>' , $txt[79] , '</a> |';
// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo '
<a href="', $scripturl, '?action=pm" ' , $current_action == 'pm' ? 'class="nav_important"' : '' , '>' , $txt['pm_short'] , ' ('. $context['user']['unread_messages'] . ')' , '</a> |';
// The [calendar]!
if ($context['allow_calendar'])
echo '
<a href="', $scripturl, '?action=calendar" ' , $current_action == 'calendar' ? 'class="nav_important"' : '' , '>' , $txt['calendar24'] , '</a> |';
// the [member] list button
if ($context['allow_memberlist'])
echo '
<a href="', $scripturl, '?action=mlist" ' , $current_action == 'mlist' ? 'class="nav_important"' : '' , '>' , $txt[331] , '</a> |';
// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo '
<a href="', $scripturl, '?action=login" ' , $current_action == 'login' ? 'class="nav_important"' : '' , '>' , $txt[34] , '</a> |';
// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo '
<a href="', $scripturl, '?action=register" ' , $current_action == 'register' ? 'class="nav_important"' : '' , '>' , $txt[97] , '</a>';
// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo '
<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '" ' , $current_action == 'logout' ? 'class="nav_important"' : '' , '>' , $txt[108] , '</a>';
// Dummy place holder, to end things
echo'
</div>';
}
zahvalan bi bio na pomoči ;)
da se nadovežem na probleme sa ovom temom :(
sada je problem u topic descriptionu :'(
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.imagesforme.com%2Fimages%2F2959topicproblem.jpg&hash=73a45f65690b1fe110016c216550cabd48bc569d)
sigurno je kod dobro odradjen, jer ovo je drugi put da neprihvata dodatak, pa ako itko zna rješenje neka kaže jer ovu temu sam uradio u 5 boja, a ova dodatka dva bi došla mi vrlo dobro ;)
zna li itko? :-[
// Show the [website] button.
show_websiteButton();
Ovo nema veze s kodom, nije dobro napisano
Find:
// Show the [home] button.
Add before:
// Show the [website] button.
show_websiteButton();
tako meni piše da trebam uraditi, evo ponovo uradio ponovo neče :'(
Daj mi link na website i ja ti složim kod koji će raditi
www.fmbosnia.com
hvala unaprijed :D
Eto samo da javim da nisam još složio kod, ja sam mislio tu temu stavit na svoj forum ali mi čim je instaliram nabije u sat vremena oko 900 stranica grešaka a s forumom je sve u najboljem redu tako da zasad odustajem od te namjere jer je tema prepuna bugova izgleda
da jbg tema je orginalna za phpbb pa je konvertovana pa zbog toga :'(