SimplePortal

Support => International Support => Turkish (Türkçe) => Topic started by: !!kaos!! on September 07, 2009, 11:39:56 AM

Title: Simpleportal 2.3 başka temaya menu ekleme
Post by: !!kaos!! on September 07, 2009, 11:39:56 AM
SimplePortal 2.1 kullanıyordum 2.3 sürümü ile güncelledim ama kullandığım temaya menü ekleyemiyorum veya aktif olmuyor

daha önceki sürümünde böyle kullanıyordum aktif oluyordu ama şimdiki sürümde aktifleşmiyor.

Code: [Select]
   // Show the [forum] button.
   if(!empty($context['portalactive']))
   echo '<li', $current_action == 'forum' ? ' class="current_page"' : '', '><a href="', $scripturl, '?action=forum">Forum</a></li>';

bunu:
Code: [Select]
if(!empty($context['portalactive']))
bununla değişiyorum olmuyor:
Code: [Select]
if (in_array($modSettings['sp_portal_mode'], array(1, 3)))
Edit: Sorunu halletim
Title: Re: Simpleportal 2.3 başka temaya menu ekleme
Post by: grafitus on September 07, 2009, 01:53:59 PM
Şu anda evde değilim. Tam olarak kodu veremiyeceğim. Siz aşağıdaki Default temaya göre olan kodu temnıza göre düzenleyin:
Code: [Select]
// Show the [home] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'home' ? 'active_back' : 'back' , '">
<a href="', ($modSettings['sp_portal_mode'] == 3 ? $modSettings['sp_standalone_url'] : $scripturl), '">' , $txt[103] , '</a>
</td>' , $current_action == 'home' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

// Show the [forum] button.
if (in_array($modSettings['sp_portal_mode'], array(1, 3)))
echo ($current_action=='forum' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'forum' ? 'active_back' : 'back' , '">
<a href="', $scripturl . ($modSettings['sp_portal_mode'] == 1 ? '?action=forum' : ''), '">', empty($txt['sp-forum']) ? 'Forum' : $txt['sp-forum'], '</a>
</td>' , $current_action=='forum' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
Title: Re: Simpleportal 2.3 başka temaya menu ekleme
Post by: tc bolubeyi on September 07, 2009, 02:03:29 PM
kullandığınız temanın index.template.php sini ve index.turkish.php sini verirseniz eklemeye çalışırım.
Title: Re: Simpleportal 2.3 başka temaya menu ekleme
Post by: !!kaos!! on September 07, 2009, 04:13:07 PM
Teşekkürler Arkadaşlar Sorunu Şöyle Halletim, Kullandığım Temada Bu Kod Yoktu Ekledim Sorun Hal Oldu...

Code: [Select]
// Work out where we currently are.
global $modSettings;
$current_action = $modSettings['sp_portal_mode'] == 3 && empty($context['standalone']) ? 'forum' : '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', 'manageportal')))
$current_action = 'admin';
if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm', 'forum')))
$current_action = $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action = 'search';
if ((isset($_GET['board']) || isset($_GET['topic']) || in_array($context['current_action'], array('unread', 'unreadreplies'))) && in_array($modSettings['sp_portal_mode'], array(1, 3)))
$current_action = 'forum';
if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';

// Are we using right-to-left orientation?
if ($context['right_to_left'])
{
$first = 'last';
$last = 'first';
}
else
{
$first = 'first';
$last = 'last';
}
Title: Re: Simpleportal 2.3 başka temaya menu ekleme
Post by: mitenka on October 11, 2009, 03:58:02 PM
kardeşim aynı sorun bendede var banada bi yardımcı olsanız?
SimplePortal 2.3.8 © 2008-2024, SimplePortal