https://www.icyphoenix.com/viewtopic.php?f=28&t=5199&p=35032#p35032 ----------------------------------- FedericoBiccheddu Sun 21 Dec, 2008 21:41 MOD Linkback For Album ----------------------------------- 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]album_showpage.php[/code] SEARCH: [code syntax=php linenumbers=false] $move_link_content = '' . $lang['Move'] . ''; $copy_link_content = '' . $lang['Copy'] . ''; } }[/code] AFTER ADD: [code syntax=php linenumbers=false] // START Linkback on album.php || By J.C. Design || if ( ($board_config['url_rw'] == '1') || ( ($board_config['url_rw_guests'] == '1') && ($userdata['user_id'] == ANONYMOUS) ) ) { $linkback = $thispic['pic_title'] . '-asp' . $pic_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 = ($i == $new_pic_array_id) ? '#' : append_sid(album_append_uid('album_showpage.' . $phpEx . '?pic_id=' . $pic_id)); } // END Linkback on album.php || By J.C. Design ||[/code] SEARCH: [code syntax=php linenumbers=false] 'U_PIC_FULL_URL' => $server_path . ALBUM_UPLOAD_PATH . $thispic['pic_filename'],[/code] AFTER ADD: [code syntax=php linenumbers=false] // START Linkback on album.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 . ']' . $thispic['pic_title'] . ' - ' . $lang['Album'] . ' ' . $board_config['sitename'] . '', 'U_LINKBACK_HTML' => '' . $thispic['pic_title'] . ' - ' . $lang['Album'] . ' ' . $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'], 'L_SHARE_PIC' => $lang['Share_Pic'], // END Linkback on album.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['Share_Pic'] = 'Share this Picture.';[/code] OPEN [b]templates/*/album_showpage_body.tpl[/b] SEARCH: [code linenumbers=false] {PIC_DESC} {IMG_TFL}{IMG_TFC}{IMG_TFR}[/code] AFETR ADD: [code linenumbers=false]{IMG_THL}{IMG_THC}{L_SHARE_PIC}{IMG_THR}
{IMG_TFL}{IMG_TFC}{IMG_TFR}[/code] [b]EoM[/b] I hope you or useful :mrblue: