Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Pagalba, javascript ir dar sis tas.

Parašė nwk· 2010 Sau. 19 10:01:14
#1

Is vienos temos pasiemiau "grade.js"
Kaip galeciau iterpt i savo themes.php kad jis veiktu?
Bandziau terpt si koda:

<script type='text/javascript' src='".INFUSIONS."info_panel/javascript/gpe.js'></script>
<script type='text/javascript' src='".THEME."grade.js'></script>
<script type='text/javascript' src='".INFUSIONS."shoutbox_panel/functions.js'></script>




Bet vistiek neveikia.


Dar kad nekurt temos, gal kas galetu i si themes.php imesti user info headerije, kad rodytu prisijugima ne kaip visad sone, o headeri, bandziau padaryt bet niekaip nesigauna. :(
Galima patalpinti vietoi topdownload, nenoriu pats trint nes bijau sugadint.

<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";

function render_header($header_content) {
global $db_prefix;
?><script type='text/javascript' src='".INFUSIONS."info_panel/javascript/gpe.js'></script>
<script type='text/javascript' src='".THEME."grade.js'></script>
<script type='text/javascript' src='".INFUSIONS."shoutbox_panel/functions.js'></script>

<center>
<div id="head">
<div id="head_button_01" onclick="document.getElementById('head_top_download').style.display='none';document.getElementById('head_hot').style.display='block';"><img src="<?=THEME;?>images/blank.gif" width="70" height="20" alt=""></div>
<div id="head_button_02" onclick="document.getElementById('head_top_download').style.display='block';document.getElementById('head_hot').style.display='none';"><img src="<?=THEME;?>images/blank.gif" width="80" height="20" alt=""></div>
<div id="head_top">
<div id="head_top_download">
<?
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,15");
if (dbrows($result) != 0) {
echo "<table width='240' align='center' cellpadding='0' cellspacing='0'>";
$num = 0;
while($data = dbarray($result)) {
$num++;
$itemsubject = trimlink($data['download_title'], 32);
echo "<tr><td><b>".$num.".</b> </td><td><a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>$itemsubject</a><td align='right'>".$data['download_count']."</td>";
}
echo "</table>";}
?>
</div>
<div id="head_hot">
<?
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,15");
if (dbrows($result) != 0) {
echo "<table width='240' align='center' cellpadding='0' cellspacing='0'>";
$num = 0;
while($data = dbarray($result)) {
 $num++;
$itemsubject = trimlink($data['download_title'], 32);
echo "<tr><td><b>".$num.".</b> </td><td><a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>$itemsubject</a><td align='right'>".$data['download_count']."</td>";
}
echo "</table>";
}
?>
</div>
</div>
</div>
</center>
<?
echo "<table align='center' id='main_table' width='990' cellspacing='0' cellpadding='0'>\n<tr>\n";
}

function render_footer($license=false) {
?>
</tr>
<td colspan="3" align="center">
<div id="footer"> Dizainas: nwk.lt</div>
</td>
<?
echo "</tr>\n</table>\n";
}

function render_news($subject, $news, $info) {
global $locale;
?>
<div class="opentable">
<div class="opentable_title"><?=$subject;?></div>
<div class="opentable_main"><?=$news;?></div>
<div class="opentable_bottom"><?echo openform("N",$info['news_id']).newsopts($info,"&middot;").closeform("N",$info['news_id']);?></div>
</div>
<?
}

function render_article($subject, $article, $info) {

global $locale;
?>
<div class="opentable">
<div class="opentable_title"><?=$subject;?></div>
<div class="opentable_main"><?=$article;?></div>
<div class="opentable_bottom"><?echo openform("A",$info['news_id']).articleopts($info,"&middot;").closeform("A",$info['news_id']);?></div>
</div>
<?
}

function opentable($title) {

?>
<div class="opentable">
<div class="opentable_title"><?=$title;?></div>
<div class="opentable_main">
<?
}

function closetable() {

?>
</div>
</div>
<?
}

function openside($title) {
?>
<div class="openside">
<div class="openside_title"><?=$title;?></div>
<div class="openside_main">
<?
}

function closeside() {
?>
</div>
</div>
<?
}

function opensidex($title,$open="on") {

?>
<div class="openside">
<div class="openside_title"><?=$title;?></div>
<div class="openside_main">
<?
}

function closesidex() {

?>
</div>
</div>
<?
}

function tablebreak() {

echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td></td></tr></table>\n";
}
?>





Redagavo ozzWANTED· 2010 Sau. 31 17:01:33