Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Jaunelio klausimai
Parašė Jaunelis· 2008 Gru. 3 16:12:06
#1
Sveiki sukuriau šią temą nes ana mano dingo kžkur :(
Taigi vis dar dėl to pačio klausimo kaip ir senoje kodėl man nerodo articles po headeriu kur yra naujausi siuntiniai siunčiamiausi ir noriu padaryti naujausi straipsniai:
-------
Va latest_articles_panel:
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
openside($locale['023']);
$result = dbquery(
"SELECT ta.*,tac.* FROM ".$db_prefix."articles ta
INNER JOIN ".$db_prefix."article_cats tac ON ta.article_cat=tac.article_cat_id
WHERE ".groupaccess('article_cat_access')." ORDER BY article_datestamp DESC LIMIT 0,7"
);
if (dbrows($result) != 0) {
echo "<table width='90' cellpadding='0' cellspacing='0'>";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['article_subject'], 23);
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."readarticle.php?article_id=".$data['article_id']."' title='".$data['article_subject']."' class='side'>$itemsubject</a><br>\n";
}
} else {
echo "<center>".$locale['004']."</center>\n";
}
closeside();
?>
Redagavo Jaunelis· 2008 Gru. 3 16:12:05
Parašė sniuff· 2008 Gru. 3 16:12:05
#2
include THEME."latest_articles_panel";, o .php kur dingo :D
Parašė Jaunelis· 2008 Gru. 3 16:12:01
#3
Sniuff parašė:
include THEME."latest_articles_panel";, o .php kur dingo :D
Na va dabar kažkas geriau bet dbr atrodo viskas taip:
o kodas jau atrodo taip:
<?php
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
openside_panel($locale['LDP_001']);
$result = dbquery(
"SELECT ta.*,tac.* FROM ".$db_prefix."articles ta
INNER JOIN ".$db_prefix."article_cats tac ON ta.article_cat=tac.article_cat_id
WHERE ".groupaccess('article_cat_access')." ORDER BY article_datestamp DESC LIMIT 0,7"
);
if (dbrows($result) != 0) {
echo "<table width='90' cellpadding='0' cellspacing='0'>";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['article_subject'], 23);
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."readarticle.php?article_id=".$data['article_id']."' title='".$data['article_subject']."' class='side'>$itemsubject</a><br>\n";
}
} else {
echo "<center>".$locale['004']."</center>\n";
}
closeside_panel();
?>
Redagavo Jaunelis· 2008 Gru. 3 16:12:40
Parašė sniuff· 2008 Gru. 3 16:12:15
#4
echo "<tr><td><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."readarticle.php?article_id=".$data['article_id']."' title='".$data['article_subject']."' class='side'>$itemsubject</a></td></tr>";
}
pabandyk šitaip.
Parašė Jaunelis· 2008 Gru. 3 16:12:45
#5
Nea vis viena tas pat...
Parašė sniuff· 2008 Gru. 3 16:12:20
#6
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."readarticle.php?article_id=".$data['article_id']."' title='".$data['article_subject']."' class='side'>$itemsubject</a><br>\n";
}
echo "</table>":
Parašė Jaunelis· 2008 Gru. 3 16:12:02
#7
Sniuff parašė:
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."readarticle.php?article_id=".$data['article_id']."' title='".$data['article_subject']."' class='side'>$itemsubject</a><br>\n";
}
echo "</table>":
Parse error: syntax error, unexpected ':', expecting ',' or ';' in /home/puslapis/puslapis.xz.lt/themes/puslapis/latest_articles_panel.php on line 16
o kodas atrodo kaip idėjau:
<?php
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
openside_panel($locale['LDP_001']);
$result = dbquery(
"SELECT ta.*,tac.* FROM ".$db_prefix."articles ta
INNER JOIN ".$db_prefix."article_cats tac ON ta.article_cat=tac.article_cat_id
WHERE ".groupaccess('article_cat_access')." ORDER BY article_datestamp DESC LIMIT 0,7"
);
if (dbrows($result) != 0) {
echo "<table width='90' cellpadding='0' cellspacing='0'>";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['article_subject'], 23);
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."readarticle.php?article_id=".$data['article_id']."' title='".$data['article_subject']."' class='side'>$itemsubject</a><br>\n";
}
echo "</table>":
echo "<center>".$locale['004']."</center>\n";
}
closeside_panel();
?>
Parašė Enzo· 2008 Gru. 3 16:12:32
#8
žiopla klaida
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."readarticle.php?article_id=".$data['article_id']."' title='".$data['article_subject']."' class='side'>$itemsubject</a><br>\n";
}
echo "</table>";
Parašė sniuff· 2008 Gru. 3 16:12:33
#9
Enzo, tikriausiai paspaudžiau shift :D
Parašė Jaunelis· 2008 Gru. 3 16:12:26
#10
Kaip nuimti ta ši panele neturi turinio nors ten viršuje linkai yra :)
Parašė Enzo· 2008 Gru. 3 16:12:19
#11
<?php
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
openside_panel($locale['LDP_001']);
$result = dbquery(
"SELECT ta.*,tac.* FROM ".$db_prefix."articles ta
INNER JOIN ".$db_prefix."article_cats tac ON ta.article_cat=tac.article_cat_id
WHERE ".groupaccess('article_cat_access')." ORDER BY article_datestamp DESC LIMIT 0,7"
);
if (dbrows($result) != 0) {
echo "<table width='90' cellpadding='0' cellspacing='0'>";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['article_subject'], 23);
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."readarticle.php?article_id=".$data['article_id']."' title='".$data['article_subject']."' class='side'>$itemsubject</a><br>\n";
}
echo "</table>";
}
closeside_panel();
?>
Parašė Jaunelis· 2008 Gru. 3 16:12:12
#12
Enzo parašė:
<?php
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
openside_panel($locale['LDP_001']);
$result = dbquery(
"SELECT ta.*,tac.* FROM ".$db_prefix."articles ta
INNER JOIN ".$db_prefix."article_cats tac ON ta.article_cat=tac.article_cat_id
WHERE ".groupaccess('article_cat_access')." ORDER BY article_datestamp DESC LIMIT 0,7"
);
if (dbrows($result) != 0) {
echo "<table width='90' cellpadding='0' cellspacing='0'>";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['article_subject'], 23);
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."readarticle.php?article_id=".$data['article_id']."' title='".$data['article_subject']."' class='side'>$itemsubject</a><br>\n";
}
echo "</table>";
}
closeside_panel();
?>
Sniuf ir enzo labai padėjot ;) DĖKUI
Redagavo Jaunelis· 2008 Gru. 3 16:12:30
Parašė Jaunelis· 2008 Gru. 7 00:12:16
#13
Taigi turiu dar viena problema dėl tų panelių šį kart tai su online ushers panel man reikia kad iš šitokio kodo:
<?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>\n";
}
closeside_panel();
?>
atrodytų toks kodas:
<?php
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
openside_panel($locale['PD_001']);
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,7");
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";
}
closeside_panel();
?>
maždauk čia ar taip neimanoma?
Ir dar tam pirmame kode reiktų pataisyti kad tokio dalyko nerodytu kur šioje foto apibrauktas:
IR dar kaip išlyginti visus šiuos kur yra čia paveiksliuke pavaizduotos paneles kad butu maždauk lygiai atrodytu naudoju theme.php toki kodą:
echo "<table cellpadding='0' cellspacing='0' width='100%' class='paneles'>\n<tr>
<td align='center' width='1000'>";
include THEME."latest_downloads_panel.php";
echo "</td>
<td align='center' width='100'>";
include THEME."popular_downloads_panel.php";
echo "</td>
<td align='center' width='100'>";
include THEME."user_info_panel.php";
echo "</td>
<td align='center' width='100'>";
include THEME."online_users_panel.php";
echo "</td>
</tr>
</table><br>\n";
SO kas padės tam +10 jai dar nebusiu daves.
Parašė Jaunelis· 2008 Gru. 7 11:12:07
#14
Prikeliu.
So gal kas padės?
Parašė Žmogus· 2008 Gru. 7 11:12:52
#15
width='skaicius' keiti savo nuožiūra
Parašė Jaunelis· 2008 Gru. 7 11:12:14
#16
ShadoVw parašė:
width='skaicius' keiti savo nuožiūra
šita meginau bet vis viena paskutine panele prisiplojus buna
Parašė samsung123· 2008 Gru. 7 11:12:02
#17
Pažiūrėk koks temos plotis, tą plotį padalink iš 4 ir irašyk i visus gauta skaičiu tokį patį.
Parašė Jaunelis· 2008 Gru. 7 11:12:20
#18
iGnass parašė:
Pažiūrėk koks temos plotis, tą plotį padalink iš 4 ir irašyk i visus gauta skaičiu tokį patį.
aš dar mažesni skaičių irašęs bet niekuo nesikeičia :(
Parašė samsung123· 2008 Gru. 7 11:12:01
#19
Dok visą theme.php.
Parašė Jaunelis· 2008 Gru. 7 11:12:32
#20
iGnass parašė:
Dok visą theme.php.
radau jau. dbr tik su tuo kur online suers panel reikia nuimti tą kur parodys paveiksliuke galit kas tą koda pataisyti
Redagavo Jaunelis· 2008 Gru. 7 12:12:26
Parašė Žmogus· 2008 Gru. 7 12:12:46
#21
Kaip suprast?
Parašė Jaunelis· 2008 Gru. 7 12:12:57
#22
ShadoVw parašė:
Kaip suprast?
online ushers panel man reikia kad iš šitokio kodo:
<?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>\n";
}
closeside_panel();
?>
Reiktų pataisyti kad to vartotoju tinkle nebutu tik rodytu nuo ten kur prisijunge svečiai.
Redagavo Jaunelis· 2008 Gru. 7 12:12:02
Parašė Jaunelis· 2008 Gru. 7 12:12:11
#23
Arba pvz va online users panel bet errora meta:
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
openside_panel($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>\n";
}
closeside_panel();
?>
Redagavo Jaunelis· 2008 Gru. 7 12:12:23
Parašė Enzo· 2008 Gru. 7 12:12:26
#24
<?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)."");
$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>\n";
}
closeside_panel();
?>
Parašė Jaunelis· 2008 Gru. 7 12:12:49
#25
Eilini kartą enzo padėjo dėkui ;)
EDIT: bet dabar naujienos išsitampo per visa psl...
kai idėjau tą kodą kur enzo davė.
Redagavo Jaunelis· 2008 Gru. 7 12:12:36
Parašė Jaunelis· 2008 Gru. 7 13:12:11
#26
Krč buvau pasidaresa vel susigadino kodas:
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
if (iMEMBER) {
openside($userdata);
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>".$locale['080']."</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>".$locale['081']."</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>".$locale['082']."</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."' class='side'>Mano profilis</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='infusions/avatar_gallery/avatar_gallery.php' class='side'>Avataru galerija</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='infusions/Downloads_Submissions/submit_download.php' class='side'>Pateik Theme</a><br>\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php".$aidlink."' class='side'>".$locale['083']."</a><br>\n";
}
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a>\n";
if ($msg_count) echo "<br><br><center><b><a href='".BASEDIR."messages.php' class='side'>".sprintf($locale['085'], $msg_count).($msg_count == 1 ? $locale['086'] : $locale['087'])."</a></b></center>\n";
} else {
openside($locale['060']);
echo "<div align='center'>
<form name='loginform' method='post' action='".FUSION_SELF."'>
".$locale['061']."<br>
<input type='text' name='user_name' class='textbox' style='width:100px'><br>
".$locale['062']."<br>
<input type='password' name='user_pass' class='textbox' style='width:100px'><br>
<input type='checkbox' name='remember_me' value='y' title='".$locale['063']."' style='vertical-align:middle;'>
<input type='submit' name='login' value='".$locale['064']."' class='button'><br>
</form>
<br>\n";
;
if ($settings['enable_registration']) {
echo "".$locale['065']."<br><br>\n";
}
echo $locale['066']."
</div>\n";
}
closeside_panel();
?>
Rekia kad atrodytu panele taip kaip ir kitos:
Redagavo Jaunelis· 2008 Gru. 7 14:12:38
Parašė MAnjack· 2008 Gru. 7 13:12:16
#27
Foto nerodo :?
Parašė Jaunelis· 2008 Gru. 7 13:12:23
#28
MAnjack parašė:
Foto nerodo :?
rmtj :S nes man tai rodo
Parašė Wiav· 2008 Gru. 7 13:12:10
#29
Viską rodo.
Parašė Jaunelis· 2008 Gru. 7 13:12:51
#30
IDėjau dar ir y kita talpykla kam nerodo :)
Tai kas nors padėsit ?
Parašė Jaunelis· 2008 Gru. 7 14:12:09
#31
Padėkit kas nes shakes darau darau ir neišeina...
Parašė Jaunelis· 2008 Gru. 7 14:12:49
#32
Enzo parašė:
<?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)."");
$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>\n";
}
closeside_panel();
?>
Bet dbr po šito kodo naujienos išsitampo....
Redagavo Jaunelis· 2008 Gru. 7 14:12:02
Parašė Enzo· 2008 Gru. 7 14:12:59
#33
Paaiškink truputį plačiau ką nori daryt
Parašė Jaunelis· 2008 Gru. 7 14:12:48
#34
Enzo parašė:
Paaiškink truputį plačiau ką nori daryt
Kodas user info panel kodas:
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
if (iMEMBER) {
openside($userdata);
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>".$locale['080']."</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>".$locale['081']."</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>".$locale['082']."</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."' class='side'>Mano profilis</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='infusions/avatar_gallery/avatar_gallery.php' class='side'>Avataru galerija</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='infusions/Downloads_Submissions/submit_download.php' class='side'>Pateik Theme</a><br>\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php".$aidlink."' class='side'>".$locale['083']."</a><br>\n";
}
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a>\n";
if ($msg_count) echo "<br><br><center><b><a href='".BASEDIR."messages.php' class='side'>".sprintf($locale['085'], $msg_count).($msg_count == 1 ? $locale['086'] : $locale['087'])."</a></b></center>\n";
} else {
openside($locale['060']);
echo "<div align='center'>
<form name='loginform' method='post' action='".FUSION_SELF."'>
".$locale['061']."<br>
<input type='text' name='user_name' class='textbox' style='width:100px'><br>
".$locale['062']."<br>
<input type='password' name='user_pass' class='textbox' style='width:100px'><br>
<input type='checkbox' name='remember_me' value='y' title='".$locale['063']."' style='vertical-align:middle;'>
<input type='submit' name='login' value='".$locale['064']."' class='button'><br>
</form>
<br>\n";
;
if ($settings['enable_registration']) {
echo "".$locale['065']."<br><br>\n";
}
echo $locale['066']."
</div>\n";
}
closeside_panel();
?>
Matai visos paneles normalej atrodo normalej o user infor kitaip man reik kad visos taip pat atrodytu... ta prasme kažkas user info panel kode blogai :(
Parašė Enzo· 2008 Gru. 7 17:12:56
#35
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
if (iMEMBER) {
openside_panel($userdata);
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>".$locale['080']."</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>".$locale['081']."</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>".$locale['082']."</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."' class='side'>Mano profilis</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='infusions/avatar_gallery/avatar_gallery.php' class='side'>Avataru galerija</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='infusions/Downloads_Submissions/submit_download.php' class='side'>Pateik Theme</a><br>\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php".$aidlink."' class='side'>".$locale['083']."</a><br>\n";
}
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a>\n";
if ($msg_count) echo "<br><br><center><b><a href='".BASEDIR."messages.php' class='side'>".sprintf($locale['085'], $msg_count).($msg_count == 1 ? $locale['086'] : $locale['087'])."</a></b></center>\n";
} else {
openside_panel($locale['060']);
echo "<div align='center'>
<form name='loginform' method='post' action='".FUSION_SELF."'>
".$locale['061']."<br>
<input type='text' name='user_name' class='textbox' style='width:100px'><br>
".$locale['062']."<br>
<input type='password' name='user_pass' class='textbox' style='width:100px'><br>
<input type='checkbox' name='remember_me' value='y' title='".$locale['063']."' style='vertical-align:middle;'>
<input type='submit' name='login' value='".$locale['064']."' class='button'><br>
</form>
<br>\n";
;
if ($settings['enable_registration']) {
echo "".$locale['065']."<br><br>\n";
}
echo $locale['066']."
</div>\n";
}
closeside_panel();
?>
Parašė Jaunelis· 2008 Gru. 7 18:12:47
#36
Enzo - dėkui.
Redagavo Jaunelis· 2008 Gru. 7 19:12:02
Parašė Jaunelis· 2008 Gru. 9 19:12:27
#37
..............
Paisadriau
Redagavo Jaunelis· 2008 Gru. 17 18:12:39
Parašė Jaunelis· 2008 Gru. 17 18:12:37
#38
___________________
pasidariau
Redagavo Jaunelis· 2008 Gru. 17 21:12:40
Parašė Jaunelis· 2008 Gru. 17 21:12:21
#39
Va gal galit padėti wel iškraipo po ta panele headerio :
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
$result = dbquery("
SELECT * FROM ".$db_prefix."threads
INNER JOIN ".$db_prefix."forums ON ".$db_prefix."threads.forum_id=".$db_prefix."forums.forum_id
WHERE ".groupaccess('forum_access')." ORDER BY thread_lastpost DESC LIMIT 5
");
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['thread_subject'], 23);
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".FORUM."viewthread.php?forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."' title='".$data['thread_subject']."' class='side'>$itemsubject</a><br>\n";
}
echo "</table>";
} else {
echo "<div style='text-align:center'>".$locale['004']."</div>\n";
}
closeside_panel();
?>
Redagavo Jaunelis· 2008 Gru. 17 21:12:44
Parašė Jaunelis· 2008 Gru. 18 07:12:43
#40
SO niekas padėt negalit ?
Parašė Jaunelis· 2008 Gru. 24 00:12:44
#41
Tai va noriu pasidaryti po registracijos kad atsisiutu pm žinute bet nžn man čia nesigauna gal kas padės va register.php:
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";
include LOCALE.LOCALESET."register.php";
include LOCALE.LOCALESET."user_fields.php";
if (iMEMBER) fallback("index.php");
if ($settings['enable_registration']) {
if (isset($activate)) {
if (!preg_match("/^[0-9a-z]{32}$/", $activate)) fallback("index.php");
$result = dbquery("SELECT * FROM ".$db_prefix."new_users WHERE user_code='$activate'");
if (dbrows($result) != 0) {
$data = dbarray($result);
$user_info = unserialize($data['user_info']);
$activation = $settings['admin_activation'] == "1" ? "2" : "0";
$result = dbquery("INSERT INTO ".$db_prefix."users (user_name, user_password, user_email, user_hide_email, user_location, user_birthdate, user_aim, user_icq, user_msn, user_yahoo, user_web, user_theme, user_offset, user_avatar, user_sig, user_posts, user_joined, user_lastvisit, user_ip, user_rights, user_groups, user_level, user_status) VALUES('".$user_info['user_name']."', '".$user_info['user_password']."', '".$user_info['user_email']."', '".$user_info['user_hide_email']."', '', '0000-00-00', '', '', '', '', '', 'Default', '0', '', '', '0', '".time()."', '0', '".USER_IP."', '', '', '101', '$activation')");
$result = dbquery("DELETE FROM ".$db_prefix."new_users WHERE user_code='$activate'");
opentable($locale['401']);
if ($settings['admin_activation'] == "1") {
echo "<center><br>\n".$locale['455']."<br><br>\n".$locale['453']."<br><br>\n</center>\n";
} else {
echo "<center><br>\n".$locale['455']."<br><br>\n".$locale['452']."<br><br>\n</center>\n";
}
closetable();
} else {
fallback("index.php");
}
} else if (isset($_POST['register'])) {
$error = "";
$username = stripinput(trim(eregi_replace(" +", " ", $_POST['username'])));
$email = stripinput(trim(eregi_replace(" +", "", $_POST['email'])));
$password1 = stripinput(trim(eregi_replace(" +", "", $_POST['password1'])));
if ($username == "" || $password1 == "" || $email == "") $error .= $locale['402']."<br>\n";
if (!preg_match("/^[-0-9A-Z_@\s]+$/i", $username)) $error .= $locale['403']."<br>\n";
if (preg_match("/^[0-9A-Z@]{6,20}$/i", $password1)) {
if ($password1 != $_POST['password2']) $error .= $locale['404']."<br>\n";
} else {
$error .= $locale['405']."<br>\n";
}
if (!preg_match("/^[-0-9A-Z_\.]{1,50}@([-0-9A-Z_\.]+\.){1,50}([0-9A-Z]){2,4}$/i", $email)) {
$error .= $locale['406']."<br>\n";
}
$email_domain = substr(strrchr($email, "@"), 1);
$result = dbquery("SELECT * FROM ".$db_prefix."blacklist WHERE blacklist_email='".$email."' OR blacklist_email='$email_domain'");
if (dbrows($result) != 0) $error = $locale['411']."<br>\n";
$result = dbquery("SELECT * FROM ".$db_prefix."users WHERE user_name='$username'");
if (dbrows($result) != 0) $error = $locale['407']."<br>\n";
$result = dbquery("SELECT * FROM ".$db_prefix."users WHERE user_email='".$email."'");
if (dbrows($result) != 0) $error = $locale['408']."<br>\n";
if ($settings['email_verification'] == "1") {
$result = dbquery("SELECT * FROM ".$db_prefix."new_users");
while ($new_users = dbarray($result)) {
$user_info = unserialize($new_users['user_info']);
if ($new_users['user_email'] == $email) { $error = $locale['409']."<br>\n"; }
if ($user_info['user_name'] == $username) { $error = $locale['407']."<br>\n"; break; }
}
}
if ($settings['display_validation'] == "1") {
if (!check_captcha($_POST['captcha_encode'], $_POST['captcha_code'])) {
$error .= $locale['410']."<br />\n";
}
}
$user_hide_email = isNum($_POST['user_hide_email']) ? $_POST['user_hide_email'] : "1";
if ($settings['email_verification'] == "0") {
$user_location = isset($_POST['user_location']) ? stripinput(trim($_POST['user_location'])) : "";
if ($_POST['user_month'] != 0 && $_POST['user_day'] != 0 && $_POST['user_year'] != 0) {
$user_birthdate = (isNum($_POST['user_year']) ? $_POST['user_year'] : "0000")
."-".(isNum($_POST['user_month']) ? $_POST['user_month'] : "00")
."-".(isNum($_POST['user_day']) ? $_POST['user_day'] : "00");
} else {
$user_birthdate = "0000-00-00";
}
$user_aim = isset($_POST['user_aim']) ? stripinput(trim($_POST['user_aim'])) : "";
$user_icq = isset($_POST['user_icq']) ? stripinput(trim($_POST['user_icq'])) : "";
$user_msn = isset($_POST['user_msn']) ? stripinput(trim($_POST['user_msn'])) : "";
$user_yahoo = isset($_POST['user_yahoo']) ? stripinput(trim($_POST['user_yahoo'])) : "";
$user_web = isset($_POST['user_web']) ? stripinput(trim($_POST['user_web'])) : "";
$user_theme = stripinput($_POST['user_theme']);
$user_offset = is_numeric($_POST['user_offset']) ? $_POST['user_offset'] : "0";
$user_sig = isset($_POST['user_sig']) ? stripinput(trim($_POST['user_sig'])) : "";
}
if ($error == "") {
if ($settings['email_verification'] == "1") {
require_once INCLUDES."sendmail_include.php";
mt_srand((double)microtime()*1000000); $salt = "";
for ($i=0;$i<=7;$i++) { $salt .= chr(rand(97, 122)); }
$user_code = md5($email.$salt);
$activation_url = $settings['siteurl']."register.php?activate=".$user_code;
if (sendemail($username,$email,$settings['siteusername'],$settings['siteemail'],$locale['449'], $locale['450'].$activation_url)) {
$user_info = serialize(array(
"user_name" => $username,
"user_password" => md5(md5($password1)),
"user_email" => $email,
"user_hide_email" => isNum($_POST['user_hide_email']) ? $_POST['user_hide_email'] : "1"
));
$result = dbquery("INSERT INTO ".$db_prefix."new_users (user_code, user_email, user_datestamp, user_info) VALUES('$user_code', '".$email."', '".time()."', '$user_info')");
opentable($locale['400']);
echo "<center><br>\n".$locale['454']."<br><br>\n</center>\n";
closetable();
} else {
opentable($locale['456']);
echo "<center><br>\n".$locale['457']."<br><br>\n</center>\n";
closetable();
}
} else {
$activation = $settings['admin_activation'] == "1" ? "2" : "0";
$result = dbquery("INSERT INTO ".$db_prefix."users (user_name, user_password, user_email, user_hide_email, user_location, user_birthdate, user_aim, user_icq, user_msn, user_yahoo, user_web, user_theme, user_offset, user_avatar, user_sig, user_posts, user_joined, user_lastvisit, user_ip, user_rights, user_groups, user_level, user_status) VALUES('$username', '".md5(md5($password1))."', '".$email."', '$user_hide_email', '$user_location', '$user_birthdate', '$user_aim', '$user_icq', '$user_msn', '$user_yahoo', '$user_web', '$user_theme', '$user_offset', '', '$user_sig', '0', '".time()."', '0', '".USER_IP."', '', '', '101', '$activation')");
opentable($locale['400']);
if ($settings['admin_activation'] == "1") {
echo "<center><br>\n".$locale['451']."<br><br>\n".$locale['453']."<br><br>\n</center>\n";
} else {
echo "<center><br>\n".$locale['451']."<br><br>\n".$locale['452']."<br><br>\n</center>\n";
}
closetable();
}
} else {
opentable($locale['456']);
echo "<center><br>\n".$locale['458']."<br><br>\n$error<br>\n<a href='".FUSION_SELF."'>".$locale['459']."</a></div></br>\n";
closetable();
}
} else {
if ($settings['email_verification'] == "0") {
$theme_files = makefilelist(THEMES, ".|..", true, "folders");
array_unshift($theme_files, "Default");
$offset_list = "";
for ($i=-13;$i<17;$i++) {
if ($i > 0) { $offset="+".$i; } else { $offset=$i; }
$offset_list .= "<option".($offset == "0" ? " selected" : "").">$offset</option>\n";
}
}
opentable($locale['400']);
echo "<center>".$locale['500']."\n";
if ($settings['email_verification'] == "1") echo $locale['501']."\n";
echo $locale['502'];
if ($settings['email_verification'] == "1") echo "\n".$locale['503'];
echo "</center><br>
<table align='center' cellpadding='0' cellspacing='0'>
<form name='inputform' method='post' action='".FUSION_SELF."' onSubmit='return ValidateForm(this)'>
<tr>
<td class='tbl'>".$locale['u001']."<span style='color:#ff0000'>*</span></td>
<td class='tbl'><input type='text' name='username' maxlength='30' class='textbox' style='width:200px;'></td>
</tr>
<tr>
<td class='tbl'>".$locale['u002']."<span style='color:#ff0000'>*</span></td>
<td class='tbl'><input type='password' name='password1' maxlength='20' class='textbox' style='width:200px;'></td>
</tr>
<tr>
<td class='tbl'>".$locale['u004']."<span style='color:#ff0000'>*</span></td>
<td class='tbl'><input type='password' name='password2' maxlength='20' class='textbox' style='width:200px;'></td>
</tr>
<tr>
<td class='tbl'>".$locale['u005']."<span style='color:#ff0000'>*</span></td>
<td class='tbl'><input type='text' name='email' maxlength='100' class='textbox' style='width:200px;'></td>
</tr>
<tr>
<td class='tbl'>".$locale['u006']."</td>
<td class='tbl'><input type='radio' name='user_hide_email' value='1'>".$locale['u007']."
<input type='radio' name='user_hide_email' value='0' checked>".$locale['u008']."</td>
</tr>\n";
if ($settings['display_validation'] == "1") {
echo "<tr>\n<td class='tbl'>".$locale['504']."</td>\n<td class='tbl'>";
echo make_captcha();
echo "</td>
</tr>
<tr>
<td class='tbl'>".$locale['505']."<span style='color:#ff0000'>*</span></td>
<td class='tbl'><input type='text' name='captcha_code' class='textbox' style='width:100px'></td>
</tr>\n";
}
if ($settings['email_verification'] == "0") {
echo "<tr>
<td class='tbl'>".$locale['u009']."</td>
<td class='tbl'><input type='text' name='user_location' maxlength='50' class='textbox' style='width:200px;'></td>
</tr>
<tr>
<td class='tbl'>".$locale['u010']." <span class='small2'>(mm/dd/yyyy)</span></td>
<td class='tbl'><select name='user_month' class='textbox'>\n<option> </option>\n";
for ($i=1;$i<=12;$i++) echo "<option".($user_month == $i ? " selected" : "").">$i</option>\n";
echo "</select>\n<select name='user_day' class='textbox'>\n<option> </option>\n";
for ($i=1;$i<=31;$i++) echo "<option".($user_day == $i ? " selected" : "").">$i</option>\n";
echo "</select>\n<select name='user_year' class='textbox'>\n<option> </option>\n";
for ($i=1900;$i<=2004;$i++) echo "<option".($user_year == $i ? " selected" : "").">$i</option>\n";
echo "</select>
</td>
</tr>
<tr>
<td class='tbl'>".$locale['u021']."</td>
<td class='tbl'><input type='text' name='user_aim' maxlength='16' class='textbox' style='width:200px;'></td>
</tr>
<tr>
<td class='tbl'>".$locale['u011']."</td>
<td class='tbl'><input type='text' name='user_icq' maxlength='15' class='textbox' style='width:200px;'></td>
</tr>
<tr>
<td class='tbl'>".$locale['u012']."</td>
<td class='tbl'><input type='text' name='user_msn' maxlength='100' class='textbox' style='width:200px;'></td>
</tr>
<tr>
<td class='tbl'>".$locale['u013']."</td>
<td class='tbl'>
<input type='text' name='user_yahoo' maxlength='100' class='textbox' style='width:200px;'></td>
</tr>
<tr>
<td class='tbl'>".$locale['u014']."</td>
<td class='tbl'><input type='text' name='user_web' maxlength='100' class='textbox' style='width:200px;'></td>
</tr>
<tr>
<td class='tbl'>".$locale['u015']."</td>
<td class='tbl'><select name='user_theme' class='textbox' style='width:200px;'>
".makefileopts($theme_files)."
</select></td>
</tr>
<tr>
<td class='tbl'>".$locale['u016']."</td>
<td class='tbl'><select name='user_offset' class='textbox'>
$offset_list</select></td>
</tr>
<tr>
<td valign='top'>".$locale['u020']."</td>
<td class='tbl'>
<textarea name='user_sig' rows='5' cols='53' class='textbox'>".$userdata['user_sig']."</textarea><br>
<input type='button' value='b' class='button' style='font-weight:bold;width:25px;' onClick=\"addText('user_sig', '', '');\">
<input type='button' value='i' class='button' style='font-style:italic;width:25px;' onClick=\"addText('user_sig', '', '');\">
<input type='button' value='u' class='button' style='text-decoration:underline;width:25px;' onClick=\"addText('user_sig', '', '');\">
<input type='button' value='url' class='button' style='width:30px;' onClick=\"addText('user_sig', '[url]', '[/url]');\">
<input type='button' value='mail' class='button' style='width:35px;' onClick=\"addText('user_sig', '[mail]', '[/mail]');\">
<input type='button' value='img' class='button' style='width:30px;' onClick=\"addText('user_sig', '[img]', '[/img]');\">
<input type='button' value='center' class='button' style='width:45px;' onClick=\"addText('user_sig', '', '');\">
<input type='button' value='small' class='button' style='width:40px;' onClick=\"addText('user_sig', '', '');\">
</td>
</tr>\n";
}
echo "<tr>
<td align='center' colspan='2'><br>
<input type='submit' name='register' value='".$locale['506']."' class='button'>
</td>
</tr>
</form>
</table>";
closetable();
echo "<script language='JavaScript'>
function ValidateForm(frm) {
if (frm.username.value==\"\") {
alert(\"".$locale['550']."\");
return false;
}
if (frm.password1.value==\"\") {
alert(\"".$locale['551']."\");
return false;
}
if (frm.email.value==\"\") {
alert(\"".$locale['552']."\");
return false;
}
}
</script>\n";
}
} else {
opentable($locale['400']);
echo "<center><br>\n".$locale['507']."<br><br>\n</center>\n";
closetable();
}
require_once "side_right.php";
require_once "footer.php";
?>
O va kodas kuri reikia tierpti bet man nk nesigauna:
function sendwelcomepm($id)
{
$wpmq=dbquery("SELECT * FROM `".DB_PREFIX."users` WHERE `user_id`= '".$id."'");
$wpmd=dbarray($wpmq);
//Žinutės apipavidalimas
$subject='Sveiki atvykę į http://';
$message= 'Sveiki atvykę į svetainę, linkime gero
naršymo.
';
}
Parašė ramon· 2008 Gru. 24 00:12:30
#42
Tavo papostinta funk. "sendwelcomepm" yra pusiau parasyta nes nera uzklausos kuri insertintu nauja msg... :)
Parašė Jaunelis· 2008 Gru. 24 01:12:51
#43
ramon parašė:
Tavo papostinta funk. "sendwelcomepm" yra pusiau parasyta nes nera uzklausos kuri insertintu nauja msg... :)
na radau čia aš tą koda šiame puslapyje ir ten parašyta apie 41 eilute
nei aš ją randu nei ką ir išvis kažkoke nesamone gaunas...
tai čia niekaip neišeis padaryti ? ?|
Parašė ramon· 2008 Gru. 24 01:12:30
#44
Papildik funkcija, pres } prirasik sia uzklausa:
mysql_query("INSERT INTO {DB_PREFIX}messages VALUES ('', '{$wpmd['user_id']}', '0', '{$subject}', '{$message}', '', '0', '".time()."' , '0')");
ir poto panauduok ta funk pritaikius/irasius ID.
ps nebeatsimenu phpf sql strukturos...
Parašė Jaunelis· 2008 Gru. 24 01:12:06
#45
Dekingas ;)
Parašė Jaunelis· 2008 Gru. 24 01:12:13
#46
Taigi turiu dar viena klausima čia dėl forumo rangu sistemos man čia su
viewthread failu negerai surandu aš tą eilute viskas čiki bet kai idedu tada iškart error echo
"<span class='alt'>".Rangas." ".ShowRank($data['user_posts'],$data['user_rank'])."<br>";
Gal galit padėt?
Parašė ramon· 2008 Gru. 24 01:12:38
#47
papostink dar pora eiluciu pres ir po sios eilutes... :D
Parašė Jaunelis· 2008 Gru. 24 01:12:12
#48
echo "<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'>\n";
if ($rows != 0) {
$result = dbquery(
"SELECT p.*, fa.attach_id, fa.attach_name, fa.attach_ext, fa.attach_size, u.*, u2.user_name AS edit_name FROM ".$db_prefix."posts p
LEFT JOIN ".$db_prefix."forum_attachments fa USING(post_id)
LEFT JOIN ".$db_prefix."users u ON p.post_author = u.user_id
LEFT JOIN ".$db_prefix."users u2 ON p.post_edituser = u2.user_id AND post_edituser > '0'
WHERE p.thread_id='$thread_id' ORDER BY post_datestamp LIMIT $rowstart,$posts_per_page"
);
$numrows = dbrows($result);
while ($data = dbarray($result)) {
$message = $data['post_message'];
if ($data['post_showsig']) { $message = $message."\n\n<hr>".$data['user_sig']; }
if ($data['post_smileys']) { $message = parsesmileys($message); }
$message = parseubb($message);
$message = nl2br($message);
if ($data['post_edittime'] != "0") {
$edituser = "<a href='../profile.php?lookup=".$data['post_edituser']."'>".$data['edit_name']."</a>";
$edittime = showdate("forumdate", $data['post_edittime']);
}
$is_mod = in_array($data['user_id'], $forum_mods) && $data['user_level'] < "102" ? true : false;
echo "<tr>
<td width='145' class='tbl2'>".$locale['501']."</td>
<td class='tbl2'><a name='post_".$data['post_id']."' id='post_".$data['post_id']."'></a>".$data['post_subject']."</td>
</tr>
<tr>
<td valign='top' rowspan='3' width='145' class='tbl1'>
<a href='".BASEDIR."skype.php?id=".$data['user_aim']."'><img src='http://mystatus.skype.com/smallicon/".$data['user_aim']."'> ".$data['user_name']."</a><br>
<span class='alt'>".($is_mod ? $locale['userf1'] : getuserlevel($data['user_level']))."</span><br><br>\n";
echo "<span class='alt'>".Rangas." ".ShowRank($data['user_posts'],$data['user_rank'])."<br>";
if ($data['user_avatar'] != "") {
echo "<img src='".IMAGES."avatars/".$data['user_avatar']."' alt='".$locale['567']."'><br><br>\n";
$height = "185";
} else {
$height = "70";
}
echo"<br>
<span class='alt'>Statusas:</span> ";
$lastseen = time() - $data['user_lastvisit'];
if($lastseen < 60) {
$lastseen = "<br><img src='".BASEDIR."forum/images/online.gif' style='vertical-align:absMiddle;' title='User is Online' alt='User is Online'></BR>";
} else {
$lastseen = "<br><img src='".BASEDIR."forum/images/offline.gif' style='vertical-align:absMiddle;' title='User is Offline' alt='User is Offline'></BR>";
}
Parašė ramon· 2008 Gru. 24 02:12:02
#49
tai koki errora meta?
Parašė Jaunelis· 2008 Gru. 24 02:12:39
#50
ramon parašė:
tai koki errora meta?
Fatal error: Call to undefined function showrank() in /home/My/puslapis-lt.com/forum/viewthread.php on line 135
o kai ta eilute išemu čiki piki bet tada rangu nerodo :(
Redagavo Jaunelis· 2008 Gru. 24 02:12:04
Parašė ramon· 2008 Gru. 24 02:12:00
#51
nu tai i maincore.php neidejei tos funk t.y. funkcija showrank() nera surasita maincore.php, paskaitik readme.txt (jei yra) faila del viso pikto gal suprasi.
Parašė Jaunelis· 2008 Gru. 24 02:12:19
#52
Ble man reikėjo ne po kodu o prieš vieną kodą dėti ;D
Redagavo Jaunelis· 2008 Gru. 24 02:12:42
Parašė Jaunelis· 2008 Gru. 31 16:12:38
#53
Tai va turiu klausimėli kaip padaryti kad vietoje statusas butu nario nick visaip ten terpiu bet neišeina gal kas padės:
echo"<br>
<span class='alt'>Status:</span> ";
$lastseen = time() - $data['user_lastvisit'];
if($lastseen < 60) {
$lastseen = "<br><img src='".BASEDIR."forum/images/online.gif' style='vertical-align:absMiddle;' title='User is Online' alt='User is Online'></BR>";
} else {
$lastseen = "<br><img src='".BASEDIR."forum/images/offline.gif' style='vertical-align:absMiddle;' title='User is Offline' alt='User is Offline'></BR>";
}
echo "$lastseen";
echo "<nobr><img src='".IMAGES."avatars/".$data['user_avatar']."' alt='".$locale['567']."'><nobr>\n";
}
}
Tai va dbr daviau visą kodą ir man reikia kad aitu ne y apačia o per vidurį tiesej. dq tam kas padės.
Redagavo Jaunelis· 2008 Gru. 31 16:12:01
Parašė MAnjack· 2008 Gru. 31 16:12:42
#54
Pasižiūrėk ar užklausoj nick imamas.
Parašė Jaunelis· 2008 Gru. 31 16:12:13
#55
Nžn :D meginau kodus kišt bbz gaunas o tai kaip dėl to išdėstimo kad aitu tiesej o ne žemyn...
Parašė Jaunelis· 2008 Gru. 31 17:12:35
#56
Va dbr pasidariau bet levj čia su tais užrašais kodas atrodo taip:
echo "<td><a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'>".$data['user_name']."</a></td>\n";
echo"<br>
<span class='alt'></span> ";
$lastseen = time() - $data['user_lastvisit'];
if($lastseen < 60) {
$lastseen = "<td><img src='".BASEDIR."forum/images/online.gif' style='vertical-align:absMiddle;' title='User is Online' alt='User is Online'></td>";
} else {
$lastseen = "<td><img src='".BASEDIR."forum/images/offline.gif' style='vertical-align:absMiddle;' title='User is Offline' alt='User is Offline'></td>";
}
echo "$lastseen";
echo "<td><img src='".IMAGES."avatars/".$data['user_avatar']."' alt='".$locale['567']."'><td>\n";
Paveiksliukas:
P.s. reikia kad atrodytu normalej iš eiles:
Titas
Prisijunges
Avataras
Redagavo Jaunelis· 2008 Gru. 31 17:12:20
Parašė ex-it· 2008 Gru. 31 17:12:32
#57
<tr> naudojam ;)
Parašė edeni· 2008 Gru. 31 17:12:49
#58
echo "<td><a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'>".$data['user_name']."</a></td>\n";
echo"<br>
<span class='alt'></span> ";
$lastseen = time() - $data['user_lastvisit'];
if($lastseen < 60) {
$lastseen = "<td><img src='".BASEDIR."forum/images/online.gif' style='vertical-align:absMiddle;' title='User is Online' alt='User is Online'></td></br>";
} else {
$lastseen = "<td><img src='".BASEDIR."forum/images/offline.gif' style='vertical-align:absMiddle;' title='User is Offline' alt='User is Offline'></td></br>";
}
echo "$lastseen";
echo "<td><img src='".IMAGES."avatars/".$data['user_avatar']."' alt='".$locale['567']."'><td>\n";
Pamegink taip
Parašė Langas· 2008 Gru. 31 17:12:48
#59
<br> <br> arba <table><tr><td></td></tr></table>
Parašė Žmogus· 2008 Gru. 31 17:12:12
#60
Trynk lauk visus tuos <td> <tr>
Parašė robert· 2008 Gru. 31 17:12:10
#61
echo "<tr><td><a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'>".$data['user_name']."</a></td></tr>\n";
$lastseen = time() - $data['user_lastvisit'];
if($lastseen < 60) {
$lastseen = "<tr><td><img src='".BASEDIR."forum/images/online.gif' style='vertical-align:absMiddle;' title='User is Online' alt='User is Online'></td></tr>";
} else {
$lastseen = "<tr><td><img src='".BASEDIR."forum/images/offline.gif' style='vertical-align:absMiddle;' title='User is Offline' alt='User is Offline'></td></tr>";
}
echo "$lastseen";
echo "<tr><td><img src='".IMAGES."avatars/".$data['user_avatar']."' alt='".$locale['567']."'><td></tr>";
Parašė Jaunelis· 2008 Gru. 31 17:12:58
#62
Butu viskas labai gerai bet aina y apačia visi nariai o man reikia kad išilgai aitu per naujiena.,
paaiškinsiu kitaip va noriu kad butu taip:
o dbr yra taip
EDIT: ir dar kaip y čia iterpti kad jai nebutu avatar pvz butu img NO avatar:
echo "<tr><td><img src='".IMAGES."avatars/".$data['user_avatar']."' alt='".$locale['567']."'><td></tr>";
Redagavo Jaunelis· 2008 Gru. 31 17:12:09
Parašė Jaunelis· 2008 Gru. 31 17:12:30
#63
Ok nieko nereikia tik padėkit dėl šito
dar kaip y čia iterpti kad jai nebutu avatar pvz butu img NO avatar:
echo "<tr><td><img src='".IMAGES."avatars/".$data['user_avatar']."' alt='".$locale['567']."'><td></tr>";
Parašė Black psycho· 2008 Gru. 31 18:12:18
#64
Su if zaisk
if ($userdata['user_avatar'] != "") {
echo "<td width='90'><img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='70' height='70' style='margin-top: 10px; margin-bottom: 10px; margin-left: 10px'>";
} else {
echo "<td width='90'><img src='".THEME."images/no-avatar.gif' width='70' height='70' border='0' style='border: 1px #7a7978; margin-top: 10px; margin-left: 10px; margin-bottom: 10px;'>\n";
}
va pvz naudok kaip reikia
Redagavo Black psycho· 2008 Gru. 31 18:12:53
Parašė Jaunelis· 2008 Gru. 31 20:12:58
#65
Black dq bet dabar kai išsijungiu "tipo" kai bunu svečias tada nei vieno avataro nerodo:
echo "<tr><td><a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'>".$data['user_name']."</a><a href='".BASEDIR."messages.php?msg_send=".$data['user_id']."'><img src='".BASEDIR."infusions/last_seen_users_panel/pm.jpg' alt='".$locale['571']."' style='border:0px;'></a></td></tr>\n";
$lastseen = time() - $data['user_lastvisit'];
if($lastseen < 60) {
$lastseen = "<tr><td><img src='".BASEDIR."forum/images/online.gif' style='vertical-align:absMiddle;' title='User is Online' alt='User is Online'></td></tr>";
} else {
$lastseen = "<tr><td><img src='".BASEDIR."forum/images/offline.gif' style='vertical-align:absMiddle;' title='User is Offline' alt='User is Offline'></td></tr>";
}
echo "$lastseen";
if ($userdata['user_avatar'] != "") {
echo "<td width='90'><img src='".IMAGES."avatars/".$data['user_avatar']."' alt='".$locale['567']."' width='70' height='70' style='margin-top: 10px; margin-bottom: 10px; margin-left: 10px'>";
} else {
echo "<td width='90'><img src='".IMAGES."no-avatar.gif' width='70' height='70' border='0' style='border: 1px #7a7978; margin-top: 10px; margin-left: 10px; margin-bottom: 10px;'>\n";
}
štai kodas kuri naudoju.
Parašė Black psycho· 2009 Sau. 3 16:01:41
#66
Duok visa kodą, spėju gad globalus kintamasis (ar kaip ten) if'e parašytas.
Redagavo Black psycho· 2009 Sau. 3 16:01:50
Parašė Jaunelis· 2009 Sau. 16 17:01:43
#67
Okey,turiu dar viena klausimėli tai va iškilo man turiu va tokį kodą:
function render_header($header_content) {
global $theme_width,$locale,$data,$aidlink,$db_prefix;
echo "<table align='center' cellpadding='0' cellspacing='0' width='100%' class='paneles'>\n<tr>
<td align='right' width='140'>";
include THEME."latest_articles_panel.php";
echo "</td>
<td align='right' width='100'>";
include THEME."latest_downloads_panel.php";
echo "</td>
</tr>
</table><br>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
}
Paveiksliuaks atrodo:
http://www.78.lt/image.php?id=3F...2D&jpg
Man reikia kad butu šale to paveiksliuko eitu šale to paveiksliuko dar vienas... Va taip turėtu atrodyt:
http://www.78.lt/image.php?id=3C...C5&jpg
Redagavo Jaunelis· 2009 Sau. 16 17:01:52
Parašė bad_user· 2009 Sau. 16 17:01:15
#68
Negražus avataras, tai pasakysiu tik tiek: <td></td><td></td> ;)
Parašė Jaunelis· 2009 Sau. 17 09:01:10
#69
SoNG parašė:
Negražus avataras, tai pasakysiu tik tiek: <td></td><td></td> ;)
Ty , bet jau pasidariau ,nes čia kol sulauksi pagalbos tai xD
Parašė Jaunelis· 2009 Sau. 18 13:01:55
#70
Sveikučiai kaip padaryti kad veiktų tie mygtukai kur kai pvz rašai naujiena buna "link" tipo paversti linku nuoroda pas mane jie neveikia nei siuntinių skiltyje nei straipsniuose niekur gal galite pasakyti kokius failus reiktų pakeisti kad veiktų
Parašė mXt· 2009 Sau. 18 13:01:06
#71
includes/javascript.js is pradziu, o jei neveiks tai visa includes folderi
Parašė Jaunelis· 2009 Sau. 18 13:01:18
#72
mXt parašė:
includes/javascript.js is pradziu, o jei neveiks tai visa includes folderi
Na dėkui bandysių pakeisti :)
Tikrai padėjo dar kartą dėkui ;)
Redagavo Jaunelis· 2009 Sau. 18 13:01:40
Parašė Jaunelis· 2009 Sau. 24 13:01:20
#73
#
naujienos susilieja
Sveiki turiu tokią probelma kur reiktų čia man žet ir keist kad nesusilietu naujienos:
V7 čia tema...
Styles:
a {
color : #FFF;
text-decoration : none;
}
a:hover {
color : #000;
text-decoration : underline;
}
a.side {
color : #FFF;
text-decoration : none;
}
a:hover.side {
color : #FFF;
text-decoration : underline;
}
a.white, li.white a {
color: #000;
text-decoration: none;
}
a:hover.white, li.white a:hover {
color: #020a77;
text-decoration: underline;
}
body {
color : #FFF;
background : #FFF;
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 11px;
}
form {
margin : 0px;
}
hr {
height : 1px;
border : 1px solid #eee;
}
hr.side-hr {
height : 1px;
border : 1px solid #eee;
}
td {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 11px;
}
pre {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 11px;
}
.alt {
color : #FFF;
}
.outer-border {
border : 0px solid #000;
}
.sub-header {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #000;
background-color : #0047b3;
border : 0px solid #ccc;
border-bottom : 0px solid #000;
padding : 5px;
}
.sub-header ul{
margin: 0;
padding: 0;
}
.sub-header ul li{
display: inline;
}
.sub-header ul li.first-link .bullet{
display: none;
}
.full-header {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #FFF;
padding : 10px;
}
.footer {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #000;
background-color : #f1f1f1;
border : 1px solid #ccc;
padding : 5px;
}
.button {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #FFF;
background-color : #000;
height : 20px;
border : 1px solid #FFF;
margin-top : 2px;
}
.bbcode {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #FFF;
border : 1px solid #ccc;
margin-top : 2px;
}
.textbox {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #000;
border : 0px solid #ccc;
}
.main-body {
font-size : 11px;
color : #FFF;
background-image: url('images/naujienu_bg.gif');
padding : 10px;
}
.center {
margin : 0 auto;
}
.side-body {
font-size : 10px;
color : #FFF;
background-repeat: no-repeat;
background-color : #020a77;
background-image: url('images/paneliu_bg.gif');
padding : 10px;
}
.main-bg {
color : #FFF;
background-color : #FFF;
padding : 5px;
}
.border {
border : 0px solid #e1e1e1;
margin-bottom : 5px;
}
.admin-message {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 11px;
text-align : center;
color : #000;
border : 1px solid #e1e1e1;
padding : 3px 4px 5px 4px;
margin-bottom : 5px;
}
.side-left .side-border-right {display: none;}
.side-right .side-border-left {display: none;}
.side-border-left {
color : #FFF;
background-color : #fff;
padding : 10px 0px 10px 10px;
width: 175px;
}
.side-border-right {
color : #FFF;
background-color : #fff;
padding : 10px 10px 10px 0px;
width: 175px;
}
.news-category {
border:10;
margin:10px 10px 0 0;
float:left;
}
.news-footer {
font-size : 10px;
color : #FFF;
background-image: url('images/naujienu_apacia.gif');
padding : 10px;
}
.capmain {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 11px;
font-weight : bold;
color : #FFF;
background-image: url('images/naujienos.gif');
padding : 5px;
}
.scapmain {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
font-weight : bold;
color : #FFF;
background-image: url('images/paneles.gif');
border-bottom : 0px solid #e1e1e1;
padding : 8px;
}
.tbl-border {
border : 1px solid #FFF;
}
.tbl {
font-size : 11px;
color : #FFF;
padding : 4px;
}
.tbl1 {
font-size : 11px;
color : #FFF;
padding : 4px;
}
.tbl2 {
font-size : 11px;
color : #FFF;
padding : 4px;
}
.forum-caption {
font-size : 11px;
font-weight : bold;
color : #FFF;
padding : 2px 4px 4px 4px;
}
.quote {
font-size : 11px;
color : #FFF;
padding : 4px;
margin : 0px 20px 0px 20px;
border : 1px solid #bbb;
}
.poll {
height : 12px;
border : 1px solid #bbb;
}
.comment-name {
font-weight : bold;
color : #FFF;
}
.shoutboxname {
font-weight : bold;
color : #FFF;
}
.shoutbox {
color : #FFF;
}
.shoutboxdate {
font-size : 10px;
color : #FFF;
}
.small {
font-size : 10px;
font-weight : normal;
}
.small2 {
font-size : 10px;
font-weight : normal;
color : #FFF;
}
.side-small {
font-size : 10px;
font-weight : normal;
color : #FFF;
}
.side-label {
color : #FFF;
padding : 2px 2px 3px 2px;
}
/* Vertical Navigation */
#navigation h2 {
font-size: 10px;
color : #FFF;
margin: 0;
padding: 4px;
}
#navigation ul {
margin: 0;
padding: 5;
list-style-type: none;
}
* html #navigation ul li{
height: 1%;
}
#navigation a {
display: block;
color : #FFF;
padding: 5px;
text-decoration : none;
}
#navigation a:hover {
color : #FFF;
}
/* Page Navigation */
.pagenav {
padding: 0.4em;
}
.pagenav span {
color: #fff;
border: 0px solid #e1e1e1;
padding: 0.2em 0.4em 0.2em 0.4em;
margin: 0.2em;
}
.pagenav a {
color : #FFF;
border: 0px solid #e1e1e1;
padding: 0.2em 0.4em 0.2em 0.4em;
margin: 0.2em;
text-decoration: none;
}
.pagenav a:hover {
color: #fff;
margin: 0.2em;
text-decoration: none;
}
Redagavo Jaunelis· 2009 Sau. 24 13:01:05
Parašė Jaunelis· 2009 Vas. 1 16:02:49
#74
Taigi turiu klausima man reikia kad avataras butu virš texto ar taip imanoma? dabar atrodo taip:
Arba kad bet tas avataras nebutu taip toli nuo texto... kažkaip ji reikia sureguliuoti kad tai neišlystu.
Štai kodas:
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
if (iMEMBER) {
openside_panel($userdata['user_name']);
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo ($userdata['user_avatar'] ? "<img src='".IMAGES."avatars/".$userdata['user_avatar']."' width='50' height='50'><br>\n" : "<img src='".THEME."images/noavatar.gif' border='0' width='50' height='50'>\n")."";
echo "<td class='side-body-login'><a href='".BASEDIR."edit_profile.php' class='side'>Apraðymas</a><br>
<a href='".BASEDIR."messages.php' class='side'>Þinutës</a><br>
<a href='".BASEDIR."members.php' class='side'>".$locale['082']."</a><br>\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<a href='".ADMIN."index.php".$aidlink."' class='side'>Administracija</a><br>\n";
}
echo "<img src='".THEME."images/user_info/logout.png' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>Atsijungti</a><br><br><br><br>\n</td><td >";
echo "</td>";
} else {
openside_panel($locale['060']);
echo "<div align='center'>".(isset($loginerror) ? $loginerror : "")."
<form name='loginform' method='post' action='".FUSION_SELF."'>
<tr>
<div align='center'><a href='".BASEDIR."register.php'><img src='".THEME."images/register.gif' border='0'></a> <a href='".BASEDIR."lostpassword.php'><img src='".THEME."images/remember.gif' border='0'></a></div>
</tr><br>
<tr>
<td align='center'><input type='text' name='user_name' class='textbox_2' style='width:104px;height:19px;'></td>
</tr>
<tr>
<td align='center'><input type='password' name='user_pass' class='textbox_2' style='width:104px;height:19px;'></td>
</tr>
<tr>
<td align='center'> <input type='checkbox' name='remember_me' value='y' title='Atsiminti slaptaþodá?' style='vertical-align:middle;'> <input type='submit' name='login' value='Jungtis' class='button_2'></td>
</tr>
</form>\n";
}
closeside_panel();
?>
Redagavo Jaunelis· 2009 Vas. 1 16:02:10
Parašė Jaunelis· 2009 Vas. 7 13:02:33
#75
Sveiki taigi susiduriau su tokia problemėle bandau daryti atskiras paneles pagal šį straipsni:
https://webdnd.com/readarticle.p...cle_id=116
na padariau viską kaip ten viskas normalej bet kaip padaryti kad daugiau paneliu skirtusi nes ten padaryta tik kad viena panele skirtusi o aš norėčiau kad visos skirtusi skirtingos butu :S ir bandžiau visaip bet nk nesigavo gal kas galit padėti ?
Parašė Jaunelis· 2009 Vas. 8 21:02:39
#76
Tai va turiu tokią problema pas mane dabar tema lyg viskas ir normalej bet nuaina naujienos ir paneles su footeriu kartu y šoną kaip padaryti kad viskas čiki butu va kaip dbr ?
Redagavo Jaunelis· 2009 Vas. 8 22:02:32
Parašė blist· 2009 Vas. 8 21:02:28
#77
pasidarei kad visos paneles butu skirtingos?
Parašė Jaunelis· 2009 Vas. 8 21:02:36
#78
jo ,bet krč y šoną va taip suaina
Parašė blist· 2009 Vas. 8 22:02:27
#79
kaip pasidarei jai ne paslaptis, ir man reiketu..
Parašė Jaunelis· 2009 Vas. 8 22:02:14
#80
man dbr ne tas galvoj... dėkui suradau kas padės nes čia matau niekas nenori o gal nemoka :P
Parašė Jaunelis· 2009 Vas. 14 20:02:07
#81
sveiki blemba susiduriau su toke problema kad noriu kad butu per visa tema boarderis o jis aina tik per headery kurioje čia vietoje terpt ? nes ant vienos temos idėjau taip veikia o anš šitos ne,
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#000000";
$body_bg = "#FFFFFF";
$theme_width = "993";
$theme_width_l = "413";
$theme_width_r = "413";
function render_header($header_content) {
global $theme_width,$locale,$data,$aidlink,$db_prefix;
echo "<table align='center' cellspacing='0' cellpadding='0' width='993' class='outer-border'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='993'>
<tr>
<td class='full-header'>
<td <img src='".THEME."images/headeris.jpg'></td>
</tr>
</table>\n";
echo "
<tr>
<td><table border='0' align='center' cellpadding='0' cellspacing='0'>
<tr>
<td width='221' align='center'><img src='".THEME."images/none.gif' border=0' alt=''></a></td>
<td width='91' align='center'><a href='".BASEDIR."news.php'><img src='".THEME."images/pagrindinis.gif' border=0' alt=''></a></td>
<td width='103' align='center'><a href='".FORUM."index.php'><img src='".THEME."images/forumas.gif' border=0' alt=''></td>
<td width='86' align='center'><a href='".BASEDIR."members.php'><img src='".THEME."images/nariai.gif' border=0' alt=''></td>
<td width='121' align='center'><a href='".BASEDIR."downloads.php'><img src='".THEME."images/rezultatai.gif' border=0' alt=''></td>
<td width='109' align='center'><a href='".BASEDIR."articles.php'><img src='".THEME."images/kontaktai.gif' border=0' alt=''></td>
<td width='82' align='center'><a href='".BASEDIR."contact.php'><img src='".THEME."images/reklama.gif' border=0' alt=''></td>
<td width='180' align='center'><img src='".THEME."images/none1.gif' border=0' alt=''></a></td>
</tr>
</table></td>
</tr>
</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings;
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%' class='footer'>
<tr>
<td </td>
<td width='446'></td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='589'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("N",$info['news_id']).newsposter($info," ·").newsopts($info,"·").closeform("N",$info['news_id']);
echo "</td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='589' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info," ·").articleopts($info,"·").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='589'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
</tr>
</table>\n";
tablebreak();
}
function opensidex($title,$state="on") {
$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain'>$title</td>
<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>
</tr>
<tr>
<td colspan='2' class='side-body'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n";
}
function closesidex() {
echo "</div>
</td>
</tr>
</table>\n";
tablebreak();
}
function tablebreak() {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td height='5'></td>\n</tr>\n</table>\n";
}
?>
Parašė blist· 2009 Vas. 14 21:02:20
#82
per styles.css and body { dėk borderi
Parašė Jaunelis· 2009 Vas. 23 17:02:12
#83
Taigi naujas klausimas dabar noriu padaryti kad vienoje eilutėje butu mygtukai ir registruoti vartotojai na čia paaiškinimas gal ir levas bet man ant registruoti vartotojai reikia uždėt img kaip bg bet neužsideda o jai užsideda tai virš jo gal yra kokiu išminčiu kurie padėtu man štai img:
Štai dbr atrodo taip:
Reikia kad butu taip:
Kodas:
echo "
<tr>
<td><table border='0' align='center' cellpadding='0' cellspacing='0'>
<tr>
<td width='149' align='center'><img src='".THEME."images/pagrindinis.png' border=0' alt=''></a></td>
<td width='102' align='center'><img src='".THEME."images/forumas.png' border=0' alt=''></a></td>
<td width='118' align='center'><img src='".THEME."images/kontaktai.png' border=0' alt=''></a></td>
<td width='98' align='center'><img src='".THEME."images/reklama.png' border=0' alt=''></a></td>
<td width='118' align='center'><a href='".BASEDIR."news.php'><img src='".THEME."images/rezultatai.png' border=0' alt=''></a></td>
<td width='125' align='center'><a href='".BASEDIR."members.php'><img src='".THEME."images/nariai.png' border=0' alt=''></a></td>
<td width='252' align='center'><span class='white'>Registruotø vartotojø - ".number_format(dbcount("(user_id)", "users", "user_status<='1'"))."</span></a>\n";
if ($settings['admin_activation'] == "1") echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['015'].dbcount("(user_id)", "users", "user_status='2'")."\n";
echo ($i == 0 ? " " : "")."</td>
</tr>
</table></td>
</tr>
</table>\n";
Redagavo Jaunelis· 2009 Vas. 23 17:02:42
Parašė Jaunelis· 2009 Kov. 6 17:03:41
#84
kdl man neprisijungia su šiuo kodu idėjau y sub_header tą ir bbs krč viskas ore ten susiderino bet neprisijungia buna prisijungimas nesekmingas o kai per user_info_panel jugiuos viskas zjbs:
echo "<table cellspacing='0' cellpadding='0' width='969'><tr><td class='Linija'></td></tr></table>";
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<table width='$theme_width' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td class='sub-header'><table width='$theme_width' border='0' cellpadding='0' cellspacing='0' style='background-color: #000000;'><tr>";
if (iMEMBER) {
echo"<td height='33' background='".THEME."images/linija.jpg' class='sub-header'><center>
<a href='".BASEDIR."edit_profile.php' class='side'>".$locale['080']."</a> |
<a href='".BASEDIR."messages.php' class='side'>Þinutës [naujø: <b><span style='color:#ff0000'>".sprintf($msg_count)."</span></a>";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo " | <a href='".ADMIN."index.php".$aidlink."' class='side'>Administracija</a>";
}
echo" | <a href='".BASEDIR."setuser.php?logout=yes' target='_blank'>Atsijungti</a></td>";
} else {
echo" <td height='33' background='".THEME."images/linija.jpg' class='sub-header'><center>
<form name='loginform' method='post' action='".FUSION_SELF."'>
Vartotojas <input type='text' name='user_name' class='textbox' style='width:100px;filter:alpha(opacity=70)'>
Slaptaþodis <input type='password' name='user_pass' class='textbox' style='width:100px;filter:alpha(opacity=70)'>
<input type='submit' name='login' value='ok' class='ok'> <a href=".BASEDIR."register.php>Registracija</a> | <a href=".BASEDIR."lostpassword.php>Priminti</a>";
echo"</div>\n";
}
echo "</td></tr></table></td></tr></table>";
Redagavo Jaunelis· 2009 Kov. 6 18:03:42