$user_cache[$poster_id]['sig'] = censor_text($user_cache[$poster_id]['sig']);
După adăugăm
// MOD : Hide links (V1.0.2) - Start
if ($user
data['user_id'] == ANONYMOUS)
{
$user_cache[$poster_id]['sig'] = hide_link($user_cache[$poster_id]['sig'], $user_cache[$poster_id]['sig_bbcode_uid'], 'sig');
}
// MOD : Hide links (V1.0.2) - End
Căutam:
$message = censor_text($row['post_text']);
După adăugăm
// MOD Hide links (V1.0.2) - Start
if ($user
data['user_id'] == ANONYMOUS)
{
$message = hide_link($message, $row['bbcode_uid']);
}
// MOD Hide links (V1.0.2) - End
Deschidem includes/functions.php
Căutam:
?>
Inainte adăugăm
Cod:
// MOD : MSSTI Hide links (V1.0.2) - Start
function hide_link($text, $uid = '', $mode = 'post')
{
if (!defined('IN_HIDE'))
{
define('IN_HIDE', true);
define('IN_SIGNATURE', false); // Hide links on signatures ? default false
define('IN_LINE_URL', true); // Hide in-line links ? default true
define('IN_BBCODE_URL', true); // Hide links into the bbcode default true
define('IN_BBCODE_IMG', false); // Hide links into the bbcode default false
define('IN_BBCODE_CODE', true); // Hide links into the bbcode
default true
}
if ($mode == 'sig' && !IN_SIGNATURE)
{
return $text;
}
global $user, $phpbb_root_path, $phpEx;
global $forum_id, $topic_id, $post_id;
$redirect = array();
if ($forum_id)
{
$redirect['f'] = $forum_id;
}
if ($topic_id)
{
$redirect['t'] = $topic_id;
}
if ($post_id)
{
$redirect['p'] = $post_id;
}
$hidelink_redirect = append_sid("{$phpbb_root_path}ucp.$phpEx", "mode=login&redirect=" . urlencode(str_replace('&', '&', append_sid("{$phpbb_root_path}viewtopic.$phpEx", $redirect))));
$hidelink_search = array();
$hidelink_replace = '<span class="hidelink"><a href="' . $hidelink_redirect . '" title="' . $user
lang['LOGIN_EXPLAIN_VIEW'] . '">'. $user
lang['LOGIN_EXPLAIN_VIEW'] . '</a></span>';
if (IN_BBCODE_CODE)
{
if (IN_LINE_URL)
{
// we need to turn the entities back into their original form
$entities = array("[code:$uid]", '&[MODEL] VANZARI;', '&Prezentare MariusSiAtat;', ':');
$characters = array("[code:$uid]\n", '.', ':', ':');
$text = str_replace($entities, $characters, $text);
$text = make_clickable($text, generate_board_url());
}
if (IN_BBCODE_URL)
{
$hidelink_search[] = "#\&\Prezentare se7en;url\&\[Propunere] Inversare Forum Contains New Posts;(.*?)\&\Prezentare se7en;\/url\&\[Propunere] Inversare Forum Contains New Posts;#is";
$hidelink_search[] = "#\&\Prezentare se7en;url(=(.*?))\&\Prezentare se7en;\/url\&\[Propunere] Inversare Forum Contains New Posts;#si";
$hidelink_search[] = "#\[url(=(.*))?\]([\]].*)\[/url\]#si";
}
if (IN_BBCODE_IMG)
{
$hidelink_search[] = "#\&\Prezentare se7en;img\&\[Propunere] Inversare Forum Contains New Posts;(.*?)\&\Prezentare se7en;\/img\&\[Propunere] Inversare Forum Contains New Posts;#is";
$hidelink_search[] = "#\[img\]([\]].*)\[/img\]#si";
}
}
// OK
if (IN_LINE_URL)
{
$hidelink_search[] = '#<!-- ([lmwe]) -
<a class=\"(postlink|postlink-local)\" href=\"(.*?)\">(.*?)</a><!-- ([lmwe]) -
#si';
}
// OK
if (IN_BBCODE_URL)
{
$hidelink_search[] = "/\[url:$uid\](.*?)\[\/url:$uid\]/is";
$hidelink_search[] = "/\[url\=(.*?):$uid\](.*?)\[\/url:$uid\]/is";
}
// OK
if (IN_BBCODE_IMG)
{
$hidelink_search[] = "#\[img:$uid\](.*?)\[/img:$uid\]#s";
$hidelink_search[] = "#\[img\=(.*?):$uid\](.*?)\[/img:$uid\]#s";
}
$text = preg_replace ($hidelink_search, $hidelink_replace, $text);
return $text;
}
// MOD : MSSTI Hide links (V1.0.2) - End[/code]
Deschidem language/limba ta/common.php
Căutăm:
[code] 'IMAGE' => 'Image',[/code]
Inainte adaugam:
[code]// MOD : MSSTI Hide links (V1.0.2) - Start
'LOGIN_EXPLAIN_VIEW' => 'The board requires you to be registered and logged in to view links.',
// MOD : MSSTI Hide links (V1.0.2) - End
După adăugăm
// MOD : Hide links (V1.0.2) - Start
if ($user

{
$user_cache[$poster_id]['sig'] = hide_link($user_cache[$poster_id]['sig'], $user_cache[$poster_id]['sig_bbcode_uid'], 'sig');
}
// MOD : Hide links (V1.0.2) - End
Căutam:
$message = censor_text($row['post_text']);
După adăugăm
// MOD Hide links (V1.0.2) - Start
if ($user

{
$message = hide_link($message, $row['bbcode_uid']);
}
// MOD Hide links (V1.0.2) - End
Deschidem includes/functions.php
Căutam:
?>
Inainte adăugăm
Cod:
// MOD : MSSTI Hide links (V1.0.2) - Start
function hide_link($text, $uid = '', $mode = 'post')
{
if (!defined('IN_HIDE'))
{
define('IN_HIDE', true);
define('IN_SIGNATURE', false); // Hide links on signatures ? default false
define('IN_LINE_URL', true); // Hide in-line links ? default true
define('IN_BBCODE_URL', true); // Hide links into the bbcode default true
define('IN_BBCODE_IMG', false); // Hide links into the bbcode default false
define('IN_BBCODE_CODE', true); // Hide links into the bbcode
default true
}
if ($mode == 'sig' && !IN_SIGNATURE)
{
return $text;
}
global $user, $phpbb_root_path, $phpEx;
global $forum_id, $topic_id, $post_id;
$redirect = array();
if ($forum_id)
{
$redirect['f'] = $forum_id;
}
if ($topic_id)
{
$redirect['t'] = $topic_id;
}
if ($post_id)
{
$redirect['p'] = $post_id;
}
$hidelink_redirect = append_sid("{$phpbb_root_path}ucp.$phpEx", "mode=login&redirect=" . urlencode(str_replace('&', '&', append_sid("{$phpbb_root_path}viewtopic.$phpEx", $redirect))));
$hidelink_search = array();
$hidelink_replace = '<span class="hidelink"><a href="' . $hidelink_redirect . '" title="' . $user


if (IN_BBCODE_CODE)
{
if (IN_LINE_URL)
{
// we need to turn the entities back into their original form
$entities = array("[code:$uid]", '&[MODEL] VANZARI;', '&Prezentare MariusSiAtat;', ':');
$characters = array("[code:$uid]\n", '.', ':', ':');
$text = str_replace($entities, $characters, $text);
$text = make_clickable($text, generate_board_url());
}
if (IN_BBCODE_URL)
{
$hidelink_search[] = "#\&\Prezentare se7en;url\&\[Propunere] Inversare Forum Contains New Posts;(.*?)\&\Prezentare se7en;\/url\&\[Propunere] Inversare Forum Contains New Posts;#is";
$hidelink_search[] = "#\&\Prezentare se7en;url(=(.*?))\&\Prezentare se7en;\/url\&\[Propunere] Inversare Forum Contains New Posts;#si";
$hidelink_search[] = "#\[url(=(.*))?\]([\]].*)\[/url\]#si";
}
if (IN_BBCODE_IMG)
{
$hidelink_search[] = "#\&\Prezentare se7en;img\&\[Propunere] Inversare Forum Contains New Posts;(.*?)\&\Prezentare se7en;\/img\&\[Propunere] Inversare Forum Contains New Posts;#is";
$hidelink_search[] = "#\[img\]([\]].*)\[/img\]#si";
}
}
// OK
if (IN_LINE_URL)
{
$hidelink_search[] = '#<!-- ([lmwe]) -


}
// OK
if (IN_BBCODE_URL)
{
$hidelink_search[] = "/\[url:$uid\](.*?)\[\/url:$uid\]/is";
$hidelink_search[] = "/\[url\=(.*?):$uid\](.*?)\[\/url:$uid\]/is";
}
// OK
if (IN_BBCODE_IMG)
{
$hidelink_search[] = "#\[img:$uid\](.*?)\[/img:$uid\]#s";
$hidelink_search[] = "#\[img\=(.*?):$uid\](.*?)\[/img:$uid\]#s";
}
$text = preg_replace ($hidelink_search, $hidelink_replace, $text);
return $text;
}
// MOD : MSSTI Hide links (V1.0.2) - End[/code]
Deschidem language/limba ta/common.php
Căutăm:
[code] 'IMAGE' => 'Image',[/code]
Inainte adaugam:
[code]// MOD : MSSTI Hide links (V1.0.2) - Start
'LOGIN_EXPLAIN_VIEW' => 'The board requires you to be registered and logged in to view links.',
// MOD : MSSTI Hide links (V1.0.2) - End