Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Noyz klausimanija.
Parašė Noyz· 2010 Kov. 11 14:03:54
#1
Sveiki, čia dėsiu savo klausimus, štai ir pirmasis :
Kai koduoji dizainą, reikia įdėti headerį, bet nežinau kur reikia įrašyti, kad surastų img, pvz images/header.png
Va kodas :
echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width' class='outer-border'>
<tr><td>";
Cia randasi jusu baneris
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='full-header'>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>$header_content</td>
</tr>
</table>
</td>
</tr>
</table>\n";
Parašė samsung123· 2010 Kov. 11 15:03:49
#2
echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width' class='outer-border'>
<tr><td>";
Cia randasi jusu baneris
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='full-header'>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td><img src='img linkas'></td>
</tr>
</table>
</td>
</tr>
</table>\n";
Parašė Noyz· 2010 Kov. 11 15:03:30
#3
<table cellpadding='0' cellspacing='0' width='100%'><tr>
function render_footer($license=false) {
global $theme_width,$settings;
echo "</tr>\n</table>\n
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='center' colspan='3' class='footer'>";
echo stripslashes($settings['footer'])."</td></tr><tr>";
if(!$license){
/* Cia php-fusion teises */
echo "<td align='left' class='footer' width='30%'>\n
Powered by <a href='http://www.php-fusion.co.uk' class='white'>
PHP-Fusion</a> v".$settings['version']."</td>";
}
o kur čia idėt paveiksliuką? Padėkit, koduoju pirmą dizainą. :D
Parašė AceN· 2010 Kov. 11 15:03:58
#4
Noyz parašė:
<table cellpadding='0' cellspacing='0' width='100%'><tr>
function render_footer($license=false) {
global $theme_width,$settings;
echo "</tr>\n</table>\n
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='center' colspan='3' class='footer'>";
echo stripslashes($settings['footer'])."</td></tr><tr>";
if(!$license){
/* Cia php-fusion teises */
echo "<td align='left' class='footer' width='30%'>\n
Powered by <a href='http://www.php-fusion.co.uk' class='white'>
PHP-Fusion</a> v".$settings['version']."</td>";
}
o kur čia idėt paveiksliuką? Padėkit, koduoju pirmą dizainą. :D
O kokį paveiksliuką nori įdėt,čia foteris kaip supratau
Parašė Noyz· 2010 Kov. 11 16:03:52
#5
Active parašė:
Noyz parašė:
<table cellpadding='0' cellspacing='0' width='100%'><tr>
function render_footer($license=false) {
global $theme_width,$settings;
echo "</tr>\n</table>\n
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='center' colspan='3' class='footer'>";
echo stripslashes($settings['footer'])."</td></tr><tr>";
if(!$license){
/* Cia php-fusion teises */
echo "<td align='left' class='footer' width='30%'>\n
Powered by <a href='http://www.php-fusion.co.uk' class='white'>
PHP-Fusion</a> v".$settings['version']."</td>";
}
o kur čia idėt paveiksliuką? Padėkit, koduoju pirmą dizainą. :D
O kokį paveiksliuką nori įdėt,čia foteris kaip supratau
Tai ir noriu idėt footer paveiksliuką.
Parašė Use Google· 2010 Kov. 11 17:03:22
#7
Pasiimi paprasta dizaina ir keiti img.
Parašė Noyz· 2010 Kov. 12 17:03:36
#8
Kas blogai yra šitoje eilutėje?
<a href=".members.php"><span class="white">Registruoti nariai: 30</span></a>
Parašė Noyz· 2010 Kov. 17 20:03:22
#9
Turiu naują klausimą, kaip pašalinti smailus ? Kad vietoj jų rodytų tuos ženklus kuriuos aš rašau?
Parašė Noyz· 2010 Kov. 21 09:03:49
#10
Turiu naują klausimą, kaip padaryti, kad prisijungusį narį rodytų žalia spalva?
Online users panel :
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
if ($settings['maintenance'] != "1") {
$cond = ($userdata['user_level'] != 0 ? "'".$userdata['user_id']."'" : "'0' AND online_ip='".USER_IP."'");
$result = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user=".$cond."");
if (dbrows($result) != 0) {
$result = dbquery("UPDATE ".$db_prefix."online SET online_lastactive='".time()."' WHERE online_user=".$cond."");
} else {
$name = ($userdata['user_level'] != 0 ? $userdata['user_id'] : "0");
$result = dbquery("INSERT INTO ".$db_prefix."online (online_user, online_ip, online_lastactive) VALUES ('$name', '".USER_IP."', '".time()."')");
}
$result = dbquery("DELETE FROM ".$db_prefix."online WHERE online_lastactive<".(time()-60)."");
openside($locale['010']);
$result = dbquery(
"SELECT ton.*, tu.user_id,user_name FROM ".$db_prefix."online ton
LEFT JOIN ".$db_prefix."users tu ON ton.online_user=tu.user_id"
);
$guests = 0; $members = array();
while ($data = dbarray($result)) {
if ($data['online_user'] == "0") {
$guests++;
} else {
array_push($members, array($data['user_id'], $data['user_name']));
}
}
echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['011'].$guests."<br>\n";
if (count($members) > 0) {
$i = 1;
echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['012'];
while (list($key, $member) = each($members)) {
echo "<a href='".BASEDIR."profile.php?lookup=".$member[0]."' class='side'>".$member[1]."</a>";
if ($i != count($members)) echo ", ";
$i++;
}
echo "<br>\n";
} else {
echo $locale['013']."<br>\n";
}
echo "<br><img src='".THEME."images/bullet.gif' alt=''> ".$locale['014'].number_format(dbcount("(user_id)", "users", "user_status<='1'"))."<br>\n";
if ($settings['admin_activation'] == "1") echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['015'].dbcount("(user_id)", "users", "user_status='2'")."<br>\n";
$data = dbarray(dbquery("SELECT user_id,user_name FROM ".$db_prefix."users WHERE user_status='0' ORDER BY user_joined DESC LIMIT 0,1"));
echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['016']."<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'>".$data['user_name']."</a><br>\n";
echo "<br><img src='".THEME."images/bullet.gif' alt=''> Vartotojø istorija:<br><br>";
$result = dbquery("SELECT * FROM ".$db_prefix."users WHERE user_lastvisit>'0' AND user_status='0' ORDER BY user_lastvisit DESC LIMIT 0,6");
echo "<table cellpadding='0' cellspacing='0' width='100%'>";
if (dbrows($result) != 0) {
while ($data = dbarray($result)) {
$lastseen = time() - $data['user_lastvisit'];
$iW=sprintf("%2d",floor($lastseen/604800));
$iD=sprintf("%2d",floor($lastseen/(60*60*24)));
$iH=sprintf("%02d",floor((($lastseen%604800)%86400)/3600));
$iM=sprintf("%02d",floor(((($lastseen%604800)%86400)%3600)/60));
$iS=sprintf("%02d",floor((((($lastseen%604800)%86400)%3600)%60)));
if ($lastseen < 60){
$lastseen= Online;
} elseif ($lastseen < 360){
$lastseen="< 5min";
} elseif ($iW > 0){
if ($iW == 1) { $text = Savaitë; } else { $text = Savaitës; }
$lastseen = $iW." ".$text;
} elseif ($iD > 0){
if ($iD == 1) { $text = Diena; } else { $text = Dienos; }
$lastseen = $iD." ".$text;
} else {
$lastseen = $iH.":".$iM.":".$iS;
}
echo "<tr>\n<td class='side-small' align='left'><img src='".THEME."images/bullet.gif' alt=''>\n";
echo "<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' title='".$data['user_name']."' class='side'>\n";
echo trimlink($data['user_name'], 15)."</a></td><td class='side-small' align='right'>".$lastseen."</td>\n</tr>\n";
}
}
echo "</table>";
closeside();
}
?>
Parašė nuken· 2010 Kov. 21 09:03:37
#11
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
if ($settings['maintenance'] != "1") {
$cond = ($userdata['user_level'] != 0 ? "'".$userdata['user_id']."'" : "'0' AND online_ip='".USER_IP."'");
$result = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user=".$cond."");
if (dbrows($result) != 0) {
$result = dbquery("UPDATE ".$db_prefix."online SET online_lastactive='".time()."' WHERE online_user=".$cond."");
} else {
$name = ($userdata['user_level'] != 0 ? $userdata['user_id'] : "0");
$result = dbquery("INSERT INTO ".$db_prefix."online (online_user, online_ip, online_lastactive) VALUES ('$name', '".USER_IP."', '".time()."')");
}
$result = dbquery("DELETE FROM ".$db_prefix."online WHERE online_lastactive<".(time()-60)."");
openside($locale['010']);
$result = dbquery(
"SELECT ton.*, tu.user_id,user_name FROM ".$db_prefix."online ton
LEFT JOIN ".$db_prefix."users tu ON ton.online_user=tu.user_id"
);
$guests = 0; $members = array();
while ($data = dbarray($result)) {
if ($data['online_user'] == "0") {
$guests++;
} else {
array_push($members, array($data['user_id'], $data['user_name']));
}
}
echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['011'].$guests."<br>\n";
if (count($members) > 0) {
$i = 1;
echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['012'];
while (list($key, $member) = each($members)) {
echo "<a href='".$member[1].",u".$member[0]."' class='side'>".$member[1]."</a>";
if ($i != count($members)) echo ", ";
$i++;
}
echo "<br>\n";
} else {
echo $locale['013']."<br>\n";
}
echo "<br><img src='".THEME."images/bullet.gif' alt=''> ".$locale['014'].number_format(dbcount("(user_id)", "users", "user_status<='1'"))."<br>\n";
if ($settings['admin_activation'] == "1") echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['015'].dbcount("(user_id)", "users", "user_status='2'")."<br>\n";
$data = dbarray(dbquery("SELECT user_id,user_name FROM ".$db_prefix."users WHERE user_status='0' ORDER BY user_joined DESC LIMIT 0,1"));
echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['016']."<a href='".$data['user_name'].",u".$data['user_id']."' class='side'>".$data['user_name']."</a><br>\n";
echo "<br><img src='".THEME."images/bullet.gif' alt=''> Vartotojų istorija:<br><br>";
$result = dbquery("SELECT * FROM ".$db_prefix."users WHERE user_lastvisit>'0' AND user_status='0' ORDER BY user_lastvisit DESC LIMIT 0,6");
echo "<table cellpadding='0' cellspacing='0' width='100%'>";
if (dbrows($result) != 0) {
while ($data = dbarray($result)) {
$lastseen = time() - $data['user_lastvisit'];
$iW=sprintf("%2d",floor($lastseen/604800));
$iD=sprintf("%2d",floor($lastseen/(60*60*24)));
$iH=sprintf("%02d",floor((($lastseen%604800)%86400)/3600));
$iM=sprintf("%02d",floor(((($lastseen%604800)%86400)%3600)/60));
$iS=sprintf("%02d",floor((((($lastseen%604800)%86400)%3600)%60)));
if ($lastseen < 60){
$lastseen="<span style='color:lime'><b>Prisijungęs</b></span>";
} elseif ($lastseen < 360){
$lastseen="< 5min";
} elseif ($iW > 0){
if ($iW == 1) { $text = Savaitė; } else { $text = Savaitės; }
$lastseen = $iW." ".$text;
} elseif ($iD > 0){
if ($iD == 1) { $text = Diena; } else { $text = Dienos; }
$lastseen = $iD." ".$text;
} else {
$lastseen = $iH.":".$iM.":".$iS;
}
echo "<tr>\n<td class='side-small' align='left'><img src='".THEME."images/bullet.gif' alt=''>\n";
echo "<a href='".$data['user_name'].",u".$data['user_id']."' title='".$data['user_name']."' class='side'>\n";
echo trimlink($data['user_name'], 15)."</a></td><td class='side-small' align='right'>".$lastseen."</td>\n</tr>\n";
}
}
echo "</table>";
closeside();
}
?>