MOD Linkback For Album »  Show posts from    to     

Icy Phoenix


Old Customizations - MOD Linkback For Album



FedericoBiccheddu [ Sun 21 Dec, 2008 21:41 ]
Post subject: MOD Linkback For Album
Here a modification in order to modernize to your IP version 1.2.x.

Naturally fairies the backup of the rows before modifying

We begin:

OPEN
Code: [Hide] [Select]
album_showpage.php


SEARCH:
Code: [Hide] [Select]
$move_link_content = '<img src="' . $images['topic_mod_move'] . '" alt="' . $lang['Move'] . '" title="' . $lang['Move'] . '" style="border:0px;" />';
$copy_link_content = '<img src="' . $images['topic_mod_split'] . '" alt="' . $lang['Copy'] . '" title="' . $lang['Copy'] . '" style="border:0px;" />';
}
}


AFTER ADD:
Code: [Hide] [Select]
// 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 ||



SEARCH:
Code: [Hide] [Select]
'U_PIC_FULL_URL' => $server_path . ALBUM_UPLOAD_PATH . $thispic['pic_filename'],


AFTER ADD:
Code: [Hide] [Select]
// 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'] . '[/url]',
'U_LINKBACK_HTML' => '<a href="http://' . $board_config['server_name'] . $board_config['script_path'] . $linkback . '">' . $thispic['pic_title'] . ' - ' . $lang['Album'] . ' ' . $board_config['sitename'] . '</a>',

'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 ||


OPEN /languge/lang_english/lang_main.php

SEARCH:
Code: [Hide] [Select]
//$lang[''] = '';


BEFORE ADD:

Code: [Hide] [Select]
//Linkback || By J.C. Design
$lang['Share_Pic'] = 'Share this Picture.';



OPEN templates/*/album_showpage_body.tpl

SEARCH:
Code: [Hide] [Select]
<td valign="top" align="left"><b><span class="genmed">{PIC_DESC}</span></b></td>
</tr>
</table>
</td>
</tr>
</table>{IMG_TFL}{IMG_TFC}{IMG_TFR}


AFETR ADD:
Code: [Hide] [Select]
{IMG_THL}{IMG_THC}<span class="forumlink">{L_SHARE_PIC}</span>{IMG_THR}<table class="forumlinenb" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td>
<form name="select_all">
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="row1" width="120"><label for="linkback_url" class="post-details" style="cursor:pointer;" title="{L_SELECT_LINKBACK_URL}"><b>URL:</b></label></td>
<td class="row2"><textarea id="linkback_url" style="width:99%;height:15px;" readonly="readonly" onClick="javascript:this.form.linkback_url.focus();this.form.linkback_url.select();" class="gensmall">{U_LINKBACK_URL}</textarea>
</td>
</tr>
<tr>
<td class="row1" width="120"><label for="linkback_html" class="post-details" style="cursor:pointer;" title="{L_SELECT_LINKBACK_HTML}"><b>HTML:</b></label></td>
<td class="row2"><textarea id="linkback_html" style="width:99%;height:15px;" readonly="readonly" onClick="javascript:this.form.linkback_html.focus();this.form.linkback_html.select();" class="gensmall">{U_LINKBACK_HTML}</textarea>
</td>
</tr>
<tr>
<td class="row1" width="120"><label for="linkback_bbcode" class="post-details" style="cursor:pointer;" title="{L_SELECT_LINKBACK_BBCODE}"><b>BBCode:</b></label></td>
<td class="row2"><textarea id="linkback_bbcode" style="width:99%;height:15px;" readonly="readonly" onClick="javascript:this.form.linkback_bbcode.focus();this.form.linkback_bbcode.select();" class="gensmall">{U_LINKBACK_BBCODE}</textarea>
</td>
</tr>
</table>
</form>
</td>
</tr>
<tr>
<td class="spaceRow" colspan="5"><img src="{SPACER}" width="1" height="3" alt=""></td>
</tr>
</table>{IMG_TFL}{IMG_TFC}{IMG_TFR}


EoM


I hope you or useful




Powered by Icy Phoenix