https://www.icyphoenix.com/viewtopic.php?f=35&t=5200 ----------------------------------- FedericoBiccheddu Sun 21 Dec, 2008 21:45 MOD Linkback For Knowledge Base ----------------------------------- Here a modification in order to modernize to your IP version 1.2.x. [b]Naturally fairies the backup of the rows before modifying[/b] We begin: OPEN [code linenumbers=false]/includes/kb_article.php[/code] SEARCH: [code syntax=php linenumbers=false] // $print_url = append_sid( this_kb_mxurl( "mode=article&k=" . $article_id . "&print=true", true ) ); $print_url = append_sid( "./kb.php?mode=article&k=" . $article_id ."&page_num=".($page_num+1)."&start=".$start ."&print=true", true );[/code] AFTER ADD: [code syntax=php linenumbers=false] // START Linkback on kb.php || By J.C. Design || if ( ($board_config['url_rw'] == '1') || ( ($board_config['url_rw_guests'] == '1') && ($userdata['user_id'] == ANONYMOUS) ) ) { $linkback = $article_title . '-kba' . $article_id; $con_accento = array("à","è","é","ì","ò","ù"); $senza_accento = array("a","e","e","i","o","u"); $linkback = str_replace($con_accento,$senza_accento,$linkback); $linkback = html_entity_decode($linkback); $linkback = str_replace("'","'",$linkback); $linkback = preg_replace("#[^a-zA-Z0-9-_ ]#","",$linkback); $linkback = str_replace(" ","-",$linkback); $linkback = str_replace("___","-",$linkback); $linkback = str_replace("__","-",$linkback); $linkback = str_replace("--","-",$linkback); $linkback = str_replace("_-_","-",$linkback); $linkback = str_replace("\", "-", $linkback); $linkback = strtolower($linkback).'.html'; } else { $linkback = append_sid('kb.' . $phpEx . '?mode=article&k=' . $article_id); } // END Linkback on kb.php || By J.C. Design ||[/code] SEARCH: [code syntax=php linenumbers=false] 'U_PRINT' => $print_url,[/code] AFTER ADD: [code syntax=php linenumbers=false] // START Linkback on viewtopic.php || By J.C. Design || 'U_LINKBACK_URL' => 'http://' . $board_config['server_name'] . $board_config['script_path'] . $linkback, 'U_LINKBACK_BBCODE' => '[url=http://' . $board_config['server_name'] . $board_config['script_path'] . $linkback . ']' . $article_title . ' - ' . $board_config['sitename'] . '', 'U_LINKBACK_HTML' => '' . $article_title . ' - ' . $board_config['sitename'] . '', 'L_SELECT_LINKBACK_KB_URL' => $lang['Select_Linkback_Kb_Url'], 'L_SELECT_LINKBACK_KB_BBCODE' => $lang['Select_Linkback_Kb_Bbcode'], 'L_SELECT_LINKBACK_KB_HTML' => $lang['Select_Linkback_Kb_Html'], 'L_SHARE_KB_ARTICLE' => $lang['Share_Article_Kb'], // END Linkback on viewtopic.php || By J.C. Design ||[/code] OPEN [b]/languge/lang_english/lang_main.php[/b] SEARCH: [code linenumbers=false]//$lang[''] = '';[/code] BEFORE ADD: [code syntax=php linenumbers=false]//Linkback KB || By J.C. Design || $lang['Select_Linkback_Kb_Url'] = 'Click in order to select the link direct to this article.'; $lang['Select_Linkback_Kb_Bbcode'] = 'Click in order to select the BBCode code to use in the forums.'; $lang['Select_Linkback_Kb_Html'] = 'Click in order to select the link HTML code to use in the sites or blog.'; $lang['Share_Article_Kb'] = 'Share this Article';[/code] OPEN [b]templates/*/kb_article_body.tpl[/b] SEARCH: [code linenumbers=false]  {EDIT_IMG}  {IMG_TFL}{IMG_TFC}{IMG_TFR}[/code] AFETR ADD: [code linenumbers=false]{IMG_THL}{IMG_THC}{L_SHARE_KB_ARTICLE}{IMG_THR}
{IMG_TFL}{IMG_TFC}{IMG_TFR}[/code] [b]EoM[/b] I hope you or useful :mrblue: ----------------------------------- New Player Mon 22 Dec, 2008 09:14 Re: MOD Linkback For Knowledge Base ----------------------------------- thx but i think that file is not right ;) >> [quote]OPEN templates/*/[b]album_showpage_body.tpl[/b][/quote] ----------------------------------- FedericoBiccheddu Mon 22 Dec, 2008 12:52 Re: MOD Linkback For Knowledge Base ----------------------------------- Thast is? :oops: [img]http://www.icyphoenix.com/files/images/3177/screen.jpg[/img] ----------------------------------- New Player Mon 22 Dec, 2008 15:04 Re: MOD Linkback For Knowledge Base ----------------------------------- here look at the kb_article.php and you will find the right file i had marked it for you [quote]// Build page if ( !$print_version ) { if ( $reader_mode ) { $template->set_filenames( array( 'body' => 'kb_article_reader.tpl' ) ); } else { $template->set_filenames( array( 'body' => '[color=red]kb_article_body.tpl[/color]' ) ); } } else { $template->set_filenames( array( 'body' => 'kb_article_body_print.tpl' ) ); }[/quote] ----------------------------------- FedericoBiccheddu Mon 22 Dec, 2008 18:43 Re: MOD Linkback For Knowledge Base ----------------------------------- OMG Sorry, I badly had read and understood :oops: Excuse me :mrblue: