System Administrator
Yönetici
İleti: 4153
Teşekkür Sayısı: 339
Çevrimdışı
Cinsiyet: 
|
 |
« : 05 Şubat 2011, 00:29:54 » |
|
Paket kurulum;Linkleri goruntulemenize izin verilmiyor.
Kayit olun veya Giris yapin
./Sources/Admin.php bul; // Note the comma!! The setting with automatically appear with the first mod to be added.sonrasına ekle; 'linktreehover' => array($txt['boardhover']),./Sources/ManageSettings.php bul; 'general' => 'ModifyGeneralModSettings',sonrasına ekle; 'linktreehover' => 'ModifyLinktreeHoverSettings',bul (dosyanın en sonunda) ?>öncesine ekle; function ModifyLinktreeHoverSettings($return_config = false) { global $txt, $scripturl, $context, $settings, $sc, $modSettings; $config_vars = array( array('check', 'enable_linktree_hover'), '', array('check', 'disable_linktree_first_page'), '', );
if ($return_config) return $config_vars;
// Saving? if (isset($_GET['save'])) { checkSession(); saveDBSettings($config_vars); writeLog(); redirectexit('action=admin;area=modsettings;sa=linktreehover'); }
$context['post_url'] = $scripturl . '?action=admin;area=modsettings;save;sa=linktreehover'; $context['settings_title'] = $txt['linktree_hover'];
prepareDBSettingContext($config_vars); }./index.php bul; require_once($sourcedir . '/Security.php');sonrasına ekle; // add Linktree hover include require_once($sourcedir . '/Boardhover-linktree.php');./SSI.php bul; require_once($sourcedir . '/Security.php'); sonrasına ekle; // add Linktree hover include require_once($sourcedir . '/Boardhover-linktree.php');Tema/index.template.php de bul; // Some browsers need an extra stylesheet due to bugs/compatibility issues.öncesine ekle; // Board hover mod needs to determine if IE exists to select hover stylesheet due to bugs/compatibility issues. if ($context['browser']['is_ie']) { echo ' <link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/css/boardhover-ie.css?rc4" />'; } else { echo ' <link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/css/boardhover.css?rc4" />'; }
bul; echo ' <div class="navigate_section"> <ul>';
// Each tree item has a URL and name. Some may have extra_before and extra_after. foreach ($context['linktree'] as $link_num => $tree) { echo ' <li', ($link_num == count($context['linktree']) - 1) ? ' class="last"' : '', '>';
// Show something before the link? if (isset($tree['extra_before'])) echo $tree['extra_before'];
// Show the link, including a URL if it should have one. echo $settings['linktree_link'] && isset($tree['url']) ? ' <a href="' . $tree['url'] . '"><span>' . $tree['name'] . '</span></a>' : '<span>' . $tree['name'] . '</span>';
// 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 ' </li>'; } echo ' </ul> </div>';
$shown_linktree = true; }değiştir; // Show the navigation tree with or without hovers. LinktrhMain();
$shown_linktree = true; }
function SMFLinkTree() { global $context, $settings, $options;
// Each tree item has a URL and name. Some may have extra_before and extra_after. foreach ($context['linktree'] as $link_num => $tree) { echo ' <li', ($link_num == count($context['linktree']) - 1) ? ' class="last"' : '', '>';
// Show something before the link? if (isset($tree['extra_before'])) echo $tree['extra_before'];
// Show the link, including a URL if it should have one. echo $settings['linktree_link'] && isset($tree['url']) ? ' <a href="' . $tree['url'] . '"><span>' . $tree['name'] . '</span></a>' : '<span>' . $tree['name'] . '</span>';
// 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 ' </li>'; } }bul; // Show the load time? if ($context['show_load_time'])değiştir; echo ' <ul class="reset"> <li>', '<a href="http://www.eastcoastrollingthunder.com" target="_blank" class="new_win">BH Mod © 2010</a>', '</li> </ul>';
// Show the load time? if ($context['show_load_time'])Tema/MessageIndex.template.php de bul; <tr id="board_', $board['id'], '" class="windowbg2">değiştir; <tr id="board_', $board['id'], '" class="windowbg2 windowbg2_hover">bul; <td class="info">değiştir; <td class="info" onclick="window.location.href=\'', $board['href'], '\'" name="b', $board['id'], '">bul; </td> <td class="lastpost">';
/* The board's and children's 'last_post's have: time, timestamp (a number that represents the time.), id (of the post), topic (topic id.), link, href, subject, start (where they should go for the first unread post.), and member. (which has id, name, link, href, username in it.) */ if (!empty($board['last_post']['id'])) echo ' <p><strong>', $txt['last_post'], '</strong> ', $txt['by'], ' ', $board['last_post']['member']['link'], '<br /> ', $txt['in'], ' ', $board['last_post']['link'], '<br /> ', $txt['on'], ' ', $board['last_post']['time'],' </p>';
echo 'değiştir; </td>';
/* The board's and children's 'last_post's have: time, timestamp (a number that represents the time.), id (of the post), topic (topic id.), link, href, subject, start (where they should go for the first unread post.), and member. (which has id, name, link, href, username in it.) */ if (!empty($board['last_post']['id'])) { echo ' <td class="lastpost" onclick="window.location.href=\'',$board['last_post']['href'],'\'"> <p><strong>', $txt['last_post'], '</strong> ', $txt['by'], ' ', $board['last_post']['member']['link'], '<br /> ', $txt['in'], ' ', $board['last_post']['link'], '<br /> ', $txt['on'], ' ', $board['last_post']['time'],' </p>'; } else { echo ' <td class="lastpost">'; } echo 'bul; if ($context['can_approve_posts'] && $topic['unapproved_posts'])
$color_class = !$topic['approved'] ? 'approvetbg' : 'approvebg';
// We start with locked and sticky topics.
elseif ($topic['is_sticky'] && $topic['is_locked'])
$color_class = 'stickybg locked_sticky';
// Sticky topics should get a different color, too.
elseif ($topic['is_sticky'])
$color_class = 'stickybg';
// Locked topics get special treatment as well.
elseif ($topic['is_locked'])
$color_class = 'lockedbg';
// Last, but not least: regular topics.
else
$color_class = 'windowbg';
// Some columns require a different shade of the color class.
$alternate_class = $color_class . '2'değiştir; if ($context['can_approve_posts'] && $topic['unapproved_posts']) {
$color_class = !$topic['approved'] ? 'approvetbg' : 'approvebg';
$hover_class = !$topic['approved'] ? 'approvetbg' : 'approvebg'; }
// We start with locked and sticky topics.
elseif ($topic['is_sticky'] && $topic['is_locked']) {
$color_class = 'stickybg locked_sticky';
$hover_class = 'stickybg'; }
// Sticky topics should get a different color, too.
elseif ($topic['is_sticky']) {
$color_class = 'stickybg';
$hover_class = 'stickybg'; }
// Locked topics get special treatment as well.
elseif ($topic['is_locked']) {
$color_class = 'lockedbg';
$hover_class = 'lockedbg'; }
// Last, but not least: regular topics.
else {
$color_class = 'windowbg';
$hover_class = 'windowbg'; }
// Some columns require a different shade of the color class.
$alternate_class = $color_class . '2';
$alt_hover_class = $hover_class . '2';
if($topic['new'] && $context['user']['is_logged'])
$boardhover_loc=$topic['new_href'];
else
$boardhover_loc=$topic['first_post']['href']bul; <td class="subject ', $alternate_class, '">değiştir; <td class="subject ', $alternate_class, ' ', $alt_hover_class, '_hover', '">bul; '\');"' : ''), '>değiştir; '\');"' : ''), ' onclick="window.location.href=\'', $boardhover_loc, '\'">bul; <td class="lastpost ', $alternate_class, '">değiştir; <td class="lastpost ', $alternate_class, ' ', $alt_hover_class, '_hover' , '" onclick="window.location.href=\'' ,$topic['last_post']['href'],'\'">Tema/BoardIndex.template.php de bul; <tr id="board_', $board['id'], '" class="windowbg2">değiştir; <tr id="board_', $board['id'], '" class="windowbg2 windowbg2_hover">bul; <dt><strong>', $post['link'], '</strong> ', $txt['by'], ' ', $post['poster']['link'], ' (', $post['board']['link'], ')</dt> <dd>', $post['time'], '</dd>değiştir; <div class="windowbg2_hover" onclick="window.location.href=\'', $post['href'], '\'"> <dt><strong>', $post['link'], '</strong> ', $txt['by'], ' ', $post['poster']['link'], ' (', $post['board']['link'], ')</dt> <dd>', $post['time'], '</dd></div>bul; <td class="info">değiştir; <td class="info" onclick="window.location.href=\'', $board['href'], '\'" name="b', $board['id'], '">bul; </td>
<td class="lastpost">';
/* The board's and children's 'last_post's have:
time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
link, href, subject, start (where they should go for the first unread post.),
and member. (which has id, name, link, href, username in it.) */
if (!empty($board['last_post']['id']))
echo '
<p><strong>', $txt['last_post'], '</strong> ', $txt['by'], ' ', $board['last_post']['member']['link'] , '<br />
', $txt['in'], ' ', $board['last_post']['link'], '<br />
', $txt['on'], ' ', $board['last_post']['time'],'
</p>';
echo 'değiştir; </td>';
/* The board's and children's 'last_post's have:
time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
link, href, subject, start (where they should go for the first unread post.),
and member. (which has id, name, link, href, username in it.) */
if (!empty($board['last_post']['id']))
echo '
<td class="lastpost" onclick="window.location.href=\'',$board['last_post']['href'],'\'">
<p><strong>', $txt['last_post'], '</strong> ', $txt['by'], ' ', $board['last_post']['member']['link'] , '<br />
', $txt['in'], ' ', $board['last_post']['link'], '<br />
', $txt['on'], ' ', $board['last_post']['time'],'
</p>';
else
echo '
<td class="lastpost">';
echo 'Tema/PersonalMessage.template.php de bul; <td>', ($context['display_mode'değiştir; <td class="windowbg2_hover" onclick="window.location.href=\'#msg', $message['id'], '\'">', ($context['display_mode'Tema/Memberlist.template.php de bul; <td class="windowbg lefttext">', $member['link'], '</td>değiştir; <td class="windowbg windowbg2_hover lefttext" onclick="window.location.href=\'index.php?action=profile;u=',$member['id'],'\'">', $member['link'], '</td>Dil dosyası eklemesi;Tema/languages/Modifications.turkish.php de bul; ?>üstüne ekle; // Begin BoardHover $txt['boardhover'] = 'BoardHover'; $txt['linktree_hover'] = 'Linktree ayarları'; $txt['enable_linktree_hover'] = 'Agac hover tum kullanicilar icin etkinlestir:'; $txt['disable_linktree_first_page'] = 'On sayfadan navigasyon agacini kaldir:'; // End BoardHoverÖnemli notlar;Pakette bulunan "RC3/Boardhover-linktree.php" dosyasını "./Sources" dizinine kopyalayın. Pakette bulunan "RC4/boardhover.css" dosyasını "./Themes/default/css/" dizinine kopyalayın. Pakette bulunan "RC4/boardhover-ie.css" dosyasını "./Themes/default/css/" dizinine kopyalayın. Pakette bulunan "pseudo-hover.htc" dosyasını "./Themes/default/scripts" dizinine kopyalayın. Paketteki install_db.php dosyasını forum anadizinine atıp 1 kerelik çalıştırın ve silin.
|