آموزش فارسي كردن قالب هاي ( phpBB ) ( نسخه كامل )

siavashmusic

Active Member
تغيير در Css File

يه تغييراتي دادم توش هر چند سوالتون رو متوجه نشدم منظورتون از مشکل داشتن با فونت چي بود!!! به هر صورت فکر نکنم مشکلي باشه در غير اين صورت دقيقا مشکلتون رو ذکر کنيد تا رسيدگي بشه موفق باشيد
کد:
/*
  The original phpBB_Portal Theme for phpBB version 2+
  Created by subBlue design
  [url]http://www.subBlue.com[/url]
*/


 /* General page style. The scroll bar colours only visible in IE5.5+ */
body {
	background-color: #FFFFFF;
	scrollbar-face-color: #DEE3E7;
	scrollbar-highlight-color: #FFFFFF;
	scrollbar-shadow-color: #DEE3E7;
	scrollbar-3dlight-color: #D1D7DC;
	scrollbar-arrow-color:  #006699;
	scrollbar-track-color: #EFEFEF;
	scrollbar-darkshadow-color: #98AAB1;
}

/* General font families for common tags */
font,th,td,p { font-family:Tahoma }
a:link,a:active,a:visited { color : #006699; }
a:hover		{ text-decoration: underline; color : #DD6900; }
hr	{ height: 0px; border: solid #D1D7DC 0px; border-top-width: 1px;}


/* This is the border line & background colour round the entire page */
.bodyline	{ background-color: #FFFFFF; border: 1px #98AAB1 solid; }

/* This is the outline round the main forum tables */
.forumline	{ background-color: #FFFFFF; border: 2px #006699 solid; }


/* Main table cell colours and backgrounds */
td.row1	{ background-color: #EFEFEF; }
td.row2	{ background-color: #DEE3E7; }
td.row3	{ background-color: #D1D7DC; }


/*
  This is for the table cell above the Topics, Post & Last posts on the index.php page
  By default this is the fading out gradiated silver background.
  However, you could replace this with a bitmap specific for each forum
*/
td.rowpic {
		background-color: #FFFFFF;
		background-image: url(images/cellpic2.jpg);
		background-repeat: repeat-y;
}

/* Header cells - the blue and silver gradient backgrounds */
th	{
	color: #FFA34F; font-size: 11px; font-weight : bold;
	background-color: #006699; height: 25px;
	background-image: url(images/cellpic3.gif);
}

td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom {
			background-image: url(images/cellpic1.gif);
			background-color:#D1D7DC; border: #FFFFFF; border-style: solid; height: 28px;
}


/*
  Setting additional nice inner borders for the main table cells.
  The names indicate which sides the border will be on.
  Don't worry if you don't understand this, just ignore it :-)
*/
td.cat,td.catHead,td.catBottom {
	height: 29px;
	border-width: 0px 0px 0px 0px;
}
th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR {
	font-weight: bold; border: #FFFFFF; border-style: solid; height: 28px; }
td.row3Right,td.spaceRow {
	background-color: #D1D7DC; border: #FFFFFF; border-style: solid; }

th.thHead,td.catHead { font-size: 12px; border-width: 1px 1px 0px 1px; }
th.thSides,td.catSides,td.spaceRow	 { border-width: 0px 1px 0px 1px; }
th.thRight,td.catRight,td.row3Right	 { border-width: 0px 1px 0px 0px; }
th.thLeft,td.catLeft	  { border-width: 0px 0px 0px 1px; }
th.thBottom,td.catBottom  { border-width: 0px 1px 1px 1px; }
th.thTop	 { border-width: 1px 0px 0px 0px; }
th.thCornerL { border-width: 1px 0px 0px 1px; }
th.thCornerR { border-width: 1px 1px 0px 0px; }


/* The largest text used in the index page title and toptic title etc. */
.maintitle,h1,h2	{
			font-weight: bold; font-size: 22px; font-family: Tahoma;
			text-decoration: none; line-height : 120%; color : #000000;
}


/* General text */
.gen { font-size : 12px; }
.genmed { font-size : 11px; }
.gensmall { font-size : 10px; }
.gen,.genmed,.gensmall { color : #000000; }
a.gen,a.genmed,a.gensmall { color: #006699; text-decoration: none; }
a.gen:hover,a.genmed:hover,a.gensmall:hover	{ color: #DD6900; text-decoration: underline; }


/* The register, login, search etc links at the top of the page */
.mainmenu		{ font-size : 11px; color : #000000 }
a.mainmenu		{ text-decoration: none; color : #006699;  }
a.mainmenu:hover{ text-decoration: underline; color : #DD6900; }


/* Forum category titles */
.cattitle		{ font-weight: bold; font-size: 12px ; letter-spacing: 1px; color : #006699}
a.cattitle		{ text-decoration: none; color : #006699; }
a.cattitle:hover{ text-decoration: underline; }


/* Forum title: Text and link to the forums used in: index.php */
.forumlink		{ font-weight: bold; font-size: 12px; color : #006699; }
a.forumlink 	{ text-decoration: none; color : #006699; }
a.forumlink:hover{ text-decoration: underline; color : #DD6900; }


/* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */
.nav			{ font-weight: bold; font-size: 11px; color : #000000;}
a.nav			{ text-decoration: none; color : #006699; }
a.nav:hover		{ text-decoration: underline; }


/* titles for the topics: could specify viewed link colour too */
.topictitle			{ font-weight: bold; font-size: 11px; color : #000000; }
a.topictitle:link   { text-decoration: none; color : #006699; }
a.topictitle:visited { text-decoration: none; color : #5493B4; }
a.topictitle:hover	{ text-decoration: underline; color : #DD6900; }


/* Name of poster in viewmsg.php and viewtopic.php and other places */
.name			{ font-size : 11px; color : #000000;}

/* Location, number of posts, post date etc */
.postdetails		{ font-size : 10px; color : #000000; }


/* The content of the posts (body of text) */
.postbody { font-size : 12px;}
a.postlink:link	{ text-decoration: none; color : #006699 }
a.postlink:visited { text-decoration: none; color : #5493B4; }
a.postlink:hover { text-decoration: underline; color : #DD6900}


/* Quote & Code blocks */
.code {
	font-family:Tahoma; font-size: 11px; color: #006600;
	background-color: #FAFAFA; border: #D1D7DC; border-style: solid;
	border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
}

.quote {
	font-family:Tahoma; font-size: 11px; color: #444444; line-height: 125%;
	background-color: #FAFAFA; border: #D1D7DC; border-style: solid;
	border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
}


/* Copyright and bottom info */
.copyright		{ font-size: 10px; font-family:Tahoma; color: #444444; letter-spacing: -1px;}
a.copyright		{ color: #444444; text-decoration: none;}
a.copyright:hover { color: #000000; text-decoration: underline;}


/* Form elements */
input,textarea, select {
	color : #000000;
	font: normal 11px  Tahoma;
	border-color : #000000;
}

/* The text input fields background colour */
input.post, textarea.post, select {
	background-color : #FFFFFF;
}

input { text-indent : 2px; }

/* The buttons used for bbCode styling in message post */
input.button {
	background-color : #EFEFEF;
	color : #000000;
	font-size: 11px; font-family:Tahoma;
}

/* The main submit button option */
input.mainoption {
	background-color : #FAFAFA;
	font-weight : bold;
}

/* None-bold submit button */
input.liteoption {
	background-color : #FAFAFA;
	font-weight : normal;
}

/* This is the line in the posting page which shows the rollover
  help line. This is actually a text box, but if set to be the same
  colour as the background no one will know ;)
*/
.helpline { background-color: #DEE3E7; border-style: none; }


/* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */
@import url("formIE.css");
 
  • Like
Reactions: 405

d@nial

Well-Known Member
جناب 405 تغییراتی که شما دادین اشکالات زیادی داره ، اینایی که من الان دیدم

کد:
font,th,td,p { font-family: Tahoma }

بعد از Tahoma باید ; قرار بدین!

کد:
font-weight: bold; font-size: 22px; font-family: " Tahoma;

وجود " اضافی است!
 
  • Like
Reactions: 405

d@nial

Well-Known Member
سیاوش جان سعی کن کدهات رو بین تگ
کد:
 قرار بدی، پستت رو من ویرایش کردم
 

siavashmusic

Active Member
کد:
font,th,td,p { font-family: Tahoma }

بعد از Tahoma باید ; قرار بدین!

کد:
font-weight: bold; font-size: 22px; font-family: " Tahoma;

وجود " اضافی است![/QUOTE]


دانيال جان من اين اشکالاتي که فرموديد در فايل بالايي که گذاشتم برطرف کردم . در مورد قرار دادن کد ها مابين تک مربوطه چشم رو دوتا چشمام
 

405

New Member
سلام:
ممنون از رسیدگی.
منظورم از اینکه فونتها مشکل داره این بود که تبدیل به tahoma نمیشه. مگه این فایل استایل شیت که تو قالب هست خواص کلی قالب (رنگ و اندازه و فونت و...) رو در بر نمیگیره؟ پس چرا من هر تغییری میدم فرقی نمیکنه؟
اون کدهایی هم که آقا سیاوش تغییر دادند رو قرار دادم. ولی کوچکترین تغییری حاصل نشد. (روی لوکال با برنامه ایزی پی اچ پی) قالبم هم پی اچ پی بی بی پرتال هست.
الان هیچ مشکلی نداره. همه چیز درست کار میکنه. الا همون فونتها که arial هست. چاره چیه؟:)
 

siavashmusic

Active Member
این آخرین تغییرات هست اگه مشکلت حل نشد باید دنبال چیز دیگه بگردی( احتمالا توی قالب تمپلیت مورد نظر)



کد:
/*
  The original phpBB_Portal Theme for phpBB version 2+
  Created by subBlue design
  http://www.subBlue.com
*/


 /* General page style. The scroll bar colours only visible in IE5.5+ */
body {
	background-color: #FFFFFF;
	scrollbar-face-color: #DEE3E7;
	scrollbar-highlight-color: #FFFFFF;
	scrollbar-shadow-color: #DEE3E7;
	scrollbar-3dlight-color: #D1D7DC;
	scrollbar-arrow-color:  #006699;
	scrollbar-track-color: #EFEFEF;
	scrollbar-darkshadow-color: #98AAB1;
}

/* General font families for common tags */
font,th,td,p { font-family:Tahoma; }
a:link,a:active,a:visited { color : #006699; }
a:hover		{ text-decoration: underline; color : #DD6900; }
hr	{ height: 0px; border: solid #D1D7DC 0px; border-top-width: 1px;}


/* This is the border line & background colour round the entire page */
.bodyline	{ background-color: #FFFFFF; border: 1px #98AAB1 solid; }

/* This is the outline round the main forum tables */
.forumline	{ background-color: #FFFFFF; border: 2px #006699 solid; }


/* Main table cell colours and backgrounds */
td.row1	{ background-color: #EFEFEF; }
td.row2	{ background-color: #DEE3E7; }
td.row3	{ background-color: #D1D7DC; }


/*
  This is for the table cell above the Topics, Post & Last posts on the index.php page
  By default this is the fading out gradiated silver background.
  However, you could replace this with a bitmap specific for each forum
*/
td.rowpic {
		background-color: #FFFFFF;
		background-image: url(images/cellpic2.jpg);
		background-repeat: repeat-y;
}

/* Header cells - the blue and silver gradient backgrounds */
th	{
	color: #FFA34F; font-size: 11px; font-weight : bold;
	background-color: #006699; height: 25px;
	background-image: url(images/cellpic3.gif);
}

td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom {
			background-image: url(images/cellpic1.gif);
			background-color:#D1D7DC; border: #FFFFFF; border-style: solid; height: 28px;
}


/*
  Setting additional nice inner borders for the main table cells.
  The names indicate which sides the border will be on.
  Don't worry if you don't understand this, just ignore it :-)
*/
td.cat,td.catHead,td.catBottom {
	height: 29px;
	border-width: 0px 0px 0px 0px;
}
th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR {
	font-weight: bold; border: #FFFFFF; border-style: solid; height: 28px; }
td.row3Right,td.spaceRow {
	background-color: #D1D7DC; border: #FFFFFF; border-style: solid; }

th.thHead,td.catHead { font-size: 12px; border-width: 1px 1px 0px 1px; }
th.thSides,td.catSides,td.spaceRow	 { border-width: 0px 1px 0px 1px; }
th.thRight,td.catRight,td.row3Right	 { border-width: 0px 1px 0px 0px; }
th.thLeft,td.catLeft	  { border-width: 0px 0px 0px 1px; }
th.thBottom,td.catBottom  { border-width: 0px 1px 1px 1px; }
th.thTop	 { border-width: 1px 0px 0px 0px; }
th.thCornerL { border-width: 1px 0px 0px 1px; }
th.thCornerR { border-width: 1px 1px 0px 0px; }


/* The largest text used in the index page title and toptic title etc. */
.maintitle,h1,h2	{
			font-weight: bold; font-size: 22px; font-family:Tahoma;
			text-decoration: none; line-height : 120%; color : #000000;
}


/* General text */
.gen { font-size : 12px; }
.genmed { font-size : 11px; }
.gensmall { font-size : 10px; }
.gen,.genmed,.gensmall { color : #000000; }
a.gen,a.genmed,a.gensmall { color: #006699; text-decoration: none; }
a.gen:hover,a.genmed:hover,a.gensmall:hover	{ color: #DD6900; text-decoration: underline; }


/* The register, login, search etc links at the top of the page */
.mainmenu		{ font-size : 11px; color : #000000 }
a.mainmenu		{ text-decoration: none; color : #006699;  }
a.mainmenu:hover{ text-decoration: underline; color : #DD6900; }


/* Forum category titles */
.cattitle		{ font-weight: bold; font-size: 12px ; letter-spacing: 1px; color : #006699}
a.cattitle		{ text-decoration: none; color : #006699; }
a.cattitle:hover{ text-decoration: underline; }


/* Forum title: Text and link to the forums used in: index.php */
.forumlink		{ font-weight: bold; font-size: 12px; color : #006699; }
a.forumlink 	{ text-decoration: none; color : #006699; }
a.forumlink:hover{ text-decoration: underline; color : #DD6900; }


/* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */
.nav			{ font-weight: bold; font-size: 11px; color : #000000;}
a.nav			{ text-decoration: none; color : #006699; }
a.nav:hover		{ text-decoration: underline; }


/* titles for the topics: could specify viewed link colour too */
.topictitle			{ font-weight: bold; font-size: 11px; color : #000000; }
a.topictitle:link   { text-decoration: none; color : #006699; }
a.topictitle:visited { text-decoration: none; color : #5493B4; }
a.topictitle:hover	{ text-decoration: underline; color : #DD6900; }


/* Name of poster in viewmsg.php and viewtopic.php and other places */
.name			{ font-size : 11px; color : #000000;}

/* Location, number of posts, post date etc */
.postdetails		{ font-size : 10px; color : #000000; }


/* The content of the posts (body of text) */
.postbody { font-size : 12px;}
a.postlink:link	{ text-decoration: none; color : #006699 }
a.postlink:visited { text-decoration: none; color : #5493B4; }
a.postlink:hover { text-decoration: underline; color : #DD6900}


/* Quote & Code blocks */
.code {
	font-family:Tahoma; font-size: 11px; color: #006600;
	background-color: #FAFAFA; border: #D1D7DC; border-style: solid;
	border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
}

.quote {
	font-family:Tahoma; font-size: 11px; color: #444444; line-height: 125%;
	background-color: #FAFAFA; border: #D1D7DC; border-style: solid;
	border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
}


/* Copyright and bottom info */
.copyright		{ font-size: 10px; font-family:Tahoma; color: #444444; letter-spacing: -1px;}
a.copyright		{ color: #444444; text-decoration: none;}
a.copyright:hover { color: #000000; text-decoration: underline;}


/* Form elements */
input,textarea, select {
	color : #000000;
	font: normal 11px  Tahoma;
	border-color : #000000;
}

/* The text input fields background colour */
input.post, textarea.post, select {
	background-color : #FFFFFF;
}

input { text-indent : 2px; }

/* The buttons used for bbCode styling in message post */
input.button {
	background-color : #EFEFEF;
	color : #000000;
	font-size: 11px; font-family:Tahoma;
}

/* The main submit button option */
input.mainoption {
	background-color : #FAFAFA;
	font-weight : bold;
}

/* None-bold submit button */
input.liteoption {
	background-color : #FAFAFA;
	font-weight : normal;
}

/* This is the line in the posting page which shows the rollover
  help line. This is actually a text box, but if set to be the same
  colour as the background no one will know ;)
*/
.helpline { background-color: #DEE3E7; border-style: none; }


/* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */
@import url("formIE.css");
 

405

New Member
سلام:
ممنون. واقعا نمیدونم مشکل از کجاست. اصلا اون فایل هیچ تاثیری نداره گویا! حتی حذفشم کردم ولی فوروم بدون مشکل اومد. ولی بازهم فونتش arial بود.:cry:
 

d@nial

Well-Known Member
405 گفت:
سلام:
ممنون. واقعا نمیدونم مشکل از کجاست. اصلا اون فایل هیچ تاثیری نداره گویا! حتی حذفشم کردم ولی فوروم بدون مشکل اومد. ولی بازهم فونتش arial بود.:cry:
مطمئنین تغییرات رو درست انجام میدین؟
 

siavashmusic

Active Member
شما یه عکس از صفحه مورد نظرتون بزارین اینجا تا ببینیم آخه شما چی می خواین؟!!!
 

elecit

Member
ببخشید , من از روش توضیح داده شده در صفحه اول استفاده کردم .
من Template فروم irani.ch رو گرفتم و فارسی کردم (مطلبق آموزش) اما دقیقا مثل Temlate اون در نیومد . میشه تغییرات اضافی رو بیان کنید ؟
 

Hyper

Active Member
تمپلت irani.ch متعلق به خوشه و سیستمیه که امیرعباس فارسی کرده
اون تمپلتی هم که برای دانلود گذاشتن یه تفاوتهایی داره

اگر عین همون رو میخواهید باید ازشون بخرید ...

رضا
 

phpbb

New Member
:sad: از بابت آموزش ممنون فقط یه سوال
از کجا تشخیص بدیم که اون فیلد رو که داریم فارسی میکنم مال ایمیل، پسورد، مسنجر، نام کاربری و... است که بهشون دست نزنیم؟
 
بسم الله الرحمن الرحيم
با سلام
خوب دوست عزيز آن قسمتي كه شما بايد كد ها را بگذاريد نوشته شده است كه براي نام كاربري username براي پسورد password براي ايميل Email براي ... .
خودتان بايد پيدا بكنيد . كار زياد سختي نيست.
انشاءالله موفق باشيد
با تشكر
 

roshanaiy

Active Member
سلام به همه ي عزيزان خبره . سوالي كه داشتم اينه كه لينك قرار داده شده در صفحه ي اول براي phpbb2 هست و من روي هاستم بالاخره با هزاران زحمت و مشقت موفق شدم phpbb3 رو نصب كنم .
سوالم اينه كه مي تونم از اين تمپليت ها در سايتم بهره ببرم ؟
راستي آقا رضاي عزيز در آموزش سطح كار رو متوسط ارزيابي كردن و من كاملا مبتدي ام . يعني اصلا هيچ چيز از php سرم نمي شه . آيا كسي مي تونه به من يك كمك خفن بكنه تا من كارم راه بي افته و بتونم فرومم رو فارسي كنم ؟
اگه كسي اين كار رو بكنه خيلي خيلي سپاس گذارش مي شم :)
 

roshanaiy

Active Member
به عنوان مثال اگر در مورد input كدي مشابه اين داشته باشيم
کد:
<input class="post" type="text" name="username" size="10"/>
به اين شكل تغيير ميكنه :
کد:
<input class="post" type="text" name="username" size="10" onKeyDown="FKeyDown();" onkeypress="FKeyPress();"/>

:nokte: اگر كد رو به اين شكل تغيير بدم درسته ؟
PHP:
<input onKeyDown="FKeyDown();" onkeypress="FKeyPress();"  class="post" type="text" name="username" size="10" />
 

roshanaiy

Active Member
خوب خيلي ممنونم كه هيچ كس نيست به من كمك كنه .
هر بار من مي پرسم و اينقدر منتظر مي مونم و در زمان انتظار رو سوالام فكر مي كنم كه ياد مي گيرم چه طورين

الانم يه سوال ديگه مي پرسم . شايد كسي پيدا شه جواب بده
در phpbb3 چه طوري مي تونم فونت قسمت هاي مختلف رو tahoma كنم ؟
 

iman4web

Banned
سلام
ميشه آموزش كامل و اديت شده فارسي سازي قالب را با فرمت pdf براي دانلود قرار بديد تا بتونيم بصورت آفلاين بخونيم و استفاده كنيم ؟؟
 

arashdj72

New Member
سلام خدمت آقای هاپر عزیز!!!
میخواستم آیا فارسی سازیه قالب phpbb3 هم به همین صورت است؟
ممنون میشم توضیح بدید.
 

جدیدترین ارسال ها

بالا