[phpNuke] فارسي كردن يك Theme

Mamali

Member
سلام آقا هركي مي تونه به من كمك كنه...
من يه theme گرفتم كه خيلي خوشگله ازتون مي خواستم كه اگر كسي بلده اينو فارسي كنه ما مخلصش ميشيم شديد...
اينم لينك اون فايل:
http://www.pixame.com/dl/Phpnuke Free Themes/Pixame_v1.zip
اگه كسي تونست اينو فارسي كنه خيلي دمش گرم به ايميلم بفرسته يا لينك بده..
 

Babak Sateli

Active Member
سلام آقاي Mamali

به زودي مقاله اي براي سايت ميفرستم كه پس از مطالعه آن خود شما
هم مي توانيد Theme مربوطه را فارسي كنيد
 

Babak Sateli

Active Member
من فكر كردم شما مقاله را ديديد
مقاله شماره 1 را مي توانيد در آدرس زير پيدا كنيد :
http://www.majidonline.com/modules.php?name=Forums&file=viewtopic&t=2788
مقاله شماره 2 را نيز مي توانيد در آدرس زير پيدا كنيد :
http://www.majidonline.com/modules.php?name=Forums&file=viewtopic&t=2802

اگر مشكلي داشتيد براي من پيغام بگذاريد تا برايتان توضيح بدهم
با تشكر
 

Babak Sateli

Active Member
من فایلی را که گفته بودید دیدم
فارسی کردن این بسیار ساده است.
حتی فایلهای PSD را هم برای شما گذاشته است.
البته من نمیدونم این برای چه برنامه ای است ؟ چون Theme استاندارد ویندوز نیست.
ولی توضیح به این صورت است :

این Theme از چند نوع فایل تشکیل شده :

1) HTML که یک سری توضیحات هستند
2) PHP که حتماً با این پسوند آشنا هستید
3) یک سری تصاویر با پسوند Gif در شاخه Images
4) یک سری فایل PSD در شاخه psd
5) و 2 فایل با پسوند css در شاخه Style

خوب حالا به شما توضیح می دهم که فایلهای با پسوند HTML ، PHP و css را
می توانید با برنامه ای با نام Macromedia Dreamweaver ویرایش کنید و هر جایی
که لازم باشد را فارسی کنید
این هم لینک دانلود برنامه Dreamweaver :
http://www.dreamweaver.com

دو نوع فایل gif و PSD را هم می توانید با نرم افزار Photoshop ویرایش کنید.
این هم لینک این نرم افزار :
http://www.adobe.com/products/photoshop/reviews.html

ولی تا آنجایی که من دیدم فارسی کردن این Theme در 5 دقیقه انجام می شود.
موفق باشید
 

Mamali

Member
سلام آقا دستت درد نكنه.
ولي مثل اينكه منظورم را متوجه نشده ايد.من الان دارم تو كدوم انجمن مينويسم؟خب معلومه PHP NUKE موضوع من هم راجع به همين برنامه بود كدنويسي HTML اون مهمه كه من بلد نيستم.عكساشو راحت مي تونم ويرايش كنم.ولي كدها رو نمي تونم ويرايش كنم.
اميد وارم اينبار متوجه منظورم شده باشيد....
 

Babak Sateli

Active Member
سلام دوست عزيز

من هر چي نگاه كردم جايي نديدم كه يك نوشته باشه كه بشه فارسيش كرد !
اين كد PHP مخصوص اين Theme شما هست :

کد:
<?php

/************************************************************/
/* THEME NAME : Pixame_v1                                   */
/* copyright 2003, 2004 Carl-Emmanuel Favre                 */
/* http://www.pixame.com                                    */
/* CREATED: 20/12/2002                                      */
/* [email][email protected][/email]                                    */
/************************************************************/


/************************************************************/
/* Theme Colors                                             */
/************************************************************/
$bgcolor1 = "#E4EAFC";
$bgcolor2 = "#F2F5FE";
$bgcolor3 = "#E4EAFC";
$bgcolor4 = "#F2F5FE";
$textcolor1 = "#000000";
$textcolor2 = "#000000";

/************************************************************/
/* Tables                                                   */
/************************************************************/

function OpenTable() {
    global $bgcolor1, $bgcolor2;
    echo "<table  width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\" bgcolor=\"$bgcolor2\"  align=\"center\"><tr><td>\n";
    echo "<table   width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\" bgcolor=\"$bgcolor1\"  align=\"center\"><tr><td >\n";
}

function CloseTable() {
    echo "</td></tr></table></td></tr></table>\n";
}

function OpenTable2() {
    global $bgcolor1, $bgcolor2;
    echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"2\" bgcolor=\"$bgcolor2\" align=\"center\"><tr><td>\n";
    echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"2\" bgcolor=\"$bgcolor1\"  align=\"center\"><tr><td>\n";
}

function CloseTable2() {
    echo "</td></tr></table></td></tr></table>\n";
}

function FormatStory($thetext, $notes, $aid, $informant) {
    global $anonymous;
    if ($notes != "") {
	$notes = "<b>"._NOTE."</b> <i>$notes</i>\n";
    } else {
	$notes = "";
    }
    if ("$aid" == "$informant") {
	echo "<font class=\"content\">$thetext<br>$notes</font>\n";
    } else {
	if($informant != "") {
	    $boxstuff = "<a href=\"modules.php?name=Your_Account&op=userinfo&uname=$informant\">$informant</a> ";
	} else {
	    $boxstuff = "$anonymous ";
	}
	$boxstuff .= ""._WRITES." <i>\"$thetext\"</i> $notes\n";
	echo "<font class=\"content\">$boxstuff</font>\n";
    }
}

/*****************************************************************************************/
/* Theme Header Start                                                                    */
/*****************************************************************************************/
function themeheader() {

	 
	 include("header.htm");
	 
 echo"<table width=\"98%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"D2DBF5\">\n"
."<tr>\n"
."<td width=\"10\" background=\"themes/Pixame_v1/images/block_space_left.gif\"><img src=\"themes/Pixame_v1/images/Pixel.gif\" width=\"10\" height=\"1\"></td>\n"
."<td width=\"150\" valign=\"top\">\n";
		 blocks(left);
echo"</td>\n"
."<td width=\"10\"><img src=\"themes/Pixame_v1/images/Pixel.gif\" width=\"10\" height=\"1\"></td>\n"
."<td width=\"100%\" valign=\"top\">\n";
	 
}

/*****************************************************************************************/
/* Theme Header End                                                                      */
/*****************************************************************************************/




/*****************************************************************************************/
/* Theme Footer Start                                                                    */
/*****************************************************************************************/
function themefooter() {
    global $index;
    if ($index == 1) {
		
		
		
	 echo "</td>\n"
      	 ."<td width=\"10\"><img src=\"themes/Pixame_v1/images/Pixel.gif\" width=\"10\" height=\"1\"></td>\n"
      	 ."<td width=\"150\" valign=\"top\">\n";
blocks(right);
	}
	 echo "</td>\n"
      	 ."<td width=\"10\" background=\"themes/Pixame_v1/images/block_space_right.gif\"><img src=\"themes/Pixame_v1/images/Pixel.gif\" width=\"10\" height=\"1\"></td>\n"
      	 ."</tr>\n"
      	 ."</table>\n";
		 include("footer.htm");
		 
		 
		 
     echo"<br>\n"
      	 ."</div>\n"
      	 ."</body>\n";
		 }
		 
/*****************************************************************************************/
/* Theme Footer End                                                                      */
/*****************************************************************************************/




/*****************************************************************************************/
/* Article Block Start                                                                   */
/*****************************************************************************************/

/************************************************************/
/* Story Block Start                                        */
/************************************************************/

function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
    global $anonymous;

include("story.htm");

}

/************************************************************/
/* Story Block End                                          */
/************************************************************/

/************************************************************/
/* Article Block (Read More - Comments) Start               */
/************************************************************/


function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
    global $admin, $sid;


include("article.htm");
		 
		 }
		 
/************************************************************/
/* Article Block (Read More - Comments) End                 */
/************************************************************/

/*****************************************************************************************/
/* Article Block End                                                                     */
/*****************************************************************************************/




/*****************************************************************************************/
/* Blocks Start                                                                          */
/*****************************************************************************************/


function themesidebox($title, $content) {
include("blocks.htm");

}

/*****************************************************************************************/
/* Blocks End                                                                            */
/*****************************************************************************************/

?>

ضمناْ فايلهاي HTML آن هم خالي هستند و يك سري كد چيدن تصوير دارند و بس !

دو فايل هم با نامهاي style.css و styleNN.css وجود دارند كه از نوع Cascading Style Sheet
هستند و اطلاعات مربوط به فونت را نگهداري مي كنند.
ميشه لطفاْ توضيح بديد كجاي اين Theme را مي خواهيد فارسي كنيد ؟
تنها قسمتي كه ميشه فارسي كرد ، يعني در اصل نوشته اي دارد كه بشه فارسي كرد
گرافيك آن هست !

موفق باشيد
 

Mamali

Member
سلام آقا متوجه نشدي من چي مي گم...
منظور از فارسي كردن همون از راست به چپ كردن نوشته ها است.بايد تيبل ها رو از راست به چپ كرد...شما خودت PHP NUKE كار كردي...؟؟؟
 

Mamali

Member
سلام
آقا شرمنده چرا ناراحت شدي :oops: من اصلا قصد بدي نداشتم.به خدا خيلي ام ممنون كه كمكم كردي ولي منظورم رو فقط توضيح دادم.اگر ناراحت شدي ببخشيد.شرمنده شرمنده شرمنده شرمنده شرمنده شرمنده شرمنده شرمنده شرمنده شرمنده شرمنده شرمنده شرمنده شرمنده شرمنده شرمنده شرمنده شرمنده شرمنده شرمنده ....
 

Babak Sateli

Active Member
نه قربان

من فقط قصد كمك دارم
به هر حال اميدوارم دوستان بتونن به شما كمك كنند

موفق باشيد
 

Mamali

Member
سلام...به هر حال ببخشيد ناراحتتون كردم...
يكي از دوستان برام رديفش كرد...از علي اوكي ممنونم...همينطورم از شما آقاي ساطلي...
کد:
<?php

/************************************************************/
/* THEME NAME : Pixame_v1                                   */
/* copyright 2003, 2004 Carl-Emmanuel Favre                 */
/* http://www.pixame.com                                    */
/* CREATED: 20/12/2002                                      */
/* [email][email protected][/email]                                    */
/************************************************************/


/************************************************************/
/* Theme Colors                                             */
/************************************************************/
$bgcolor1 = "#E4EAFC";
$bgcolor2 = "#F2F5FE";
$bgcolor3 = "#E4EAFC";
$bgcolor4 = "#F2F5FE";
$textcolor1 = "#000000";
$textcolor2 = "#000000";

/************************************************************/
/* Tables                                                   */
/************************************************************/

function OpenTable() {
    global $bgcolor1, $bgcolor2;
    echo "<table  width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\" bgcolor=\"$bgcolor2\"  align=\"center\"><tr><td>\n";
    echo "<table   width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\" bgcolor=\"$bgcolor1\"  align=\"center\"><tr><td >\n";
}

function CloseTable() {
    echo "</td></tr></table></td></tr></table>\n";
}

function OpenTable2() {
    global $bgcolor1, $bgcolor2;
    echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"2\" bgcolor=\"$bgcolor2\" align=\"center\"><tr><td>\n";
    echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"2\" bgcolor=\"$bgcolor1\"  align=\"center\"><tr><td>\n";
}

