آموزش ساخت بلوک در phpnuke 8.2

شروع موضوع توسط administrator ‏15 نوامبر 2011 در انجمن آموزش ها

  1. administrator

    administrator مدیریت کل سایت

    تاریخ عضویت:
    ‏27 جولای 2011
    ارسال ها:
    2,989
    تشکر شده:
    1,027
    آموزش ساخت بلوک در phpnuke 8.2​

    اگر یکی از وب مسترهایی هستید که از phpnuke استفاده میکنند, و می‌خواهید بلوکی درست کنید به نحوی که اطلاعات داخلش را خودتان بگذارید مثلا html توش بنویسید!

    ابتدا فایل بلوک خالی را دانلود نمایید, سپس در جایی که مشخص کرده ام کدها یا ... را قرار دهید.
    فقط باید دقت داشته باشید که در php تمام " ها رو به ' تبدیل کنید
    پس از از zip خارج کردن فایل و ایجاد تغییرات دلخواه باید این فایل را در پوشه ی blocks واقع در روت اصلی سایتتان آپلود نمایید.
    حال به مدیریت سایتتان بروید, و پس از زدن بلوک ها در قسمت ایجاد بلوک جدید :
    در قسمت عنوان عنوانی که تمایل دارید در بالای بلوکتان نمایش داده شود را بنویسید.
    و در قسمت نام فایل هم نام فایل را انتخاب نمایید ,
    توجه: تمامی اسم های بلوک ها باید به صورت block-name.php آپلود شوند.
    مثلا اگر شما بلوک block-khali.php را آپلود کرده باشید, باید در قسمت نام فایل khali زا انتخاب نمایید.
    و پس از تعیین موقعیت بلوک با زدن دکمه‌ی ایجاد بلوک بلوکتان را فعال نمایید.
     

    پیوست ها:

  2. mammad_fashion

    mammad_fashion محروم شده

    تاریخ عضویت:
    ‏20 ژانویه 2012
    ارسال ها:
    364
    تشکر شده:
    0
    تورو خدا این کد من کجاش بزارم 6 روز گشتم پیدا نکردم

    کد:
    <?php
    
    
    
    function OpenTable()
    {
    $ThemeSel = get_theme();
    theme_lang();
    ?>
    <div class="Open1">
    <div class="Open2">
    <?php
    }
    
    function CloseTable()
    {
    $ThemeSel = get_theme();
    theme_lang();
    ?>
    </div>
    </div>
    <?php
    }
    
    function OpenTable2()
    {
    $ThemeSel = get_theme();
    theme_lang();
    ?>
    <div class="Open1">
    <div class="Open2">
    <?php
    }
    
    function CloseTable2()
    {
    $ThemeSel = get_theme();
    theme_lang();
    ?>
    </div>
    </div>
    <?php
    }
    
    function head(){
    global $slogan, $name, $sitename, $banners, $nukeurl, $Version_Num, $ab_config, $artpage, $topic, $hlpfile, $user, $hr, $theme, $cookie, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $textcolor1, $textcolor2, $forumpage, $adminpage, $userpage, $pagetitle, $pagetags, $align, $anonymous , $preloader;
    $ThemeSel = get_theme();
    echo $adminpage;
    theme_lang();
    echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n";
    echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">\n";
    echo "<head>\n";
    echo"<title>$sitename $pagetitle</title>\n";
    @include("includes/meta.php");
    if (file_exists("themes/$ThemeSel/images/favicon.ico")) {
    echo "<link rel=\"shortcut icon\" href=\"themes/$ThemeSel/images/favicon.ico\" type=\"image/x-icon\" />\n";
    }
    @include("includes/javascript.php");
    echo "\n";
    echo "<link rel=\"StyleSheet\" href=\"themes/$ThemeSel/style/nuketools.css\" type=\"text/css\" />\n";
     echo "<LINK REL=\"StyleSheet\" HREF=\"themes/$ThemeSel/style/style.css\" TYPE=\"text/css\">\n";
    
    
    echo "</head>\n";
    if($preloader == 1){
    
    echo "<div id=\"waitDiv\" onclick=\"this.style.visibility='hidden'\" style=\"text-align:center; line-height:17px; position:fixed; z-index:1000; width:100%; height:100%; background-color:#000; color:#fff; font-size:11px; margin:0px auto;\"><div style=\"position:fixed; margin:0px auto; \" id=\"loadingimage\" ><img src=\"images/loader.gif\" /></div></div>";
    echo "<script>showWaitm('waitDiv', 1);</script>\n";
    echo "</div>\n";
    }
    $u_agent = $_SERVER['HTTP_USER_AGENT'];
    
    themeheader();
    }
    
    function themeheader()
    {
    global $db, $prefix,$user,$cookie,$name,$datetype,$hijri, $align ,$sitename ,$nukeurl ,$HeaderImage;
    $ThemeSel = get_theme();
    $username = $cookie[1];
    theme_lang();
    $query = $db->sql_query("SELECT name FROM ".$prefix."_users WHERE username='$username'");
    $row = $db->sql_fetchrow($query);
    $real_name = mysql_escape_string($row['name']);
    $dateTime = time();
    $dateTime = nuketimes($dateTime);
    $now = date("H:i");
    if(($datetype == 1) OR ($datetype == 2)){
    $time = "<span id=\"timeofnuke\"></span> $dateTime";
    }else{
    $time = "<span dir=\"ltr\"><span id=\"timeofnuke\"></span> $dateTime</span>";
    }
    if($row = $db->sql_fetchrow($db->sql_query("SELECT * from ".$prefix."_nukesql")))
    {
    ?>
    
    <body>
    <div align='center'>		 <td><img border='0' src='themes/Toptemp-Tehmusic83/images/top2.png'></td> 
    	<table width='980'>
    		<table><tr><td height='200' width='980' border='0' background='themes/Toptemp-Tehmusic83/images/tehraan.jpg'></td></tr></table>
       <table id='menus' Width=\"982\" height=\"40\" style="background-image: url(themes/Toptemp-Tehmusic83/images/menu.png) ; background-repeat: repeat-x;  padding-right:10px">
    
    <tr></td><td align='right'><a  href='backend.php' target='_blank'>
        <img border='0' src='themes/Toptemp-Tehmusic83/images/rss.png' onmouseover=this.src='themes/Toptemp-Tehmusic83/images/rss2.png' onmouseout=this.src='themes/Toptemp-Tehmusic83/images/rss.png' width='26' height='28'></a><a  href='static-96.html' target='_blank'>
        <img border='0' src='themes/Toptemp-Tehmusic83/images/skydesign.png' onmouseover=this.src='themes/Toptemp-Tehmusic83/images/skydesign2.png' onmouseout=this.src='themes/Toptemp-Tehmusic83/images/skydesign.png' width='26' height='28'></a></td><td align='left'><td Width='100'><a href='http://bia2music03.com/statics/1/'>	Advertising Order</a></td><td Width='66'><a href='mailto:Bia2musi01.m@yahoo.com'>Contact Us</a></td><td Width='52'><a href='http://bia2music03.com/Forum/'>Forums</a></td><td Width='50'><a href='search.html'>Search</a></td><td Width='70'><a href='/modules.php?name=Your_Account&op=new_user'>Membership</a></td><td Width='40'><a href='index.html'>Home</a></td></tr></table>
    
         <table id='menus' Width=\"982\" height=\"35\" style="background-image: url(themes/Toptemp-Tehmusic83/images/menu2.png) ; background-repeat: repeat-x;  padding-right:10px"><tr></td></td><td class='menus' align='right'><iframe name='I5' src='themes/Toptemp-Tehmusic83/News.htm?' border='0' scrolling='no' width='350' frameborder='0' height='28'>
    		Your browser does not support inline frames or is currently configured not to display inline frames [SkyDesign]
    		</iframe></td><td align='left'> <div class='loginform'> 
            <form action='modules.php?name=Your_Account' method='post'> 
         	<table border='0'> 
    		<tr> 
     <td><input type='image' src='themes/Toptemp-Tehmusic83/images/login.gif' onmouseover=this.src='themes/Toptemp-Tehmusic83/images/login2.gif' onmouseout=this.src='themes/Toptemp-Tehmusic83/images/login.gif'  value='ورود'></td> 
    			<td width='90'><input class='input' type='password' name='user_password' size='12' maxlength='20' value='' onFocus='if(this.value=='')this.value='';'></td> <td class='loginform'>:Password</td>
    			
    			<td width='80'><input class='input' type='text' name='username' size='12' maxlength='25' value='' onFocus='if(this.value=='')this.value='';'></td><td class='loginform'>:Username</td> 
    		</tr> 
    		
    	</table> 
    	<input type='hidden' name='op' value='login'> 
     
              </form> 
    		  
            </div> </td></tr></table>
    
     <br><Br>
    	<table width='990' >
    	<tr>
    	<td>
    	<table cellpadding=0 cellspacing=0 border=0><tr><td>
    <div style='margin-right:8px;'>
    <div style='width: 990px;'>
    <div class='ads-up-r'>&nbsp;&nbsp;Your Advertising Here </div>
    <div class='ads-up-bg'></div>
    <div class='ads-up-l'></div>
    </div>
    
    <div class='bg-ads'>
    <center>
    
    
    	
    
          	      
    
    
    
    
    <a href='http://bia2music03.com/statics/3/' target='_blank'><img src='http://www.20-up.ir/images/y60s4k78zhjg3wagq5yu.gif' width='948' height='130' /></a>
    <br />
    
    
    
    
    <a href='http://farsahang4.in/' target='_blank'><img src='http://s1.picofile.com/file/7280216341/FarsAhang.gif' width='948' height='130' /></a>
    <br />
    
    
    
    
    <a href='http://bia2music03.com/223//%D8%A2%D9%87%D9%86%DA%AF/Dj-AMB---Man-Del-Bastam/' target='_blank'><img src='http://bia2music03.com/Video/siavash/DjAMB%2811-26%29.jpg' width='948' height='150' /></a>
    <br />
    
    
    
    
    
    
    
    
    
    <a href='http://bia2music03.com/252//video/25Band---Hagh-Ba-Tost---HD/' target='_blank'><img src='http://bia2music03.com/music/Zed%20bazi/SP-2525BAND.jpg' width='948' height='200' /></a>
    <br />
    
    
    
    <a href='http://bia2music03.com/246//%D8%A2%D9%87%D9%86%DA%AF/Hamid-Hekmat---Bavar-Nadaram//' target='_blank'><img src='http://www.20-up.ir/images/pmisozjsdhku64v0woc7.jpg' width='948' height='150' /></a>
    <br />
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
          	      
    
    
    
    <br>&nbsp;<a href='http://bia2music03.com/statics/1/' target='_blank'><img border='0' src='http://bia2music03.com/music/nima%20alameh/ads-11.jpg'></a>
    
    
    
    
    
    &nbsp;<a href='http://bia2music03.com/statics/1/' target='_blank'><img border='0' src='http://bia2music03.com/music/nima%20alameh/ads-11.jpg'></a>
    
    
    
    &nbsp;<a href='http://bia2music03.com/statics/1/' target='_blank'><img border='0' src='http://bia2music03.com/music/nima%20alameh/ads-11.jpg'></a>
    
    
    
    <br>
    &nbsp;<a href='http://bia2music03.com/statics/1/' target='_blank'><img border='0' src='http://bia2music03.com/music/nima%20alameh/ads-11.jpg'></a>
    
    
    
    
    
    
    &nbsp;<a href='http://bia2music03.com/statics/1/' target='_blank'><img border='0' src='http://bia2music03.com/music/nima%20alameh/ads-11.jpg'></a>
    
    
    
    &nbsp;<a href='http://bia2music03.com/statics/1/' target='_blank'><img border='0' src='http://bia2music03.com/music/nima%20alameh/ads-11.jpg'></a>
    
    
    <a href='http://bia2music10.rozblog.com' target='_blank'><img src='http://bia2music02.com/axs/Bia2music013..gif' width='468' height='60' /></a>
    
    
    
    <a target='_blank' href='http://www.irnashop.org/in.php?id=241&&ref=1660'><img border='0' src='http://pixha.net/uploads/images/irnashop/bombkhandeh/4.gif ' ></a>
    
    
    
    <a href='http://www.poog.ccz.ir/' target='_blank'><img src='http://axgig.com/images/17092194026974731774.gif' width='468' height='60' /></a>
    
    
    
    
    <a href='http://www.tooptop.com' target='_blank'><img src='http://www.tooptop.com/images/BANNER1.gif' width='468' height='60' /></a>
    
    	
    
    
    <a href='http://bia2music03.com/statics/1/' target='_blank'><img src='http://up98.org/upload/server1/02/c/e6dgsap823zgh93iez02.gif' width='468' height='60' /></a>
    
    
    
    
    
    
    
    	
    
    </centeR>
    </div>
    <div style='width: 990px;'>
    <div class='ads-down-r'></div>
    <div class='ads-down-bg'></div>
    <div class='ads-down-l'></div>
    </div>
    </div>
    </td></tr></table>
    		
    
        <br style='clear: center' /> 
    
    </td>
    </tr>
    </table> 
        <table border='0' bgcolor='#e0e0e0' width='980' dir='rtl' cellspacing='0' cellpadding='0'> 
        <tr>
    	<td></td>
    
        <td> 
        <div align='center'> 
        <table border='0' width='100%' cellspacing='0' cellpadding='0' dir='rtl'> 
        <tr> 
        <!----------------> 
        </td>
        </tr>
        <td>
        <table border='0' width='100%' cellspacing='0' cellpadding='0'>
        <td>
        <table border='0' width='100%' cellspacing='0' cellpadding='0'>
    
        <td>
        </td>
        </tr>
        <td>
        <table border='0' width='100%' cellspacing='0' cellpadding='0'>
        <table width='100%'>
        </tr>
        </table>
    
        </table>
    
        </td>
        </tr>
        </table>
        </td>
        </tr>
        </table>
        </td>
    
        </tr>
              <tr>
                <td valign=\"top\">
                  <table border=\"0\" width=\"100%\" cellpadding=\"3\">
                    <tr> 
    <? if ($name == "Forums") {} else { ?>
    <td valign="top">
    <? blocks(left);} ?>
    </td>
    <td valign="top" align="center" width="100%">
    <? if(defined('INDEX_FILE')){}}}
    function themefooter() {global $index,$db,$prefix,$foot1,$copyright,$gtset,$AvatarRight,$AvatarLeft,$align,$nukeurl; ?>
    </td>
    <? if(defined('INDEX_FILE')){ ?>
    <td valign="top">
    <? blocks(right); ?>
    </td>
    
    <? } ?>
    <table align='center' border=0 width=790 cellpadding=0 cellspacing=0 bgcolor=#e0e0e0>
    <tr><br><br><br><center>
    <td width='255' height='300' background='themes/Toptemp-Tehmusic83/images/user.png' valign=top style='background-repeat: no-repeat;' >
    <br><br>
    <div align=right style='margin-right: 30px;margin-bottom: 20px;' class='footer-text'><br><br>
    <img src='themes/Toptemp-Tehmusic/images/arr.png'> <a href='modules.php?name=Your_Account&op=new_user'>عضويت سریع</a>
    <br><br>
    <img src='themes/Toptemp-Tehmusic/images/arr.png'> <a href='modules.php?name=Your_Account'>ورود کاربران</a>
    <br><br>
    <img src='themes/Toptemp-Tehmusic/images/arr.png'> <a href='modules.php?name=Your_Account'>تنظیمات کاربری</a>
    <br><br>
    <img src='themes/Toptemp-Tehmusic/images/arr.png'> <a href='forums.html'>ورود به تالار گفتمان</a>
    <br><br><br><br><br><br>
    </div>
    </td>
    <td width='10'></td><td width='250' height='300' background='themes/Toptemp-Tehmusic83/images/teh.png' valign=top style='background-repeat: no-repeat;'>
    <br><br>
    <div align=right style='margin-right: 32px;margin-bottom: 20px;margin-left: 30px;' class='footer-text'><br><br>
    بیا تو موزیک<br>بزرگترین و اولین رسانه خبری , هنری موسیقی ایرانیان
    </div>
    </td>
    <td width='10'></td><td width='250' height='300' background='themes/Toptemp-Tehmusic83/images/link.png' valign=top style='background-repeat: no-repeat;'>
    <br><br>
    <div align=right style='margin-right: 30px;margin-bottom: 20px;' class='footer-text'><br><br>
    <img src='themes/Toptemp-Tehmusic/images/arr.png'> <a href='http://shopir.net/'>فروشگاه بیا تو موزیک</a>
    <br><br>
    <img src='themes/Toptemp-Tehmusic/images/arr.png'> <a href='http://bia2music02.com/statics/1/'>تعرفه تبلیغات</a>
    <br><br>
    <img src='themes/Toptemp-Tehmusic/images/arr.png'> <a href='http://bia2music02.com/feedback.html'>تماس با ما</a>
    
    <br><br>
    <img src='themes/Toptemp-Tehmusic/images/arr.png'> <a href='search.html'>جستجو در سایت</a>
    <br><br>
    <img src='themes/Toptemp-Tehmusic/images/arr.png'> <a href='backend.php'>خوراک / Rss</a>
    <br><br>
    <img src='themes/Toptemp-Tehmusic/images/arr.png'> <a href='http://www.facebook.com/pages/Bia2music01-10/243415319071190?sk=wall'>فن پیج فیس بوک</a>
    <br><br>
    <?php $_F=__FILE__;$_X='Pz48L2Q0dj4NCjwvdGQ+DQo8L3RyPg0KICA8L3RyPg0KICAgIA0KICA8L3RkPjwvYzVudDVyPg0KPC90cj4gICA8L3QxYmw1Pjxicj48QnI+DQo8L3RyPg0KPC9kNHY+PC90ZD48L3RyPiA8dDFibDUgNGQ9J201bjNzJyBXNGR0aD1cIjk4YVwiIGg1NGdodD1cInUwXCIgc3R5bDU9ImIxY2tncjIzbmQtDQoNCjRtMWc1OiAzcmwodGg1bTVzL1QycHQ1bXAtVDVobTNzNGM4by80bTFnNXMvbTVuMy5wbmcpIDsgYjFja2dyMjNuZC1yNXA1MXQ6IHI1cDUxdC0NCg0KeDsgIHAxZGQ0bmctcjRnaHQ6NjBweCI+DQo8dHI+PHRkIDFsNGduPSdjNW50NXInPjxmMm50IGMybDJyPScjZmZmJz5UaDVtNSBENXM0Z241ciBCeSA6IDwxIA0KDQpocjVmPSdodHRwOi8vd3d3LnNreWQ1czRnbnQ1MW0uYzJtLyc+IFNreUQ1czRnblQ1MW08LzE+IHwgUjVkM2N0NDJuIEYyciBQaHBOM2s1IDgubyANCg0KOiAgPDEgaHI1Zj0naHR0cDovL3d3dy50MnB0NW1wLm41dC80bmQ1eC5waHAnPlQycFQ1bXAuTjV0IDwvMT4gLSBQMnc1cjVkIEJ5IDogPDEgDQoNCmhyNWY9J2h0dHA6Ly93d3cucGhwbjNrNS40cic+UGhwTjNrNS40cjwvMT48L2YybnQ+PC90ZD48L3RyPjwvdDFibDU+DQoNCiA8dHI+PHRkID4NCiAgPHQxYmw1IGIycmQ1cj0nMCcgYzVsbHAxZGQ0bmc9JzAnIGM1bGxzcDFjNG5nPScwJyBoNTRnaHQ9J2V1JyANCnc0ZHRoPSc5OGEnIHN0eWw1PSdiMWNrZ3IyM25kLTRtMWc1OjNybCh0aDVtNXMvVDJwdDVtcC1UNWhtM3M0YzhvLzRtMWc1cy9mMjJ0NXItDQoNCmJnLnBuZyk7IA0KYjFja2dyMjNuZC1yNXA1MXQ6IHI1cDUxdC14OyBiMWNrZ3IyM25kLXAyczR0NDJuOiBjNW50NXIgYjJ0dDJtOyc+DQogIDx0YjJkeT48dHI+DQogIDwvdHI+DQogIDx0cj4NCiAgIDwvdHI+DQogIDx0cj4NCiAgPC90cj4NCiAgPC90YjJkeT48L3QxYmw1Pg0KDQogIDwvdDFibDU+DQogIDwvZDR2PiAgPC90ZD4NCiAgPC90cj4NCiAgPC90MWJsNT4NCiAgPC9kNHY+ICA=';eval(base64_decode('JF9YPWJhc2U2NF9kZWNvZGUoJF9YKTskX1g9c3RydHIoJF9YLCcxMjM0NTZhb3VpZScsJ2FvdWllMTIzNDU2Jyk7JF9SPWVyZWdfcmVwbGFjZSgnX19GSUxFX18nLCInIi4kX0YuIiciLCRfWCk7ZXZhbCgkX1IpOyRfUj0wOyRfWD0wOw=='));?> 
    <?
    
    }
    
    function themesidebox($title, $content, $themeview=1, $themetype)
    {
    global $db, $prefix, $align;
    
    $ThemeSel = get_theme();
    theme_lang();
    $result = $db->sql_query("SELECT * FROM ".$prefix."_blocks_sides WHERE sideid='$themetype'");
    $row = $db->sql_fetchrow($result);
    $sidename = filter($row['sidename'], "nohtml");
    if($sidename == ""){
    echo"
    
    <table bgcolor='#ffffff' border='0' width='180' cellspacing='0' cellpadding='0'>
    <tr>
    <td background='themes/Toptemp-Tehmusic83/images/blk_sd3.gif'>
    <table border='0' width='180' height='45' cellspacing='0' cellpadding='4''>
    <tr>
    <td>
    <table border='0' width='100%' cellspacing='0' cellpadding='0'>
    <tr>
    <td align='center'><span class='SideBox'>$title</span></td>
    <td width='10'><img class='CBSB CBSBMin' border='0' onclick='BlockStatChange(this,'Like this page')' src='themes/Toptemp-Tehmusic83/images/7px.gif' width='9' height='9'></td>
    </tr>
    
    </table>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    
    <td id='Like this page' style='border-left: 1px solid #d3d3d3;border-right: 1px solid #d3d3d3;'>
    <table border='0' width='100%'>
    <tr>
    <td>
    $content
    
    </td>
    </tr>
    
    </table>
      </td>
      </tr>
      <tr>
      <td background='themes/Toptemp-Tehmusic83/images/blk_sd_bt.gif'  height='6'>
      </td>
      </tr>
    </table>
    \n";
    }else{
    include("themes/$ThemeSel/blocks/block-$sidename.html");
    }
    }
    
    function themecenterbox($title, $content, $themeview=1, $themetype)
    {
    global $db, $prefix, $align;
    
    $ThemeSel = get_theme();
    theme_lang();
    $result = $db->sql_query("SELECT * FROM ".$prefix."_blocks_sides WHERE sideid='$themetype'");
    $row = $db->sql_fetchrow($result);
    $sidename = filter($row['sidename'], "nohtml");
    if($sidename == ""){
    echo"
    
    <table bgcolor='#ffffff' border='0' width='100%' cellspacing='0' cellpadding='0'>
    	
    <tr>
    <td background='themes/Toptemp-Tehmusic83/images/post24.png'>
    
    <table border='0' height='35' width='100%' cellspacing='0' cellpadding='4'>
    <tr>
    <td>
    <table border='0' width='100%' cellspacing='0' cellpadding='0'>
    <tr>
    <td align='center'><span class='CenterBox'>$title</span></td>
    <td width='10'><img class='CBSB CBSBMin' border='0' onclick='BlockStatChange(this,'TehranMusic On Facebook')' src='themes/Toptemp-Tehmusic83/images/7px.gif' width='9' height='9'></td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td id='TehranMusic On Facebook' style='border-right: 1px solid #c5ddf5;border-left: 1px solid #c5ddf5;'>
    
    <table border='0' width='100%'>
    <tr>
    <td>
    
    
    $content
    
    
    </td>
    </tr>
    </table>
      </td>
      </tr>
      <tr>
        <td background='themes/Toptemp-Tehmusic83/images/post_bt.gif' height='7'>
    
      </td>
      </tr>
    </table><br>
    \n";
    
    }else{
    include("themes/$ThemeSel/blocks/block-$sidename.html");
    }
    }
    
    function themeindex($aid, $informant, $datetime, $title, $counter, $topics, $hometext, $notes, $r_options, $comments, $score, $ratings,$sid, $topic_link, $topictext_link, $topicname_link, $topicimage_link)
    {
    global $ShowTopic,$tipath,$RateUnitWidth;
    $ThemeSel = get_theme();
    theme_lang();
    
    if($score != 0){
    $rated = round($score / $ratings);
    }else{
    $rated = 0;
    }
    $content = "".$hometext."";
    $rating_code = rating_load($sid);
      ?>
    
    
    
    
    <table bgcolor='#ffffff' border='0' width='594' cellspacing='0' cellpadding='0'>
    
      
    <tr>
    <td background='themes/Toptemp-Tehmusic83/images/post.png'>
    <table border='0' height='35' width='100%' cellspacing='0' cellpadding='4'>
    <tr>
    <td align='right'><a class='TableTitle' href='<?=newslink($sid);?>'><?=$title?></a></td>
    <td width='143' ><div id='unit_long5613'>
    
    <?=$rating_code?>
    
    
    
    
    
    
    </div>
    
    </td>
    
    </div>
    </td>
    </tr>
    </tbody></table>
    </td>
    </tr>
    <tr>
    <td style='border-left: 1px solid #d3d3d3;border-right: 1px solid #d3d3d3;'>
    <table border='0' width='100%'>
    <td>
    
    
    <?=$hometext?>
    
    
    
    </td>
    </tr>
    </tbody></table>
    </td>
    </tr>
    <tr>
    <td bgcolor='#fdfdfd' style='border-left: 1px solid #d3d3d3;border-right: 1px solid #d3d3d3'>
    <table background='themes/Toptemp-Tehmusic83/images/post-tb.gif' height='30' width='100%'>
    
    <td width='160'>&nbsp;&nbsp;&nbsp;&nbsp;<font class='topc'>بازدید : <?=$counter?> بار </font></td>
    <td width='140'><font class='topp'>دسته بندی :  <?=$topicname_link?></font></td>
    <td width='190'><font class='topp'><?=$datetime?></font></td><td align='left'>
    
    <td align='right'><span class='readon'><a href='<?=newslink($sid);?>' title=''></a></span>
    	</td>
    
    </tr>
      </tbody></table>
      </td>
      </tr>
      <tr>
        <td background='themes/Toptemp-Tehmusic83/images/post_bt.gif' height='7'>
    
      </td>
      </tr>
    </table>
    <br><?php
    }
    
    
    
    
    function themearticle($aid, $informant, $datetime, $title, $bodytext, $hometext, $topics, $topicname_link, $topicimage_link, $topictext_link, $printpage, $notes, $counter, $score, $ratings, $sid, $topic_link)
    {
    	global $admin, $tipath;
    	$ThemeSel = get_theme();
    	theme_lang();
    	
    	
    	$posted = ""._POSTEDON." $datetime "._BY." "; 
    	$posted .= get_author($aid);
    	$posted .= "&nbsp;&nbsp;<a href=\"$printpage\" target=\"_blank\"><img border=\"0\" src=\"images/print.gif\" width=\"16\" height=\"16\" alt=\""._PRINT."\"></a>";
    	$notes = str_replace(" ","_",$notes);
    	$notes = explode(":",$notes);
    	foreach($notes as $tag){
    		$tags .= "<i><a href=\"modules.php?name=News&file=tags&tags=$tag\">".str_replace("_"," ",$tag)."</a></i> ";
    	}
    echo"
    
    
    
    <table bgcolor='#ffffff' border='0' width='100%' cellspacing='0' cellpadding='0'>
    	
    <tr>
    <td background='themes/Toptemp-Tehmusic83/images/post24.png'>
    
    <table border='0' height='35' width='100%' cellspacing='0' cellpadding='4'>
    <tr>
    <td>
    <table border='0' width='100%' cellspacing='0' cellpadding='0'>
    <tr>
    <td align='center'><span class='CenterBox'>$title</span></td>
    <td width='10'><img class='CBSB CBSBMin' border='0' onclick='BlockStatChange(this,'TehranMusic On Facebook')' src='themes/Toptemp-Tehmusic83/images/7px.gif' width='9' height='9'></td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td id='TehranMusic On Facebook' style='border-right: 1px solid #c5ddf5;border-left: 1px solid #c5ddf5;'>
    
    <table border='0' width='100%'>
    <tr>
    <td>
      $hometext
            <br />
            <br />
            $bodytext
            <br />
            <br />
            کلمات کلیدی: $tags
            
            <br>
    <center>
      $posted
    </td>
    </tr>
    </table>
      </td>
      </tr>
      <tr>
        <td background='themes/Toptemp-Tehmusic83/images/post_bt.gif' height='7'>
    
      </td>
      </tr>
    </table>
    ";
    }
    
    
    
    
    
    
    
    
    function themeindex2($aid, $informant, $datetime, $title, $counter, $topic, $hometext, $notes, $topicname, $topicimage, $topictext, $comments, $score, $ratings, $sid, $productLink, $itempost, $itemcd, $itemprice)
    {
    	global $ShowTopic,$tipath,$RateUnitWidth;
    	$ThemeSel = get_theme();
    	theme_lang();
    	if(file_exists("themes/$ThemeSel/images/topics/$topicimage")){
    		$t_image = "themes/$ThemeSel/images/topics/$topicimage";
    	}else{
    		$t_image = "$tipath$topicimage";
    	}
    	if($score != 0){
    		$rated = round($score / $ratings);
    	}else{
    		$rated = 0;
    	}
    	if($comments==0){
    		$comments = ""._NOCOMMENTS."";
    	}else{
    		$comments = "$comments "._COMMENTS."";
    	}
    	if($ShowTopic == 1){
    		$content = "<img align=\"right\" src=\"$t_image\"/>".$hometext."";
    	}else{
    		$content = "".$hometext."";
    	}
    	
    ?>
    
    <?php
    }
    
    
    function themeindex3($title, $counter, $score, $ratings,$sid,$newsLink,$itempost,$itemcd,$itemprice)
    {
    	global $ShowTopic,$tipath,$RateUnitWidth,$cookie;
    	$ThemeSel = get_theme();
    	theme_lang();
    	if($score != 0)
    	{
    		$rated = round($score / $ratings);
    	}else
    	{
    		$rated = 0;
    	}
    ?>
    
    
    <?php
    }
    
    
    function themeproduct($aid, $informant, $datetime, $title, $bodytext, $hometext, $topic, $topicname, $topicimage, $topictext, $printpage,$itempost,$itemcd,$itemprice,$sidd, $notes){
    	global $admin, $sid, $tipath;
    	$ThemeSel = get_theme();
    	theme_lang();
    	if(file_exists("themes/$ThemeSel/images/topics/$topicimage")){
    	$t_image = "themes/$ThemeSel/images/topics/$topicimage";
    	}else{
    	$t_image = "$tipath$topicimage";
    	}
    	$posted = ""._POSTEDON." $datetime "._BY." "; 
    	$posted .= get_author($aid);
    	$posted .= "&nbsp;&nbsp;<a href=\"$printpage\" target=\"_blank\"><img border=\"0\" src=\"images/print.gif\" width=\"16\" height=\"16\" alt=\""._PRINT."\"></a>";
    	$notes = str_replace(" ","_",$notes);
    	$notes = explode(":",$notes);
    	foreach($notes as $tag){
    		$tags .= "<i><a href=\"modules.php?name=Products&file=tags&tags=$tag\">".str_replace("_"," ",$tag)."</a></i> ";
    	}
    ?>
    
    
    <?php
    }
    
    
    function contentindex($pid, $myauthor, $mytitle, $mysubtitle, $mypage_header2, $date, $mycounter)
    {
    	$ThemeSel = get_theme();
    	theme_lang();
    ?>
    
    
    <?php
    }
    
    
    function contentfull($pid, $myauthor, $mytitle, $mysubtitle, $mypage_header2, $pageof, $contentpages, $mysignature, $date, $mypage_footer, $mycounter, $report, $total_rows, $entries_per_page, $current_page, $link_to)
    {
    	global $align;
    	$ThemeSel = get_theme();
    	theme_lang();
    	$mysignature = str_replace(" ","_",$mysignature);
    	$mysignature = explode(":", $mysignature);
    	foreach($mysignature as $tag){      
    		$mysignature1 .= "<i><a href=\"modules.php?name=Content&file=tags&op=tags&tag=$tag\">".str_replace("_"," ",$tag)."</a></i>";
    	}
    
    ?>
    
    
    <?php
    }
    
    function comments_show($tid, $deact, $fileds, $score, $c_name, $datetime, $journal, $u_website, $u_ip, $karma, $avaimage, $comment, $pagevar, $pagefiled, $parent, $admin_delete_op, $admin_edit_op, $comcode, $parentid, $classstyle, $classtyp, $subcomrow, $Req_URI){
    	global $align, $userinfo, $admin, $user, $anonpost, $admin_file;
    	$ThemeSel = get_theme();
    	theme_lang();
    	echo "
    	<style>
    		.comment_class1 {border:1px solid #CCCCCC;background-color:#C6DEFF;margin:5px 2px 0 2px;}
    		.comment_class2 {border:1px solid #CCCCCC;background-color:#CFECEC;margin:5px 2px 0 2px;}
    	</style>
    	<a name=\"$tid\"></a>
    	<table width=\"99%\" border=\"0\" class=\"$classstyle\">
    		<tr>
    			<td width=\"100%\">
    				$deact
    				$fileds";
    				echo"<br>"._ON." $datetime";
    				if ($c_name != "Anonymous") {
    					$r_uid = intval($userinfo['user_id']);
    					echo ""._BY." <br>(<a href=\"modules.php?name=Your_Account&op=userinfo&username=$c_name\">"._USERINFO." $c_name</a> ";
    					echo "| <a href=\"Forum/ucp.php?i=pm&mode=compose&u=$r_uid\">"._SENDAMSG."</a>";
    					echo "$journal) ";
    				}
    				echo "<a href=\"$u_website\" target=\"_blank\">$u_website</a> <b>("._IP_ADDRESS." : $u_ip)</b> $karma";
    				echo"
    			</td>
    		</tr>
    		<tr>
    			<td>
    				<table border='0' width='100%'>
    					<tr>
    						<td dir='$align' width='80' height='80'><img width='80' height='80' src = '$avaimage' border = '0'></td>
    						<td dir='$align'>$comment</td>
    					</tr>";
    					if($subcomrow > 0){
    					echo"
    					<tr>
    						<td colspan=\"2\"><b>"._REPLYS."</b><br /><br />";
    						display_comments($tid, $classtyp);
    						echo"</td>
    					</tr>";
    					}
    				echo"</table>";
    				if ($anonpost==1 OR is_admin($admin) OR is_user($user)) {
    					echo "
    						<script>
    							function replay_to(tid){
    								document.getElementById(\"replayto\").innerHTML=\"<td><b>"._REPLY."</b></td><td><input type='text' value='"._REPLY." "._TO." \"+tid+\"' disabled /><input type='hidden' name='replay' value='\"+tid+\"'></td>\";		
    							}
    						</script>
    						<a href=\"$Req_URI#commenteditor\"><span onclick=\"replay_to('$tid');\" style=\"cursor:pointer;\">"._REPLY."</span></a>";
    				}
    				if(is_admin($admin)) {
    					echo " | <a href=\"".$admin_file.".php?op=".$admin_delete_op."&tid=$tid&".$pagefiled."=".$pagevar."&ok=1\" onclick=\"return confirm('"._SURETODELCOMMENTS."')\">"._DELETE."</a> | <a href=\"".$admin_file.".php?op=".$admin_edit_op."&tid=$tid\">"._EDIT."</a><br><br>";
    				} elseif ($anonpost != 0 OR is_admin($admin) OR is_user($user)) {
    					echo " ]<br><br>";
    				}
    			echo"
    			</td>
    		</tr>
    	</table>";
    }
    
    ?>
    
     
  3. administrator

    administrator مدیریت کل سایت

    تاریخ عضویت:
    ‏27 جولای 2011
    ارسال ها:
    2,989
    تشکر شده:
    1,027
    با سلام

    دوست عزیز فایل که پیوست شده رو دانلود کنید و جایی که مشخص کرده کد رو قرار بدید .همونجایی که نوشته" کدهات رو اینجا بنویس" . البته اگه کد های شما کد بلوک هست که فکر نمیکنم کد بلوک باشه.
    موفق باشید.