فارسي كردن قالب هاي ناك و غيره........

m_ziba

Member
سلام!

اوه اوه اوه اوه!

اين طور كه معلومه من احتمالاْ پای كامپيوتري توي دانشگاه نشستم و user و pwd من save شده ...

خوب ..
جالب بود.. :(:)
 
اینو فارسی کنید بی زحمت!

این فایل و من تا اونجایی که تونستم فارسی کردم ولی تو بعضی از صحه ها مثل صفحه مدیریت

آیکون ها چپ به راست چرا؟؟؟


کد:
/************************************************************/
/* Function themeheader()                                   */
/*                                                          */
/* Control the header for your site. You need to define the */
/* BODY tag and in some part of the code call the blocks    */
/* function for left side with: blocks(right);               */
/************************************************************/

function themeheader() {
    global  $admin, $user, $banners, $sitename, $slogan, $cookie, $prefix, $db, $nukeurl, $anonymous;
    if ($banners == 1) {    
    $numrows = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_banner WHERE type='0' AND active='1'"));
   /* Get a random banner if exist any. */ 
   /* More efficient random stuff, thanks to Cristian Arroyo from http://www.planetalinux.com.ar */ 

    if ($numrows>1) { 
   $numrows = $numrows-1; 
   mt_srand((double)microtime()*1000000); 
   $bannum = mt_rand(0, $numrows); 
    } else { 
   $bannum = 0; 
    } 
    $sql = "SELECT bid, imageurl, clickurl, alttext FROM ".$prefix."_banner WHERE type='0' AND active='1' LIMIT $bannum,1"; 
    $result = $db->sql_query($sql); 
    $row = $db->sql_fetchrow($result); 
    $bid = $row[bid]; 
    $imageurl = $row[imageurl]; 
    $clickurl = $row[clickurl]; 
    $alttext = $row[alttext]; 
    
    if (!is_admin($admin)) { 
       $db->sql_query("UPDATE ".$prefix."_banner SET impmade=impmade+1 WHERE bid='$bid'"); 
    } 
    if($numrows>0) { 
   $sql2 = "SELECT cid, imptotal, impmade, clicks, date FROM ".$prefix."_banner WHERE bid='$bid'"; 
   $result2 = $db->sql_query($sql2); 
   $row2 = $db->sql_fetchrow($result2); 
   $cid = $row2[cid]; 
   $imptotal = $row2[imptotal]; 
   $impmade = $row2[impmade]; 
   $clicks = $row2[clicks]; 
   $date = $row2[date]; 

/* Check if this impression is the last one and print the banner */ 

   if (($imptotal <= $impmade) AND ($imptotal != 0)) { 
       $db->sql_query("UPDATE ".$prefix."_banner SET active='0' WHERE bid='$bid'"); 
       $sql3 = "SELECT name, contact, email FROM ".$prefix."_bannerclient WHERE cid='$cid'"; 
       $result3 = $db->sql_query($sql3); 
       $row3 = $db->sql_fetchrow($result3); 
       $c_name = $row3[name]; 
       $c_contact = $row3[contact]; 
       $c_email = $row3[email]; 
       if ($c_email != "") { 
      $from = "$sitename <$adminmail>"; 
      $to = "$c_contact <$c_email>"; 
      $message = ""._HELLO." $c_contact:\n\n"; 
      $message .= ""._THISISAUTOMATED."\n\n"; 
      $message .= ""._THERESULTS."\n\n"; 
      $message .= ""._TOTALIMPRESSIONS." $imptotal\n"; 
      $message .= ""._CLICKSRECEIVED." $clicks\n"; 
      $message .= ""._IMAGEURL." $imageurl\n"; 
      $message .= ""._CLICKURL." $clickurl\n"; 
      $message .= ""._ALTERNATETEXT." $alttext\n\n"; 
      $message .= ""._HOPEYOULIKED."\n\n"; 
      $message .= ""._THANKSUPPORT."\n\n"; 
      $message .= "- $sitename "._TEAM."\n"; 
      $message .= "$nukeurl"; 
      $subject = "$sitename: "._BANNERSFINNISHED.""; 
      mail($to, $subject, $message, "From: $from\nX-Mailer: PHP/" . phpversion()); 
       } 
   } 
    $showbanners = "<a href=\"banners.php?op=click&bid=$bid\" target=\"_blank\"><img src=\"$imageurl\" border=\"0\" alt='$alttext' title='$alttext'></a> "; 
    }
}
        cookiedecode($user);
    $username = $cookie[1];
    if ($username == "") {
        $username = "Anonymous";
    }
    echo "<body bgcolor=\"#FFFFFF\" text=\"#000000\">";
	
    if ($username == "Anonymous") {
	$theuser = "  <a href=\"modules.php?name=Your_Account\">"._LOGIN."</a> or <a href=\"modules.php?name=Your_Account&op=new_user\">"._BREG."</a>";
    } else {
	$theuser = "  "._BWEL." $username!";
    }
    
                	    	        
            	$public_msg = public_message();
    $tmpl_file = "themes/iCGstation/header.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
    blocks(right);
    $tmpl_file = "themes/iCGstation/left_center.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}

/************************************************************/
/* Function themefooter()                                   */
/*                                                          */
/* Control the footer for your site. You don't need to      */
/* close BODY and HTML tags at the end. In some part call   */
/* the function for right blocks with: blocks(left);       */
/* Also, $index variable need to be global and is used to   */
/* determine if the page your're viewing is the Homepage or */
/* and internal one.                                        */
/************************************************************/

function themefooter() {
    global $index, $foot1, $foot2, $foot3, $foot4, $copyright, $totaltime, $footer_message;
    if ($index == 1) {
	$tmpl_file = "themes/iCGstation/center_right.html";
	$thefile = implode("", file($tmpl_file));
	$thefile = addslashes($thefile);
	$thefile = "\$r_file=\"".$thefile."\";";
	eval($thefile);
	print $r_file;
	blocks(left);
    }	

echo"				</td>"
  . "			</tr>"
  . "		</table>"
  . "		<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">"
  . "		  <tr> "
  . "			<td align=\"right\"><a href=\"#top\"><img src=\"themes/iCGstation/forums/images/top.gif\" border=\"0\" /></a></td>"
  . "		  </tr>"
  . "		</table>"
  . "		<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">"
  . "		  <tr> "
  . "			<td><a href=\"http://www.Parsa-online.com\" target=\"_blank\"><img src=\"themes/iCGstation/forums/images/bt_left.gif\" border=\"0\" /></a></td>"
  . "			<td width=\"100%\" class=\"indexbom\" align=\"center\">";
  
        $footer_message = footmsg();  
  
echo "			</td>"
  . "			<td><a href=\"http://www.Parsa-online.com\" target=\"_blank\"><img src=\"themes/iCGstation/forums/images/bt_right.gif\" border=\"0\" /></a></td>"
  . "		  </tr>"
  . "		</table>"
  . "	</td>"
  . "	<td width=\"10\" nowrap=\"nowrap\" class=\"righttd\"></td>"
  . "  </tr>"
  . "</table>"
 ."";

}

/************************************************************/
/* Function themeindex()                                    */
/*                                                          */
/* This function format the stories on the Homepage         */
/************************************************************/

function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
    global $anonymous, $tipath;
    if ($notes != "") {
	$notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";
    } else {
	$notes = "";
    }
    if ("$aid" == "$informant") {
	$content = "$thetext$notes\n";
    } else {
	if($informant != "") {
	    $content = "<a href=\"modules.php?name=Your_Account&op=userinfo&username=$informant\">$informant</a> ";
	} else {
	    $content = "$anonymous ";
	}
	$content .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
    }
    $posted = "Posted by :"._." ";
    $posted .= get_author($aid);
    $posted .= " "._ON." $time $timezone ";
    $tmpl_file = "themes/iCGstation/story_home.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}

/************************************************************/
/* Function themearticle()                                  */
/*                                                          */
/* This function format the stories on the story page, when */
/* you click on that "Read More..." link in the home        */
/************************************************************/

function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
    global $admin, $sid, $tipath;
    $posted = ""._POSTEDON." $datetime "._BY." ";
    $posted .= get_author($aid);
    if ($notes != "") {
	$notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";
    } else {
	$notes = "";
    }
    if ("$aid" == "$informant") {
	$content = "$thetext$notes\n";
    } else {
	if($informant != "") {
	    $content = "<a href=\"modules.php?name=Your_Account&op=userinfo&username=$informant\">$informant</a> ";
	} else {
	    $content = "$anonymous ";
	}
	$content .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
    }
    $tmpl_file = "themes/iCGstation/story_page.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}

/************************************************************/
/* Function themesidebox()                                  */
/*                                                          */
/* Control look of your blocks. Just simple.                */
/************************************************************/

function themesidebox($title, $content) {
    $tmpl_file = "themes/iCGstation/blocks.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}

?>


اینم فایل تیبل

کد:
<?php

/************************************************************/
/* OpenTable Functions                                      */
/*                                                          */
/* Define the tables look&feel for you whole site. For this */
/* we have two options: OpenTable and OpenTable2 functions. */
/* Then we have CloseTable and CloseTable2 function to      */
/* properly close our tables. The difference is that        */
/* OpenTable has a 100% width and OpenTable2 has a width    */
/* according with the table content                         */
/************************************************************/

function OpenTable() {
    global $bgcolor1, $bgcolor2;
    echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"5\">
  <tr>
    <td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">
        <tr>
          <td bgcolor=\"#A9B8C2\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">
              <tr>
                <td bgcolor=\"#FFFFFF\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
                    <tr>
                      <td bgcolor=\"#FFFFFF\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"4\">
                          <tr>
                            <td>";
}

function CloseTable() {
    echo "</td>
                          </tr>
                        </table></td>
                    </tr>
                  </table></td>
              </tr>
            </table></td>
        </tr>
      </table>
      <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"tbl\"><tr>
<td class=\"tbll\"><img src=\"themes/iCGstation/forums/images/spacer.gif\" alt=Parsa Online\"\" width=\"8\" height=\"4\" /></td>
<td class=\"tblbot\"><img src=\"themes/iCGstation/forums/images/spacer.gif\" alt=Parsa Online\"\" width=\"8\" height=\"4\" /></td>
<td class=\"tblr\"><img src=\"themes/iCGstation/forums/images/spacer.gif\" alt=Parsa Online\"\" width=\"8\" height=\"4\" /></td>
</tr></table>
      </td>
  </tr>
</table>
";
}

function OpenTable2() {
    global $bgcolor1, $bgcolor2;
    echo "<table align=\"center\" width=\"50%\" border=\"0\" cellspacing=\"0\" cellpadding=\"5\">
  <tr>
    <td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">
        <tr>
          <td bgcolor=\"#A9B8C2\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">
              <tr>
                <td bgcolor=\"#FFFFFF\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
                    <tr>
                      <td bgcolor=\"#FFFFFF\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"4\">
                          <tr>
                            <td>";
}

function CloseTable2() {
    echo "</td>
                          </tr>
                        </table></td>
                    </tr>
                  </table></td>
              </tr>
            </table></td>
        </tr>
      </table>
      <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"tbl\"><tr>
<td class=\"tbll\"><img src=\"themes/iCGstation/forums/images/spacer.gif\" alt=Parsa Online\"\" width=\"8\" height=\"4\" /></td>
<td class=\"tblbot\"><img src=\"themes/iCGstation/forums/images/spacer.gif\" alt=Parsa Online\"\" width=\"8\" height=\"4\" /></td>
<td class=\"tblr\"><img src=\"themes/iCGstation/forums/images/spacer.gif\" alt=Parsa Online\"\" width=\"8\" height=\"4\" /></td>
</tr></table>
      </td>
  </tr>
</table>
";
}

?>

با تشکر
 

omidmtl

Member
من ميتونم روش فارسي سازي phpbb را بگم .اگر كسي خواست پيغام خصوصي بده.چون من زياد فرصت نميكنم بيام اينجا
 
خسته نباشید phpbb بچه ی منم میتونه فارسی کنه!

|شوخی کردم ناراحت نشو|

بذار همین جا شاید بقیه بدردشون بخوره
 

omidmtl

Member
سلام
m_ziba جان من اون مطلب رو نوشتم نمي دونم چه جوري !! وقتي ارسال كردم ديدم با نام مبارك شما ارسال شده با اين حال معذرت مي خوام
 

m_ziba

Member
اي بابا معلوم نيست اين bb چه مرگيشه يه بار مطلب رو نشون مي ده يه بار نشون نميده ديشب 2 بار پست كردم نشون نداد امشب هم نشون نداد يكي ديگه فرستادم هر سه رو نشون داد خلاصه نگين "طرف عقده پست كردن داره" يا اينكه "طرف چه حالي كرده با يه يوزر ديگه پست كرده" :)
 

omidmtl

Member
من omidMTL هستم. اي بابا دوباره با اسم m_ziba پست شد.
m_ziba جان چه جالبه اين phpBB گير داده ما با هم يه دعوا اساسي بكنيم :)
من تو دانشگاه شما نيستم يه نگاه به ساعت پست بكن كدوم دانشگاه حالا بازه كه سايتش باز باشه من بازهم عذر مي خواهم (چقدر عذر مي خوام)
 