function CloseTable2() {
    echo "</td></tr></table></td></tr></table>\n";
}

function FormatStory($thetext, $notes, $aid, $informant) {
    global $anonymous;
    if ($notes != "") {
	$notes = "<b>"._NOTE."</b> <i>$notes</i>\n";
    } else {
	$notes = "";
    }
    if ("$aid" == "$informant") {
	echo "<font class=\"content\">$thetext<br>$notes</font>\n";
    } else {
	if($informant != "") {
	    $boxstuff = "<a href=\"modules.php?name=Your_Account&op=userinfo&uname=$informant\">$informant</a> ";
	} else {
	    $boxstuff = "$anonymous ";
	}
	$boxstuff .= ""._WRITES." <i>\"$thetext\"</i> $notes\n";
	echo "<font class=\"content\">$boxstuff</font>\n";
    }
}

/*****************************************************************************************/
/* Theme Header Start                                                                    */
/*****************************************************************************************/
function themeheader() {

	 
	 include("header.htm");
	 
 echo"<table width=\"98%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"D2DBF5\" dir=\"rtl\">\n"
."<tr>\n"
."<td width=\"10\" background=\"themes/Pixame_v1/images/block_space_left.gif\"><img src=\"themes/Pixame_v1/images/Pixel.gif\" width=\"10\" height=\"1\"></td>\n"
."<td width=\"150\" valign=\"top\">\n";
		 blocks(left);
echo"</td>\n"
."<td width=\"10\"><img src=\"themes/Pixame_v1/images/Pixel.gif\" width=\"10\" height=\"1\"></td>\n"
."<td width=\"100%\" valign=\"top\">\n";
	 
}

/*****************************************************************************************/
/* Theme Header End                                                                      */
/*****************************************************************************************/




/*****************************************************************************************/
/* Theme Footer Start                                                                    */
/*****************************************************************************************/
function themefooter() {
    global $index;
    if ($index == 1) {
		
		
		
	 echo "</td>\n"
      	 ."<td width=\"10\"><img src=\"themes/Pixame_v1/images/Pixel.gif\" width=\"10\" height=\"1\"></td>\n"
      	 ."<td width=\"150\" valign=\"top\">\n";
blocks(right);
	}
	 echo "</td>\n"
      	 ."<td width=\"10\" background=\"themes/Pixame_v1/images/block_space_right.gif\"><img src=\"themes/Pixame_v1/images/Pixel.gif\" width=\"10\" height=\"1\"></td>\n"
      	 ."</tr>\n"
      	 ."</table>\n";
		 include("footer.htm");
		 
		 
		 
     echo"<br>\n"
      	 ."</div>\n"
      	 ."</body>\n";
		 }
		 
/*****************************************************************************************/
/* Theme Footer End                                                                      */
/*****************************************************************************************/




/*****************************************************************************************/
/* Article Block Start                                                                   */
/*****************************************************************************************/

/************************************************************/
/* Story Block Start                                        */
/************************************************************/

function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
    global $anonymous;

include("story.htm");

}

/************************************************************/
/* Story Block End                                          */
/************************************************************/

/************************************************************/
/* Article Block (Read More - Comments) Start               */
/************************************************************/


function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
    global $admin, $sid;


include("article.htm");
		 
		 }
		 
/************************************************************/
/* Article Block (Read More - Comments) End                 */
/************************************************************/

/*****************************************************************************************/
/* Article Block End                                                                     */
/*****************************************************************************************/




/*****************************************************************************************/
/* Blocks Start                                                                          */
/*****************************************************************************************/


function themesidebox($title, $content) {
include("blocks.htm");

}

/*****************************************************************************************/
/* Blocks End                                                                            */
/*****************************************************************************************/

?>
از همه ممنونم
 

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

بالا