Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: triguba panele ant backgroundo

Parašė lexys· 2008 Kov. 22 16:03:56
#1

Tai va niekaip nesigauna uždėti 3gubos panelės ant Backgroundo.

3x panelės kodas:
echo "<table width='100%'>
<tr>
<td width='33%'>";
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }

if (file_exists(INFUSIONS."last_seen_users_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."last_seen_users_panel/locale/".$settings['locale'].".php";
} else { include INFUSIONS."last_seen_users_panel/locale/English.php"; }

/*******************************************************************
Sukurta Lexiukas, skype ID xlexysx Web Lexiukas.lt
********************************************************************/

$min = 10; // minimum visible shouts in first level.
$max = 10; // maximum number of shouts in second level (hidden).
$colors = array(
103 => "#ff0000", // User name color for Super Admins
102 => "#b60000", // User name color for Admins
101 => "#01ccff" // User name color for members
);

/*******************************************************************
Sukurta Lexiukas, skype ID xlexysx Web Lexiukas.lt
********************************************************************/

echo "<script type='text/javascript'>
<!--
function toggle_lsup() {
var smu = document.getElementById('show_more_users');
var smutxt = document.getElementById('show_more_users_text');
if (smu.style.display == 'none') {
smu.style.display = 'block';
smutxt.innerHTML = '".$locale['LSUP_010']."';
} else {
smu.style.display = 'none';
smutxt.innerHTML = '".$locale['LSUP_009']."';
}
}
//-->
</script>";


echo "<table cellpadding='0' cellspacing='0' width='100%' class=''>";
$result = dbquery("SELECT * FROM ".$db_prefix."users ORDER BY user_lastvisit DESC LIMIT ".($min + $max));
if (dbrows($result) != 0) {
$user_count = 0;
while ($data = dbarray($result)) {

/*******************************************************************
Sukurta Lexiukas, skype ID xlexysx Web Lexiukas.lt
********************************************************************/

if ($user_count == $min) {
echo "</table>
<br>
<div align='center'>
<a href=\"javascript:void(0)\" onClick=\"toggle_lsup();\"><span id='show_more_users_text'>".$locale['LSUP_009']."</span></a>
</div>
<div id='show_more_users' style='display: none;'>
<br>
<table cellpadding='0' cellspacing='0' width='100%' class=''>";
}

/*******************************************************************
Sukurta Lexiukas, skype ID xlexysx Web Lexiukas.lt
********************************************************************/

// Check if user has ever logged in
if ($data['user_lastvisit'] != 0) {
$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="".$locale['LSUP_001']."";
} elseif ($lastseen < 360){
$lastseen="".$locale['LSUP_002']."";
} elseif ($iW > 0){
if ($iW == 1) {
$Text = $locale['LSUP_003'];
} else {
$Text = $locale['LSUP_004'];
}
$lastseen = "".$iW." ".$Text."";
} elseif ($iD > 0){
if ($iD == 1) {
$Text = $locale['LSUP_005'];
} else {
$Text = $locale['LSUP_006'];
}
$lastseen = "".$iD." ".$Text."";
} else {
$lastseen = $iH.":".$iM.":".$iS;
}
} else {
$lastseen = $locale['LSUP_007'];
}
echo "<tr>
<td class='small' align='left'>
<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."'><font color='".$colors[$data['user_level']]."' title='".$data['user_name']." is located in: ".trimlink($data['user_location'] ? $data['user_location'] : $locale['LSUP_008'], 20)."'>".trimlink ($data['user_name'], 12)."</font></a>
</td>
<td class='small2' align='right'>".$lastseen."</td>
</tr>";
$user_count ++;
}
}
echo "</table>";
if ($user_count > $min) { echo "</div>\n"; }

echo "</td>
<td width='33%'>";

$result = dbquery(
"SELECT td.*,tdc.* FROM ".$db_prefix."downloads td
INNER JOIN ".$db_prefix."download_cats tdc ON td.download_cat=tdc.download_cat_id
WHERE ".groupaccess('download_cat_access')." ORDER BY download_datestamp DESC LIMIT 0,10"
);
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 23);
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>$itemsubject</a><br>\n";
}
} else {
echo "<center>".$locale['004']."</center>\n";
}






echo "</td>
<td width='33%'>";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 10");
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 23);
echo "<tr>\n<td class='small'><img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>$itemsubject</a></td>\n
<td align='right'>".$data['download_count']."</td>\n</tr>\n";
}
echo "</table>";
} else {
echo "<center>".$locale['004']."</center>\n";
}

echo "</tr>
</table>";




Background kodas:


echo "<tr><td height='170' width='987' background='".THEME."images/nariukai/nariukai_did.gif' align='center'></tr></td><br>";





Tą 3gubą panelę reikia uždėti ant Background, kaip tai atrodyt, padėkit, nes man jau nesigauna,

Dėkoju :)

Parašė DuRaCeLL· 2008 Kov. 22 16:03:15
#2

echo "<tr><td height='170' width='987' background='".THEME."images/nariukai/nariukai_did.gif' align='center'></tr></td><br>";

Kam čia nardot? :]

Parašė lexys· 2008 Kov. 22 17:03:11
#3

Google Bot, susiskirstau dalimis visą styles.css failą kad būtų patogiau man tvarkytis :)

Parašė 333· 2008 Kov. 22 18:03:29
#4

Isjunk smailus zmogau... :[

Parašė lexys· 2008 Kov. 22 18:03:41
#5

ronnie, ačių bet jau pasidariau, bet dabar turiu kitą bėdą :D nu bet gal išspręsiu :D Topic darom CLOSE :)