https://www.icyphoenix.com/viewtopic.php?f=28&t=5198&p=35030#p35030 ----------------------------------- FedericoBiccheddu Sun 21 Dec, 2008 21:36 MOD Linkback For Viewtopic ----------------------------------- I make excuses myself anticipatamente in order to have open an other argument but it is to various 90% from the old MOD :oops: Here a modification in order to modernize to your IP version 1.2.x. Is a enough large UPDATE of the MOD Linkback. [b]Naturally fairies the backup of the rows before modifying[/b] We begin: OPEN [code linenumbers=false]viewtopic.php[/code] SEARCH: [code syntax=php linenumbers=false] $topic_url_enc = urlencode(utf8_decode(create_server_url() . VIEWTOPIC_MG . '?' . $forum_id_append . '&' . $topic_id_append . ($kb_mode ? ('&' . $kb_mode_append) : '')));[/code] AFTER ADD: [code syntax=php linenumbers=false] // START Linkback on viewtopic.php || By J.C. Design || if ( ($board_config['url_rw'] == '1') || ( ($board_config['url_rw_guests'] == '1') && ($userdata['user_id'] == ANONYMOUS) ) ) { $linkback = $topic_title . '-vt' . $topic_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(VIEWTOPIC_MG . '?' . $topic_id_append . ''); } // END Linkback on viewtopic.php || By J.C. Design ||[/code] SEARCH: [code syntax=php linenumbers=false] 'PAGE_NUMBER' => sprintf($lang['Page_of'], (floor($start / intval($board_config['posts_per_page']) ) + 1), ceil($total_replies / intval($board_config['posts_per_page']))),[/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 . ']' . $topic_title . ' - ' . $board_config['sitename'] . '', 'U_LINKBACK_HTML' => '' . $topic_title . ' - ' . $board_config['sitename'] . '', 'L_SELECT_LINKBACK_URL' => $lang['Select_Linkback_Url'], 'L_SELECT_LINKBACK_BBCODE' => $lang['Select_Linkback_Bbcode'], 'L_SELECT_LINKBACK_HTML' => $lang['Select_Linkback_Html'], // 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 || By J.C. Design $lang['Select_Linkback_Url'] = 'Click in order to select the link direct.'; $lang['Select_Linkback_Bbcode'] = 'Click in order to select the BBCode code to use in the forums.'; $lang['Select_Linkback_Html'] = 'Click in order to select the link HTML code to use in the sites or blog.';[/code] OPEN [b]templates/*/viewtopic_body.tpl[/b] SEARCH: [code linenumbers=false] {L_DISPLAY_POSTS}: {S_SELECT_POST_DAYS} {S_SELECT_POST_ORDER}  {IMG_TFL}{IMG_TFC}{IMG_TFR}[/code] AFETR ADD: [code linenumbers=false]{IMG_THL}{IMG_THC}{L_SHARE_TOPIC}{IMG_THR}
{IMG_TFL}{IMG_TFC}{IMG_TFR}[/code] [b]EoM[/b] I hope you or useful :mrblue: