Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Kaip pakeisti Rating

Parašė tomas710· 2011 Vas. 7 18:02:09
#1

Sveiki norejau paprasyti jusu siokios tokios pagalbos.

Noriu is vieno dizaino isimti ir isideti i savo dizaina Reitingo paveiksleli kad nebutu standartinis tos eiles o butu is kito dizaino tokios zvaigzdutes. -->



Turiu to dizaino Themes.php Bet nezinau kur ir koki koda ten perasyt ar ka

Cia To dizaino Themes.php

<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }

define("THEME_WIDTH", "950");
define("THEME_BULLET", "<img src='".THEME."images/bullet.gif' alt='' style='border:0' />");

require_once INCLUDES."theme_functions_include.php";
include THEME."kodas/script.php";

function render_page($license=false) {

   global $settings, $main_style,$userdata,$aidlink,$locale,$db_prefix;

   //Header
   echo "<table cellspacing='0' cellpadding='0' width='".THEME_WIDTH."' align='center'>\n<tr>\n";
   echo "<td>\n";

echo"<div id='header'>";
   
   
   
      echo"<div id='nav'>
      <table id='Table_01' width='919' height='50' border='0' cellpadding='0' cellspacing='0'>
      <tr>
         <td width='18' height='49'>
            <img src='".THEME."images/spacer.gif' width='18' height='49' alt='' /></td>
         <td>
            <a href='/index.php'>
               <img src='".THEME."images/nav/1.png' width='111' height='49' border='0' alt='' /></a></td>
         <td>
            <a href='/news_cats.php'>
               <img src='".THEME."images/nav/2.png' width='109' height='49' border='0' alt='' /></a></td>
         <td>
            <a href='/forum/index.php'>
               <img src='".THEME."images/nav/3.png' width='110' height='49' border='0' alt='' /></a></td>
                        <td>
                 <a href='/search.php'>
               <img src='".THEME."images/nav/7.png' width='110' height='49' border='0' alt='' /></a></td>
         <td>
            <a href='/contact.php'>
               <img src='".THEME."images/nav/8.png' width='112' height='49' border='0' alt='' /></a></td>
         <td width='19' height='49'>
            <img src='".THEME."images/spacer.gif' width='19' height='49' alt='' /></td>
      </tr>
   </table>
      </div>";

         echo"<div id='zanrai'>";
         echo"<table width='100%' border='0' cellspacing='0' cellpadding='0'>
           <tr>
            <td width='100' style='padding:2px;color:#ffffff;'><img src='".THEME."images/tick.png' style='vertical-align:middle' /> <a href='/news_cats.php?cat_id=6'style='color:#ffffff;'>Animacija</a></td>
            <td style='padding:2px;'><img src='".THEME."images/tick.png' style='vertical-align:middle' /> <a href='/news_cats.php?cat_id=2' style='color:#ffffff;'>Anime</a></td>
           </tr>
         </table>
         ";
         echo"</div>";


//SLIDE
include THEME."kodas/slide.php";
//SLIDE


echo"<div id='member'>";
//////////////////////////////////////////


if (iMEMBER) {
      //narys

echo"<table cellpadding='0' cellspacing='0' width='100%'><tr><td style='padding-left:15px;'>";                           
         echo ($userdata['user_avatar'] ? "<img src='".IMAGES."avatars/".$userdata['user_avatar']."' width='70' height'70' align='left' style='margin-right: 10px;'>" : "<img src='".THEME."images/noav.png' width='70' height'70' align='left' style='margin-right: 10px;'>")."";
$locale['085'] = "Jus turite nauja(as) ";
$locale['086'] = "zinute";
$locale['087'] = "zinutes";
         //narys
   $msg_count = dbcount("(message_id)", "".$db_prefix."messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<a href='".BASEDIR."edit_profile.php' class='ss'>Redaguoti profili</a><br>
<a href='".BASEDIR."messages.php' class='ss'>Pranešimai</a><br>
<a href='".BASEDIR."members.php' class='ss'>Nariai</a><br>\n";
   if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
      echo "<a href='".ADMIN."index.php".$aidlink."' class='ss'>Adminke</a><br>\n";
   }
   echo "<a href='".BASEDIR."setuser.php?logout=yes' class='ss'>Atsijungti</a>\n";
   if ($msg_count) echo "<br><br><center><b><a href='".BASEDIR."messages.php' class='ss'>".sprintf($locale['085'], $msg_count).($msg_count == 1 ? $locale['086'] : $locale['087'])."</a></b></center>\n";
echo"</td></tr></table>";         
      
      
      /////
      } else {
      echo "<div>
            <form name='loginform' method='post' action='".FUSION_SELF."'>


            
<table cellpadding='0' cellspacing='0' width='100%'><tr>

<td >
<div>
<input type='text' name='user_name' class='textbox'  value='Vartotojas' onBlur=\"if(this.value=='') this.value='Vartotojas';\" onFocus=\"if(this.value=='Vartotojas') this.value='';\"  >
</div>
</td>

      </tr><tr>
      
<td>
<div>
<input type='password' name='user_pass' class='textbox' value='Passwordas' onBlur=\"if(this.value=='') this.value='Passwordas';\" onFocus=\"if(this.value=='Passwordas') this.value='';\" >
<div>
</td>

</tr><tr>

<td align='center'><input type='submit' name='login' value='Login' class='button'></td>

</tr><tr>


<td align='center' style=''><a href='".BASEDIR."register.php'><span  class='white'>Register</span></a><span style='font-size:9px;'>/</span><a href='".BASEDIR."lostpassword.php'><span  class='white'>Lost password</span></a></td>


      

</tr></table>      
      
            
            

            
            </form>
            </div>\n";   
      }      

////////////////////////////////////////////
echo"</div>";


echo"</div>";

   
   
   echo "</td>\n</tr>\n</table>\n";

   
   //Content
   echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center' class='$main_style'>\n<tr>\n";
   if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }
   echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
   if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }
   echo "</tr>\n</table>\n";
   
   //Footer
   echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center'>\n<tr>\n";
   echo "<td align='left' class='footer'>";
   echo "Dizaino kurejas: Danielius <br /> © Copyright 2010 Visos teises saugomos";
   echo "</td>";
   echo "</tr>\n</table>\n";

}

function render_news($subject, $news, $info) {
global $data,$info;

         $wynik = dbquery("SELECT SUM(rating_vote) FROM ".DB_RATINGS." WHERE rating_type='N' AND rating_item_id='".$data['news_id']."'");
                $info = dbresult($wynik,0);
                $num_rating = dbcount("(rating_vote)", DB_RATINGS, "rating_type='N' AND rating_item_id='".$data['news_id']."'");
                $wyn_rating = ($num_rating ? $info / $num_rating : 0);


   echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td class='capmain'><div class='text'>".$subject."</div></td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td class='main-body'>".$news."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td align='right' class='news-footer''>\n";
   echo"<img src='".THEME."images/retitingai/".ceil($wyn_rating).".png' width='103' height='13' alt='".ceil($wyn_rating)."' title='".ceil($wyn_rating)."' /> ";
   echo"| <a href='".BASEDIR."news.php?readmore=".$data['news_id']."' ></center> <b><font size ='2'>ziureti</font></b></a> | ziurejo: ".$data['news_reads']."";
   echo "</td>\n</tr>\n</table>\n";
}

function render_article($subject, $article, $info) {
   
   echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td class='capmain'><div class='text'>".$subject."</div></td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td align='right' class='apacia'>\n";
   echo "</td>\n</tr>\n</table>\n";

}

function opentable($title) {

   echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td class='capmain'><div class='text'>".$title."</div></td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td class='main-body'>\n";

}

function closetable() {

   echo "</td>\n</tr><tr><td class='apacia'></td></tr></table>\n";

}

function openside($title, $collapse = false, $state = "on") {
   
   global $panel_collapse; $panel_collapse = $collapse;
   
   echo "<table cellpadding='0' cellspacing='0' width='285' >\n<tr>\n";
   echo "<td class='scapmain'><div class='text'>".$title."</div></td>\n";
   if ($collapse == true) {
      $boxname = str_replace(" ", "", $title);
      echo "<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>\n";
   }
   echo "</tr>\n<tr>\n";
   echo "<td".($collapse == true ? " colspan='2'" : "")." class='side-body'>\n";   
   if ($collapse == true) { echo panelstate($state, $boxname); }

}

function closeside($collapse = false) {

   global $panel_collapse;

   if ($panel_collapse == true) { echo "</div>\n"; }   
   echo "</td>\n</tr><tr><td class='sapacia'></td></tr></table>\n";

}
?>




O cia mano dizaino Themes.php

<?php

if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_BULLET", "<span class='bullet'>&middot;</span>");
require_once INCLUDES."theme_functions_include.php";


function render_page($license=false) {
global $theme_width,$userdata,$settings,$locale,$data,$db_prefix,$lookup,$msg_count,$aidlink;

   echo "<table align='center' cellpadding='0' cellspacing='0' class='paneles'>\n<tr>
   <td align='center' width='86'>";
   echo "</td>
   <td align='left' width='280'>";
   echo "</td>
   <td align='center' width='604'>";
   echo "</td>
   </tr>
   </table>";
   echo "<table align='center' cellpadding='0' cellspacing='0' class='paneles2'>\n<tr>
   <td align='right' width='98'>";
   echo "</td>
   <td align='left' width='140'>";
   echo "</td>
   <td align='right' width='20'>";
   echo "</td>
   <td align='left' width='140'>";
   echo "</td>
   <td align='right' width='200'>";
   echo "</td>
   <td align='right' width='200'>";
   include THEME."code/prisijungimas.php";
   echo "</td>
   <td align='right' width='185'>";
   echo "</td>
   </tr>
   </table>";
   echo "<table align='center' cellpadding='0' cellspacing='0' width='970'>\n<tr>
   <td class='sub-nav' height='58'>
   <a href='".BASEDIR."index.php' title='Pagrindinis' class='nav'><i>Pagrindinis</i></a>
   <a href='".BASEDIR."Animacija.php' title='Pagrindinis' class='nav'><i>Animacija</i></a>
   <a href='".BASEDIR."forum/index.php' title='Forumas' class='nav'><i>Forumas</i></a>
   <a href='".BASEDIR."reklama.php' title='Reklama' class='nav'><i>Reklama</i></a>
   <a href='".BASEDIR."search.php' title='Paie&#353;ka' class='nav'><i>Paie&#353;ka</i></a>
   <a href='".BASEDIR."contact.php' title='Kontaktai' class='nav'><i>Kontaktai</i></a>
   </td>
   </tr>
   </table>\n";
   echo "<table cellpadding='0' cellspacing='0' width='970' align='center' class='content'><tr>\n";
   if (LEFT) { echo "<td class='side-border-left' valign='top' width='197'>".LEFT."</td>"; }
   echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
   if (RIGHT) { echo "<td class='side-border-right' valign='top' width='197'>".RIGHT."</td>"; }
   echo "</tr>\n</table>\n";
   echo "<table cellpadding='0' cellspacing='0' align='center' width='970'>
   <tr>
   <td align='left' class='footer'>
   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Animebaze<a href='' target='_blank' class='small'></a><br>
   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; www.Animebaze.ipp.lt<a href='' target='_blank' class='small'>.
   </td>
   <td align='right' class='footer2'>
   Dizaino &#303;d&#279;ja: <a href='skype:decolor.' class='small'>decolor. </a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
   Studijos svetain&#279;: <a href='http://www.decolor.lt' target='_blank' class='small'>www.decolor.lt </a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
   </td>
   </tr>
   </table>\n";
}

function render_news($subject, $news, $info) {
   
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='panel-left3'><img src='".THEME."images/blank.gif' width='10' height='58' alt='' style='display:block'></td>";
   echo "<td width='440' class='panel-main3'>$subject</td>";
   echo "<td width='146' class='news' style='padding-left: 10px;'>
   Parase: <a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a><br>
   Data: ".date("Y-m-d", $info['news_date'])."<br>
    ziurejo: ".$info['news_reads']."
   </td>";
   echo "<td class='panel-right3'><img src='".THEME."images/blank.gif' width='10' height='58' alt='' style='display:block'></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='border-left3'><img src='".THEME."images/blank.gif' width='10' height='10' alt='' style='display:block'></td>";
   echo "<td class='main-body'><div style='width:100%;vertical-align:top;'>$news</div>";
   echo "<div style='margin-top:5px'>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr><br>";
   echo "<tr><td align='right' class='infobar' width='100%'><a href='".BASEDIR."news.php?readmore=".$info['news_id']."'><b>Ziureti</b></a>&nbsp;Komentar&#371;: ".$info['news_comments']." </td>";
   echo "</td></tr></table></div></td>";
   echo "<td class='border-right3'><img src='".THEME."images/blank.gif' width='10' height='10' alt='' style='display:block'>";
   echo "</td></tr><tr>";
   echo "<td class='border-bleft3'><img src='".THEME."images/blank.gif' width='10' height='16' alt='' style='display:block'></td>";
   echo "<td class='border-bmain3'><img src='".THEME."images/blank.gif' width='1' height='16' alt='' style='display:block'></td>";
   echo "<td class='border-bright3'><img src='".THEME."images/blank.gif' width='10' height='16' alt='' style='display:block'></td>";
   echo "</tr></table><br>\n";
}

function render_article($subject, $article, $info) {
   
   echo "<table width='554' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='panel-left4'><img src='".THEME."images/blank.gif' width='10' height='41' alt='' style='display:block'></td>";
   echo "<td width='100%' class='panel-main4'>$subject</td>";
   echo "<td class='panel-right4'><img src='".THEME."images/blank.gif' width='10' height='41' alt='' style='display:block'></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='border-left4'><img src='".THEME."images/blank.gif' width='10' height='10' alt='' style='display:block'></td>";
   echo "<td class='article-body'><div style='width:100%;vertical-align:top;'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div><br>";
   echo "<div style='margin-top:5px'>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr><br>";
   echo "<td class='infobar2'>".articleposter($info," &middot;")."</td>";

   echo "<td align='right' class='infobar2'>";
    echo articleopts($info,"&middot;").itemoptions("A",$info['article_id']);

   echo "</td></tr></table></div></td>";
   echo "<td class='border-right4'><img src='".THEME."images/blank.gif' width='10' height='10' alt='' style='display:block'></td>";
   echo "</tr><tr>";
   echo "<td class='border-bleft4'><img src='".THEME."images/blank.gif' width='10' height='16' alt='' style='display:block'></td>";
   echo "<td class='border-bmain4'><img src='".THEME."images/blank.gif' width='1' height='16' alt='' style='display:block'></td>";
   echo "<td class='border-bright4'><img src='".THEME."images/blank.gif' width='10' height='16' alt='' style='display:block'></td>";
   echo "</tr></table><br>\n";
}

function opentable($title) {

   echo "<table width='100%' cellpadding='0' cellspacing='0'>";
   echo "<tr><td class='panel-left2'><img src='".THEME."images/blank.gif' width='10' height='41' alt='' style='display:block'></td>";
   echo "<td width='100%' class='panel-main2'>$title</td>";
   echo "<td class='panel-right2'><img src='".THEME."images/blank.gif' width='10' height='41' alt='' style='display:block'></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='border-left2'><img src='".THEME."images/blank.gif' width='10' height='10' alt='' style='display:block'></td>";
   echo "<td class='table-body'><br>\n";
}

function closetable() {

   echo "</td>";
   echo "<td class='border-right2'><img src='".THEME."images/blank.gif' width='10' height='10' alt='' style='display:block'></td></tr>";
   echo "<tr>";
   echo "<td class='border-bleft2'><img src='".THEME."images/blank.gif' width='10' height='16' alt='' style='display:block'></td>";
   echo "<td class='border-bmain2'><img src='".THEME."images/blank.gif' width='1' height='16' alt='' style='display:block'></td>";
   echo "<td class='border-bright2'><img src='".THEME."images/blank.gif' width='10' height='16' alt='' style='display:block'></td>";
   echo "</tr></table><br>\n";
}

function openside($title) {


   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='panel-left'><img src='".THEME."images/blank.gif' width='10' height='41' alt='' style='display:block'></td>";
   echo "<td width='100%' class='panel-main'>$title</td>";
   echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='10' height='41' alt='' style='display:block'></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='border-left'><img src='".THEME."images/blank.gif' width='10' height='10' alt='' style='display:block'></td>";
   echo "<td class='side-body'><br>\n";

}

function closeside() {

   global $panel_collapse;
   if ($panel_collapse == true) { echo "</div>\n"; }
   echo "</td>";
   echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='10' height='10' alt='' style='display:block'></td></tr>";
   echo "<tr>";
   echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='10' height='16' alt='' style='display:block'></td>";
   echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='16' alt='' style='display:block'></td>";
   echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='10' height='16' alt='' style='display:block'></td>";
   echo "</tr></table><br>\n";
}


?>



Parašė utx· 2011 Vas. 7 18:02:19
#2

Tai jei tau tokių žvaigždučių reikia, tai images persikelk. :)

Parašė tomas710· 2011 Vas. 7 18:02:20
#3

As turiu folderi bet mano dizaine jo ne as juos i images idedu ta Folderi Reitingu kur paveiksleliai yra bet kur ka irasyt kad pakeistu ta sena reitinga

Parašė arnas120· 2011 Vas. 7 18:02:11
#4

ziurek pagal to dizaino kur reitingas theme.php ir iterpk koda

Parašė tomas710· 2011 Vas. 7 18:02:11
#5

nu tai va as parasiau du Themes.php pirmas to kur yra tas reitingas su zvaigzdutem o antras mano. Susiradau kaska panasaus bet kaip irasau i savo man notices pisa visokes