Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: mygtukas

Parašė arnas120· 2011 Vas. 1 18:02:45
#1

sveiki. labai reikia pagalbos kaip padaryti kad liktu tik perziuros ir butu sone mygtukas kuris veiktu kaip read more stai fotke kaip mazdaug atrodyt turi:


stai theme.php radau ta vieta kur skaityti daugiau bet kaip padaryt kaip paveiksliuke
<?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='decolor'>\n<tr>
   <td align='right' width='464'>";
   echo "</td>
   <td align='right' width='447'>";
   if (!defined("IN_FUSION")) { die("Access Denied"); }
   if (iMEMBER) {
   $msg_count = dbcount("(message_id)", DB_MESSAGES, "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
   echo "<table width='100%' border='0' cellspacing='0' cellpadding='0' align='center'>
   <tr>
   <td align='left' width='120' >
   <span style='color:#ff9908'><b>&#3611;</b></span> <a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."'>Mano profilis</a><br>
   <span style='color:#ff9908'><b>&#3611;</b></span> <a href='".BASEDIR."edit_profile.php'>".$locale['global_120']."</a><br>
   </td>
   <td align='left' width='125' >
   <span style='color:#ff9908'><b>&#3611;</b></span> <a href='".BASEDIR."members.php'>".$locale['global_122']."</a><br>
   <span style='color:#ff9908'><b>&#3611;</b></span> <a href='".BASEDIR."messages.php'>&#381;inut&#279;s [nauj&#371;: ".sprintf($msg_count)."]</a>
   </td>
   <td align='left' width='120'>\n";
   if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
   echo "<span style='color:#ff9908'><b>&#3611;</b></span> <a href='".ADMIN."index.php".$aidlink."' >Administracija</a><br>\n";
   }
   echo "<span style='color:#ff9908'><b>&#3611;</b></span> <a href='".BASEDIR."setuser.php?logout=yes'>".$locale['global_124']."</a>
   </td>
   </tr>
   </table>";
   } else {
   echo "<div align='left' height='25' width='510'>
   <form name='loginform' method='post' action='".FUSION_SELF."'>
   <input type='text' name='user_name' class='id' value='vardas' onBlur=\"if(this.value=='') this.value='vardas';\" onFocus=\"if(this.value=='vardas') this.value='';\" >
   <input type='password' name='user_pass' class='pass' value='slapta&#382;odis' onBlur=\"if(this.value=='') this.value='slapta&#382;odis';\" onFocus=\"if(this.value=='slapta&#382;odis') this.value='';\" >
   <input type='submit' name='login' value='' class='inne'>
   </form></div>";
   }
   echo "</td>
   <td align='right' width='51'>";
   echo "</td>
   </tr>
   </table>";
   echo "<table align='center' cellpadding='0' cellspacing='0' class='decolor2'>\n<tr>
   <td align='center' width='470'>";
   echo "</td>
   <td align='center' width='330'>";
   echo "<a href='".BASEDIR."register.php' ><span style='font-size: 10px; font-weight: bold; font-family: Tahoma; color:#ffffff;' >Dar ne narys ? <span style='color:#fe9908'><blink>U&#382;siregistruok!</blink></span></a></span>
   <a href='".BASEDIR."lostpassword.php' ><span style='font-size: 10px; font-weight: bold; font-family: Tahoma; color:#ffffff;' >Prisiminti slapta&#382;od&#303;! <span style='color:#fe9908'>Gauk nauj&#261;!</span></a></span>\n";
   echo "</td>
   <td align='center' width='115'>";
   echo "</td>
   </tr>
   </table>";
   echo "<table align='center' cellpadding='0' cellspacing='0' class='decolor3'>\n<tr>
   <td align='right' width='469'>";
   echo "</td>
   <td align='right' width='350'>";


   echo "</td>
   <td align='right' width='30'>";
   echo "</td>
   <td align='right' width='30'>";
   echo "<a href='skype:valdas3968?chat'><img src='".THEME."images/skype.png' border='0' title='Administracija' alt=''></a >\n";
   echo "</td>
   <td align='right' width='20'>";
   echo "</td>
   <td align='right' width='30'>";
   echo "<a href='http://www.facebook.com/pages/FilmaiOnlineqllt/123226911084024' target='_blank'><img src='".THEME."images/facebook.png' border='0' title='Facebook fanai' alt=''></a >\n";
   echo "</td>
   <td align='right' width='33'>";
   echo "</td>
   </tr>
   </table>";
   echo "<table align='center' cellpadding='0' cellspacing='0' width='100%'>\n
   <td>
   <div id='containe'>
   <div id='sub-nav'>
   <a href='".BASEDIR."index.php'></a>
   <ul>
   <li><a href='".BASEDIR."index.php'>Pagrindinis</a></li>
   <li><a href='".FORUM."index.php'>Forumas</a></li>
   <li><a href='".BASEDIR."viewpage.php?page_id=3'>Studija</a></li>
   <li><a href='".BASEDIR."viewpage.php?page_id=2'>Reklama</a></li>
   <li><a href='".BASEDIR."articles.php'>Filmai</a></li>
   <li><a href='".BASEDIR."search.php'>Paie&#353;ka</a></li>
   <li><a href='".BASEDIR."contact.php'>Kontaktai</a></li>
   </ul>
   </div>
   </td>
   </table>\n";
   echo "<table align='center' cellpadding='0' cellspacing='0' class='decolor5'>\n<tr>
   <td align='right' width='960'>";
   echo "</td>
   </tr>
   </table>";
   echo "<table cellpadding='0' cellspacing='0' width='960' align='center' class='content'><tr>\n";
   echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
   if (LEFT) { echo "<td class='side-border-left' valign='top' width='250'>".LEFT."</td>"; }
   if (RIGHT) { echo "<td class='side-border-right' valign='top' width='250'>".RIGHT."</td>"; }
   echo "</tr>\n</table>\n";
   echo "<table width='960' height='80' border='0' cellpadding='0' cellspacing='0' align='center' class='footer'>
   <tr>
   <td align='left'>
   <span style='padding-left:20px; font-family: Tahoma; font-weight: bold; font-size: 11px;'> Svetain&#279;s skype: <a href='skype:valdas3968?chat'>Administracija</a></span><br>
   <span style='padding-left:20px; font-family: Tahoma; font-weight: bold; font-size: 11px;'> Visos teis&#279;s saugomos: <a href='http://FilmaiOnline.ql.lt' target='_blank'>FilmaiOnline.ql.lt</a></span>
   </td>
   <td align='right'>
   <span style='padding-right:60px; font-family: Tahoma; font-weight: bold; font-size: 11px;'> Dizaino &#303;d&#279;ja: <a href='skype:decolor.?chat'>decolor. </a></span><br>
   <span style='padding-right:60px; font-family: Tahoma; font-weight: bold; font-size: 11px;'> Studijos svetain&#279;: <a href='http://www.decolor.lt/' target='_blank'>www.decolor.lt </a></span>
   </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='40' alt='' style='display:block'></td>";
   echo "<td width='100%' class='panel-main3'>$subject</td>";
   echo "<td class='panel-right3'><img src='".THEME."images/blank.gif' width='10' height='40' 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 "<td align='left' class='infobar'>
   <a href='".BASEDIR."profile.php?lookup=".$info['user_id']."'>
   <img src='".THEME."images/bullet.gif' alt=''> <b>".$info['user_name']."</b></a> &nbsp;
   <img src='".THEME."images/bullet.gif' alt=''> ".showdate("%y.%m.%d", $info['news_date'])." &nbsp;
   <a href='".BASEDIR."news.php?readmore=".$info['news_id']."'>
   <img src='".THEME."images/bullet.gif' alt=''> <b> Ziureti Filma... </b></a>&nbsp;
   <img src='".THEME."images/bullet.gif' alt=''> ".$info['news_reads']." Per&#382;i&#363;ros &nbsp;
   <img src='".THEME."images/bullet.gif' alt=''> ".$info['news_comments']." Komentarai</div></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='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='panel-left3'><img src='".THEME."images/blank.gif' width='10' height='40' alt='' style='display:block'></td>";
   echo "<td width='100%' class='panel-main3'>$subject</td>";
   echo "<td class='panel-right3'><img src='".THEME."images/blank.gif' width='10' height='40' 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='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-right3'><img src='".THEME."images/blank.gif' width='10' height='10' alt='' style='display:block'></td>";
   echo "</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 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='40' 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='40' 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='40' 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='40' 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";
}

?>



dekoju is anksto :)