Similar Topics 1.0.3 Kurulumu |
Lütfen Dikkat!
![]() ![]() |
Similar Topics 1.0.3 Kurulumu |
23.07.2007, 13:50:30
Son düzenleme tarihi : 23.07.2007 17:06 (cuneyt)
İleti
#1
|
|
|
IPB-Moderatör
Grup: Grup: IPB-Pro
İleti: 995 Açtığı Konu Sayısı:90 Mod Upload: 18 Katılım: 25.10.2005 Nereden: Plovdiv Skin: IPBAccess v2.5 NJ2 Üye No: 102
Sunucu OS: Linux
IPB Sürüm: IPB 2.3.x Ülke :
|
Similar Topics 1.0.3 Kurulumu
IPB 2.3.x için anlatılmıştır Konulara girdiğinizde benzer konuları gösteren eklenti! (IMG:http://www.ipbaccess.com/forum/uploads/U102-1185196708.jpg) Kurulumu Eklentiyi download sayfamızdan indiriyorsunuz! ( indir ) CuteFTP veya benzeri bir programla hostunuza bağlanın ve forum dizininize mod_install.php mod_templates.xml dosyalarını kopyalayın. Dosya kopyalama işlemi bittikten sonra mod_install.php dosyasının yolunu adres kısmına girerek dosyayı çalıştırın (IMG:http://www.ipbaccess.com/forum/uploads/U102-1185196805.jpg) Dosyayı çalıştırdığınızda sizden admin (1) ve admin şifresi (2) isteyecek Onları girdikten sonra Logine tıklayarak devam edin (IMG:http://www.ipbaccess.com/forum/uploads/U102-1185196728.jpg) Admin şifreniz doğruysa aşağıdaki install/upgrade ekranı gelecek (IMG:http://www.ipbaccess.com/forum/uploads/U102-1185197205.jpg) Fresh Install/Re-Install Yükle/ Yeniden Yükle Upgrade Güncelle ( versiyon yükselt ) Uninstall Eklentiyi Kaldır Biz ilk defa yükleyeceğimiz için Fresh Install/Re ınstall butonuna tıklıyoruz. Karşınıza cıkan pencereden CLICK HERE TO CONTINUE yazısına tıklayın. (IMG:http://www.ipbaccess.com/forum/uploads/U102-1185196994.jpg) Vee kurulum işlemini sona erdirmek için CLICK HERE TO FINISH yazısına tıklıyoruz (IMG:http://www.ipbaccess.com/forum/uploads/U102-1185197118.jpg) Tebrikler Scripti kurdunuz.. Foruma dönmek için RETURN BOARD INDEX yazısına tıklayın.. (IMG:http://www.ipbaccess.com/forum/uploads/U102-1185197478.jpg) İlk aşama bitti (IMG:http://www.ipbaccess.com/forum/style_emoticons/default/smile.gif) Sıra Editlemelerde.. /sources/action_public/topic.php dosyasını açıyoruz ve aşağıdaki kodu buluyoruz CODE //----------------------------------------- // Process users active in this forum //----------------------------------------- Ve ÜZERİNE aşağıdaki kodu ekliyoruz CODE if (strlen($this->topic['title']) >= $this->ipsclass->vars['min_search_word']) { $this->output = str_replace("<!--IBF.QUICK_REPLY_OPEN-->", "<!--IBF.QUICK_REPLY_OPEN-->\n".$this->similar_topics($this->topic['title']), $this->output); } topics.php den çıkmadan aşağıdaki kodu bulun. CODE //----------------------------------------- // Topic multi-moderation - yay! //----------------------------------------- $this->output = str_replace( "<!--IBF.MULTIMOD-->", $this->multi_moderation(), $this->output ); // Pass it to our print routine $this->ipsclass->print->add_output( $this->output ); $this->ipsclass->print->do_output( array( 'TITLE' => $this->topic['title'] . ' - ' . $this->ipsclass->vars['board_name'], 'JS' => $this->ipsclass->compiled_templates['skin_global']->get_rte_css(), 'NAV' => $this->nav, ) ); } Ve ALTINA Aşağıdaki kodu ekleyin.. ( Orjinal dosyada üzerine ekleyin diyordu yanılmıyorsam!! Dikkat edin ) CODE /*-------------------------------------------------------------------------*/ // Similar Topics /*-------------------------------------------------------------------------*/ function similar_topics($title) { $read_array = array(); $last_visit = ($this->ipsclass->member['last_visit'] > $this->ipsclass->member['members_markers']['board']) ? $this->ipsclass->member['last_visit'] : $this->ipsclass->member['members_markers']['board']; $db_where[] = "tid<>{$this->topic['tid']} AND approved=1"; # Get forums we're allowed to read foreach ($this->ipsclass->forums->forum_by_id as $k => $v) { if (! $v['password'] || $this->ipsclass->check_perms($v['read_perms']) == TRUE) { $forumids[] = $v['id']; } } if (is_array($forumids) && count($forumids)) { $db_where[] = "forum_id IN (".implode(",", $forumids).")"; } if ($read = $this->ipsclass->my_getcookie('topicsread')) { if ($read != "-1") { $read_array = $this->ipsclass->clean_int_array(unserialize(stripslashes($read))); } else { $read_array = array(); } } # Check input if (($this->ipsclass->DB->mysql_version >= 40010) && ($this->ipsclass->vars['search_sql_method'] == 'ftext')) { $db_where[] = "MATCH (title) AGAINST ('{$title}' IN BOOLEAN MODE)"; } else { if (substr_count($title, " ")) { $title = strtolower($title); $t_str = explode(" ", $title); $words = array(); foreach ($t_str as $t) { $t = preg_replace("#[\W]#", "", $t); if ($t && strlen($t) >= $this->ipsclass->vars['min_search_word']) { $words[] = "LOWER(title) LIKE '{$t}%'"; } } if (count($words)) { $db_where[] = "(".implode(" OR ", $words).")"; } else { $db_where[] = "LOWER(title) LIKE '%{$title}%'"; } } else { $db_where[] = "LOWER(title) LIKE '%{$title}%'"; } } # Get data $this->ipsclass->DB->simple_construct(array('select' => '*', 'from' => 'topics', 'where' => implode(" AND ", $db_where), 'order' => 'last_post DESC', 'limit' => array(0,5))); $sql = $this->ipsclass->DB->simple_exec(); if (! $this->ipsclass->DB->get_num_rows()) return FALSE; while ($r = $this->ipsclass->DB->fetch_row($sql)) { $this->ipsclass->forum_read[$r['forum_id']] = isset($this->ipsclass->forum_read[$r['forum_id'] ]) ? $this->ipsclass->forum_read[$r['forum_id']] : 0; $read_array[$r['tid']] = isset($read_array[$r['tid']]) ? $read_array[$r['tid']] : 0; $last_time = ($read_array[$r['tid']] > $last_visit) ? $read_array[$r['tid']] : $last_visit; $show_dots = ""; if ($this->ipsclass->forum_read[$r['forum_id']] > $last_time) { $last_time = $this->ipsclass->forum_read[$r['forum_id']]; } if ($this->ipsclass->member['id'] && (isset($r['author_id']) & $r['author_id'])) { $show_dots = 1; } if ($r['pinned']) { $r['prefix'] = $this->ipsclass->vars['pre_pinned']; } elseif ($r['poll_state']) { $r['prefix'] = $this->ipsclass->vars['pre_polls'].' '; } if (isset($this->ipsclass->member['is_mod']) && $this->ipsclass->member['is_mod']) { $r['posts'] += intval($r['topic_queuedposts']); } if ($last_time && ($r['last_post'] > $last_time)) { $r['go_new_post'] = "<a href='{$this->ipsclass->base_url}showtopic={$r['tid']}&view=getnewpost'><{NEW_POST}></a>"; } else { $r['go_new_post'] = ""; } $r['views'] = $this->ipsclass->do_number_format(intval($r['views'])); $r['posts'] = $this->ipsclass->do_number_format(intval($r['posts'])); $r['start_date'] = $this->ipsclass->get_date($r['start_date'], 'LONG'); $r['last_post'] = $this->ipsclass->get_date($r['last_post'], 'SHORT'); $r['last_name'] = $r['last_poster_id'] ? $this->ipsclass->make_profile_link($r['last_poster_name'], $r['last_poster_id']) : "-".$r['last_poster_name']."-"; $r['start_name'] = $r['starter_id'] ? $this->ipsclass->make_profile_link($r['starter_name'], $r['starter_id']) : "-".$r['starter_name']."-"; $r['folder_img'] = $this->ipsclass->folder_icon($r, $show_dots, $last_time); $r['attach_img'] = $r['topic_hasattach'] ? "<a href='#' onclick=\"PopUp('{$this->ipsclass->base_url}act=attach&code=showtopic&tid={$r['tid']}', 'Attach{$r['tid']}', 500,400); return false;\" title=\"".intval($r['topic_hasattach'])." {$this->ipsclass->lang['st_attach']}\"><{ATTACH_ICON}></a>" : ""; $data['st_row'] .= $this->ipsclass->compiled_templates['skin_topic']->topic_display_similar_row($r); } $collapsed_ids = ','.$this->ipsclass->my_getcookie('collapseprefs').','; $data['div_fo'] = 'show'; $data['div_fc'] = 'none'; if (strstr($collapsed_ids, ',stopics,')) { $data['div_fo'] = 'none'; $data['div_fc'] = 'show'; } return $this->ipsclass->compiled_templates['skin_topic']->topic_display_similar($data); } Editleme işlemi topics.php için bitti sıra dil dosyalarında (IMG:http://www.ipbaccess.com/forum/style_emoticons/default/smile.gif) cache/dil dosyası klasörünüz/lang_topics.php dosyasını açın ve aşağıdaki kodu bulun CODE <?php $lang = array ( Yukarıdaki kodun altına aşağıdaki kodu ekleyin CODE 'st_title' => "Benzer Konular", 'st_post_on' => "This topic was started:", 'st_replies' => "Cevaplar", 'st_starter' => "Konuyu Başlatan", 'st_views' => "Okunma", 'st_lastinfo' => "Son Aktivite", 'st_by' => "Gn:", 'st_attach' => 'attachment(s): View', Bu da orjinali 'st_title' => "Similar Topics", 'st_post_on' => "This topic was started:", 'st_replies' => "Replies", 'st_starter' => "Topic Starter", 'st_views' => "Views", 'st_lastinfo' => "Last Action", 'st_by' => "Last post by:", 'st_attach' => 'attachment(s): View',
Diğer bağlantılar ve kaynak sayfalar :
http://www.ipbaccess.com/forum...loads/U102-1185196708.jpg http://www.ipbaccess.com/forum...ownloads&showfile=337 http://www.ipbaccess.com/forum...loads/U102-1185196805.jpg http://www.ipbaccess.com/forum...loads/U102-1185196728.jpg http://www.ipbaccess.com/forum...loads/U102-1185197205.jpg http://www.ipbaccess.com/forum...loads/U102-1185196994.jpg http://www.ipbaccess.com/forum...loads/U102-1185197118.jpg http://www.ipbaccess.com/forum...loads/U102-1185197478.jpg http://www.ipbaccess.com/forum...ons/default/smile.gif |
|
|
|
23.07.2007, 17:13:15
İleti
#2
|
|
|
IPB-Moderatör
Grup: Grup: IPB-Pro
İleti: 995 Açtığı Konu Sayısı:90 Mod Upload: 18 Katılım: 25.10.2005 Nereden: Plovdiv Skin: IPBAccess v2.5 NJ2 Üye No: 102
Sunucu OS: Linux
IPB Sürüm: IPB 2.3.x Ülke :
|
IPB 2.2.x için
2.2.x kurulumu için yapmanız gereken topics.php dosyasında Aşağıdaki kodu bulun CODE //----------------------------------------- // Process users active in this forum //----------------------------------------- Üzerine aşağıdaki kodu ekleyin CODE if (strlen($this->topic['title']) >= $this->ipsclass->vars['min_search_word']) { $this->output = str_replace("<!--IBF.QUICK_REPLY_OPEN-->", "<!--IBF.QUICK_REPLY_OPEN-->\n".$this->similar_topics($this->topic['title']), $this->output); } ----------- Aşağıdaki kodu bulun CODE //----------------------------------------- // Topic multi-moderation - yay! //----------------------------------------- $this->output = str_replace( "<!--IBF.MULTIMOD-->", $this->multi_moderation(), $this->output ); // Pass it to our print routine $this->ipsclass->print->add_output( $this->output ); $this->ipsclass->print->do_output( array( 'TITLE' => $this->topic['title'] . ' - ' . $this->ipsclass->vars['board_name'], 'JS' => $this->ipsclass->compiled_templates['skin_global']->get_rte_css(), 'NAV' => $this->nav, ) ); } Altına aşağıdaki kodu ekleyin CODE /*-------------------------------------------------------------------------*/ // Similar Topics /*-------------------------------------------------------------------------*/ function similar_topics($title) { $read_array = array(); $last_visit = ($this->ipsclass->member['last_visit'] > $this->ipsclass->member['members_markers']['board']) ? $this->ipsclass->member['last_visit'] : $this->ipsclass->member['members_markers']['board']; $db_where[] = "tid<>{$this->topic['tid']} AND approved=1"; # Get forums we're allowed to read foreach ($this->ipsclass->forums->forum_by_id as $k => $v) { if (! $v['password'] || $this->ipsclass->check_perms($v['read_perms']) == TRUE) { $forumids[] = $v['id']; } } if (is_array($forumids) && count($forumids)) { $db_where[] = "forum_id IN (".implode(",", $forumids).")"; } if ($read = $this->ipsclass->my_getcookie('topicsread')) { if ($read != "-1") { $read_array = $this->ipsclass->clean_int_array(unserialize(stripslashes($read))); } else { $read_array = array(); } } # Check input if (($this->ipsclass->DB->mysql_version >= 40010) && ($this->ipsclass->vars['search_sql_method'] == 'ftext')) { $db_where[] = "MATCH (title) AGAINST ('{$title}' IN BOOLEAN MODE)"; } else { if (substr_count($title, " ")) { $title = strtolower($title); $t_str = explode(" ", $title); $words = array(); foreach ($t_str as $t) { $t = preg_replace("#[\W]#", "", $t); if ($t && strlen($t) >= $this->ipsclass->vars['min_search_word']) { $words[] = "LOWER(title) LIKE '{$t}%'"; } } if (count($words)) { $db_where[] = "(".implode(" OR ", $words).")"; } else { $db_where[] = "LOWER(title) LIKE '%{$title}%'"; } } else { $db_where[] = "LOWER(title) LIKE '%{$title}%'"; } } # Get data $this->ipsclass->DB->simple_construct(array('select' => '*', 'from' => 'topics', 'where' => implode(" AND ", $db_where), 'order' => 'last_post DESC', 'limit' => array(0,5))); $sql = $this->ipsclass->DB->simple_exec(); if (! $this->ipsclass->DB->get_num_rows()) return FALSE; while ($r = $this->ipsclass->DB->fetch_row($sql)) { $this->ipsclass->forum_read[$r['forum_id']] = isset($this->ipsclass->forum_read[$r['forum_id'] ]) ? $this->ipsclass->forum_read[$r['forum_id']] : 0; $read_array[$r['tid']] = isset($read_array[$r['tid']]) ? $read_array[$r['tid']] : 0; $last_time = ($read_array[$r['tid']] > $last_visit) ? $read_array[$r['tid']] : $last_visit; $show_dots = ""; if ($this->ipsclass->forum_read[$r['forum_id']] > $last_time) { $last_time = $this->ipsclass->forum_read[$r['forum_id']]; } if ($this->ipsclass->member['id'] && (isset($r['author_id']) & $r['author_id'])) { $show_dots = 1; } if ($r['pinned']) { $r['prefix'] = $this->ipsclass->vars['pre_pinned']; } elseif ($r['poll_state']) { $r['prefix'] = $this->ipsclass->vars['pre_polls'].' '; } if (isset($this->ipsclass->member['is_mod']) && $this->ipsclass->member['is_mod']) { $r['posts'] += intval($r['topic_queuedposts']); } if ($last_time && ($r['last_post'] > $last_time)) { $r['go_new_post'] = "<a href='{$this->ipsclass->base_url}showtopic={$r['tid']}&view=getnewpost'><{NEW_POST}></a>"; } else { $r['go_new_post'] = ""; } $r['views'] = $this->ipsclass->do_number_format(intval($r['views'])); $r['posts'] = $this->ipsclass->do_number_format(intval($r['posts'])); $r['start_date'] = $this->ipsclass->get_date($r['start_date'], 'LONG'); $r['last_post'] = $this->ipsclass->get_date($r['last_post'], 'SHORT'); $r['last_name'] = $r['last_poster_id'] ? $this->ipsclass->make_profile_link($r['last_poster_name'], $r['last_poster_id']) : "-".$r['last_poster_name']."-"; $r['start_name'] = $r['starter_id'] ? $this->ipsclass->make_profile_link($r['starter_name'], $r['starter_id']) : "-".$r['starter_name']."-"; $r['folder_img'] = $this->ipsclass->folder_icon($r, $show_dots, $last_time); $r['attach_img'] = $r['topic_hasattach'] ? "<a href='#' onclick=\"PopUp('{$this->ipsclass->base_url}act=attach&code=showtopic&tid={$r['tid']}', 'Attach{$r['tid']}', 500,400); return false;\" title=\"".intval($r['topic_hasattach'])." {$this->ipsclass->lang['st_attach']}\"><{ATTACH_ICON}></a>" : ""; $data['st_row'] .= $this->ipsclass->compiled_templates['skin_topic']->topic_display_similar_row($r); } $collapsed_ids = ','.$this->ipsclass->my_getcookie('collapseprefs').','; $data['div_fo'] = 'show'; $data['div_fc'] = 'none'; if (strstr($collapsed_ids, ',stopics,')) { $data['div_fo'] = 'none'; $data['div_fc'] = 'show'; } return $this->ipsclass->compiled_templates['skin_topic']->topic_display_similar($data); } Neredeyse herşey aynı (IMG:http://www.ipbaccess.com/forum/style_emoticons/default/smile.gif)
Diğer bağlantılar ve kaynak sayfalar :
http://www.ipbaccess.com/forum...ons/default/smile.gif |
|
|
|
24.07.2007, 10:39:32
İleti
#3
|
|
|
Üye
![]()
Grup: Grup: Üye
İleti: 207 Açtığı Konu Sayısı:54 Mod Upload: 0 Katılım: 22.02.2007 Skin: IPBAccess v2.5 NJ2 Üye No: 3,617 |
hocam hiç bir değişiklik olmadı (IMG:http://www.ipbaccess.com/forum/style_emoticons/default/biggrin.gif)
Diğer bağlantılar ve kaynak sayfalar :
http://www.ipbaccess.com/forum...s/default/biggrin.gif |
|
|
|
24.07.2007, 11:00:48
İleti
#4
|
|
|
Üye
![]()
Grup: Grup: Üye
İleti: 207 Açtığı Konu Sayısı:54 Mod Upload: 0 Katılım: 22.02.2007 Skin: IPBAccess v2.5 NJ2 Üye No: 3,617 |
Hocam sağolasın şimdi çalıştı.
|
|
|
|