L'ho testato in locale e pare funzioni tutto come deve, in ogni caso il consiglio è sempre quello di backupare i files che devi modificare.
Percorso:
root
File:
links.php
Cerca:
if($link_config['lock_submit_site'] == 0)
{
// display submit site
$template->assign_block_vars('lock', array());
if(!$userdata['session_logged_in'])
{
$template->assign_block_vars('lock.logout', array());
}
if($userdata['session_logged_in'])
{
$template->assign_block_vars('lock.submit', array());
}
}
Sostituisci con:
/*if($link_config['lock_submit_site'] == 0)
{
// display submit site
$template->assign_block_vars('lock', array());
if(!$userdata['session_logged_in'])
{
$template->assign_block_vars('lock.logout', array());
}
if($userdata['session_logged_in'])
{
$template->assign_block_vars('lock.submit', array());
}
}*/
Percorso:
root
File:
link_register.php
Cerca:
// Users Authentication, members only area
if(!$userdata['session_logged_in'])
{
header('Location: ' . append_sid(LOGIN_MG . '?redirect=links.' . PHP_EXT, true));
exit;
}
Sostituisci con:
// Users Authentication, members only area
/*if(!$userdata['session_logged_in'])
{
header('Location: ' . append_sid(LOGIN_MG . '?redirect=links.' . PHP_EXT, true));
exit;
}*/
Percorso:
root/templates/default/
File:
links_leftblock.tpl
Cerca:
<!-- BEGIN lock -->
<!-- BEGIN logout -->
{IMG_THL}{IMG_THC}<span class="forumlink">{L_LOGIN}</span>{IMG_THR}<table class="forumlinenb" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="row1g-left" width="190">
<form method="post" action="{S_LOGIN_ACTION}">
{L_LINK_REGISTER_GUEST_RULE}<br /><br />
<div class="center-block-text">
{L_USERNAME}:<br /><input class="post" type="text" name="username" size="24" maxlength="40" value="" /><br />
{L_PASSWORD}:<br /><input class="post" type="password" name="password" size="24" maxlength="32" /><br /><br />
<span class="gensmall"> <input type="checkbox" name="autologin" /> {L_REMEMBER_ME} </span><br /><br />
<input type="hidden" name="redirect" value="{U_SITE_LINKS}" /><input type="submit" name="login" class="mainoption" value="{L_LOGIN}" /><br /><br />
</div>
</form>
</td>
</tr>
</table>{IMG_TFL}{IMG_TFC}{IMG_TFR}
<!-- END logout -->
<!-- BEGIN submit -->
<form name="linkdata" method="post" action="{U_LINK_REG}">
{IMG_THL}{IMG_THC}<span class="forumlink">{L_LINK_REGISTER}</span>{IMG_THR}<table class="forumlinenb" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="row1g-left" style="padding: 2px;">
{L_LINK_REGISTER_RULE}<br /><br />
<b>{L_LINK_TITLE}</b><br /><input class="post" type="text" name="link_title" value="" size="15" maxlength="20" style="width: 160px" /><br /><br />
<b>{L_LINK_URL}</b><br /><input class="post" type="text" name="link_url" value="http://" size="15" maxlength="100" style="width: 160px" /><br /><br />
<b>{L_LINK_LOGO_SRC}</b><br /><input class="post" type="text" size="15" maxlength="120" style="width: 160px" name="link_logo_src" value="http://" /><br />[<a href="javascript:void(0);" onclick="var img_src=document.linkdata.link_logo_src.value;if(img_src=='http://' || img_src=='') img_src='images/links/no_logo88a.gif';_preview=window.open(img_src, '_preview', 'toolbar=no,width=200,height=100,top=300,left=300');">{L_PREVIEW}</a>]<br /><br />
<b>{L_LINK_CATEGORY}</b><br />
<select name="link_category" style="width:160px"><option value="" selected="selected">----------------</option>{LINK_CAT_OPTION}</select><br /><br />
<b>{L_LINK_DESC}</b><br /><textarea name="link_desc" cols="15" rows="4" class="post" style="width: 160px"></textarea><br /><br />
</td>
</tr>
<tr><td class="cat"><input type="submit" name="addlink" value="{L_SUBMIT}" class="mainoption" /></td></tr>
</table>{IMG_TFL}{IMG_TFC}{IMG_TFR}
</form>
<!-- END submit -->
<!-- END lock -->
Sostituisci con:
<form name="linkdata" method="post" action="{U_LINK_REG}">
{IMG_THL}{IMG_THC}<span class="forumlink">{L_LINK_REGISTER}</span>{IMG_THR}<table class="forumlinenb" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="row1g-left" style="padding: 2px;">
{L_LINK_REGISTER_RULE}<br /><br />
<b>{L_LINK_TITLE}</b><br /><input class="post" type="text" name="link_title" value="" size="15" maxlength="20" style="width: 160px" /><br /><br />
<b>{L_LINK_URL}</b><br /><input class="post" type="text" name="link_url" value="http://" size="15" maxlength="100" style="width: 160px" /><br /><br />
<b>{L_LINK_LOGO_SRC}</b><br /><input class="post" type="text" size="15" maxlength="120" style="width: 160px" name="link_logo_src" value="http://" /><br />[<a href="javascript:void(0);" onclick="var img_src=document.linkdata.link_logo_src.value;if(img_src=='http://' || img_src=='') img_src='images/links/no_logo88a.gif';_preview=window.open(img_src, '_preview', 'toolbar=no,width=200,height=100,top=300,left=300');">{L_PREVIEW}</a>]<br /><br />
<b>{L_LINK_CATEGORY}</b><br />
<select name="link_category" style="width:160px"><option value="" selected="selected">----------------</option>{LINK_CAT_OPTION}</select><br /><br />
<b>{L_LINK_DESC}</b><br /><textarea name="link_desc" cols="15" rows="4" class="post" style="width: 160px"></textarea><br /><br />
</td>
</tr>
<tr><td class="cat"><input type="submit" name="addlink" value="{L_SUBMIT}" class="mainoption" /></td></tr>
</table>{IMG_TFL}{IMG_TFC}{IMG_TFR}
</form>
Fammi sapere, Saluti.