.:: توحيد مقاسات المواضيع ::.
المشرف: alhitary
-
- مشرف سابق
- مشاركات: 1997
- اشترك في: الخميس فبراير 20, 2003 6:33 pm
- مكان: -- K.S.A --
????? ???? ???? ?? ??? ????? ? ??? ?????
?? ??????? ??????? ????? ?? ??????????????????????????? ???? ???? ?????? ?
# استمارة الدعم الفني
ܔܓܛܜ قبل أن تصبح مسؤولاً في منتدى .. أرجو الدخول ܔܓܛܜ
آللهــم اجعـــل القــرآن ربيــع قلوبنــا .. ونــور صدورنــا .. وجــلاء أحزاننــا .. وذهاب همومنــا
![صورة](http://www.samysoft.net/forumim/islamic1/1/gfchhfghfgh.gif)
رجاء لا تبحث عن بريدي الخاص فلن أدعم بالماسنجر أو الرسائل الخاصة![Idea :idea:](./images/smilies/icon_idea.gif)
ܔܓܛܜ قبل أن تصبح مسؤولاً في منتدى .. أرجو الدخول ܔܓܛܜ
آللهــم اجعـــل القــرآن ربيــع قلوبنــا .. ونــور صدورنــا .. وجــلاء أحزاننــا .. وذهاب همومنــا
![صورة](http://www.samysoft.net/forumim/islamic1/1/gfchhfghfgh.gif)
رجاء لا تبحث عن بريدي الخاص فلن أدعم بالماسنجر أو الرسائل الخاصة
![Idea :idea:](./images/smilies/icon_idea.gif)
-
- مشرف سابق
- مشاركات: 1997
- اشترك في: الخميس فبراير 20, 2003 6:33 pm
- مكان: -- K.S.A --
???? ??? ????? ??? ????? ??? ??? ???? ????? ???????
????? : Force Word Wrapping
????? : Force Word Wrapping
كود: تحديد الكل
#################################################################
## Mod Title: Force Word Wrapping
## Mod Author: TerraFrost (http://www.frostjedi.com/phpbb)
## Mod Version: 1.01
## Mod Releasedate: Mar. 30, 2004
## Mod Description: Word Wrapping is normally something that is transparant,
## and goes on, unnoticed, all the time. As text approaches
## the scroll bar, or whatever, word wrapping is what stops
## it from going past it. In short, word wrapping creates
## new lines whenever not having a new line would mess things
## up.
##
## However, traditional word wrapping algorithims rely on
## spaces to determine when the new line should occur. If you
## have a string of characters that has no spaces yet still
## approaches the scroll bar, you may have a problem. Indeed,
## you may find yourself with everything stretched, horizontoly.
## This script attempts to remedy this.
##
## For support / comments / whatever, visit here:
## http://www.frostjedi.com/phpbb/viewforum.php?f=6
##
## Mod Changelog: x.xx: - add ability in admin control panel to alter number of
## chars it takes before a space is added.
## 1.01: - the '\n' character no longer counts towards the eighty
## characters that are required before a space is inserted.
## 1.00: - initial release
##
## Installation Level: Easy
## Installation Time: 1 Minutes
## New Features:
## Force Word Wrapping
##
## Files To Edit: 5
## includes/bbcode.php
## includes/topic_review.php
## privmsg.php
## viewtopic.php
## posting.php
##
#################################################################
#
#
#-----[ OPEN ]------------------------------------------
#
includes/bbcode.php
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]-----------------------------------
#
// Force Word Wrapping (by TerraFrost)
function word_wrap_pass($message) {
$maxChars = 70;
$curCount = 0;
$tempText = "";
$finalText = "";
$inTag = false;
for ($num=0;$num<strlen($message);$num++) {
$curChar = $message{$num};
if ($curChar == "<") {
$tempText .= "<";
$inTag = true;
} elseif ($inTag && $curChar == ">") {
$tempText .= ">";
$inTag = false;
} elseif ($inTag)
$tempText .= $curChar;
elseif ($curChar == " " || $curChar == "\n") { // at this point, !$inTag is assumed.
$finalText .= $tempText . " ";
$tempText = "";
$curCount = 0;
} elseif ($curCount >= $maxChars) {
$finalText .= $tempText . $curChar . " ";
$tempText = "";
$curCount = 0;
} else {
$tempText .= $curChar;
$curCount++;
}
}
return $finalText . $tempText;
}
#
#-----[ OPEN ]------------------------------------------
#
includes/topic_review.php
#
#-----[ FIND ]------------------------------------------
#
if ( $board_config['allow_smilies'] && $row['enable_smilies'] )
{
$message = smilies_pass($message);
}
#
#-----[ AFTER, ADD ]------------------------------------
#
$message = word_wrap_pass($message);
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
$message = str_replace("\n", "\n<br />\n", $message);
#
#-----[ AFTER, ADD ]------------------------------------
#
$message = word_wrap_pass($message);
#
#-----[ OPEN ]------------------------------------------
#
privmsg.php
#
#-----[ FIND ]------------------------------------------
#
if ( $board_config['allow_smilies'] && $privmsg['privmsgs_enable_smilies'] )
{
$private_message = smilies_pass($private_message);
}
#
#-----[ AFTER, ADD ]------------------------------------
#
$private_message = word_wrap_pass($private_message);
#
#-----[ FIND ]------------------------------------------
#
if ( $smilies_on )
{
$preview_message = smilies_pass($preview_message);
}
#
#-----[ AFTER, ADD ]------------------------------------
#
$preview_message = word_wrap_pass($preview_message);
#
#-----[ OPEN ]------------------------------------------
#
posting.php
#
#-----[ FIND ]------------------------------------------
#
$preview_message = str_replace("\n", '<br />', $preview_message);
#
#-----[ AFTER, ADD ]------------------------------------
#
$preview_message = word_wrap_pass($preview_message);
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
# استمارة الدعم الفني
ܔܓܛܜ قبل أن تصبح مسؤولاً في منتدى .. أرجو الدخول ܔܓܛܜ
آللهــم اجعـــل القــرآن ربيــع قلوبنــا .. ونــور صدورنــا .. وجــلاء أحزاننــا .. وذهاب همومنــا
![صورة](http://www.samysoft.net/forumim/islamic1/1/gfchhfghfgh.gif)
رجاء لا تبحث عن بريدي الخاص فلن أدعم بالماسنجر أو الرسائل الخاصة![Idea :idea:](./images/smilies/icon_idea.gif)
ܔܓܛܜ قبل أن تصبح مسؤولاً في منتدى .. أرجو الدخول ܔܓܛܜ
آللهــم اجعـــل القــرآن ربيــع قلوبنــا .. ونــور صدورنــا .. وجــلاء أحزاننــا .. وذهاب همومنــا
![صورة](http://www.samysoft.net/forumim/islamic1/1/gfchhfghfgh.gif)
رجاء لا تبحث عن بريدي الخاص فلن أدعم بالماسنجر أو الرسائل الخاصة
![Idea :idea:](./images/smilies/icon_idea.gif)
-
- مشرف سابق
- مشاركات: 1997
- اشترك في: الخميس فبراير 20, 2003 6:33 pm
- مكان: -- K.S.A --
??? ??? ?????? ![Smile :)](./images/smilies/icon_e_smile.gif)
![Smile :)](./images/smilies/icon_e_smile.gif)
# استمارة الدعم الفني
ܔܓܛܜ قبل أن تصبح مسؤولاً في منتدى .. أرجو الدخول ܔܓܛܜ
آللهــم اجعـــل القــرآن ربيــع قلوبنــا .. ونــور صدورنــا .. وجــلاء أحزاننــا .. وذهاب همومنــا
![صورة](http://www.samysoft.net/forumim/islamic1/1/gfchhfghfgh.gif)
رجاء لا تبحث عن بريدي الخاص فلن أدعم بالماسنجر أو الرسائل الخاصة![Idea :idea:](./images/smilies/icon_idea.gif)
ܔܓܛܜ قبل أن تصبح مسؤولاً في منتدى .. أرجو الدخول ܔܓܛܜ
آللهــم اجعـــل القــرآن ربيــع قلوبنــا .. ونــور صدورنــا .. وجــلاء أحزاننــا .. وذهاب همومنــا
![صورة](http://www.samysoft.net/forumim/islamic1/1/gfchhfghfgh.gif)
رجاء لا تبحث عن بريدي الخاص فلن أدعم بالماسنجر أو الرسائل الخاصة
![Idea :idea:](./images/smilies/icon_idea.gif)
???? ??? ????? ??? ????? ??? ??? ???? ????? ???????
????? : Force Word Wrapping
???:
#################################################################
## Mod Title: Force Word Wrapping
## Mod Author: TerraFrost (http://www.frostjedi.com/phpbb)
## Mod Version: 1.01
## Mod Releasedate: Mar. 30, 2004
## Mod Description: Word Wrapping is normally something that is transparant,
## and goes on, unnoticed, all the time. As text approaches
## the scroll bar, or whatever, word wrapping is what stops
## it from going past it. In short, word wrapping creates
## new lines whenever not having a new line would mess things
## up.
##
## However, traditional word wrapping algorithims rely on
## spaces to determine when the new line should occur. If you
## have a string of characters that has no spaces yet still
## approaches the scroll bar, you may have a problem. Indeed,
## you may find yourself with everything stretched, horizontoly.
## This script attempts to remedy this.
##
## For support / comments / whatever, visit here:
## http://www.frostjedi.com/phpbb/viewforum.php?f=6
##
## Mod Changelog: x.xx: - add ability in admin control panel to alter number of
## chars it takes before a space is added.
## 1.01: - the '\n' character no longer counts towards the eighty
## characters that are required before a space is inserted.
## 1.00: - initial release
##
## Installation Level: Easy
## Installation Time: 1 Minutes
## New Features:
## Force Word Wrapping
##
## Files To Edit: 5
## includes/bbcode.php
## includes/topic_review.php
## privmsg.php
## viewtopic.php
## posting.php
##
#################################################################
#
#
#-----[ OPEN ]------------------------------------------
#
includes/bbcode.php
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]-----------------------------------
#
// Force Word Wrapping (by TerraFrost)
function word_wrap_pass($message) {
$maxChars = 70;
$curCount = 0;
$tempText = "";
$finalText = "";
$inTag = false;
for ($num=0;$num<strlen($message);$num++) {
$curChar = $message{$num};
if ($curChar == "<") {
$tempText .= "<";
$inTag = true;
} elseif ($inTag && $curChar == ">") {
$tempText .= ">";
$inTag = false;
} elseif ($inTag)
$tempText .= $curChar;
elseif ($curChar == " " || $curChar == "\n") { // at this point, !$inTag is assumed.
$finalText .= $tempText . " ";
$tempText = "";
$curCount = 0;
} elseif ($curCount >= $maxChars) {
$finalText .= $tempText . $curChar . " ";
$tempText = "";
$curCount = 0;
} else {
$tempText .= $curChar;
$curCount++;
}
}
return $finalText . $tempText;
}
#
#-----[ OPEN ]------------------------------------------
#
includes/topic_review.php
#
#-----[ FIND ]------------------------------------------
#
if ( $board_config['allow_smilies'] && $row['enable_smilies'] )
{
$message = smilies_pass($message);
}
#
#-----[ AFTER, ADD ]------------------------------------
#
$message = word_wrap_pass($message);
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
$message = str_replace("\n", "\n<br />\n", $message);
#
#-----[ AFTER, ADD ]------------------------------------
#
$message = word_wrap_pass($message);
#
#-----[ OPEN ]------------------------------------------
#
privmsg.php
#
#-----[ FIND ]------------------------------------------
#
if ( $board_config['allow_smilies'] && $privmsg['privmsgs_enable_smilies'] )
{
$private_message = smilies_pass($private_message);
}
#
#-----[ AFTER, ADD ]------------------------------------
#
$private_message = word_wrap_pass($private_message);
#
#-----[ FIND ]------------------------------------------
#
if ( $smilies_on )
{
$preview_message = smilies_pass($preview_message);
}
#
#-----[ AFTER, ADD ]------------------------------------
#
$preview_message = word_wrap_pass($preview_message);
#
#-----[ OPEN ]------------------------------------------
#
posting.php
#
#-----[ FIND ]------------------------------------------
#
$preview_message = str_replace("\n", '<br />', $preview_message);
#
#-----[ AFTER, ADD ]------------------------------------
#
$preview_message = word_wrap_pass($preview_message);
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
???? ???? ??? ????? ?? ??????? ???
????? ????? ???? ????? ???? ??? ???????
Fatal error: Cannot redeclare word_wrap_pass() (previously declared in /home/lieilne/public_html/phpbb2/includes/bbcode.php:1239) in /home/lieilne/public_html/phpbb2/includes/bbcode.php on line 1274
مازلت في بداية المشوار ونصائحكم تهمني
http://www.lieil.com/montda
http://www.lieil.com/montda
?? ?? ???? ?? ???? ????? ??? ???? ????
مازلت في بداية المشوار ونصائحكم تهمني
http://www.lieil.com/montda
http://www.lieil.com/montda
- momo2020
- عضو فعال
- مشاركات: 625
- اشترك في: الأربعاء ديسمبر 21, 2005 3:08 am
- مكان: مصـــ ام الدنيا ـــر
- اتصال:
?????? ?????
?? ??? ?????? ????? ?? ??? ??? ?? ???????
???? ??? ?? ??????? ??????![Razz :P](./images/smilies/icon_razz.gif)
?? ??? ?????? ????? ?? ??? ??? ?? ???????
???? ??? ?? ??????? ??????
![Razz :P](./images/smilies/icon_razz.gif)
كلمتان خفيفتان على اللسان ثقيلتان في الميزان حبيبتان الى الرحمن .. سبحان الله وبحمده سبحان الله العظيم .
هـــلا
![Razz :P](./images/smilies/icon_razz.gif)
الموجودون الآن
المتصفحون للمنتدى الآن: لا يوجد أعضاء مسجلين متصلين و 7 زوار