stardz
08-24-2007, 01:03 AM
## إسم الهاك: Hide Links - إخفاء الروابط عن الزوار وعدم رؤية الروابط الا بعد عدد معين من المشاركات
## Mod Author: Nome < nome@bk.ru (nome@bk.ru) > ICQ #162783614
## إصدار الهاك: 3.0.0
## معلومات عن الهاك: This mod will prevent links from being shown
## to unregistered users. Instead they'll be
## advised to register or login. Registered users
## may also be not shown links if they don't have
## a proper amount of posts set by the forum admin.
## Mod Features:
## - hide http links and email from unregistered users
## - hide http links and email from users which do not
## have the proper amount of posts
## - hide http links and email from moderators of other
## forums (on/off switch in admin panel)
##معرب ملف تثبيت الهاك: Saudi-Soft.com
##
## صعوبة الهاك : سهل
## مدة تبيت الهاك : 5 دقائق
##
## ملفات للتعديل: 6
## admin/admin_board.php
## includes/bbcode.php
## language/lang_english/lang_admin.php
## language/lang_english/lang_main.php
## templates/subSilver/bbcode.tpl
## templates/subSilver/admin/board_config_body.tpl
##
###########################
## ملاحظات أخرى:
## Code has been mostly rewritten, so you'll have to reinstall
## the mode.
##########################
########################
## تاريخ الهاك
## - 3.0.0 - Completely rewrote the mod adding some new functions
## - 2.1.1 - Updated with latest bugfixes from phpbb groupe
## - 2.1.0 - Updated with latest bugfixes from phpbb groupe
## - 2.0.0 - Fixed a bug with <A href=" links
## - 1.0.0 - First released
#################################
## قبل أن تبدا بثبيت هذا الهاك سم بالله وأدعلي ولوالدي وللمسلمين أجمعين ثم لاتنسى أن تأخذ نسخة من كل ملف تدريد التعديل عليه
###################################
#
#-----[ SQL ]-------------------------------------------
WARNING! Change phpbb_ to whatever database prefix you have
INSERT INTO `phpbb_config` SET `config_name`='necessary_post_number', `config_value`='0';
INSERT INTO `phpbb_config` SET `config_name`='mods_priority', `config_value`='1';
#-----[ أفتح ]------------------------------------------
#
admin/admin_board.php
#
#-----[إبحث عن ]------------------------------------------
#
$board_email_form_yes = ( $new['board_email_form'] ) ? "checked=\"checked\"" : "";
$board_email_form_no = ( !$new['board_email_form'] ) ? "checked=\"checked\"" : "";
#
#-----[أضف بعده ]------------------------------------
#
$mods_priority_yes = ( $new['mods_priority'] ) ? "checked=\"checked\"" : "";
$mods_priority_no = ( !$new['mods_priority'] ) ? "checked=\"checked\"" : "";
#
#-----[ إبحث عن ]------------------------------------------
#
"L_HOT_THRESHOLD" => $lang['Hot_threshold'],
#
#-----[ أضف بعده ]------------------------------------
#
"L_NECESSARY_POST_NUMBER" => $lang['Necessary_Post_Number'],
"L_MODS_PRIORITY" => $lang['Mods_Priority'],
"L_MODS_PRIORITY_EXPLAIN" => $lang['Mods_Priority_Explain'],
#
#-----[ إبحث عن ]------------------------------------------
#
"HOT_TOPIC" => $new['hot_threshold'],
#
#-----[ أضف بعده ]------------------------------------
#
"NECESSARY_POST_NUMBER" => $new['necessary_post_number'],
"MODS_PRIORITY_YES" => $mods_priority_yes,
"MODS_PRIORITY_NO" => $mods_priority_no,
#
#-----[ أفتح ]------------------------------------------
#
includes/bbcode.php
#
#-----[إبحث عن ]------------------------------------------
#
function prepare_bbcode_template($bbcode_tpl)
{
global $lang;
#
#-----[ إستبدله لهذا الكود ]------------------------------------
#
function prepare_bbcode_template($bbcode_tpl)
{
global $lang, $board_config, $phpEx, $u_login_logout;
#
#-----[ إبحث عن ]------------------------------------------
#
$bbcode_tpl['email'] = str_replace('{EMAIL}', '\\1', $bbcode_tpl['email']);
#
#-----[إضف بعده ]------------------------------------
#
$bbcode_tpl['login_request'] = str_replace('{L_WARNING}', $lang['Links_Allowed_For_Registered_Only'], $bbcode_tpl['login_request']);
$bbcode_tpl['login_request'] = str_replace('{GET_REGISTERED}', sprintf($lang['Get_Registered'], "<a href=\"" . append_sid('profile.' . $phpEx . '?mode=register') . "\">", "</a>"), $bbcode_tpl['login_request']);
$bbcode_tpl['login_request'] = str_replace('{ENTER_FORUM}', sprintf($lang['Enter_Forum'], "<a href=\"" . append_sid($u_login_logout) . "\">", "</a>"), $bbcode_tpl['login_request']);
$bbcode_tpl['post_count_request'] = str_replace('{L_WARNING}', sprintf($lang['Post_Limit'], $board_config['necessary_post_number']), $bbcode_tpl['post_count_request']);
#
#-----[ إبحث عن ]------------------------------------------
#
function bbencode_second_pass($text, $uid)
{
global $lang, $bbcode_tpl;
#
#-----[ إستبدله بهذا الكود ]------------------------------------
#
function bbencode_second_pass($text, $uid)
{
global $lang, $bbcode_tpl, $userdata, $board_config, $is_auth;
#
#-----[إبحث عن ]------------------------------------------
// matches a [url]xxxx://[ فقط المشتركين فى المنتدى يمكنهم رؤية الرابط تطوير الزيرو ];/url] code..
$patterns[] = "#\[url\]([\w]+?://([\w\#$%&~/.\-;:=,?@\]+]+|\[(?!url=))*?)\[/url\]#is";
$replacements[] = $bbcode_tpl['url1'];
// [url][ فقط المشتركين فى المنتدى يمكنهم رؤية الرابط تطوير الزيرو ];/url] code.. (no xxxx:// prefix).
$patterns[] = "#\[url\]((www|ftp)\.([\w\#$%&~/.\-;:=,?@\]+]+|\[(?!url=))*?)\[/url\]#is";
$replacements[] = $bbcode_tpl['url2'];
// [url=xxxx://[ فقط المشتركين فى المنتدى يمكنهم رؤية الرابط تطوير الزيرو ];phpBB[/url] code..
$patterns[] = "#\[url=([\w]+?://[\w\#$%&~/.\-;:=,?@\[\]+]*?)\]([^?\n\r\t].*?)\[/url\]#is";
$replacements[] = $bbcode_tpl['url3'];
// [url=[ فقط المشتركين فى المنتدى يمكنهم رؤية الرابط تطوير الزيرو ];phpBB[/url] code.. (no xxxx:// prefix).
$patterns[] = "#\[url=((www|ftp)\.[\w\#$%&~/.\-;:=,?@\[\]+]*?)\]([^?\n\r\t].*?)\[/url\]#is";
$replacements[] = $bbcode_tpl['url4'];
// [email]user@domain.tld[/email] code..
$patterns[] = "#\[email\]([a-z0-9&\-_.]+?@[\w\-]+\.([\w\-\.]+\.)?[\w]+)\[/email\]#si";
$replacements[] = $bbcode_tpl['email'];
#
#-----[إستبدله بهذا الكود ]------------------------------------
#
$url_replacer = ( !$userdata['session_logged_in'] ) ? $bbcode_tpl['login_request'] : ( ( ( $userdata['user_posts'] >= $board_config['necessary_post_number'] ) || ( $userdata['user_level'] == 1 ) || ( ( $is_auth['auth_mod'] == 1 ) && ( $board_config['mods_priority'] == 1 ) ) ) ? '' : $bbcode_tpl['post_count_request'] );
// matches a [url]xxxx://[ فقط المشتركين فى المنتدى يمكنهم رؤية الرابط تطوير الزيرو ];/url] code..
$patterns[] = "#\[url\]([\w]+?://([\w\#$%&~/.\-;:=,?@\]+]+|\[(?!url=))*?)\[/url\]#is";
$replacements[] = ( $url_replacer ) ? $url_replacer : $bbcode_tpl['url1'];
// [url][ فقط المشتركين فى المنتدى يمكنهم رؤية الرابط تطوير الزيرو ];/url] code.. (no xxxx:// prefix).
$patterns[] = "#\[url\]((www|ftp)\.([\w\#$%&~/.\-;:=,?@\]+]+|\[(?!url=))*?)\[/url\]#is";
$replacements[] = ( $url_replacer ) ? $url_replacer : $bbcode_tpl['url2'];
// [url=xxxx://[ فقط المشتركين فى المنتدى يمكنهم رؤية الرابط تطوير الزيرو ];phpBB[/url] code..
$patterns[] = "#\[url=([\w]+?://[\w\#$%&~/.\-;:=,?@\[\]+]*?)\]([^?\n\r\t].*?)\[/url\]#is";
$replacements[] = ( $url_replacer ) ? $url_replacer : $bbcode_tpl['url3'];
// [url=[ فقط المشتركين فى المنتدى يمكنهم رؤية الرابط تطوير الزيرو ];phpBB[/url] code.. (no xxxx:// prefix).
$patterns[] = "#\[url=((www|ftp)\.[\w\#$%&~/.\-;:=,?@\[\]+]*?)\]([^?\n\r\t].*?)\[/url\]#is";
$replacements[] = ( $url_replacer ) ? $url_replacer : $bbcode_tpl['url4'];
// [email]user@domain.tld[/email] code..
$patterns[] = "#\[email\]([a-z0-9&\-_.]+?@[\w\-]+\.([\w\-\.]+\.)?[\w]+)\[/email\]#si";
$replacements[] = ( $url_replacer ) ? $url_replacer : $bbcode_tpl['email'];
#
#-----[ إبحث عن ]------------------------------------------
#
function make_clickable($text)
{
#
#-----[ أضف بعده ]------------------------------------
#
global $bbcode_tpl, $userdata, $board_config, $is_auth;
#
#-----[ إبحث عن ]------------------------------------------
#
// matches an "xxxx://yyyy" URL at the start of a line, or after a space.
// xxxx can only be alpha characters.
// yyyy is anything up to the first space, newline, comma, double quote or <
$ret = preg_replace("#(^|[\n ])([\w]+?://[\w\#$%&~/.\-;:=,?@\[\]+]*)#is", "\\1<a href=\"\\2\" target=\"_blank\">\\2</a>", $ret);
// matches a "www|ftp.xxxx.yyyy[/zzzz]" kinda lazy URL thing
// Must contain at least 2 dots. xxxx contains either alphanum, or "-"
// zzzz is optional.. will contain everything up to the first space, newline,
// comma, double quote or <.
$ret = preg_replace("#(^|[\n ])((www|ftp)\.[\w\#$%&~/.\-;:=,?@\[\]+]*)#is", "\\1<a href=\"[ فقط المشتركين فى المنتدى يمكنهم رؤية الرابط تطوير الزيرو ];//\\2\" target=\"_blank\">\\2</a>", $ret);
// matches an email@domain type address at the start of a line, or after a space.
// Note: Only the followed chars are valid; alphanums, "-", "_" and or ".".
$ret = preg_replace("#(^|[\n ])([a-z0-9&\-_.]+?)@([\w\-]+\.([\w\-\.]+\.)*[\w]+)#i", "\\1<a href=\"\\2@\\3mailto:\\2@\\3\">\\2@\\3</a>", $ret);
#
#-----[ إستبدله بهذا الكود ]------------------------------------
#
$url_replacer = ( !$userdata['session_logged_in'] ) ? $bbcode_tpl['login_request'] : ( ( ( $userdata['user_posts'] >= $board_config['necessary_post_number'] ) || ( $userdata['user_level'] == 1 ) || ( ( $is_auth['auth_mod'] == 1 ) && ( $board_config['mods_priority'] == 1 ) ) ) ? '' : $bbcode_tpl['post_count_request'] );
if ( $url_replacer )
{
// matches an "xxxx://yyyy" URL at the start of a line, or after a space.
// xxxx can only be alpha characters.
// yyyy is anything up to the first space, newline, comma, double quote or <
$ret = preg_replace("#(^|[\n ])([\w]+?://[\w\#$%&~/.\-;:=,?@\[\]+]*)#is", $url_replacer, $ret);
// matches a "www|ftp.xxxx.yyyy[/zzzz]" kinda lazy URL thing
// Must contain at least 2 dots. xxxx contains either alphanum, or "-"
// zzzz is optional.. will contain everything up to the first space, newline,
// comma, double quote or <.
$ret = preg_replace("#(^|[\n ])((www|ftp)\.[\w\#$%&~/.\-;:=,?@\[\]+]*)#is", $url_replacer, $ret);
// matches an email@domain type address at the start of a line, or after a space.
// Note: Only the followed chars are valid; alphanums, "-", "_" and or ".".
$ret = preg_replace("#(^|[\n ])([a-z0-9&\-_.]+?)@([\w\-]+\.([\w\-\.]+\.)*[\w]+)#i", $url_replacer, $ret);
}
else
{
// matches an "xxxx://yyyy" URL at the start of a line, or after a space.
// xxxx can only be alpha characters.
// yyyy is anything up to the first space, newline, comma, double quote or <
$ret = preg_replace("#(^|[\n ])([\w]+?://[\w\#$%&~/.\-;:=,?@\[\]+]*)#is", "\\1<a href=\"\\2\" target=\"_blank\">\\2</a>", $ret);
// matches a "www|ftp.xxxx.yyyy[/zzzz]" kinda lazy URL thing
// Must contain at least 2 dots. xxxx contains either alphanum, or "-"
// zzzz is optional.. will contain everything up to the first space, newline,
// comma, double quote or <.
$ret = preg_replace("#(^|[\n ])((www|ftp)\.[\w\#$%&~/.\-;:=,?@\[\]+]*)#is", "\\1<a href=\"[ فقط المشتركين فى المنتدى يمكنهم رؤية الرابط تطوير الزيرو ];//\\2\" target=\"_blank\">\\2</a>", $ret);
// matches an email@domain type address at the start of a line, or after a space.
// Note: Only the followed chars are valid; alphanums, "-", "_" and or ".".
$ret = preg_replace("#(^|[\n ])([a-z0-9&\-_.]+?)@([\w\-]+\.([\w\-\.]+\.)*[\w]+)#i", "\\1<a href=\"\\2@\\3mailto:\\2@\\3\">\\2@\\3</a>", $ret);
}
#********************************
#
# ملاحظة: يجب عليك تطبيق الخطوات التالية على ملف اللغة الرئيسي لديك
#على سبيل المثال أنا سوف أطبقه على ملف اللغة [lang_english]
#
#********************************
#
#-----[ أفتح ]------------------------------------------
#
language/lang_english/lang_admin.php
#
#-----[ إبحث عن ]------------------------------------------
#
$lang['Login_reset_time_explain'] =
#
#-----[ أضف بعده ]------------------------------------
#
//
//
// Hide links mod
//
$lang['Links_Allowed_For_Registered_Only'] = 'لا يسمح للزوار بمشاهدة الروابط ';
$lang['Get_Registered'] = 'اضغط %sللتسجيل%s او ';
$lang['Enter_Forum'] = '%sللدخول%s اذا كنت عضو!';
$lang['Post_Limit'] = 'You must have %s posts to see links on this board';
#
#-----[ إفتح ]------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ إبحث عن ]------------------------------------------
#
$lang['Please_remove_install_contrib'] =
#
#-----[ أضف بعده ]------------------------------------
#
//
// Hide links mod
//
$lang['Links_Allowed_For_Registered_Only'] = 'Only registered users can see links on this board!';
$lang['Get_Registered'] = 'Get %sregistred%s or ';
$lang['Enter_Forum'] = '%senter%s the forums!';
$lang['Post_Limit'] = 'You must have %s posts to see links on this board';
#**************************************
#
# ملاحظة: يجب عليك تطبيق هذه الخطوات على جميع الإستايلات لديك
# أنا سوف أطبقه على إستايل [SubSilver]
#
#*************************************
#
#-----[ أفتح ]------------------------------------------
#
templates/subSilver/bbcode.tpl
#
#-----[ إبحث عن ]------------------------------------------
#
{EMAIL} ({EMAIL}mailto:{EMAIL})
#
#-----[ أضف بعده ]------------------------------------
#
</span><table width="40%" cellspacing="1" cellpadding="3" border="0">
<tr>
<td class="quote">{L_WARNING}
{GET_REGISTERED}{ENTER_FORUM}</td>
</tr>
</table><span class="postbody">
</span><table width="40%" cellspacing="1" cellpadding="3" border="0">
<tr>
<td class="quote">{L_WARNING}</td>
</tr>
</table><span class="postbody">
#
#-----[ إفتح ]------------------------------------------
#
templates/subSilver/admin/board_config_body.tpl
#
#-----[ إبحث عن ]------------------------------------------
#
<tr>
<td class="row1">{L_HOT_THRESHOLD}</td>
<td class="row2"><input class="post" type="text" name="hot_threshold" size="3" maxlength="4" value="{HOT_TOPIC}" /></td>
</tr>
#
#-----[ أضف بعده ]------------------------------------
#
<tr>
<td class="row1">{L_NECESSARY_POST_NUMBER}</td>
<td class="row2"><input class="post" type="text" name="necessary_post_number" size="3" maxlength="4" value="{NECESSARY_POST_NUMBER}" /></td>
</tr>
<tr>
<td class="row1">{L_MODS_PRIORITY}
<span class="gensmall">{L_MODS_PRIORITY_EXPLAIN}</span></td>
<td class="row2"><input type="radio" name="mods_priority" value="1" {MODS_PRIORITY_YES} />{L_YES} <input type="radio" name="mods_priority" value="0" {MODS_PRIORITY_NO} />{L_NO}</td>
</tr>
#
#-----[ إحفظ جميع الملفات وأع درفعها مرة أخرى :]--------------------------
#
#EoM
## Mod Author: Nome < nome@bk.ru (nome@bk.ru) > ICQ #162783614
## إصدار الهاك: 3.0.0
## معلومات عن الهاك: This mod will prevent links from being shown
## to unregistered users. Instead they'll be
## advised to register or login. Registered users
## may also be not shown links if they don't have
## a proper amount of posts set by the forum admin.
## Mod Features:
## - hide http links and email from unregistered users
## - hide http links and email from users which do not
## have the proper amount of posts
## - hide http links and email from moderators of other
## forums (on/off switch in admin panel)
##معرب ملف تثبيت الهاك: Saudi-Soft.com
##
## صعوبة الهاك : سهل
## مدة تبيت الهاك : 5 دقائق
##
## ملفات للتعديل: 6
## admin/admin_board.php
## includes/bbcode.php
## language/lang_english/lang_admin.php
## language/lang_english/lang_main.php
## templates/subSilver/bbcode.tpl
## templates/subSilver/admin/board_config_body.tpl
##
###########################
## ملاحظات أخرى:
## Code has been mostly rewritten, so you'll have to reinstall
## the mode.
##########################
########################
## تاريخ الهاك
## - 3.0.0 - Completely rewrote the mod adding some new functions
## - 2.1.1 - Updated with latest bugfixes from phpbb groupe
## - 2.1.0 - Updated with latest bugfixes from phpbb groupe
## - 2.0.0 - Fixed a bug with <A href=" links
## - 1.0.0 - First released
#################################
## قبل أن تبدا بثبيت هذا الهاك سم بالله وأدعلي ولوالدي وللمسلمين أجمعين ثم لاتنسى أن تأخذ نسخة من كل ملف تدريد التعديل عليه
###################################
#
#-----[ SQL ]-------------------------------------------
WARNING! Change phpbb_ to whatever database prefix you have
INSERT INTO `phpbb_config` SET `config_name`='necessary_post_number', `config_value`='0';
INSERT INTO `phpbb_config` SET `config_name`='mods_priority', `config_value`='1';
#-----[ أفتح ]------------------------------------------
#
admin/admin_board.php
#
#-----[إبحث عن ]------------------------------------------
#
$board_email_form_yes = ( $new['board_email_form'] ) ? "checked=\"checked\"" : "";
$board_email_form_no = ( !$new['board_email_form'] ) ? "checked=\"checked\"" : "";
#
#-----[أضف بعده ]------------------------------------
#
$mods_priority_yes = ( $new['mods_priority'] ) ? "checked=\"checked\"" : "";
$mods_priority_no = ( !$new['mods_priority'] ) ? "checked=\"checked\"" : "";
#
#-----[ إبحث عن ]------------------------------------------
#
"L_HOT_THRESHOLD" => $lang['Hot_threshold'],
#
#-----[ أضف بعده ]------------------------------------
#
"L_NECESSARY_POST_NUMBER" => $lang['Necessary_Post_Number'],
"L_MODS_PRIORITY" => $lang['Mods_Priority'],
"L_MODS_PRIORITY_EXPLAIN" => $lang['Mods_Priority_Explain'],
#
#-----[ إبحث عن ]------------------------------------------
#
"HOT_TOPIC" => $new['hot_threshold'],
#
#-----[ أضف بعده ]------------------------------------
#
"NECESSARY_POST_NUMBER" => $new['necessary_post_number'],
"MODS_PRIORITY_YES" => $mods_priority_yes,
"MODS_PRIORITY_NO" => $mods_priority_no,
#
#-----[ أفتح ]------------------------------------------
#
includes/bbcode.php
#
#-----[إبحث عن ]------------------------------------------
#
function prepare_bbcode_template($bbcode_tpl)
{
global $lang;
#
#-----[ إستبدله لهذا الكود ]------------------------------------
#
function prepare_bbcode_template($bbcode_tpl)
{
global $lang, $board_config, $phpEx, $u_login_logout;
#
#-----[ إبحث عن ]------------------------------------------
#
$bbcode_tpl['email'] = str_replace('{EMAIL}', '\\1', $bbcode_tpl['email']);
#
#-----[إضف بعده ]------------------------------------
#
$bbcode_tpl['login_request'] = str_replace('{L_WARNING}', $lang['Links_Allowed_For_Registered_Only'], $bbcode_tpl['login_request']);
$bbcode_tpl['login_request'] = str_replace('{GET_REGISTERED}', sprintf($lang['Get_Registered'], "<a href=\"" . append_sid('profile.' . $phpEx . '?mode=register') . "\">", "</a>"), $bbcode_tpl['login_request']);
$bbcode_tpl['login_request'] = str_replace('{ENTER_FORUM}', sprintf($lang['Enter_Forum'], "<a href=\"" . append_sid($u_login_logout) . "\">", "</a>"), $bbcode_tpl['login_request']);
$bbcode_tpl['post_count_request'] = str_replace('{L_WARNING}', sprintf($lang['Post_Limit'], $board_config['necessary_post_number']), $bbcode_tpl['post_count_request']);
#
#-----[ إبحث عن ]------------------------------------------
#
function bbencode_second_pass($text, $uid)
{
global $lang, $bbcode_tpl;
#
#-----[ إستبدله بهذا الكود ]------------------------------------
#
function bbencode_second_pass($text, $uid)
{
global $lang, $bbcode_tpl, $userdata, $board_config, $is_auth;
#
#-----[إبحث عن ]------------------------------------------
// matches a [url]xxxx://[ فقط المشتركين فى المنتدى يمكنهم رؤية الرابط تطوير الزيرو ];/url] code..
$patterns[] = "#\[url\]([\w]+?://([\w\#$%&~/.\-;:=,?@\]+]+|\[(?!url=))*?)\[/url\]#is";
$replacements[] = $bbcode_tpl['url1'];
// [url][ فقط المشتركين فى المنتدى يمكنهم رؤية الرابط تطوير الزيرو ];/url] code.. (no xxxx:// prefix).
$patterns[] = "#\[url\]((www|ftp)\.([\w\#$%&~/.\-;:=,?@\]+]+|\[(?!url=))*?)\[/url\]#is";
$replacements[] = $bbcode_tpl['url2'];
// [url=xxxx://[ فقط المشتركين فى المنتدى يمكنهم رؤية الرابط تطوير الزيرو ];phpBB[/url] code..
$patterns[] = "#\[url=([\w]+?://[\w\#$%&~/.\-;:=,?@\[\]+]*?)\]([^?\n\r\t].*?)\[/url\]#is";
$replacements[] = $bbcode_tpl['url3'];
// [url=[ فقط المشتركين فى المنتدى يمكنهم رؤية الرابط تطوير الزيرو ];phpBB[/url] code.. (no xxxx:// prefix).
$patterns[] = "#\[url=((www|ftp)\.[\w\#$%&~/.\-;:=,?@\[\]+]*?)\]([^?\n\r\t].*?)\[/url\]#is";
$replacements[] = $bbcode_tpl['url4'];
// [email]user@domain.tld[/email] code..
$patterns[] = "#\[email\]([a-z0-9&\-_.]+?@[\w\-]+\.([\w\-\.]+\.)?[\w]+)\[/email\]#si";
$replacements[] = $bbcode_tpl['email'];
#
#-----[إستبدله بهذا الكود ]------------------------------------
#
$url_replacer = ( !$userdata['session_logged_in'] ) ? $bbcode_tpl['login_request'] : ( ( ( $userdata['user_posts'] >= $board_config['necessary_post_number'] ) || ( $userdata['user_level'] == 1 ) || ( ( $is_auth['auth_mod'] == 1 ) && ( $board_config['mods_priority'] == 1 ) ) ) ? '' : $bbcode_tpl['post_count_request'] );
// matches a [url]xxxx://[ فقط المشتركين فى المنتدى يمكنهم رؤية الرابط تطوير الزيرو ];/url] code..
$patterns[] = "#\[url\]([\w]+?://([\w\#$%&~/.\-;:=,?@\]+]+|\[(?!url=))*?)\[/url\]#is";
$replacements[] = ( $url_replacer ) ? $url_replacer : $bbcode_tpl['url1'];
// [url][ فقط المشتركين فى المنتدى يمكنهم رؤية الرابط تطوير الزيرو ];/url] code.. (no xxxx:// prefix).
$patterns[] = "#\[url\]((www|ftp)\.([\w\#$%&~/.\-;:=,?@\]+]+|\[(?!url=))*?)\[/url\]#is";
$replacements[] = ( $url_replacer ) ? $url_replacer : $bbcode_tpl['url2'];
// [url=xxxx://[ فقط المشتركين فى المنتدى يمكنهم رؤية الرابط تطوير الزيرو ];phpBB[/url] code..
$patterns[] = "#\[url=([\w]+?://[\w\#$%&~/.\-;:=,?@\[\]+]*?)\]([^?\n\r\t].*?)\[/url\]#is";
$replacements[] = ( $url_replacer ) ? $url_replacer : $bbcode_tpl['url3'];
// [url=[ فقط المشتركين فى المنتدى يمكنهم رؤية الرابط تطوير الزيرو ];phpBB[/url] code.. (no xxxx:// prefix).
$patterns[] = "#\[url=((www|ftp)\.[\w\#$%&~/.\-;:=,?@\[\]+]*?)\]([^?\n\r\t].*?)\[/url\]#is";
$replacements[] = ( $url_replacer ) ? $url_replacer : $bbcode_tpl['url4'];
// [email]user@domain.tld[/email] code..
$patterns[] = "#\[email\]([a-z0-9&\-_.]+?@[\w\-]+\.([\w\-\.]+\.)?[\w]+)\[/email\]#si";
$replacements[] = ( $url_replacer ) ? $url_replacer : $bbcode_tpl['email'];
#
#-----[ إبحث عن ]------------------------------------------
#
function make_clickable($text)
{
#
#-----[ أضف بعده ]------------------------------------
#
global $bbcode_tpl, $userdata, $board_config, $is_auth;
#
#-----[ إبحث عن ]------------------------------------------
#
// matches an "xxxx://yyyy" URL at the start of a line, or after a space.
// xxxx can only be alpha characters.
// yyyy is anything up to the first space, newline, comma, double quote or <
$ret = preg_replace("#(^|[\n ])([\w]+?://[\w\#$%&~/.\-;:=,?@\[\]+]*)#is", "\\1<a href=\"\\2\" target=\"_blank\">\\2</a>", $ret);
// matches a "www|ftp.xxxx.yyyy[/zzzz]" kinda lazy URL thing
// Must contain at least 2 dots. xxxx contains either alphanum, or "-"
// zzzz is optional.. will contain everything up to the first space, newline,
// comma, double quote or <.
$ret = preg_replace("#(^|[\n ])((www|ftp)\.[\w\#$%&~/.\-;:=,?@\[\]+]*)#is", "\\1<a href=\"[ فقط المشتركين فى المنتدى يمكنهم رؤية الرابط تطوير الزيرو ];//\\2\" target=\"_blank\">\\2</a>", $ret);
// matches an email@domain type address at the start of a line, or after a space.
// Note: Only the followed chars are valid; alphanums, "-", "_" and or ".".
$ret = preg_replace("#(^|[\n ])([a-z0-9&\-_.]+?)@([\w\-]+\.([\w\-\.]+\.)*[\w]+)#i", "\\1<a href=\"\\2@\\3mailto:\\2@\\3\">\\2@\\3</a>", $ret);
#
#-----[ إستبدله بهذا الكود ]------------------------------------
#
$url_replacer = ( !$userdata['session_logged_in'] ) ? $bbcode_tpl['login_request'] : ( ( ( $userdata['user_posts'] >= $board_config['necessary_post_number'] ) || ( $userdata['user_level'] == 1 ) || ( ( $is_auth['auth_mod'] == 1 ) && ( $board_config['mods_priority'] == 1 ) ) ) ? '' : $bbcode_tpl['post_count_request'] );
if ( $url_replacer )
{
// matches an "xxxx://yyyy" URL at the start of a line, or after a space.
// xxxx can only be alpha characters.
// yyyy is anything up to the first space, newline, comma, double quote or <
$ret = preg_replace("#(^|[\n ])([\w]+?://[\w\#$%&~/.\-;:=,?@\[\]+]*)#is", $url_replacer, $ret);
// matches a "www|ftp.xxxx.yyyy[/zzzz]" kinda lazy URL thing
// Must contain at least 2 dots. xxxx contains either alphanum, or "-"
// zzzz is optional.. will contain everything up to the first space, newline,
// comma, double quote or <.
$ret = preg_replace("#(^|[\n ])((www|ftp)\.[\w\#$%&~/.\-;:=,?@\[\]+]*)#is", $url_replacer, $ret);
// matches an email@domain type address at the start of a line, or after a space.
// Note: Only the followed chars are valid; alphanums, "-", "_" and or ".".
$ret = preg_replace("#(^|[\n ])([a-z0-9&\-_.]+?)@([\w\-]+\.([\w\-\.]+\.)*[\w]+)#i", $url_replacer, $ret);
}
else
{
// matches an "xxxx://yyyy" URL at the start of a line, or after a space.
// xxxx can only be alpha characters.
// yyyy is anything up to the first space, newline, comma, double quote or <
$ret = preg_replace("#(^|[\n ])([\w]+?://[\w\#$%&~/.\-;:=,?@\[\]+]*)#is", "\\1<a href=\"\\2\" target=\"_blank\">\\2</a>", $ret);
// matches a "www|ftp.xxxx.yyyy[/zzzz]" kinda lazy URL thing
// Must contain at least 2 dots. xxxx contains either alphanum, or "-"
// zzzz is optional.. will contain everything up to the first space, newline,
// comma, double quote or <.
$ret = preg_replace("#(^|[\n ])((www|ftp)\.[\w\#$%&~/.\-;:=,?@\[\]+]*)#is", "\\1<a href=\"[ فقط المشتركين فى المنتدى يمكنهم رؤية الرابط تطوير الزيرو ];//\\2\" target=\"_blank\">\\2</a>", $ret);
// matches an email@domain type address at the start of a line, or after a space.
// Note: Only the followed chars are valid; alphanums, "-", "_" and or ".".
$ret = preg_replace("#(^|[\n ])([a-z0-9&\-_.]+?)@([\w\-]+\.([\w\-\.]+\.)*[\w]+)#i", "\\1<a href=\"\\2@\\3mailto:\\2@\\3\">\\2@\\3</a>", $ret);
}
#********************************
#
# ملاحظة: يجب عليك تطبيق الخطوات التالية على ملف اللغة الرئيسي لديك
#على سبيل المثال أنا سوف أطبقه على ملف اللغة [lang_english]
#
#********************************
#
#-----[ أفتح ]------------------------------------------
#
language/lang_english/lang_admin.php
#
#-----[ إبحث عن ]------------------------------------------
#
$lang['Login_reset_time_explain'] =
#
#-----[ أضف بعده ]------------------------------------
#
//
//
// Hide links mod
//
$lang['Links_Allowed_For_Registered_Only'] = 'لا يسمح للزوار بمشاهدة الروابط ';
$lang['Get_Registered'] = 'اضغط %sللتسجيل%s او ';
$lang['Enter_Forum'] = '%sللدخول%s اذا كنت عضو!';
$lang['Post_Limit'] = 'You must have %s posts to see links on this board';
#
#-----[ إفتح ]------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ إبحث عن ]------------------------------------------
#
$lang['Please_remove_install_contrib'] =
#
#-----[ أضف بعده ]------------------------------------
#
//
// Hide links mod
//
$lang['Links_Allowed_For_Registered_Only'] = 'Only registered users can see links on this board!';
$lang['Get_Registered'] = 'Get %sregistred%s or ';
$lang['Enter_Forum'] = '%senter%s the forums!';
$lang['Post_Limit'] = 'You must have %s posts to see links on this board';
#**************************************
#
# ملاحظة: يجب عليك تطبيق هذه الخطوات على جميع الإستايلات لديك
# أنا سوف أطبقه على إستايل [SubSilver]
#
#*************************************
#
#-----[ أفتح ]------------------------------------------
#
templates/subSilver/bbcode.tpl
#
#-----[ إبحث عن ]------------------------------------------
#
{EMAIL} ({EMAIL}mailto:{EMAIL})
#
#-----[ أضف بعده ]------------------------------------
#
</span><table width="40%" cellspacing="1" cellpadding="3" border="0">
<tr>
<td class="quote">{L_WARNING}
{GET_REGISTERED}{ENTER_FORUM}</td>
</tr>
</table><span class="postbody">
</span><table width="40%" cellspacing="1" cellpadding="3" border="0">
<tr>
<td class="quote">{L_WARNING}</td>
</tr>
</table><span class="postbody">
#
#-----[ إفتح ]------------------------------------------
#
templates/subSilver/admin/board_config_body.tpl
#
#-----[ إبحث عن ]------------------------------------------
#
<tr>
<td class="row1">{L_HOT_THRESHOLD}</td>
<td class="row2"><input class="post" type="text" name="hot_threshold" size="3" maxlength="4" value="{HOT_TOPIC}" /></td>
</tr>
#
#-----[ أضف بعده ]------------------------------------
#
<tr>
<td class="row1">{L_NECESSARY_POST_NUMBER}</td>
<td class="row2"><input class="post" type="text" name="necessary_post_number" size="3" maxlength="4" value="{NECESSARY_POST_NUMBER}" /></td>
</tr>
<tr>
<td class="row1">{L_MODS_PRIORITY}
<span class="gensmall">{L_MODS_PRIORITY_EXPLAIN}</span></td>
<td class="row2"><input type="radio" name="mods_priority" value="1" {MODS_PRIORITY_YES} />{L_YES} <input type="radio" name="mods_priority" value="0" {MODS_PRIORITY_NO} />{L_NO}</td>
</tr>
#
#-----[ إحفظ جميع الملفات وأع درفعها مرة أخرى :]--------------------------
#
#EoM