omidmtl

Member
omidmtl گفت:
من ميتونم روش فارسي سازي phpbb را بگم .اگر كسي خواست پيغام خصوصي بده.چون من زياد فرصت نميكنم بيام اينجا

اينو پاي من حساب نكنين
m_ziba تو بودي؟

با اين حال اگه تونستم اين كارو بكنم حتما اينجا مي نويسم چه جوري
 

m_ziba

Member
سلام! :)

نه عزيز جان!
من ننوشتم!

نمي دونم چرا phpbb قات زده!!
 
آقا من ياد گرفتم آموزششم هر وقتي كه وقت كنم ميزارم

ميخواستم فلش كنم ولي حجمش ميرفت بالا ام در عوض همه ي مراحل رو داشت
لطفا بگيد فلش( 5 مگا بايت) باشه يا متن؟
 

mosi-online

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

omidmtl

Member
پارسا جان تبريك ميگم
من فكر ميكنم اگه در قالب مقاله باشه بهتره
 

Mikhak

Active Member
پارسا جان ديدي گفتم خيلي آسونه كاره زياد سختي نيست؟ خوش حالم كه يكي هم به فارسي كنندگان اضافه شد انشالا يه چند صد نفر ديگه اضافه بشن
كمك خواستي بگو
------------------------
سينا
 

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

بالا