Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Jaunelio Klausimai :)
Parašė Jaunelis· 2008 Spa. 9 15:10:52
#1
Sveiki, norėčiau paprašyti Jūsų pagalbos taigi noriu padaryti kad po headeriu butu migtukai bet kažkas šitame kode blogai gal kas nors padės... Kodas:
function render_header($header_content) {
global $theme_width,$settings,$locale,$userdata,$aidlink;
echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0' style='border:0px solid #999999; margin-top:-10px;'>";
echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
echo "<tr><td width='100%'>";
// Start banner code / Banerio kodas
echo "<table width='100%' cellspacing='0' cellpadding='0'>";
echo "<tr><td height='25' background='".THEME."images/jou.jpg' align='center' valign='middle'>
<table width='95%' border='0' cellspacing='0' cellpadding='0'><tr>
<td width='95%' align='center'style='padding-right: 0px; padding-top: 0px;'>";
</tr>
</table>
<tr>
<td><table border='0' align='center' cellpadding='0' cellspacing='0'>
</tr>
</table></td>
</tr>
</table>\n";
echo "<table width='100%' cellpadding='4' bgcolor='#F8F8F8' cellspacing='0' border='0'><tr>";
}
Antras klausimas gal galite duoti ar pataisyti šį kodą kad galėtu iėjti y šią nuoroda tik administratoriai:
<td width='75' align='center'><a href='".BASEDIR."news.php'><img src='".THEME."images/Pagrindinis.jpg' border=0' alt='Pradinis'></a></td>
O dėl klaidos tai meta:
Parse error: syntax error, unexpected '<' in /home/..../xz.lt/themes/new/theme.php on line 24
Redagavo Jaunelis· 2008 Spa. 9 18:10:18
Parašė pR· 2008 Spa. 9 16:10:10
#2
Tai redagok 24 line,kaskas ten blogai...
Parašė Jaunelis· 2008 Spa. 9 16:10:05
#3
na gerai o kaip dėl antro klausimo dėl administracijos kad iejt galėtu tik adminas...
Parašė Žmogus· 2008 Spa. 9 16:10:20
#4
Modų saite yra user info kažkokai tai iš ten gali tą kodą išimiti :)
Parašė Jaunelis· 2008 Spa. 9 16:10:22
#5
ShadoVw parašė:
Modų saite yra user info kažkokai tai iš ten gali tą kodą išimiti :)
Neišeina man :( aš noriu kad tik adminas matytu ta nuoroda
Parašė Dandžu· 2008 Spa. 9 16:10:03
#6
";
if(iADMIN) {
echo "<td width='75' align='center'><a href='".BASEDIR."news.php'><img src='".THEME."images/Pagrindinis.jpg' border=0' alt='Pradinis'></a></td>";
}
echo "
Parašė Jaunelis· 2008 Spa. 9 16:10:17
#7
Sharkman parašė:
";
if(iADMIN) {
echo "<td width='75' align='center'><a href='".BASEDIR."news.php'><img src='".THEME."images/Pagrindinis.jpg' border=0' alt='Pradinis'></a></td>";
}
echo "
Didelis dėkui :)
Parašė Jaunelis· 2008 Spa. 9 17:10:38
#8
Dar vienas klausimėlis....
kaip panaikinti apibraukta dalyką:
Photogallery.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."photogallery.php";
?>
<script type="text/javascript" src="highslide/highslide.js"></script>
<!--
2) Initialize the hs object and optionally override the settings defined at the top
of the highslide.js file. The parameter hs.graphicsDir is important!
-->
<script type="text/javascript">
hs.graphicsDir = 'highslide/graphics/';
hs.outlineType = 'rounded-white';
window.onload = function() {
hs.preloadImages(5);
}
</script>
<!--
3) These CSS-styles are necessary for the script to work. You may also put
them in an external CSS-file. See the webpage for documentation.
-->
<style type="text/css">
* {
font-family: Verdana, Helvetica;
font-size: 8pt;
}
.highslide {
cursor: url(highslide/graphics/zoomin.cur), pointer;
outline: none;
}
.highslide img {
border: 2px solid gray;
}
.highslide:hover img {
border: 2px solid white;
}
.highslide-image {
border: 2px solid white;
}
.highslide-image-blur {
}
.highslide-caption {
display: none;
border: 2px solid white;
border-top: none;
font-family: Verdana, Helvetica;
font-size: 10pt;
padding: 5px;
background-color: white;
}
.highslide-display-block {
display: block;
}
.highslide-display-none {
display: none;
}
.highslide-loading {
display: block;
color: white;
font-size: 9px;
font-weight: bold;
text-transform: uppercase;
text-decoration: none;
padding: 3px;
border-top: 1px solid white;
border-bottom: 1px solid white;
background-color: black;
/*
padding-left: 22px;
background-image: url(highslide/graphics/loader.gif);
background-repeat: no-repeat;
background-position: 3px 1px;
*/
}
a.highslide-credits,
a.highslide-credits i {
padding: 2px;
color: silver;
text-decoration: none;
font-size: 10px;
}
a.highslide-credits:hover,
a.highslide-credits:hover i {
color: white;
background-color: gray;
}
</style>
<div id="highslide-container"></div>
<?php
define("SAFEMODE", @ini_get("safe_mode") ? true : false);
if (isset($photo_id) && !isNum($photo_id)) fallback(FUSION_SELF);
if (isset($album_id) && !isNum($album_id)) fallback(FUSION_SELF);
if (!isset($rowstart) || !isNum($rowstart)) $rowstart = 0;
if(isset($photo_id)){
$result = dbquery(
"SELECT tp.*, ta.*, tu.user_id,user_name, SUM(tr.rating_vote) AS sum_rating, COUNT(tr.rating_item_id) AS count_votes
FROM ".$db_prefix."photos tp
LEFT JOIN ".$db_prefix."photo_albums ta USING (album_id)
LEFT JOIN ".$db_prefix."users tu ON tp.photo_user=tu.user_id
LEFT JOIN ".$db_prefix."ratings tr ON tr.rating_item_id = tp.photo_id AND tr.rating_type='P'
WHERE photo_id='$photo_id' GROUP BY tp.photo_id"
);
$data = dbarray($result);
if (!checkgroup($data['album_access'])) {
fallback(FUSION_SELF);
} else {
define("PHOTODIR", PHOTOS.(!SAFEMODE ? "album_".$data['album_id']."/" : ""));
include INCLUDES."comments_include.php";
include INCLUDES."ratings_include.php";
$result=dbquery("UPDATE ".$db_prefix."photos SET photo_views=(photo_views+1) WHERE photo_id='".$photo_id."'");
$pres = dbquery("SELECT photo_id FROM ".$db_prefix."photos WHERE photo_order='".($data['photo_order']-1)."' AND album_id='".$data['album_id']."'");
$nres = dbquery("SELECT photo_id FROM ".$db_prefix."photos WHERE photo_order='".($data['photo_order']+1)."' AND album_id='".$data['album_id']."'");
if (dbrows($pres)) $prev = dbarray($pres);
if (dbrows($nres)) $next = dbarray($nres);
opentable($locale['450']);
if ($data['photo_thumb2']) $photo_thumb = PHOTODIR.$data['photo_thumb2'];
$photo_file = PHOTODIR.$data['photo_filename'];
$photo_size = @getimagesize($photo_file);
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td class='tbl2'>\n";
echo "<a href='".FUSION_SELF."'>".$locale['400']."</a> >\n";
echo "<a href='".FUSION_SELF."?album_id=".$data['album_id']."'>".$data['album_title']."</a> >\n";
echo "<a href='".FUSION_SELF."?photo_id=$photo_id'>".$data['photo_title']."</a>\n</td>\n";
if (isset($prev) || isset($next)) {
if (isset($prev)) echo "<td width='1%' class='tbl2'><a href='".FUSION_SELF."?photo_id=".$prev['photo_id']."' title='".$locale['451']."'><<</a></td>\n";
if (isset($next)) echo "<td width='1%' class='tbl2'><a href='".FUSION_SELF."?photo_id=".$next['photo_id']."' title='".$locale['452']."'>>></a></td>\n";
}
echo "</tr>\n</table>\n";
tablebreak();
echo "<div align='center' style='margin:5px;'>\n";
echo"<a id='thumb".$data['photo_id']."' href='".PHOTODIR.$data['photo_filename']."' class=\"highslide\" onclick=\"return hs.expand(this)\">
<img src='".PHOTODIR.$data['photo_thumb2']."' alt=\"Highslide JS\"
title='".$locale['431']."'/></a>";
//echo "<div align='center' style='margin:5px;'>\n";
//echo "<a href=\"javascript:;\" onclick=\"window.open('showphoto.php?photo_id=".$data['photo_id']."','','scrollbars=yes,toolbar=no,status=no,resizable=yes,width=".($photo_size[0]+20).",height=".($photo_size[1]+20)."')\">";
//echo "<img src='".(isset($photo_thumb) ? $photo_thumb : $photo_file)."' alt='".$data['photo_filename']."' title='".$locale['453']."' border='0'></a>\n</div>\n";
echo "<div align='center' style='margin:5px 0px 5px 0px'>\n";
if ($data['photo_description']) echo nl2br(parseubb($data['photo_description']))."</b><br><br>\n";
echo $locale['433'].showdate("shortdate", $data['photo_datestamp'])."<br>\n";
echo $locale['434']."<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a><br>\n";
echo $locale['454']."$photo_size[0] x $photo_size[1] ".$locale['455']."<br>\n";
echo $locale['456'].parsebytesize(filesize($photo_file))."<br>\n";
echo $locale['436'].dbcount("(comment_id)", "comments", "comment_type='P' AND comment_item_id='".$data['photo_id']."'")."<br>\n";
echo $locale['437'].($data['count_votes'] > 0 ? str_repeat("<img src='".IMAGES."star.gif' alt='*' style='vertical-align:middle'>", ceil($data['sum_rating'] / $data['count_votes'])) : $locale['438'])."<br>\n";
echo $locale['457'].$data['photo_views']."\n";
closetable();
if ($data['photo_allow_comments'] == "1") showcomments("P","photos","photo_id",$photo_id,FUSION_SELF."?photo_id=$photo_id");
if ($data['photo_allow_ratings']) showratings("P",$photo_id,FUSION_SELF."?photo_id=$photo_id");
}
} elseif (isset($album_id)) {
define("PHOTODIR", PHOTOS.(!SAFEMODE ? "album_".$album_id."/" : ""));
$result = dbquery(
"SELECT ta.* FROM ".$db_prefix."photo_albums ta WHERE album_id='$album_id'"
);
if (!dbrows($result)) {
fallback(FUSION_SELF);
} else {
$data = dbarray($result);
if (!checkgroup($data['album_access'])) {
fallback(FUSION_SELF);
} else {
$rows = dbcount("(photo_id)", "photos", "album_id='$album_id'");
opentable($locale['420']);
tablebreak();
echo "<table align='center' cellpadding='0' cellspacing='0' width='80%'>\n<tr>\n";
echo "<td rowspan='2' align='center' class='tbl1'><img src='".PHOTOS.$data['album_thumb']."'></td>\n";
echo "<td valign='top' width='100%'><div class='tbl2' style='font-weight:bold;vertical-align:top'>".$locale['421'].$data['album_title']."</div>\n";
echo "<div class='tbl1' style='vertical-align:middle'>".nl2br(parseubb($data['album_description']))."</div>\n</td>\n</tr>\n";
echo "<tr>\n<td valign='bottom' width='100%'>\n<div class='tbl2' style='vertical-align:bottom'>\n";
if ($rows) {
$pdata = dbarray(dbquery("SELECT tp.*, tu.user_id,user_name FROM ".$db_prefix."photos tp LEFT JOIN ".$db_prefix."users tu ON tp.photo_user=tu.user_id WHERE album_id='$album_id' ORDER BY photo_datestamp DESC LIMIT 1"));
echo $locale['422']."$rows<br>\n";
echo $locale['423']."<a href='".BASEDIR."profile.php?lookup=".$pdata['user_id']."'>".$pdata['user_name']."</a>".$locale['424'].showdate("longdate", $pdata['photo_datestamp'])."\n";
} else {
echo $locale['425']."\n";
}
echo "</div>\n</td>\n</tr>\n</table>";
tablebreak();
closetable();
if ($rows) {
tablebreak();
opentable($locale['430']);
$result = dbquery(
"SELECT tp.*, tu.user_id,user_name, SUM(tr.rating_vote) AS sum_rating, COUNT(tr.rating_item_id) AS count_votes
FROM ".$db_prefix."photos tp
LEFT JOIN ".$db_prefix."users tu ON tp.photo_user=tu.user_id
LEFT JOIN ".$db_prefix."ratings tr ON tr.rating_item_id = tp.photo_id AND tr.rating_type='P'
WHERE album_id=$album_id GROUP BY photo_id ORDER BY photo_order LIMIT $rowstart,".$settings['thumbs_per_page']
);
$counter = 0;
echo "<table cellpadding='0' cellspacing='1' width='100%'>\n<tr>\n<td class='tbl2'>\n";
echo "<a href='".FUSION_SELF."'>".$locale['400']."</a> >\n";
echo "<a href='".FUSION_SELF."?album_id=".$data['album_id']."'>".$data['album_title']."</a>\n";
echo "</td>\n</tr>\n</table>\n";
tablebreak();
echo "<table cellpadding='0' cellspacing='1' width='100%'>\n<tr>\n";
while ($data = dbarray($result)) {
if ($counter != 0 && ($counter % $settings['thumbs_per_row'] == 0)) echo "</tr>\n<tr>\n";
echo "<td align='center' valign='top' class='tbl'>\n";
echo "<b>".$data['photo_title']."</b><br><br>\n";
echo"
<div class='highslide-caption' id='caption-for-thumb".$data['photo_id']."'>";
//THIS SETS DESCRIPTION CAP
if($data['photo_description'] !="") {
echo"<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'><tr><td class='tbl1' width='100'>Description:</td><td class='tbl1'> ".$data['photo_description']."</td></tr></table>";
}
//THIS SETS COMMENTS CAP
$result1 = dbquery("SELECT * FROM ".$db_prefix."comments WHERE comment_type='P' AND comment_item_id='".$data['photo_id']."' ORDER BY comment_id DESC LIMIT 3");
if(dbrows($result1)) {
echo"<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'><tr><td align='center' class='tbl1' colspan='2'><b>Comments:</b></td></tr>";
while ($data1 = dbarray($result1)) {
$commentname = dbquery("SELECT user_name FROM ".$db_prefix."users WHERE user_id='".$data1['comment_name']."'");
$commentname2 = dbarray($commentname);
$commentname3 = $commentname2['user_name'];
echo"
<tr><td class='tbl1' width='100'>Comment by: ".$commentname3."</td><td class='tbl1'>".nl2br(parseubb(parsesmileys($data1['comment_message'])))."</td></tr>";
}
echo"
</table>";
}
//THIS SETS COUNT CAP
$calculate_comments = dbcount("(comment_id)", "comments", "comment_type='P' AND comment_item_id='".$data['photo_id']."'");
if($calculate_comments >3) {
echo"
<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'><tr>
<td align='center' class='tbl1' colspan='2'>You are viewing the 3 latest comments. [<a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."' class='small'>Click here to see all comments</a>] (there is currently ".dbcount("(comment_id)", "comments", "comment_type='P' AND comment_item_id='".$data['photo_id']."'")." comments)</td></tr></table>";
}
echo"
</div>
<a id='thumb".$data['photo_id']."' href='".PHOTODIR.$data['photo_filename']."' class=\"highslide\" onclick=\"return hs.expand(this)\">
<img src='".PHOTODIR.$data['photo_thumb1']."' alt=\"Highslide JS\"
title='".$locale['431']."'/></a>";
echo "<br><br>\n<span class='small'>\n";
echo $locale['433'].showdate("shortdate", $data['photo_datestamp'])."<br>\n";
echo $locale['434']."<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a><br>\n";
echo "<a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."' class='small'>Komentuoti</a><br>\n";
echo" ".$locale['436'].dbcount("(comment_id)", "comments", "comment_type='P' AND comment_item_id='".$data['photo_id']."'")."<br>\n";
echo $locale['437'].($data['count_votes'] > 0 ? str_repeat("<img src='".IMAGES."star.gif' alt='*' style='vertical-align:middle'>", ceil($data['sum_rating'] / $data['count_votes'])) : $locale['438'])."<br>\n";
echo $locale['435'].$data['photo_views']."</span><br>\n";
echo "</td>\n";
$counter++;
}
echo "</tr>\n</table>\n";
closetable();
}
if ($rows > $settings['thumbs_per_page']) echo "<div align='center' style='margin-top:5px;'>\n".makePageNav($rowstart,$settings['thumbs_per_page'],$rows,3,FUSION_SELF."?album_id=$album_id&")."\n</div>\n";
}
}
} else {
opentable($locale['400']);
$rows = dbcount("(album_id)", "photo_albums", groupaccess('album_access'));
if ($rows) {
$result = dbquery(
"SELECT ta.*, tu.user_id,user_name FROM ".$db_prefix."photo_albums ta
LEFT JOIN ".$db_prefix."users tu ON ta.album_user=tu.user_id
WHERE ".groupaccess('album_access')." ORDER BY album_order
LIMIT $rowstart,".$settings['thumbs_per_page']
);
$counter = 0; $r = 0; $k = 1;
echo "<table cellpadding='0' cellspacing='1' width='100%'>\n<tr>\n";
while ($data = dbarray($result)) {
if ($counter != 0 && ($counter % $settings['thumbs_per_row'] == 0)) echo "</tr>\n<tr>\n";
echo "<td align='center' valign='top' class='tbl'>\n";
echo "<b>".$data['album_title']."</b><br><br>\n<a href='".FUSION_SELF."?album_id=".$data['album_id']."'>";
if ($data['album_thumb'] && file_exists(PHOTOS.$data['album_thumb'])){
echo "<img src='".PHOTOS.$data['album_thumb']."' alt='".$data['album_thumb']."' title='".$locale['401']."' border='0'>";
} else {
echo $locale['402'];
}
echo "</a><br><br>\n<span class='small'>\n";
echo $locale['403'].showdate("shortdate", $data['album_datestamp'])."<br>\n";
echo $locale['404']."<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a><br>\n";
echo $locale['405'].dbcount("(photo_id)", "photos", "album_id='".$data['album_id']."'")."</span><br>\n";
echo "</td>\n";
$counter++; $k++;
}
echo "</tr>\n</table>\n";
closetable();
if ($rows > $settings['thumbs_per_page']) echo "<div align='center' style='margin-top:5px;'>\n".makePageNav($rowstart,$settings['thumbs_per_page'],$rows,3)."\n</div>\n";
}else{
echo "<center><br>".$locale['406']."<br><br></center>\n";
closetable();
}
}
require "side_right.php";
require "footer.php";
?>
Redagavo Jaunelis· 2008 Spa. 9 17:10:00
Parašė Fanio· 2008 Spa. 9 18:10:22
#9
Štai kodas, nebebus tos paneles kur apibraukei.
Photogallery.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."photogallery.php";
?>
<script type="text/javascript" src="highslide/highslide.js"></script>
<!--
2) Initialize the hs object and optionally override the settings defined at the top
of the highslide.js file. The parameter hs.graphicsDir is important!
-->
<script type="text/javascript">
hs.graphicsDir = 'highslide/graphics/';
hs.outlineType = 'rounded-white';
window.onload = function() {
hs.preloadImages(5);
}
</script>
<!--
3) These CSS-styles are necessary for the script to work. You may also put
them in an external CSS-file. See the webpage for documentation.
-->
<style type="text/css">
* {
font-family: Verdana, Helvetica;
font-size: 8pt;
}
.highslide {
cursor: url(highslide/graphics/zoomin.cur), pointer;
outline: none;
}
.highslide img {
border: 2px solid gray;
}
.highslide:hover img {
border: 2px solid white;
}
.highslide-image {
border: 2px solid white;
}
.highslide-image-blur {
}
.highslide-caption {
display: none;
border: 2px solid white;
border-top: none;
font-family: Verdana, Helvetica;
font-size: 10pt;
padding: 5px;
background-color: white;
}
.highslide-display-block {
display: block;
}
.highslide-display-none {
display: none;
}
.highslide-loading {
display: block;
color: white;
font-size: 9px;
font-weight: bold;
text-transform: uppercase;
text-decoration: none;
padding: 3px;
border-top: 1px solid white;
border-bottom: 1px solid white;
background-color: black;
/*
padding-left: 22px;
background-image: url(highslide/graphics/loader.gif);
background-repeat: no-repeat;
background-position: 3px 1px;
*/
}
a.highslide-credits,
a.highslide-credits i {
padding: 2px;
color: silver;
text-decoration: none;
font-size: 10px;
}
a.highslide-credits:hover,
a.highslide-credits:hover i {
color: white;
background-color: gray;
}
</style>
<div id="highslide-container"></div>
<?php
define("SAFEMODE", @ini_get("safe_mode") ? true : false);
if (isset($photo_id) && !isNum($photo_id)) fallback(FUSION_SELF);
if (isset($album_id) && !isNum($album_id)) fallback(FUSION_SELF);
if (!isset($rowstart) || !isNum($rowstart)) $rowstart = 0;
if(isset($photo_id)){
$result = dbquery(
"SELECT tp.*, ta.*, tu.user_id,user_name, SUM(tr.rating_vote) AS sum_rating, COUNT(tr.rating_item_id) AS count_votes
FROM ".$db_prefix."photos tp
LEFT JOIN ".$db_prefix."photo_albums ta USING (album_id)
LEFT JOIN ".$db_prefix."users tu ON tp.photo_user=tu.user_id
LEFT JOIN ".$db_prefix."ratings tr ON tr.rating_item_id = tp.photo_id AND tr.rating_type='P'
WHERE photo_id='$photo_id' GROUP BY tp.photo_id"
);
$data = dbarray($result);
if (!checkgroup($data['album_access'])) {
fallback(FUSION_SELF);
} else {
define("PHOTODIR", PHOTOS.(!SAFEMODE ? "album_".$data['album_id']."/" : ""));
include INCLUDES."comments_include.php";
include INCLUDES."ratings_include.php";
$result=dbquery("UPDATE ".$db_prefix."photos SET photo_views=(photo_views+1) WHERE photo_id='".$photo_id."'");
$pres = dbquery("SELECT photo_id FROM ".$db_prefix."photos WHERE photo_order='".($data['photo_order']-1)."' AND album_id='".$data['album_id']."'");
$nres = dbquery("SELECT photo_id FROM ".$db_prefix."photos WHERE photo_order='".($data['photo_order']+1)."' AND album_id='".$data['album_id']."'");
if (dbrows($pres)) $prev = dbarray($pres);
if (dbrows($nres)) $next = dbarray($nres);
opentable($locale['450']);
if ($data['photo_thumb2']) $photo_thumb = PHOTODIR.$data['photo_thumb2'];
$photo_file = PHOTODIR.$data['photo_filename'];
$photo_size = @getimagesize($photo_file);
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td class='tbl2'>\n";
echo "<a href='".FUSION_SELF."'>".$locale['400']."</a> >\n";
echo "<a href='".FUSION_SELF."?album_id=".$data['album_id']."'>".$data['album_title']."</a> >\n";
echo "<a href='".FUSION_SELF."?photo_id=$photo_id'>".$data['photo_title']."</a>\n</td>\n";
if (isset($prev) || isset($next)) {
if (isset($prev)) echo "<td width='1%' class='tbl2'><a href='".FUSION_SELF."?photo_id=".$prev['photo_id']."' title='".$locale['451']."'><<</a></td>\n";
if (isset($next)) echo "<td width='1%' class='tbl2'><a href='".FUSION_SELF."?photo_id=".$next['photo_id']."' title='".$locale['452']."'>>></a></td>\n";
}
echo "</tr>\n</table>\n";
tablebreak();
echo "<div align='center' style='margin:5px;'>\n";
echo"<a id='thumb".$data['photo_id']."' href='".PHOTODIR.$data['photo_filename']."' class=\"highslide\" onclick=\"return hs.expand(this)\">
<img src='".PHOTODIR.$data['photo_thumb2']."' alt=\"Highslide JS\"
title='".$locale['431']."'/></a>";
//echo "<div align='center' style='margin:5px;'>\n";
//echo "<a href=\"javascript:;\" onclick=\"window.open('showphoto.php?photo_id=".$data['photo_id']."','','scrollbars=yes,toolbar=no,status=no,resizable=yes,width=".($photo_size[0]+20).",height=".($photo_size[1]+20)."')\">";
//echo "<img src='".(isset($photo_thumb) ? $photo_thumb : $photo_file)."' alt='".$data['photo_filename']."' title='".$locale['453']."' border='0'></a>\n</div>\n";
echo "<div align='center' style='margin:5px 0px 5px 0px'>\n";
if ($data['photo_description']) echo nl2br(parseubb($data['photo_description']))."</b><br><br>\n";
echo $locale['433'].showdate("shortdate", $data['photo_datestamp'])."<br>\n";
echo $locale['434']."<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a><br>\n";
echo $locale['454']."$photo_size[0] x $photo_size[1] ".$locale['455']."<br>\n";
echo $locale['456'].parsebytesize(filesize($photo_file))."<br>\n";
echo $locale['436'].dbcount("(comment_id)", "comments", "comment_type='P' AND comment_item_id='".$data['photo_id']."'")."<br>\n";
echo $locale['437'].($data['count_votes'] > 0 ? str_repeat("<img src='".IMAGES."star.gif' alt='*' style='vertical-align:middle'>", ceil($data['sum_rating'] / $data['count_votes'])) : $locale['438'])."<br>\n";
echo $locale['457'].$data['photo_views']."\n";
closetable();
if ($data['photo_allow_comments'] == "1") showcomments("P","photos","photo_id",$photo_id,FUSION_SELF."?photo_id=$photo_id");
if ($data['photo_allow_ratings']) showratings("P",$photo_id,FUSION_SELF."?photo_id=$photo_id");
}
} elseif (isset($album_id)) {
define("PHOTODIR", PHOTOS.(!SAFEMODE ? "album_".$album_id."/" : ""));
$result = dbquery(
"SELECT ta.* FROM ".$db_prefix."photo_albums ta WHERE album_id='$album_id'"
);
if (!dbrows($result)) {
fallback(FUSION_SELF);
} else {
$data = dbarray($result);
if (!checkgroup($data['album_access'])) {
fallback(FUSION_SELF);
} else {
$rows = dbcount("(photo_id)", "photos", "album_id='$album_id'");
if ($rows) {
tablebreak();
opentable($locale['430']);
$result = dbquery(
"SELECT tp.*, tu.user_id,user_name, SUM(tr.rating_vote) AS sum_rating, COUNT(tr.rating_item_id) AS count_votes
FROM ".$db_prefix."photos tp
LEFT JOIN ".$db_prefix."users tu ON tp.photo_user=tu.user_id
LEFT JOIN ".$db_prefix."ratings tr ON tr.rating_item_id = tp.photo_id AND tr.rating_type='P'
WHERE album_id=$album_id GROUP BY photo_id ORDER BY photo_order LIMIT $rowstart,".$settings['thumbs_per_page']
);
$counter = 0;
echo "<table cellpadding='0' cellspacing='1' width='100%'>\n<tr>\n<td class='tbl2'>\n";
echo "<a href='".FUSION_SELF."'>".$locale['400']."</a> >\n";
echo "<a href='".FUSION_SELF."?album_id=".$data['album_id']."'>".$data['album_title']."</a>\n";
echo "</td>\n</tr>\n</table>\n";
tablebreak();
echo "<table cellpadding='0' cellspacing='1' width='100%'>\n<tr>\n";
while ($data = dbarray($result)) {
if ($counter != 0 && ($counter % $settings['thumbs_per_row'] == 0)) echo "</tr>\n<tr>\n";
echo "<td align='center' valign='top' class='tbl'>\n";
echo "<b>".$data['photo_title']."</b><br><br>\n";
echo"
<div class='highslide-caption' id='caption-for-thumb".$data['photo_id']."'>";
//THIS SETS DESCRIPTION CAP
if($data['photo_description'] !="") {
echo"<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'><tr><td class='tbl1' width='100'>Description:</td><td class='tbl1'> ".$data['photo_description']."</td></tr></table>";
}
//THIS SETS COMMENTS CAP
$result1 = dbquery("SELECT * FROM ".$db_prefix."comments WHERE comment_type='P' AND comment_item_id='".$data['photo_id']."' ORDER BY comment_id DESC LIMIT 3");
if(dbrows($result1)) {
echo"<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'><tr><td align='center' class='tbl1' colspan='2'><b>Comments:</b></td></tr>";
while ($data1 = dbarray($result1)) {
$commentname = dbquery("SELECT user_name FROM ".$db_prefix."users WHERE user_id='".$data1['comment_name']."'");
$commentname2 = dbarray($commentname);
$commentname3 = $commentname2['user_name'];
echo"
<tr><td class='tbl1' width='100'>Comment by: ".$commentname3."</td><td class='tbl1'>".nl2br(parseubb(parsesmileys($data1['comment_message'])))."</td></tr>";
}
echo"
</table>";
}
//THIS SETS COUNT CAP
$calculate_comments = dbcount("(comment_id)", "comments", "comment_type='P' AND comment_item_id='".$data['photo_id']."'");
if($calculate_comments >3) {
echo"
<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'><tr>
<td align='center' class='tbl1' colspan='2'>You are viewing the 3 latest comments. [<a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."' class='small'>Click here to see all comments</a>] (there is currently ".dbcount("(comment_id)", "comments", "comment_type='P' AND comment_item_id='".$data['photo_id']."'")." comments)</td></tr></table>";
}
echo"
</div>
<a id='thumb".$data['photo_id']."' href='".PHOTODIR.$data['photo_filename']."' class=\"highslide\" onclick=\"return hs.expand(this)\">
<img src='".PHOTODIR.$data['photo_thumb1']."' alt=\"Highslide JS\"
title='".$locale['431']."'/></a>";
echo "<br><br>\n<span class='small'>\n";
echo $locale['433'].showdate("shortdate", $data['photo_datestamp'])."<br>\n";
echo $locale['434']."<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a><br>\n";
echo "<a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."' class='small'>Komentuoti</a><br>\n";
echo" ".$locale['436'].dbcount("(comment_id)", "comments", "comment_type='P' AND comment_item_id='".$data['photo_id']."'")."<br>\n";
echo $locale['437'].($data['count_votes'] > 0 ? str_repeat("<img src='".IMAGES."star.gif' alt='*' style='vertical-align:middle'>", ceil($data['sum_rating'] / $data['count_votes'])) : $locale['438'])."<br>\n";
echo $locale['435'].$data['photo_views']."</span><br>\n";
echo "</td>\n";
$counter++;
}
echo "</tr>\n</table>\n";
closetable();
}
if ($rows > $settings['thumbs_per_page']) echo "<div align='center' style='margin-top:5px;'>\n".makePageNav($rowstart,$settings['thumbs_per_page'],$rows,3,FUSION_SELF."?album_id=$album_id&")."\n</div>\n";
}
}
} else {
opentable($locale['400']);
$rows = dbcount("(album_id)", "photo_albums", groupaccess('album_access'));
if ($rows) {
$result = dbquery(
"SELECT ta.*, tu.user_id,user_name FROM ".$db_prefix."photo_albums ta
LEFT JOIN ".$db_prefix."users tu ON ta.album_user=tu.user_id
WHERE ".groupaccess('album_access')." ORDER BY album_order
LIMIT $rowstart,".$settings['thumbs_per_page']
);
$counter = 0; $r = 0; $k = 1;
echo "<table cellpadding='0' cellspacing='1' width='100%'>\n<tr>\n";
while ($data = dbarray($result)) {
if ($counter != 0 && ($counter % $settings['thumbs_per_row'] == 0)) echo "</tr>\n<tr>\n";
echo "<td align='center' valign='top' class='tbl'>\n";
echo "<b>".$data['album_title']."</b><br><br>\n<a href='".FUSION_SELF."?album_id=".$data['album_id']."'>";
if ($data['album_thumb'] && file_exists(PHOTOS.$data['album_thumb'])){
echo "<img src='".PHOTOS.$data['album_thumb']."' alt='".$data['album_thumb']."' title='".$locale['401']."' border='0'>";
} else {
echo $locale['402'];
}
echo "</a><br><br>\n<span class='small'>\n";
echo $locale['403'].showdate("shortdate", $data['album_datestamp'])."<br>\n";
echo $locale['404']."<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a><br>\n";
echo $locale['405'].dbcount("(photo_id)", "photos", "album_id='".$data['album_id']."'")."</span><br>\n";
echo "</td>\n";
$counter++; $k++;
}
echo "</tr>\n</table>\n";
closetable();
if ($rows > $settings['thumbs_per_page']) echo "<div align='center' style='margin-top:5px;'>\n".makePageNav($rowstart,$settings['thumbs_per_page'],$rows,3)."\n</div>\n";
}else{
echo "<center><br>".$locale['406']."<br><br></center>\n";
closetable();
}
}
require "side_right.php";
require "footer.php";
?>
Redagavo Fanio· 2008 Spa. 9 18:10:13
Parašė Jaunelis· 2008 Spa. 9 18:10:38
#10
Fanio - dėkui šen jus geri kažkokie ;) dar norėčiau paprašyti gal galit panaikinti tuos užrašus kur idėjimo data,komentuoti,idėjo, na kad tik foto rodytu , jai galit :)
Parašė Fanio· 2008 Spa. 9 18:10:43
#11
Padariau kaip prašei.
<?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."photogallery.php";
?>
<script type="text/javascript" src="highslide/highslide.js"></script>
<!--
2) Initialize the hs object and optionally override the settings defined at the top
of the highslide.js file. The parameter hs.graphicsDir is important!
-->
<script type="text/javascript">
hs.graphicsDir = 'highslide/graphics/';
hs.outlineType = 'rounded-white';
window.onload = function() {
hs.preloadImages(5);
}
</script>
<!--
3) These CSS-styles are necessary for the script to work. You may also put
them in an external CSS-file. See the webpage for documentation.
-->
<style type="text/css">
* {
font-family: Verdana, Helvetica;
font-size: 8pt;
}
.highslide {
cursor: url(highslide/graphics/zoomin.cur), pointer;
outline: none;
}
.highslide img {
border: 2px solid gray;
}
.highslide:hover img {
border: 2px solid white;
}
.highslide-image {
border: 2px solid white;
}
.highslide-image-blur {
}
.highslide-caption {
display: none;
border: 2px solid white;
border-top: none;
font-family: Verdana, Helvetica;
font-size: 10pt;
padding: 5px;
background-color: white;
}
.highslide-display-block {
display: block;
}
.highslide-display-none {
display: none;
}
.highslide-loading {
display: block;
color: white;
font-size: 9px;
font-weight: bold;
text-transform: uppercase;
text-decoration: none;
padding: 3px;
border-top: 1px solid white;
border-bottom: 1px solid white;
background-color: black;
/*
padding-left: 22px;
background-image: url(highslide/graphics/loader.gif);
background-repeat: no-repeat;
background-position: 3px 1px;
*/
}
a.highslide-credits,
a.highslide-credits i {
padding: 2px;
color: silver;
text-decoration: none;
font-size: 10px;
}
a.highslide-credits:hover,
a.highslide-credits:hover i {
color: white;
background-color: gray;
}
</style>
<div id="highslide-container"></div>
<?php
define("SAFEMODE", @ini_get("safe_mode") ? true : false);
if (isset($photo_id) && !isNum($photo_id)) fallback(FUSION_SELF);
if (isset($album_id) && !isNum($album_id)) fallback(FUSION_SELF);
if (!isset($rowstart) || !isNum($rowstart)) $rowstart = 0;
if(isset($photo_id)){
$result = dbquery(
"SELECT tp.*, ta.*, tu.user_id,user_name, SUM(tr.rating_vote) AS sum_rating, COUNT(tr.rating_item_id) AS count_votes
FROM ".$db_prefix."photos tp
LEFT JOIN ".$db_prefix."photo_albums ta USING (album_id)
LEFT JOIN ".$db_prefix."users tu ON tp.photo_user=tu.user_id
LEFT JOIN ".$db_prefix."ratings tr ON tr.rating_item_id = tp.photo_id AND tr.rating_type='P'
WHERE photo_id='$photo_id' GROUP BY tp.photo_id"
);
$data = dbarray($result);
if (!checkgroup($data['album_access'])) {
fallback(FUSION_SELF);
} else {
define("PHOTODIR", PHOTOS.(!SAFEMODE ? "album_".$data['album_id']."/" : ""));
include INCLUDES."comments_include.php";
include INCLUDES."ratings_include.php";
$result=dbquery("UPDATE ".$db_prefix."photos SET photo_views=(photo_views+1) WHERE photo_id='".$photo_id."'");
$pres = dbquery("SELECT photo_id FROM ".$db_prefix."photos WHERE photo_order='".($data['photo_order']-1)."' AND album_id='".$data['album_id']."'");
$nres = dbquery("SELECT photo_id FROM ".$db_prefix."photos WHERE photo_order='".($data['photo_order']+1)."' AND album_id='".$data['album_id']."'");
if (dbrows($pres)) $prev = dbarray($pres);
if (dbrows($nres)) $next = dbarray($nres);
opentable($locale['450']);
if ($data['photo_thumb2']) $photo_thumb = PHOTODIR.$data['photo_thumb2'];
$photo_file = PHOTODIR.$data['photo_filename'];
$photo_size = @getimagesize($photo_file);
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td class='tbl2'>\n";
echo "<a href='".FUSION_SELF."'>".$locale['400']."</a> >\n";
echo "<a href='".FUSION_SELF."?album_id=".$data['album_id']."'>".$data['album_title']."</a> >\n";
echo "<a href='".FUSION_SELF."?photo_id=$photo_id'>".$data['photo_title']."</a>\n</td>\n";
if (isset($prev) || isset($next)) {
if (isset($prev)) echo "<td width='1%' class='tbl2'><a href='".FUSION_SELF."?photo_id=".$prev['photo_id']."' title='".$locale['451']."'><<</a></td>\n";
if (isset($next)) echo "<td width='1%' class='tbl2'><a href='".FUSION_SELF."?photo_id=".$next['photo_id']."' title='".$locale['452']."'>>></a></td>\n";
}
echo "</tr>\n</table>\n";
tablebreak();
echo "<div align='center' style='margin:5px;'>\n";
echo"<a id='thumb".$data['photo_id']."' href='".PHOTODIR.$data['photo_filename']."' class=\"highslide\" onclick=\"return hs.expand(this)\">
<img src='".PHOTODIR.$data['photo_thumb2']."' alt=\"Highslide JS\"
title='".$locale['431']."'/></a>";
//echo "<div align='center' style='margin:5px;'>\n";
//echo "<a href=\"javascript:;\" onclick=\"window.open('showphoto.php?photo_id=".$data['photo_id']."','','scrollbars=yes,toolbar=no,status=no,resizable=yes,width=".($photo_size[0]+20).",height=".($photo_size[1]+20)."')\">";
//echo "<img src='".(isset($photo_thumb) ? $photo_thumb : $photo_file)."' alt='".$data['photo_filename']."' title='".$locale['453']."' border='0'></a>\n</div>\n";
echo "<div align='center' style='margin:5px 0px 5px 0px'>\n";
if ($data['photo_description']) echo nl2br(parseubb($data['photo_description']))."</b><br><br>\n";
echo $locale['454']."$photo_size[0] x $photo_size[1] ".$locale['455']."<br>\n";
echo $locale['456'].parsebytesize(filesize($photo_file))."<br>\n";
echo $locale['436'].dbcount("(comment_id)", "comments", "comment_type='P' AND comment_item_id='".$data['photo_id']."'")."<br>\n";
echo $locale['437'].($data['count_votes'] > 0 ? str_repeat("<img src='".IMAGES."star.gif' alt='*' style='vertical-align:middle'>", ceil($data['sum_rating'] / $data['count_votes'])) : $locale['438'])."<br>\n";
echo $locale['457'].$data['photo_views']."\n";
closetable();
if ($data['photo_allow_comments'] == "1") showcomments("P","photos","photo_id",$photo_id,FUSION_SELF."?photo_id=$photo_id");
if ($data['photo_allow_ratings']) showratings("P",$photo_id,FUSION_SELF."?photo_id=$photo_id");
}
} elseif (isset($album_id)) {
define("PHOTODIR", PHOTOS.(!SAFEMODE ? "album_".$album_id."/" : ""));
$result = dbquery(
"SELECT ta.* FROM ".$db_prefix."photo_albums ta WHERE album_id='$album_id'"
);
if (!dbrows($result)) {
fallback(FUSION_SELF);
} else {
$data = dbarray($result);
if (!checkgroup($data['album_access'])) {
fallback(FUSION_SELF);
} else {
$rows = dbcount("(photo_id)", "photos", "album_id='$album_id'");
if ($rows) {
tablebreak();
opentable($locale['430']);
$result = dbquery(
"SELECT tp.*, tu.user_id,user_name, SUM(tr.rating_vote) AS sum_rating, COUNT(tr.rating_item_id) AS count_votes
FROM ".$db_prefix."photos tp
LEFT JOIN ".$db_prefix."users tu ON tp.photo_user=tu.user_id
LEFT JOIN ".$db_prefix."ratings tr ON tr.rating_item_id = tp.photo_id AND tr.rating_type='P'
WHERE album_id=$album_id GROUP BY photo_id ORDER BY photo_order LIMIT $rowstart,".$settings['thumbs_per_page']
);
$counter = 0;
echo "<table cellpadding='0' cellspacing='1' width='100%'>\n<tr>\n<td class='tbl2'>\n";
echo "<a href='".FUSION_SELF."'>".$locale['400']."</a> >\n";
echo "<a href='".FUSION_SELF."?album_id=".$data['album_id']."'>".$data['album_title']."</a>\n";
echo "</td>\n</tr>\n</table>\n";
tablebreak();
echo "<table cellpadding='0' cellspacing='1' width='100%'>\n<tr>\n";
while ($data = dbarray($result)) {
if ($counter != 0 && ($counter % $settings['thumbs_per_row'] == 0)) echo "</tr>\n<tr>\n";
echo "<td align='center' valign='top' class='tbl'>\n";
echo "<b>".$data['photo_title']."</b><br><br>\n";
echo"
<div class='highslide-caption' id='caption-for-thumb".$data['photo_id']."'>";
//THIS SETS DESCRIPTION CAP
if($data['photo_description'] !="") {
echo"<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'><tr><td class='tbl1' width='100'>Description:</td><td class='tbl1'> ".$data['photo_description']."</td></tr></table>";
}
//THIS SETS COMMENTS CAP
$result1 = dbquery("SELECT * FROM ".$db_prefix."comments WHERE comment_type='P' AND comment_item_id='".$data['photo_id']."' ORDER BY comment_id DESC LIMIT 3");
if(dbrows($result1)) {
echo"<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'><tr><td align='center' class='tbl1' colspan='2'><b>Comments:</b></td></tr>";
while ($data1 = dbarray($result1)) {
$commentname = dbquery("SELECT user_name FROM ".$db_prefix."users WHERE user_id='".$data1['comment_name']."'");
$commentname2 = dbarray($commentname);
$commentname3 = $commentname2['user_name'];
echo"
<tr><td class='tbl1' width='100'>Comment by: ".$commentname3."</td><td class='tbl1'>".nl2br(parseubb(parsesmileys($data1['comment_message'])))."</td></tr>";
}
echo"
</table>";
}
//THIS SETS COUNT CAP
$calculate_comments = dbcount("(comment_id)", "comments", "comment_type='P' AND comment_item_id='".$data['photo_id']."'");
if($calculate_comments >3) {
echo"
<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'><tr>
<td align='center' class='tbl1' colspan='2'>You are viewing the 3 latest comments. [<a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."' class='small'>Click here to see all comments</a>] (there is currently ".dbcount("(comment_id)", "comments", "comment_type='P' AND comment_item_id='".$data['photo_id']."'")." comments)</td></tr></table>";
}
echo"
</div>
<a id='thumb".$data['photo_id']."' href='".PHOTODIR.$data['photo_filename']."' class=\"highslide\" onclick=\"return hs.expand(this)\">
<img src='".PHOTODIR.$data['photo_thumb1']."' alt=\"Highslide JS\"
title='".$locale['431']."'/></a>";
$counter++;
}
echo "</tr>\n</table>\n";
closetable();
}
if ($rows > $settings['thumbs_per_page']) echo "<div align='center' style='margin-top:5px;'>\n".makePageNav($rowstart,$settings['thumbs_per_page'],$rows,3,FUSION_SELF."?album_id=$album_id&")."\n</div>\n";
}
}
} else {
opentable($locale['400']);
$rows = dbcount("(album_id)", "photo_albums", groupaccess('album_access'));
if ($rows) {
$result = dbquery(
"SELECT ta.*, tu.user_id,user_name FROM ".$db_prefix."photo_albums ta
LEFT JOIN ".$db_prefix."users tu ON ta.album_user=tu.user_id
WHERE ".groupaccess('album_access')." ORDER BY album_order
LIMIT $rowstart,".$settings['thumbs_per_page']
);
$counter = 0; $r = 0; $k = 1;
echo "<table cellpadding='0' cellspacing='1' width='100%'>\n<tr>\n";
while ($data = dbarray($result)) {
if ($counter != 0 && ($counter % $settings['thumbs_per_row'] == 0)) echo "</tr>\n<tr>\n";
echo "<td align='center' valign='top' class='tbl'>\n";
echo "<b>".$data['album_title']."</b><br><br>\n<a href='".FUSION_SELF."?album_id=".$data['album_id']."'>";
if ($data['album_thumb'] && file_exists(PHOTOS.$data['album_thumb'])){
echo "<img src='".PHOTOS.$data['album_thumb']."' alt='".$data['album_thumb']."' title='".$locale['401']."' border='0'>";
} else {
echo $locale['402'];
}
echo "</a><br><br>\n<span class='small'>\n";
echo $locale['403'].showdate("shortdate", $data['album_datestamp'])."<br>\n";
echo $locale['404']."<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a><br>\n";
echo $locale['405'].dbcount("(photo_id)", "photos", "album_id='".$data['album_id']."'")."</span><br>\n";
echo "</td>\n";
$counter++; $k++;
}
echo "</tr>\n</table>\n";
closetable();
if ($rows > $settings['thumbs_per_page']) echo "<div align='center' style='margin-top:5px;'>\n".makePageNav($rowstart,$settings['thumbs_per_page'],$rows,3)."\n</div>\n";
}else{
echo "<center><br>".$locale['406']."<br><br></center>\n";
closetable();
}
}
require "side_right.php";
require "footer.php";
?>
Parašė Jaunelis· 2008 Spa. 9 18:10:47
#12
Fanio tikrai didelis AČIŪ tau :)
Redagavo Jaunelis· 2008 Spa. 9 19:10:24
Parašė Jaunelis· 2008 Spa. 9 20:10:59
#13
turiu klausima kaip galima butu theme sucentruoti visoms rezoliucijoms ???
Parašė Jaunelis· 2008 Spa. 9 21:10:28
#14
Va man rodo viską normalej o drauguj rodo tema taip:
....
jau pasidariau
Redagavo Jaunelis· 2008 Spa. 9 23:10:44
Parašė Jaunelis· 2008 Spa. 14 19:10:34
#15
Turiu problema su forumu gal padėsite išspresti kodėl taip yra?
Parašė LeBro· 2008 Spa. 14 19:10:12
#16
kazka jau iterpinejai turbut... truksta arba per daug kazkokiu tagu prideta :)
Parašė Jaunelis· 2008 Spa. 14 19:10:35
#17
Styles:
a {
color : #650000;
text-decoration : none;
}
a:hover {
color : #650000;
text-decoration : underline;
}
a.side {
color : #650000;
text-decoration : none;
}
a:hover.side {
color : #650000;
text-decoration : underline;
}
a.white {
color : #ddd;
text-decoration : none;
}
a:hover.white {
color : #ddd;
text-decoration : underline;
}
body {
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 : #000;
}
.outer-border {
border : 0px solid #000;
}
.sub-header {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #000;
background-color : #888;
border-top : 1px solid #000;
border-bottom : 1px solid #000;
padding : 5px;
}
.full-header {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #000;
background-color : #444;
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 : #000;
height : 20px;
border : 1px solid #FFF;
margin-top : 2px;
}
.textbox {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #7a0000;
border : 1px solid #FFF;
}
.main-body {
font-size : 11px;
color : #000;
background-image: url('images/mainbg.png');
padding : 12px;
}
.side-body {
font-size : 10px;
color : #000;
background-image: url('images/panelbg.png');
padding : 6px;
}
.main-bg {
color : #000;
padding : 10px 5px 10px 5px;
}
.border {
border : 0px solid #e1e1e1;
}
.side-border-left {
color : #000;
padding : 10px 5px 10px 10px;
}
.side-border-right {
color : #000;
padding : 10px 10px 10px 5px;
}
.news-footer {
font-size : 10px;
color : #000;
background-image: url('images/2.png');
padding : 23px ;
}
.capmain {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 11px;
font-weight : bold;
color : #000;
background-image: url('images/1.png');
padding : 16px;
}
.scapmain {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
font-weight : bold;
color : #000;
background-image: url('images/p1.png');
border-bottom : 0px solid #e1e1e1;
padding : 16px;
}
.tbl-border {
color : #7a0000;
}
.tbl {
font-size : 11px;
color : #7a0000;
border : 1px solid #7f4307;
padding : 4px;
}
.tbl1 {
font-size : 11px;
color : #7a0000;
border : 1px solid #7f4307;
padding : 4px;
}
.tbl2 {
font-size : 11px;
border : 1px solid #7f4307;
padding : 4px;
}
.forum-caption {
font-size : 11px;
font-weight : bold;
color : #000;
background-image: url('images/qoute.gif');
padding : 6px;
}
.quote {
font-size : 11px;
color : #000;
padding : 4px;
margin : 0px 20px 0px 20px;
border : 1px solid #bbb;
}
.poll {
height : 12px;
border : 1px solid #bbb;
}
.comment-name {
font-weight : bold;
color : #000;
}
.shoutboxname {
font-weight : bold;
color : #000;
}
.shoutbox {
color : #000;
}
.shoutboxdate {
font-size : 10px;
color : #000;
}
.small {
font-size : 10px;
font-weight : normal;
}
.small2 {
font-size : 10px;
font-weight : normal;
color : #000;
}
.side-small {
font-size : 10px;
font-weight : normal;
color : #000;
}
.side-label {
color : #000;
padding : 2px 2px 3px 2px;
}
Parašė Jaunelis· 2008 Spa. 15 22:10:07
#18
gal galit padėti :(
Parašė bad_user· 2008 Spa. 15 22:10:14
#19
Prie ko čia styles? Tu čia viewthread tvarkykis :|
Parašė Jaunelis· 2008 Spa. 15 22:10:06
#20
Dėkui jau susitvarkiau :)
Parašė Jaunelis· 2008 Spa. 29 23:10:34
#21
1.Taigi kas galėtu man padėti man reiktų kad naujienose kur buna ten parashe admin data komentarai skaityti daugiau ir pns tai man reiktų kad butų tik skaityti daugiau. dėku iš anksto kas padėsit ir jai dar nebusiu daves +10 tai duosiu ;)
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='494'>
<tr>
<td align='center' 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']).newsopts;
echo "</td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='494' cellpadding='0' cellspacing='0'>
<tr>
<td align='center' 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";
}
2.kur ką keisti kad nebutų to tarpo tarp footerio(apibraukta):
susitvarkiau
Redagavo Jaunelis· 2008 Lap. 2 13:11:14
Parašė Jaunelis· 2008 Lap. 2 13:11:15
#22
Na dar vienas klausimas dabar dėl prisijungimo headerije....
man rodo šitaip:
http://img99.imageshack.us/my.ph...ityiq0.jpg
o jam rodo:
http://img148.imageshack.us/my.p...yltwa2.jpg
Va
header.php
<?php
global $theme_width,$settings,$aidlink,$locale,$userdata;
echo "<table width='736' border='0' align='left' cellpadding='0' cellspacing='0' background='".THEME."images/headeris.jpg' height='206 style='background-repeat: no-repeat;'>
<tr>
<td width='235' style='padding-right: 500px; padding-left: 0px; padding-bottom: 10px; padding-top:10px;' valign='middle'>";
if (iMEMBER) {
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<table width='235' border='0' cellspacing='2' cellpadding='2'>
<tr>
<td>\n";
if ($userdata['user_avatar'] != "") {
echo "<center><img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='100' height='100' style='border:1px solid #999999'></center>\n";
} else {
echo "<center><img src='".THEME."images/noavatar.gif' width='100' height='100' border='0'></center>\n";
}
echo "</td>
<td valign='top'><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='textbox'>Redaguoti profili</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='textbox'>zinutes [naujo: <b><span style='color:#990000'>".sprintf($msg_count)."</span></b>]</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='textbox'>Nariai</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."' class='textbox'>Mano profilis</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='textbox'>Administracija</a><br>\n";
}
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='textbox'>".$locale['084']."</a><br><br>
<b><span class='ip'>IP: </span></b>";
$userip = $_SERVER['REMOTE_ADDR'];
$host = gethostbyaddr($userip);
echo "<span class='ip'>".$userip."</span><br /></td></tr></table>\n";
} else {
echo "<table width='170' border='0' cellspacing='0' cellpadding='0' align='center'><form name='loginform' method='post' action='".FUSION_SELF."'>
<tr>
<td align='right' class='ip'>Vardas: </td>
<td> <input type='text' name='user_name' class='textbox' style='width:100px;filter:alpha(opacity=100)'></td>
</tr>
<tr>
<td align='right' class='ip'>".$locale['062'].": </td>
<td> <input type='password' name='user_pass' class='textbox' style='width:100px;filter:alpha(opacity=100)'></td>
</tr>
<tr>
<td align='right'><input type='checkbox' name='remember_me' value='y'></td>
<td> <input type='submit' name='login' value='Prisijungti' class='button'></td>
</tr>
</form>\n";
if ($settings['enable_registration']) {
echo "<a href=".BASEDIR."register.php>Registracija</a> / <a href=".BASEDIR."lostpassword.php>Slaptazodis</a>\n";
}
echo"</table>\n";
}
echo "</td>
</tr>
</table>\n";
echo "<table width='100%' cellpadding='4' bgcolor='#F8F8F8' cellspacing='0' border='0'><tr>";
?>
Redagavo Jaunelis· 2008 Lap. 2 13:11:28
Parašė Toonis· 2008 Lap. 2 13:11:27
#23
Ir vėl tu šūdą kuri, bliad bliad.
Parašė Jaunelis· 2008 Lap. 2 13:11:58
#24
Toonis parašė:
Ir vėl tu šūdą kuri, bliad bliad.
Pats tu šūdas! jai nenori padėt tai vali iš šitos temos... pz neprašiau ašv čia komentuot jau net padėt nieks negali... nu čia pox jau susitvarkiau :[
Parašė Toonis· 2008 Lap. 2 13:11:42
#25
Jaunelis parašė:
Pats tu šūdas! jai nenori padėt tai vali iš šitos temos... pz neprašiau ašv čia komentuot jau net padėt nieks negali... nu čia pox jau susitvarkiau :[
Nesimušk, ne riaušės. ;>> Prisipažink, kad šūdus kuri, lievas tikrai.
Parašė Jaunelis· 2008 Lap. 16 14:11:17
#26
<?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."members-profile.php";
include LOCALE.LOCALESET."user_fields.php";
if (!isset($group_id)) {
if (!isset($lookup) || !isNum($lookup)) fallback("index.php");
$result = dbquery("SELECT * FROM ".$db_prefix."users WHERE user_id='$lookup'");
if (dbrows($result)) { $data = dbarray($result); } else { redirect("index.php"); }
opentable($locale['420']);
echo "<table align='center' cellpadding='0' cellspacing='1' width='400' class='tbl-border'>
<tr>
<td colspan='3'>
<table align='center' cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='tbl2'><b>".$data['user_name']."</b></td>
<td align='right' class='tbl2'>".getuserlevel($data['user_level'])."</td>
</tr>
</table>
</td>
<tr>
<td align='center' width='150' rowspan='5' class='tbl2'>\n";
echo ($data['user_avatar'] ? "<img src='".IMAGES."avatars/".$data['user_avatar']."' alt='".$locale['u017']."'>" : $locale['u046'])."</td>
<td width='1%' class='tbl1' style='white-space:nowrap'><b>".$locale['u009']."</b></td>
<td class='tbl1'>".($data['user_location'] ? $data['user_location'] : $locale['u048'])."</td>
</tr>
<tr>
<td width='1%' class='tbl2' style='white-space:nowrap'><b>".$locale['u010']."</b></td>
<td class='tbl2'>";
if ($data['user_birthdate'] != "0000-00-00") {
$months = explode("|", $locale['months']);
$user_birthdate = explode("-", $data['user_birthdate']);
echo $months[number_format($user_birthdate['1'])]." ".number_format($user_birthdate['2'])." ".$user_birthdate['0'];
} else {
echo $locale['u048'];
}
echo "</td>
</tr>
<tr>
<td width='1%' class='tbl1' style='white-space:nowrap'><b>".$locale['u021']."</b></td>
<td class='tbl1'>".($data['user_aim'] ? $data['user_aim'] : $locale['u048'])."</td>
</tr>
<tr>
<td width='1%' class='tbl2' style='white-space:nowrap'><b>".$locale['u011']."</b></td>
<td class='tbl2'>".($data['user_icq'] ? $data['user_icq'] : $locale['u048'])."</td>
</tr>
<tr>
<td width='1%' class='tbl1' style='white-space:nowrap'><b>".$locale['u012']."</b></td>
<td class='tbl1'>".($data['user_msn'] ? $data['user_msn'] : $locale['u048'])."</td>
</tr>
<tr>
<td align='center' class='tbl1'>\n";
if ($data['user_hide_email'] != "1" || iADMIN) {
echo "[<a href='mailto:".str_replace("@","@",$data['user_email'])."' title='".str_replace("@","@",$data['user_email'])."'>".$locale['u051']."</a>]\n";
}
if ($data['user_web']) {
$urlprefix = !strstr($data['user_web'], "http://") ? "http://" : "";
echo "[<a href='".$urlprefix.$data['user_web']."' title='".$urlprefix.$data['user_web']."' target='_blank'>".$locale['u052']."</a>]\n";
}
if (iMEMBER && $data['user_id'] != $userdata['user_id']) {
echo "[<a href='messages.php?msg_send=".$data['user_id']."' title='".$locale['u060']."'>".$locale['u053']."</a>]\n";
}
echo "</td>
<td width='1%' class='tbl2' style='white-space:nowrap'><b>".$locale['u013']."</b></td>
<td class='tbl2'>".($data['user_yahoo'] ? $data['user_yahoo'] : $locale['u048'])."</td>
</tr>
</table>\n";
tablebreak();
echo "<table align='center' cellpadding='0' cellspacing='1' width='400' class='tbl-border'>
<tr>
<td class='tbl2' colspan='2'><b>".$locale['422']."</b></td>
</tr>
<tr>
<td width='1%' class='tbl1' style='white-space:nowrap'><b>".$locale['u040']."</b></td>
<td class='tbl1'>".showdate("longdate", $data['user_joined'])."</td>
</tr>
<tr>
<td width='1%' class='tbl2' style='white-space:nowrap'><b>".$locale['u044']."</b></td>
<td class='tbl2'>".($data['user_lastvisit'] != 0 ? showdate("longdate", $data['user_lastvisit']) : $locale['u049'])."</td>
</tr>
<tr>
<td width='1%' class='tbl1' style='white-space:nowrap'><b>".$locale['u041']."</b></td>
<td class='tbl1'>".number_format(dbcount("(shout_id)", "shoutbox", "shout_name='".$data['user_id']."'"))."</td>
</tr>
<tr>
<td width='1%' class='tbl2' style='white-space:nowrap'><b>".$locale['u042']."</b></td>
<td class='tbl2'>".number_format(dbcount("(comment_id)", "comments", "comment_name='".$data['user_id']."'"))."</td>
</tr>
<tr>
<td width='1%' class='tbl1' style='white-space:nowrap'><b>".$locale['u043']."</b></td>
<td class='tbl1'>".number_format($data['user_posts'])."</td>
</tr>
</table>\n";
if ($data['user_groups']) {
tablebreak();
echo "<table align='center' cellpadding='0' cellspacing='1' width='400' class='tbl-border'>\n";
echo "<tr>\n<td class='tbl2'><b>".$locale['423']."</b></td>\n\n</tr>\n<tr>\n<td class='tbl1'>\n";
$user_groups = (strpos($data['user_groups'], ".") == 0 ? explode(".", substr($data['user_groups'], 1)) : explode(".", $data['user_groups']));
for ($i = 0;$i < count($user_groups);$i++) {
echo "<a href='".FUSION_SELF."?group_id=".$user_groups[$i]."'>".getgroupname($user_groups[$i])."</a>";
if ($i != (count($user_groups)-1)) { echo ",\n"; } else { echo "\n"; }
}
echo "</td>\n</tr>\n</table>\n";
}
} else {
if (!isNum($group_id)) fallback("index.php");
$result = dbquery("SELECT * FROM ".$db_prefix."user_groups WHERE group_id='$group_id'");
if (dbrows($result)) {
$data = dbarray($result);
$result = dbquery("SELECT * FROM ".$db_prefix."users WHERE user_groups REGEXP('^\\\.{$group_id}$|\\\.{$group_id}\\\.|\\\.{$group_id}$') ORDER BY user_level DESC, user_name");
opentable($locale['410']);
echo "<table align='center' cellpadding='0' cellspacing='1' width='100%' class='tbl-border'>
<tr>
<td align='center' colspan='2' class='tbl1'><b>".$data['group_name']."</b> (".sprintf((dbrows($result)==1?$locale['411']:$locale['412']), dbrows($result)).")</td>
</tr>
<tr>
<td class='tbl2'><b>".$locale['401']."</b></td>
<td align='center' width='1%' class='tbl2' style='white-space:nowrap'><b>".$locale['402']."</b></td>
</tr>\n";
while ($data = dbarray($result)) {
$cell_color = ($i % 2 == 0 ? "tbl1" : "tbl2"); $i++;
echo "<tr>\n<td class='$cell_color'>\n<a href='profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a></td>\n";
echo "<td align='center' width='1%' class='$cell_color' style='white-space:nowrap'>".getuserlevel($data['user_level'])."</td>\n</tr>";
}
echo "</table>\n";
} else {
fallback(BASEDIR."index.php");
}
}
closetable();
require_once "side_right.php";
require_once "footer.php";
?>
Gal galit iterpti kad galima butu komentuoti čia profile
php failas
Redagavo Jaunelis· 2008 Lap. 16 14:11:34
Parašė Jaunelis· 2008 Lap. 28 17:11:13
#27
žiurėkit turiu bėdu per mozilla yra taip:
o per IE ir opera atrodytu taip:
kokį faila dadurt kad pvz per opera ir per ie butu normalej ?
Parašė moonlike· 2008 Lap. 28 17:11:35
#28
tai rodo kad mozilla valdo :]
P.S. nezinau...
Parašė Jaunelis· 2008 Lap. 28 17:11:44
#29
kerniux parašė:
tai rodo kad mozilla valdo :]
P.S. nezinau...
ne nu butu p* , bet gi ne visi naudoja mozilla ir užėja y psl su kita naršykle pamatys toki vaizda tai nelbj žinau kažkokie failai ar koda koki iteprt ir viskas ore turėtu but.
Parašė moonlike· 2008 Lap. 28 18:11:54
#30
zinau as sitas nesamones seniau kaip per
html kurdavau budavo sunku padaryti, kad per visas narsykles ta paty rodytu.. oo taip reikia kad koks protingesnis parasytu, nes as nezinau sito... :|
Parašė Jaunelis· 2009 Kov. 16 19:03:50
#31
Na ka sveikučiai dbr reikia jūsų pagalbos aišku kas išmanot ir esat dare v7 temas ;) taigi aš bandau inclund'inti y theme.php , header.php bet
vis man erroras tai gal kas žinot kaip tai daryti va kodas:
//Header
echo "<table cellspacing='0' cellpadding='0' width='".THEME_WIDTH."' class='outer-border center'>\n<tr>\n";
echo "<td>\n";
echo "<table cellpadding='0' cellspacing='0' width='897'>\n<tr>\n";
echo "<img src='".THEME."images/headeris.jpg'>";
echo "<table cellpadding='0' cellspacing='0' width='897'>\n<tr>\n";
echo "</tr>\n</table>\n";
echo "</td>\n</tr>\n</table>\n";
Ir kaip turėtu atrodyti kodas header.php faile dekingas iškarto ;)
Redagavo Jaunelis· 2009 Kov. 16 19:03:09
Parašė Jaunelis· 2009 Kov. 17 14:03:24
#32
UP! heeelp
Parašė MAnjack· 2009 Kov. 17 14:03:54
#33
O koks header.php faile kodas?
Parašė Jaunelis· 2009 Kov. 17 17:03:11
#34
man visu pirmą reikia čia padaryti :) nes rodo error kaip bandau daryti kad kažkas ten bla bla bla tai negalit padėt ??? vietoj to kad klausi kox kodas galėjai includint ... nes rodo kad theme.php faile levai
Parašė edeni· 2009 Kov. 17 17:03:37
#35
//Header
echo "<table cellspacing='0' cellpadding='0' width='".THEME_WIDTH."' class='outer-border center'>\n<tr>\n";
echo "<td>\n";
echo "<table cellpadding='0' cellspacing='0' width='897'>\n<tr>\n";
include_once("header.php");
echo "<table cellpadding='0' cellspacing='0' width='897'>\n<tr>\n";
echo "</tr>\n</table>\n";
echo "</td>\n</tr>\n</table>\n";
Megink
Parašė MAnjack· 2009 Kov. 17 17:03:03
#36
Jaunelis parašė:
man visu pirmą reikia čia padaryti :) nes rodo error kaip bandau daryti kad kažkas ten bla bla bla tai negalit padėt ??? vietoj to kad klausi kox kodas galėjai includint ... nes rodo kad theme.php faile levai
includinimo viena priklauso nuo headerio kodo ;)
Parašė Jaunelis· 2009 Kov. 17 18:03:28
#37
edeni parašė:
//Header
echo "<table cellspacing='0' cellpadding='0' width='".THEME_WIDTH."' class='outer-border center'>\n<tr>\n";
echo "<td>\n";
echo "<table cellpadding='0' cellspacing='0' width='897'>\n<tr>\n";
include_once("header.php");
echo "<table cellpadding='0' cellspacing='0' width='897'>\n<tr>\n";
echo "</tr>\n</table>\n";
echo "</td>\n</tr>\n</table>\n";
Megink
wa čiuvelis iškarto be jokiu ten klausimu veikai ;)
Parašė MAnjack· 2009 Kov. 17 18:03:01
#38
Kai papratai darai tai ir šitas veikia ;)
Parašė bad_user· 2009 Kov. 17 18:03:43
#39
Manjack buk tu geras, nustok tu pjaut ką :}
Parašė Jaunelis· 2009 Kov. 17 18:03:20
#40
joo manjack buvo teisus ir dbr su header problemos bet dar pameginsiu ;)
Parašė MAnjack· 2009 Kov. 17 18:03:24
#41
SoNG parašė:
Manjack buk tu geras, nustok tu pjaut ką :}
Kažkodėl teisus buvau :D
Parašė Jaunelis· 2009 Kov. 18 22:03:29
#42
na bet su headeriu viskas tvarkoje :) pasidariau jau senai ten buvo keleta klaidų bet nieko :) na bet manjack galėjai ir pirmame poste savo includint butum daugiau padėjas ;)
Parašė Jaunelis· 2009 Kov. 21 14:03:50
#43
Gal kas galit išimti iš čia komentarus kad nerodytu jų:
<?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."downloads.php";
if (isset($download_id) && !isNum($download_id)) fallback("index.php");
if (isset($download_id)) {
$res = 0;
if ($data = dbarray(dbquery("SELECT download_url,download_cat FROM ".$db_prefix."downloads WHERE download_id='$download_id'"))) {
$cdata = dbarray(dbquery("SELECT * FROM ".$db_prefix."download_cats WHERE download_cat_id='".$data['download_cat']."'"));
if (checkgroup($cdata['download_cat_access'])) {
$res = 1;
$result = dbquery("UPDATE ".$db_prefix."downloads SET download_count=download_count+1 WHERE download_id='$download_id'");
redirect($data['download_url']);
}
}
if ($res == 0) redirect("downloads.php");
}
if (isset($d_id)) {
include INCLUDES."ratings_include.php";
include INCLUDES."comments_include.php";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads WHERE download_id='$d_id'");
while ($data = dbarray($result)) {
$id = $data['download_cat'];
if ($data['download_datestamp']+604800 > time()+($settings['timeoffset']*3600)) {
$new = " <span class='small'>".$locale['410']."</span>";
} else {
$new = "";
}
$time = $data['download_datestamp'];
$laikas = showdate( "%d.%m.%y", $time);
$kat = dbresult(dbquery("SELECT download_cat_name FROM ".$db_prefix."download_cats WHERE download_cat_id='$id'"), 0);
echo "<table width='100%' cellpadding='0' cellspacing='1' class='tbl-border'>\n";
echo "<tr>
<td colspan='5' class='forum-caption'>
<table style='border-collapse: collapse;' border='0' cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td> <a href='".FUSION_SELF."' class='small' title='Siuntiniai'><b>Siuntiniai</b></a> >> <a href='".FUSION_SELF."?cat_id=".$data['download_cat']."' class='small' title='Siuntinio Kategorija'><b>$kat</b></a> > <a class='small' href='".FUSION_SELF."?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='Atsisiøsti Siuntiná'><b>".$data['download_title']."</b></a> </td>
<td align='right'><span class='small2'><b>Pridëtas:</b> $laikas</span></td>
</tr></table></td>
</tr>\n";
if ($data['download_description'] != "") echo "<tr>\n
<td colspan='5' class='tbl1'>".nl2br(stripslashes($data['download_description']))."</td>\n</tr>\n";
echo "<tr>\n
<td rowspan='2' class='tbl1' align='center' valign='middle' width='1%'><a class='small' href='".FUSION_SELF."?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='Atsisiøsti Failà' style='font-weight: bold;'><img src='".IMAGES."download.png' alt='Atsisiøsti Failà' border='0'></a></td>
<td width='30%' class='tbl2'><b>".$locale['413']."</b> ".$data['download_version']."</td>\n<td width='30%' class='tbl1'><b>".$locale['411']."</b> ".$data['download_license']."</td>\n";
$kom = dbquery("SELECT count(comment_id) FROM ".$db_prefix."comments WHERE comment_type='D' AND comment_item_id='$id'");
$kon = dbresult($kom, 0);
if ($kon == 0) { $komentarai = 0; } else { $komentarai = $kon; }
echo "<td width='40%' class='tbl2'><b>Komentarai:</b> $komentarai</td>\n</tr>\n<tr>\n<td width='30%' class='tbl2'><b>".$locale['412']."</b> ".$data['download_os']." </td>\n";
echo "<td width='30%' class='tbl1'><b>".$locale['415']."</b> ".$data['download_count']."</td>\n<td width='40%' class='tbl2'><b>Dydis:</b> ".($data['download_filesize'] ? "".$data['download_filesize']."" : "Nëra")."</td>\n</tr>\n";
echo "</table>\n";
if ($i != $numrows) { echo "<div align='center'><img src='".THEME."images/blank.gif' alt='' height='15' width='1'></div>\n"; $i++; }
}
showcomments("D","downloads","download_id",$d_id,FUSION_SELF."?d_id=$d_id");
showratings("D",$d_id,FUSION_SELF."?d_id=$d_id");
} else {
if (!isset($cat_id)) {
opentable($locale['400']);
$result = dbquery("SELECT * FROM ".$db_prefix."download_cats WHERE ".groupaccess('download_cat_access')." ORDER BY download_cat_name");
$rows = dbrows($result);
if ($rows != 0) {
$counter = 0; $columns = 2;
echo "<center><img src='".IMAGES."downloads.png' alt='' border='0'></center>";
echo "<table class='tbl-border' style='margin-top: 10px;' cellpadding='0' cellspacing='1' width='100%' align='center'>";
echo "<tr>
<td class='tbl1' colspan='2' align='center'>
<form name='searchform' method='post' action='search.php' style='display: inline;'>
<b>Ieðkoti Siuntiniø:</b> <input name='stext' class='textbox' style='width: 200px;' type='text'>
<input name='stype' value='d' type='hidden'><input name='search' value='Ieðkoti!' class='button' type='submit'>
</form>
</td>
</tr>";
while ($data = dbarray($result)) {
$num = dbcount("(download_cat)", "downloads", "download_cat='".$data['download_cat_id']."'");
echo "<tr>
<td class='tbl1' width='1%'><a class='small' href='".FUSION_SELF."?cat_id=".$data['download_cat_id']."' style='font-weight: bold;'><img src='images/dl_cats/".$data['download_cat_image']."' alt='".$data['download_cat_name']."' border='0'>
</a></td>
<td class='tbl2' align='left' valign='center'><img src='".THEME."images/bullet.gif' alt='' border='0'>
<a class='small' href='".FUSION_SELF."?cat_id=".$data['download_cat_id']."' style='font-weight: bold;'>".$data['download_cat_name']."</a> <span class='small2'>($num)</span><br>
<span class='small'>".$data['download_cat_description']."</span></td>
</tr>";
$counter++;
}
echo "<table class='tbl-border' style='margin-top: 10px;' cellpadding='0' cellspacing='1' width='100%'>
<tr>
<td class='forum-caption' colspan='2' width='1%'>Statistika</td>
</tr>
<tr>
<td class='tbl1' align='center' width='1%'><img src='images/dl_stats.png' alt='Siuntiniø statistika' border='0'></td>
<td class='tbl2'>
<table border='0' cellpadding='0' cellspacing='1'>";
$dataq = dbarray(dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_id DESC LIMIT 0,1"));
echo "<tr><td>Naujausias siuntinys: </td>
<td> <a class='small' href='".FUSION_SELF."?d_id=".$dataq['download_id']."' title=''>".$dataq['download_title']."</a></td>
</tr>";
$datax = dbarray(dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,1"));
echo "<tr><td>Populiariausias: </td>
<td> <a class='small' href='".FUSION_SELF."?d_id=".$datax['download_id']."' title=''>".$datax['download_title']."</a></td>
</tr>";
$cats = dbresult(dbquery("SELECT count(download_cat_id) FROM ".$db_prefix."download_cats"), 0);
echo "<tr><td>Kategorijø: </td>
<td class='small2'> $cats</td></tr>";
$countd = dbresult(dbquery("SELECT count(download_id) FROM ".$db_prefix."downloads"), 0);
echo "<tr>
<td>Siuntiniø: </td>
<td class='small2'> $countd</td>
</tr>";
$counth = dbresult(dbquery("SELECT SUM(download_count) FROM ".$db_prefix."downloads"), 0);
echo "<tr><td>Atsisiøsta: </td>
<td class='small2'> $counth</td></tr>";
echo "</table>
</td>
</tr>
</table>";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_id DESC LIMIT 0,20");
if (dbrows($result)) {
echo "<table class='tbl-border' style='margin-top: 10px;' border='0' cellpadding='0' cellspacing='1' width='100%'>
<tr>
<td class='forum-caption' style='white-space: nowrap;'>Naujausi siuntiniai</td>
<td class='forum-caption' style='white-space: nowrap;' align='center' width='1%'>Data</td>
<td class='forum-caption' style='white-space: nowrap;' align='center' width='1%'>Siuntimai</td>
</tr>";
while ($data = dbarray($result)) {
$time = $data['download_datestamp'];
$laikas = showdate( "%d.%m.%y", $time);
echo "<tr>
<td class='tbl1'><img src='".THEME."images/bullet.gif' alt='' border='0'> <a class='small' href='downloads.php?d_id=".$data['download_id']."'>".$data['download_title']."</a></td>
<td class='tbl1' align='center'>$laikas</td>
<td class='tbl1' align='center'>".$data['download_count']."</td>
</tr>";
}
echo "</table>";
}
} else {
echo "<center><br>\n".$locale['430']."<br><br>\n</center>\n";
}
closetable();
} else {
$res = 0;
if (!isNum($cat_id)) fallback(FUSION_SELF);
$result = dbquery("SELECT * FROM ".$db_prefix."download_cats WHERE download_cat_id='$cat_id'");
if (dbrows($result) != 0) {
$cdata = dbarray($result);
if (checkgroup($cdata['download_cat_access'])) {
$res = 1;
opentable($locale['400'].": ".$cdata['download_cat_name']);
$rows = dbcount("(*)", "downloads", "download_cat='$cat_id'");
if (!isset($rowstart) || !isNum($rowstart)) $rowstart = 0;
if ($rows != 0) {
$result = dbquery("SELECT * FROM ".$db_prefix."downloads WHERE download_cat='$cat_id' ORDER BY ".$cdata['download_cat_sorting']." LIMIT $rowstart,15");
//s
$catdata = dbarray(dbquery("SELECT * FROM ".$db_prefix."download_cats WHERE download_cat_id='$cat_id'"));
$count = dbresult(dbquery("SELECT count(download_id) FROM ".$db_prefix."downloads WHERE download_cat='$cat_id'"), 0);
echo "
<table class='tbl-border' cellpadding='0' cellspacing='1' width='100%'>
<tr>
<td class='tbl2' style='white-space: nowrap;' align='center' valign='middle' width='1%'><a class='small' href='downloads.php?cat_id=$cat_id' title='".$catdata['download_cat_name']."'><img src='images/dl_cats/".$catdata['download_cat_image']."' alt='".$catdata['download_cat_name']."' border='0'>
</a></td>
<td class='tbl1' valign='top'><span><a class='small' href='downloads.php'>Siuntiniai</a> » ".$catdata['download_cat_name']."</span><br>
".$catdata['download_cat_description']."<br><br>Siuntimø kategorijoje: <span class='small2'>$count</span></td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'><tbody><tr>
<td height='8'>
</td>
</tr>
</tbody></table>";
//e
$numrows = dbrows($result); $i = 1;
while ($data = dbarray($result)) {
$id = $data['download_id'];
if ($data['download_datestamp']+604800 > time()+($settings['timeoffset']*3600)) {
$new = " <span class='small'>".$locale['410']."</span>";
} else {
$new = "";
}
$time = $data['download_datestamp'];
$laikas = showdate( "%d.%m.%y", $time);
echo "<table width='100%' cellpadding='0' cellspacing='1' class='tbl-border'>\n";
echo "<tr>
<td colspan='5' class='forum-caption'>
<table style='border-collapse: collapse;' border='0' cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td width='1%'><a class='small' href='".FUSION_SELF."?d_id=".$data['download_id']."' title='Þiûrëti failà' style='font-weight: bold;'><img src='".IMAGES."down.png' alt='Þiûrëti failà' border='0'></a></td>
<td> <a class='small' href='".FUSION_SELF."?d_id=".$data['download_id']."' title='Þiûrëti failà' style='font-weight: bold;'><b>".$data['download_title']."</b></a> </td>
<td align='right'><span class='small2'><b>Pridëtas:</b> $laikas</span></td>
</tr></table></td>
</tr>\n";
if ($data['download_description'] != "") echo "<tr>\n
<td colspan='5' class='tbl1'>".nl2br(stripslashes($data['download_description']))."</td>\n</tr>\n";
echo "<tr>\n
<td rowspan='2' class='tbl1' align='center' valign='middle' width='1%'><a class='small' href='".FUSION_SELF."?cat_id=$cat_id&download_id=".$data['download_id']."' title='Atsisiøsti Failà' style='font-weight: bold;'><img src='".IMAGES."download.png' alt='Atsisiøsti Failà' border='0'></a></td>
<td width='30%' class='tbl2'><b>".$locale['413']."</b> ".$data['download_version']."</td>\n<td width='30%' class='tbl1'><b>".$locale['411']."</b> ".$data['download_license']."</td>\n";
$kom = dbquery("SELECT count(comment_id) FROM ".$db_prefix."comments WHERE comment_type='D' AND comment_item_id='$id'");
$kon = dbresult($kom, 0);
if ($kon == 0) { $komentarai = 0; } else { $komentarai = $kon; }
echo "<td width='40%' class='tbl2'><b>Komentarai:</b> $komentarai</td>
<td class='tbl1' rowspan='2' colspan='1' align='right' valign='bottom' width='1%'>
<a href='".FUSION_SELF."?d_id=".$data['download_id']."' title='Þiûrëti failo komentarus'><img src='images/comments.png' alt='Komentuoti' border='0'></a><br>
<a href='".FUSION_SELF."?d_id=".$data['download_id']."' title='Þiûrëti failo reitingus'><img src='images/ratings.png' alt='Vertinti' border='0'></a>
</td>\n</tr>\n<tr>\n<td width='30%' class='tbl2'><b>".$locale['412']."</b> ".$data['download_os']." </td>\n";
echo "<td width='30%' class='tbl1'><b>".$locale['415']."</b> ".$data['download_count']."</td>\n<td width='40%' class='tbl2'><b>Dydis:</b> ".($data['download_filesize'] ? "".$data['download_filesize']."" : "Nëra")."</td>\n</tr>\n";
echo "</table>\n";
if ($i != $numrows) { echo "<div align='center'><img src='".THEME."images/blank.gif' alt='' height='15' width='1'></div>\n"; $i++; }
}
closetable();
if ($rows > 15) echo "<div align='center' style='margin-top:5px;'>\n".makePageNav($rowstart,15,$rows,3,FUSION_SELF."?cat_id=$cat_id&")."\n</div>\n";
} else {
echo $locale['431']."\n";
closetable();
}
}
}
if ($res == 0) redirect(FUSION_SELF);
}
}
require_once "side_right.php";
require_once "footer.php";
?>
Parašė Jaunelis· 2009 Kov. 26 21:03:13
#44
Tai va turiu tokią bėda:
Gal žinosit kur ką pakeisti kad butu viskas čiki kad neišsikraipytu
Styles:
a {
color : #FFF;
text-decoration : none;
}
a:hover {
color : #FFF;
text-decoration : underline;
}
a.side {
color : #FFF;
text-decoration : none;
}
a:hover.side {
color : #FFF;
text-decoration : underline;
}
a.white {
color : #FFF;
text-decoration : none;
}
a:hover.white {
color : #FFF;
text-decoration : underline;
}
body {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 11px;
background-image: url('images/bg.bmp');
}
.paneles {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
background: url('images/headeris.jpg');
height: 243px;
color : #FFF;
}
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 : #888;
border-top : 1px solid #000;
border-bottom : 1px solid #000;
padding : 5px;
}
.full-header {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #FFF;
padding : 0px;
}
.footer {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #FFF;
background-color : #cdcdcd;
border : 0px 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;
}
.textbox {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #000;
background-color : #FFFF;
border : 1px solid #ccc;
}
.main-body {
font-size : 11px;
color : #FFF;
background: url('images/news_bg.gif');
padding : 10px;
}
.side-body {
font-size : 10px;
color : #FFF;
background-image: url('images/panel_bg.gif');
padding : 10px;
}
.main-bg {
color : #FFF;
background-color : #cdcdcd;
padding : 10px 5px 10px 5px;
}
.border {
border : 0px solid #e1e1e1;
}
.side-border-left {
color : #FFF;
background-color : #cdcdcd;
padding : 10px 5px 10px 10px;
}
.side-border-right {
color : #FFF;
background-color : #cdcdcd;
padding : 10px 10px 10px 5px;
}
.news-footer {
font-size : 10px;
color : #FFF;
background: url('images/news_foot.gif');
padding : 8px;
}
.capmain {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 11px;
font-weight : bold;
color : #FFF;
background: url('images/news.gif');
padding : 9px;
width='456'
}
.scapmain {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
font-weight : bold;
color : #FFF;
background-image: url('images/panel.gif');
border-bottom : 0px solid #e1e1e1;
padding : 9px;
}
.tbl-border {
color : #FFF;
background-color : #e1e1e1;
}
.tbl {
font-size : 11px;
color : #FFF;
background-color : #15bbce;
padding : 4px;
}
.tbl1 {
font-size : 11px;
color : #FFF;
background-color : #15bbce;
padding : 0px;
}
.tbl2 {
font-size : 11px;
color : #FFF;
background-color : #099bac;
padding : 4px;
}
.forum-caption {
font-size : 11px;
font-weight : bold;
color : #FFF;
background-color : #099bac;
padding : 2px 4px 4px 4px;
}
.quote {
font-size : 11px;
color : #000;
background-color : #f8f8f8;
margin : 0px -80px 0px 0px;
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;
}
Be to tarp headerio ir mygtuku yra tarpas na gal ir mažas bet matosi tai va kodas:
function render_header($header_content) {
global $theme_width,$locale,$data,$aidlink,$db_prefix;
echo "<table cellpadding='0' align='center' cellspacing='0' width='956' class='paneles'>\n<tr>
<td align='center' width='246'>";
include THEME."user_info_panel.php";
echo "</td>
</tr>
</table>\n";
echo "
<tr>
<td><table border='0' align='center' style='padding-left: 520px; padding-right: 0px; padding-bottom: 0px; padding-top:0px;' cellpadding='0' cellspacing='0'>
<tr>
<td width='94' align='center'><a href='".BASEDIR."news.php'><img src='".THEME."images/kaip.gif' border=0' alt=''></a></td>
<td width='98' align='center'><a href='".BASEDIR."members.php'><img src='".THEME."images/kaipidetisiuntini.gif' border=0' alt=''></td>
<td width='110' align='center'><a href='".FORUM."index.php'><img src='".THEME."images/kaipidetinaujiena.gif' border=0' alt=''></td>
<td width='103' align='center'><a href='".BASEDIR."news.php'><img src='".THEME."images/straipsni.gif' border=0' alt=''></a></td>
</tr>
</table></td>
</tr>
</table>\n";
echo "<table cellpadding='0' align='center' cellspacing='0' width='956'>\n<tr>\n";
}
Redagavo Jaunelis· 2009 Kov. 26 21:03:53
Parašė iGolf· 2009 Kov. 26 21:03:01
#45
kad žinočiau būtų puiku :)
Parašė iGolf· 2009 Kov. 26 22:03:57
#46
gal žiūrėk #fff spalvas.. :)
Parašė bad_user· 2009 Kov. 26 22:03:01
#47
.quote {
font-size : 11px;
color : #000;
background-color : #f8f8f8;
margin : 0px -80px 0px 0px;
border : 1px solid #bbb;
}
Parašė Jaunelis· 2009 Kov. 26 22:03:11
#48
aš šitą ir naudojau bet matai kaip išlindę man reikai kad balta spalva itilptų y boarderį
Parašė zDon· 2009 Kov. 26 22:03:22
#49
Susiaurink šošinens paneles.
Parašė Jaunelis· 2009 Kov. 26 22:03:08
#50
o jai man reikia kad butu taip kaip dbr yra
Parašė iGolf· 2009 Kov. 26 22:03:33
#51
tai kad reikia sumažinti šonines paneles o vidury praplėsti?
Parašė bad_user· 2009 Kov. 26 22:03:48
#52
.quote {
font-size : 11px;
color : #000;
background-color : #f8f8f8;
margin : 0px 0px 0px 0px;
border : 1px solid #bbb;
}
Bandyk
Parašė Jaunelis· 2009 Kov. 26 22:03:32
#53
nu ir šitas nepadeda meginau :S
Parašė bad_user· 2009 Kov. 26 22:03:53
#54
Čia naujai parašytas ;}
Parašė Jaunelis· 2009 Kov. 27 00:03:31
#55
Na okey song labai dauk padėjo taigi naujas klausimas :)
Sveiki turiu panele naujausia foto aš padariau kad rodytu 5 foto bet man reikia kad jos aitu ne y apačią o tiesiai viena prie kitos štai panelė:
opentable("Naujausias darbas");
$data=dbarray($result);
$randphotodir = PHOTOS.(!@ini_get("safe_mode") ? "album_".$data['album_id']."/" : "");
if(!file_exists($filename)) $filename=$image_url.'/imagenotfound.jpg';
echo "<center>
<a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."' class='gallery'>
<img src='".$randphotodir.$data['photo_thumb1']."' border='0' alt='".$data['photo_title']."'></a><span style='color:white'></span>";
$result = dbquery("SELECT * FROM ".$db_prefix."photos ORDER BY photo_id DESC LIMIT 5");
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['photo_id'], 23);
$itemdescription = trimlink($data['photo_title'], 23);
echo "<a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."' title='".$data['photo_title']."' class='side'><center>
<img src='".PHOTOS."album_".$data['album_id']."/".$data['photo_thumb1']."' class='displayed' border='0' alt=''></img>\n";
}
} else {
echo $locale['004'];
}
closetable();
Parašė Jaunelis· 2009 Bal. 13 01:04:06
#56
Sveiki žėkit turiu kodą ir jį nori į headeri ikišt tik man error meta:
Parse error: syntax error, unexpected ')' in /home/tsvetaine/xz.lt/themes/mano tema/Status.php on line 23
kodas:
<?php
openside_panel("Server Status");
error_reporting(0);
$IP = array(
"<b>Login: </b>" => "ip:9014",
"<b>Game: </b>" => "ip9:7777",
);while(list($ServerName,$Host)=each($IP)) {
list($IPAddress,$Port)=explode(":",$Host);
echo($ServerName);
$time = 0;
$time = round(microtime(), 3);
if($fp=fsockopen($IPAddress,$Port,$ERROR_NO,$ERROR_STR,(float)0.5)) {
$time2 = round(microtime(), 3);
$ping = ($time2 - $time)*100;
echo("<font color='green'> Online</font> (ping: ".$ping."ms)<br />");
fclose($fp);
}else {
echo ("<font color='red'> Offline</font>");
}
}
echo "</b>";
closeside_panel);
?>
gal kas galit padėt?
Redagavo Jaunelis· 2009 Bal. 13 01:04:54
Parašė tock· 2009 Bal. 13 01:04:31
#57
Jaunelis parašė:
Sveiki žėkit turiu kodą ir jį nori į headeri ikišt tik man error meta:
Parse error: syntax error, unexpected ')' in /home/tsvetaine/xz.lt/themes/mano tema/Status.php on line 23
kodas:
<?php
openside_panel("Server Status");
error_reporting(0);
$IP = array(
"<b>Login: </b>" => "ip:9014",
"<b>Game: </b>" => "ip9:7777",
);while(list($ServerName,$Host)=each($IP)) {
list($IPAddress,$Port)=explode(":",$Host);
echo($ServerName);
$time = 0;
$time = round(microtime(), 3);
if($fp=fsockopen($IPAddress,$Port,$ERROR_NO,$ERROR_STR,(float)0.5)) {
$time2 = round(microtime(), 3);
$ping = ($time2 - $time)*100;
echo("<font color='green'> Online</font> (ping: ".$ping."ms)<br />");
fclose($fp);
}else {
echo ("<font color='red'> Offline</font>");
}
}
echo "</b>";
closeside_panel);
?>
gal kas galit padėt?
Kritinė padėtis sutvarkyta B)
Parašė WyPuk· 2009 Bal. 13 09:04:10
#58
<?php
openside_panel("Server Status");
error_reporting(0);
$IP = array(
"<b>Login: </b>" => "ip:9014",
"<b>Game: </b>" => "ip9:7777",
);while(list($ServerName,$Host)=each($IP)) {
list($IPAddress,$Port)=explode(":",$Host);
echo($ServerName);
$time = 0;
$time = round(microtime(), 3);
if($fp=fsockopen($IPAddress,$Port,$ERROR_NO,$ERROR_STR,(float)0.5)) {
$time2 = round(microtime(), 3);
$ping = ($time2 - $time)*100;
echo("<font color='green'> Online</font> (ping: ".$ping."ms)<br />");
fclose($fp);
}else {
echo ("<font color='red'> Offline</font>");
}
}
echo "</b>";
closeside_panel;
?>
Išbandyk.
Parašė Jaunelis· 2009 Bal. 28 15:04:23
#59
dabar kitas klausimėlis... Turiu patobulintą downloads.php kaip padaryti kad rušiuotu siuntinius pvz kaip naujienas kad nauja naujiena viršuje senesne apačioje ir tt nes dbr nauji siuntiniai dedasi į apačią o seniausi viršuje...
Atisiūsti downloads.php failiuką dq kas padės....
senai ir beklausiau tai paklausiu gal kas atsakys...
Parašė viva· 2009 Bal. 28 15:04:31
#60
taigi per suntiniu kategorijas galiam nustatyti kaip rusiuoti siuntinius
Parašė Jaunelis· 2009 Bal. 28 16:04:55
#61
dq
Parašė Jaunelis· 2009 Bir. 15 15:06:01
#62
Sveiki kolegos man reiktų naujienų kategorijų nuorodos:
Kad va tep va atrodytu.
Parašė Tomcis· 2009 Bir. 15 15:06:43
#63
Bandyk.
echo "Kategorija: ".$data['news_cat_name'];
Parašė Jaunelis· 2009 Bir. 15 16:06:25
#64
iFack parašė:
Bandyk.
echo "Kategorija: ".$data['news_cat_name'];
reikia kad paspaudus ant kategorijos kaip ant news_cats iejtu į ją.Nu nuorodą pvz:
<a href='news.php?readmore=".$info['news_id']."' >Toliau..</a>
Parašė Tomcis· 2009 Bir. 15 16:06:07
#65
O jaigu aiškiau?
Parašė Jaunelis· 2009 Bir. 15 16:06:30
#66
iFack parašė:
O jaigu aiškiau?
Na pavyzdį daviau man reikia kad atvaizduotų news cats kategorijos pavadinimą ir kad ant jos paspaustų užeitų y news cats kategoriją tą.
Dar vienas klausimas dėl dizaino:
Noriu kad naujienos išsitemtu atrodytu taip:
[img]http://www.78.lt/thumb.php?id=F12B_4A364C73[/img]
bet atrodo taip :S
[img]http://www.78.lt/thumb.php?id=A689_4A364C73[/img]
Kodas:
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='right' class='capmain-left'></td>
<td align='center' class='capmain'>$subject</td>
<td align='left' class='capmain-left'></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";
Noriu kad išsitemptų naujieną pagal rezoliucija. bet man niekaip nesigauna.
Parašė Tomcis· 2009 Bir. 15 16:06:52
#67
Štai.
<a href='/news_cats.php?cat_id=".$info['news_cat_id']."' >".$data['news_cat_name']."</a>
Parašė Jaunelis· 2009 Bir. 15 17:06:30
#68
iFack parašė:
Štai.
<a href='/news_cats.php?cat_id=".$info['news_cat_id']."' >".$data['news_cat_name']."</a>
plm dėkui ;) dar vienas klausimas dėl kodo :
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='center' class='capmain'>$title</td>
<td align='left' class='capmain-left'></td>
</tr>
<tr>
<td class='main-body'>
<td align='left' class='news-footer-left'></td>
\n";
}
Čia su paryškinta vieta kažkas blogai Dbr man atvaizduoja taip:
[img]http://www.78.lt/thumb.php?id=CCA5_4A365688[/img]
Parašė Jaunelis· 2009 Bir. 15 17:06:04
#69
Up anybody ???
Parašė ---· 2009 Bir. 15 18:06:25
#70
nesuprantu kas tau blogai
Parašė Jaunelis· 2009 Bir. 15 18:06:38
#71
Img matei textas ne panelėje o virš jos
Parašė Jaunelis· 2009 Bir. 16 23:06:18
#72
UP heeelp
Parašė Jaunelis· 2009 Lie. 6 09:07:55
#73
Tai va kolegos kas mokate gal galite padėti ir pritaikyti šį kodą kad veiktų ant v7 nes man meta tokį error:
Notice: Undefined variable: userdata in /home/darbai/..../themes/..../narys.php on line 3
Table 'studijal3.messages' doesn't exist
Notice: Undefined variaašheme_width in/home/darbai/..../themes/..../narys.php on line 4
Notice: Undefined variaašheme_width in /home/darbai/..../themes/..../narys.php on line 5
Notice: Undefined variable: locale in /home/darbai/..../themes/..../narys.php on line 8
| Žinutės [naujų:
Notice: Undefined variable: aidlink in /home/darbai/..../themes/..../narys.php on line 11
| Administracija | Atsijungti
O kodas yra toks:
echo "<table cellspacing='0' cellpadding='0' width='936'><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=''>Atsijungti</a></td>";
} else {
echo" <td class='sub-header'><center>
<td align='center' background='".THEME."images/linija.jpg' class='sub-header'>
<form name='loginform' method='post' action='".FUSION_SELF."'>
<input type='text' name='user_name' value='vardas' onfocus=\"if(this.value=='vardas'){this.value='';}\" onblur=\"if(this.value==''){this.value='vardas';}\" class='textbox-login'>
<input type='password' name='user_pass' value='slaptažodis' onfocus=\"if(this.value=='slaptažodis'){this.value='';}\" onblur=\"if(this.value==''){this.value='slaptažodis';}\" class='textbox-login'>
<input type='submit' name='login' value='' class='ok'> <a href=".BASEDIR."register.php>Registracija</a> | <a href=".BASEDIR."lostpassword.php>Priminti</a>
</form>
</td>
</tr>\n";
}
echo "</td></tr></table></td></tr></table>";
tikrai dekingas busiu kas padės.
P.S. postas šis redaguotas tad nekreipkite i shadowv parašytą postą :D
Redagavo Jaunelis· 2009 Lie. 25 12:07:49
Parašė Žmogus· 2009 Lie. 14 15:07:09
#74
trimlink funkcija čia
".trimlink($data['kažkas'],
26)."
Redagavo Žmogus· 2009 Lie. 14 15:07:46
Parašė Kelmas· 2009 Lie. 25 12:07:14
#75
Po funkcijos pavadinimo parašyk:
global $userdata, $aidlink, $locale, $db_prefix, $theme_width;
Redagavo Kelmas· 2009 Lie. 25 12:07:40
Parašė Jaunelis· 2009 Lie. 25 12:07:45
#76
Ir dar vienas klausimas...
va pvz news.php faile yra tokios eilutes:
require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";
require_once "infusions/latest_articles_panel/latest_articles_panel.php";
Paryškinta eilute aš dasidėjau bet...Aš noriu kad rodytu pvz tuos straipsnių panele kairėje pusėje panelese o dabar man rodo virš news....
Drageli:
Jau jau mažiau error bet vis dar meta:
Table 'dbpavadinimas.messages' doesn't exist
Notice: Undefined index: 080 in /home/darbai/..../themes/..../narys.php on line 9
Redagavo Jaunelis· 2009 Lie. 25 12:07:18
Parašė Kelmas· 2009 Lie. 25 12:07:09
#77
Jaunelis parašė:
Ir dar vienas klausimas...
va pvz news.php faile yra tokios eilutes:
require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";
require_once "infusions/latest_articles_panel/latest_articles_panel.php";
Paryškinta eilute aš dasidėjau bet...Aš noriu kad rodytu pvz tuos straipsnių panele kairėje pusėje panelese o dabar man rodo virš news....
O tau negeriau į paneles kišt? nes čia kažkokias nesamones darai.. :?
Parašė Jaunelis· 2009 Lie. 25 12:07:53
#78
Ne,Man reikia kad pvz news2.php atsidarius butu tik viena panele pvz mano sukurta navigacija o visu kitu kad nebutu....o pvz jau nuėjus į news.php tenai nieko nekeites bučiau man rodytu normaliai paneles.Imanomas toks dalykas ar ne ?
Parašė Jaunelis· 2009 Lie. 25 14:07:19
#79
Krč dbr tokia bėda noriu uždėti ten kur rašosi vardas slaptažodis ir ok (mygtukas) paveiksliukus uždedu ir tada buna kažkokia padišofke kai išvis nebuna to class tada buna irgi blogai nes netinka man taip gal kas žino kame bėda:
echo"<center>
<td class='linija'>
<form name='loginform' method='post' action='".FUSION_SELF."'>
<input type='text' name='user_name' value='vardas' onfocus=\"if(this.value=='vardas'){this.value='';}\" onblur=\"if(this.value==''){this.value='vardas';}\" class='login'>
<input type='password' name='user_pass' value='slaptažodis' onfocus=\"if(this.value=='slaptažodis'){this.value='';}\" onblur=\"if(this.value==''){this.value='slaptažodis';}\" class='login'>
<input type='submit' name='login' value='' class='ok'> <a href=".BASEDIR."register.php>Registracija</a> | <a href=".BASEDIR."lostpassword.php>Priminti</a>
</form>
<td class='sub-header'>".showsublinks(" <span class='bullet'>·</span> ","white")."</td>
</td>
</tr>\n";
atroda img taip:
Redagavo Jaunelis· 2009 Lie. 25 14:07:34
Parašė iGolf· 2009 Lie. 25 14:07:24
#80
Jaunėli,
kiba nemoki susitvarkyti paimk iš proginalios themos tą koda ir biški ten sukeisk tuos imagus viskas tvarkoje ;)
Parašė Žmogus· 2009 Lie. 25 14:07:51
#81
border:0px;
(per trumpas tekstas)
Parašė Jaunelis· 2009 Lie. 25 14:07:43
#82
ShadoVw parašė:
border:0px;
(per trumpas tekstas)
nesupratau,bet vis tiek tokia ašene liko :S
Redagavo Jaunelis· 2009 Lie. 25 14:07:29
Parašė Žmogus· 2009 Lie. 25 14:07:58
#83
Nu tai į style.css kiši
Parašė Jaunelis· 2009 Lie. 25 14:07:51
#84
ShadoVw parašė:
Nu tai į style.css kiši
tipo tą border i styles kišti ar kaip ? :D
Blyn diena kažkokia šudina nesigalvoja ....
TU DIEVAS
+10 jai dar nedaviau xD
Redagavo Jaunelis· 2009 Lie. 25 14:07:21
Parašė Žmogus· 2009 Lie. 25 14:07:19
#85
Nu jo, kur tavo img tas aprašytas
Parašė Jaunelis· 2009 Lie. 25 15:07:32
#86
Dar šiek tiek į vieną klausimą taip ir neatsakė niekas dėl tų news,Na ir pakartosiu klausima kad nereiktų ait atgal į 2 psl:
Ir dar vienas klausimas...
va pvz news.php faile yra tokios eilutes:
require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";
require_once "infusions/latest_articles_panel/latest_articles_panel.php";
Paryškinta eilute aš dasidėjau bet...Aš noriu kad rodytu pvz tuos straipsnių panele kairėje pusėje panelese o dabar man rodo virš news....
Parašė zDon· 2009 Lie. 25 15:07:38
#87
tai į panelę includink
include INFUSIONS."latest_articles_panel/latest_articles_panel.php";
Parašė Jaunelis· 2009 Lie. 25 15:07:49
#88
turiu tokį failą:
<?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; }
// Display left side panels
$p_res = dbquery("SELECT * FROM ".$db_prefix."panels ORDER BY panel_order");
if (dbrows($p_res) != 0) {
$pc = 0;
while ($p_data = dbarray($p_res)) {
if (checkgroup($p_data['panel_access'])) {
if ($pc == 0) echo "<td width='$theme_width_l' valign='top' class='side-border-left'>\n";
if ($p_data['panel_type'] == "file") {
$panel_name = $p_data['panel_filename'];
include INFUSIONS."latest_articles_panel/latest_articles_panel.php";
} else {
eval(stripslashes($p_data['panel_content']));
}
$pc++;
}
}
if ($pc > 0) echo "</td>\n";
}
echo "<td valign='top' class='main-bg'>\n";
if (file_exists(BASEDIR."setup.php")) echo "<center>".$locale['198']."</center><br>";
$p_res = dbquery("SELECT * FROM ".$db_prefix."panels ORDER BY panel_order");
if (dbrows($p_res) != 0) {
while ($p_data = dbarray($p_res)) {
if (checkgroup($p_data['panel_access'])) {
if ($p_data['panel_display'] == 1 || eregi($settings['opening_page']."$", FUSION_REQUEST.(FUSION_QUERY ? "?".FUSION_QUERY : ""))) {
if ($p_data['panel_type'] == "file") {
$panel_name = $p_data['panel_filename'];
include INFUSIONS.$panel_name."/".$panel_name.".php";
} else {
eval(stripslashes($p_data['panel_content']));
}
tablebreak();
}
}
}
}
?>
Noriu kad jis atvaizduotu tik vieną panele tai yra articles.php ar butu tai ymanoma ? nes dabar vaizdas yra toks:
Apibrauktos paneles išvis neturi buti o paskutiniai straipsniai labai dauk kartu kartojas..
P.S. čia tos paneles apibrauktos kartojasi dėl to kaip aš kode pakeičiau :s tai gal yra kas sutvarkys.
Redagavo Jaunelis· 2009 Lie. 27 00:07:23
Parašė ozzWANTED· 2009 Lie. 27 01:07:42
#89
vietoje:
include INFUSIONS.$panel_name."/".$panel_name.".php";
rašyk:
if($panel_name != "latest_articles_panel") {
include INFUSIONS.$panel_name."/".$panel_name.".php";
}
Ar taip tiksliai panelė vadinasi nesu tikras, bet manau idėją pagavai.
Parašė Jaunelis· 2009 Lie. 27 01:07:29
#90
Visai ne taip reikėjo reikėjo limitą nustatyti paneliu ir tiek :)
Atnaujinta: tai vo turiu toki kodą čia atskiras failas pavadinkim name.php bet kai i ji nueinu nk tenai nėra gal kas žn kaip čia padaryt ?
<?php
@opentable("Name");
<center><br><b>Titas (Jaunelis)</b>:
<br>El-Pastas: Jaunel1s@inbox.lt
<br><!--
Skype 'My status' button
http://www.skype....ypebuttons
-->
<script type="text/javascript" src="http://download.skype.com/share/skypebuttons/js/skypeCheck.js"></script>
<a href="skype:jaunel1s?chat"><img src="http://mystatus.skype.com/smallclassic/jaunel1s" style="border: none;" width="114" height="20" alt="modding" /></a>
</center>
closetable();
?>
Redagavo Jaunelis· 2009 Lie. 31 01:07:22
Parašė RaiShteliS· 2009 Lie. 31 03:07:23
#91
echo tagus sudek :[ too short
Parašė Jaunelis· 2009 Lie. 31 10:07:40
#92
RaiShteliS parašė:
echo tagus sudek :[ too short
Ne echo reikėjo o kitkta darašyti :)
Parašė ChecK· 2009 Lie. 31 10:07:13
#93
Nu tai sakyk ką reikėjo darašyti, gal kitiems pravers..
Parašė sniuff· 2009 Lie. 31 10:07:52
#94
Nei includin'ia failus, nei echo nesudejai.
Parašė Jaunelis· 2009 Rugp. 9 11:08:28
#95
Tai va naujas klausimas:
Nuėjau į straipsnius radau ko man reikia tai yra kai užvedi pele ant mygutko jis pasikeičia bet kaip aš bedėčiau man meta klaida.
<img src='".THEME."images/forumas.png'>
onmouseover="this.src='".THEME."images/forumas_hover.png'" onmouseout="this.src='".THEME."images/forumas.png'"
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/...../...../themes/...../nuorodos.php on line 7
Bandau visaip bet neišeina o pas mane kodas toks:
<td align='center'><a href='".BASEDIR."news.php'><img src='".THEME."nuorodos/paslaugos.gif' border='0' alt=''></a></td>
Bandau į jį ikišt bet neina.
Parašė And2s· 2009 Rugp. 9 12:08:43
#96
<td align='center'><a href='".BASEDIR."news.php'><img src='".THEME."nuorodos/paslaugos.gif' onmouseover=\"this.src='".THEME."images/forumas_hover.png'\" onmouseout=\"this.src='".THEME."images/forumas.png'\" border='0' alt=''></a></td>
Parašė Jaunelis· 2009 Rugp. 17 23:08:34
#97
Sveiki,iškart ainu prie reikalo,Turiu toki kodą:
$result = dbquery("SELECT count(download_cat_id='2') FROM ".$db_prefix."download_cats");
echo "</a> <b>Siuntinių:</b> <a>".dbresult($result, 0)."</a>\n";
Nu jis man atvaizduoja kiek yra siuntinių kategorijų o aš noriu kad atvaizduotu tam tikros siuntinių kategorijos siuntinių skaičių :D
Tarkim noriu kad skaičiuotu kiek yra siuntinių "phpfusion" kategorijoje.
Gal kas galit padėti?
Redagavo Jaunelis· 2009 Rugp. 22 16:08:33
Parašė MAnjack· 2009 Rugp. 22 17:08:15
#98
WHERE downlaod_cat = '$id'
Parašė Jaunelis· 2009 Rugp. 22 17:08:13
#99
MAnjack parašė:
WHERE downlaod_cat = '$id'
Ikišk į kodą jai gali nes aš kaip ikišu tai išvis errora meta :D
Parašė edeni· 2009 Rugp. 22 17:08:28
#100
$result = dbquery("SELECT count(download_cat_id='2') FROM ".$db_prefix."download_cats WHERE download_cat = '2'");
echo "</a> <b>Siuntinių:</b> <a>".dbresult($result, 0)."</a>\n";
Jeigu gerai supratau...
Redagavo edeni· 2009 Rugp. 22 17:08:13
Parašė Jaunelis· 2009 Rugp. 22 17:08:22
#101
edeni parašė:
Jeigu gerai supratau...
error. :(
Redagavo Jaunelis· 2009 Rugp. 22 17:08:35
Parašė edeni· 2009 Rugp. 22 17:08:37
#102
Dabar pamėgink. Turėtu veikt.
Parašė Jaunelis· 2009 Rugp. 22 17:08:16
#103
Unknown column 'download_cat' in 'where clause'
Parašė edeni· 2009 Rugp. 22 17:08:46
#104
$result = dbquery("SELECT count(download_cat_id='2') FROM ".$db_prefix."download_cats WHERE download_cat_id = '2'");
echo "</a> <b>Siuntinių:</b> <a>".dbresult($result, 0)."</a>\n";
šitas turėtu veikt(gal)
Redagavo edeni· 2009 Rugp. 22 17:08:55
Parašė MAnjack· 2009 Rugp. 22 17:08:31
#105
$result = dbquery("SELECT count(download_cat_id='2') FROM ".$db_prefix."download_cat_id WHERE download_cat = '2'");
echo "</a> <b>Siuntinių:</b> <a>".dbresult($result, 0)."</a>\n";
Parašė Jaunelis· 2009 Rugp. 22 17:08:41
#106
MAnjack parašė:
$result = dbquery("SELECT count(download_cat_id='2') FROM ".$db_prefix."download_cat_id WHERE download_cat = '2'");
echo "</a> <b>Siuntinių:</b> <a>".dbresult($result, 0)."</a>\n";
Table '......fusion_3306download_cat_id' doesn't existTable 'panele.fusion_3306download_cat_id' doesn't exist
Parašė Jaunelis· 2009 Rugp. 22 17:08:28
#107
edeni parašė:
$result = dbquery("SELECT count(download_cat_id='2') FROM ".$db_prefix."download_cats WHERE download_cat_id = '2'");
echo "</a> <b>Siuntinių:</b> <a>".dbresult($result, 0)."</a>\n";
šitas turėtu veikt(gal)
tavo veikia bet kažkodėl rodo kad siuntinių 1 o jų yra kategorijoje du :D
Parašė MAnjack· 2009 Rugp. 22 17:08:37
#108
$result = dbquery("SELECT count(download_id) FROM ".$db_prefix."downloads WHERE download_cat_id = '2'");
echo "</a> <b>Siuntinių:</b> <a>".dbresult($result, 0)."</a>\n";
Parašė Jaunelis· 2009 Rugp. 22 17:08:38
#109
MAnjack parašė:
$result = dbquery("SELECT count(download_id) FROM ".$db_prefix."downloads WHERE download_cat_id = '2'");
echo "</a> <b>Siuntinių:</b> <a>".dbresult($result, 0)."</a>\n";
Unknown column 'download_cat_id' in 'where clause'Unknown column 'download_cat_id' in 'where clause
Parašė MAnjack· 2009 Rugp. 22 17:08:14
#110
Rašiau, rašiau ir visai nuklydau :]
$num = dbcount("(download_cat)", "downloads", "download_cat='2'");
Ten kur nori matyti, parašyk $num.
Parašė And2s· 2009 Rugp. 22 17:08:42
#111
$result = dbquery("SELECT count(download_id) FROM ".$db_prefix."downloads WHERE download_cat = '2'");
echo "</a> <b>Siuntinių:</b> <a>".dbresult($result, 0)."</a>\n";
Parašė Jaunelis· 2009 Rugp. 22 17:08:43
#112
dėkui bet jau pasidariau ;D kitaip biški atrodo:
$result = dbquery("SELECT count(download_id) FROM ".$db_prefix."downloads WHERE download_cat = '2'");
echo "</a> <b>Siuntinių:</b> <a>".dbresult($result, 0)."</a>\n";
Redagavo Jaunelis· 2009 Rugp. 22 17:08:27
Parašė iStyle· 2009 Rugp. 22 17:08:45
#113
Gali smailus išjunkt?? :D
Parašė Jaunelis· 2009 Rugp. 22 17:08:12
#114
išjungiau
Parašė iStyle· 2009 Rugp. 22 18:08:21
#115
Pagaliau :)
Parašė Jaunelis· 2009 Rugs. 13 20:09:31
#116
sveiki :) taigi turiu dar viena manau menka klausima :D
kur šita gavno išjunkt ? ji rodo virš puslapio headerio šone ant v7:
Parašė Žmogus· 2009 Rugs. 14 19:09:13
#117
Nu tai theme.php ieškok
Parašė XruN· 2009 Rugs. 14 20:09:03
#118
Theme.php bus pasleptas kaskur ;)
Parašė Jaunelis· 2009 Rugs. 14 20:09:49
#119
ShadoVw parašė:
Nu tai theme.php ieškok
Tame ir bėda kad čia ne theme.php faile bėda test saite to nėra (v7 taipogi) o šitame yra :/
XruN parašė:
Theme.php bus pasleptas kaskur ;)
Vienas pasakė o kiti kaip viščiukai kartojam ane ?
Parašė Waldoss· 2009 Rugs. 14 20:09:11
#120
Taigi apžiūrėk kiekvieną failą ir pvz atidarai theme.php spaudi ctr + F,ir įrašai tekstą 42studio.net ar koki ten,jeigu suras tai nutrini ir viskas :)
Parašė XruN· 2009 Rugs. 14 20:09:54
#121
Tai pats logiskai pagalvok kur dar gali buti tik theme.php nes images folderyje nebus juk jai butu istrintum na tai theme.php bus su kodu ten <img src='' /> daugiau niekur negali buti visciuk tu :P
Parašė Waldoss· 2009 Rugs. 14 20:09:16
#122
Taigi apžiūrėk kiekvieną failą ir pvz atidarai theme.php spaudi ctr + F,ir įrašai tekstą 42studio.net ar koki ten,jeigu suras tai nutrini ir viskas
Parašė Jaunelis· 2009 Rugs. 14 20:09:19
#123
XruN parašė:
Tai pats logiskai pagalvok kur dar gali buti tik theme.php nes images folderyje nebus juk jai butu istrintum na tai theme.php bus su kodu ten <img src='' /> daugiau niekur negali buti visciuk tu :P
blemba buvau idėjas kita temą ir vis tiek tas užrašas yra o į test saitą ikėliau ta pačią temą nėra... čia failuose kažkur ir pati tu negraži.... jai nežinai geriau nesakyk ir nekartok... buk geras ....
Ir pvz ant v6 tai iškart žinočiau ait y subheader.php jai blogai kas o čia nžn tokia ner :D
Redagavo Jaunelis· 2009 Rugs. 14 20:09:27
Parašė XruN· 2009 Rugs. 14 20:09:15
#124
A nu tada ne theme.php gerai sakai tada failuose. Pagalvok kox buvo paskutinis failas
Parašė Žmogus· 2009 Rugs. 14 21:09:09
#125
Tai gal koks kintamasis yra. PVZ per pagrindinius nustatymus esi nurodęs pavadinimą ar dar ką, o ne test saite to neesi nurodęs
Parašė Jaunelis· 2009 Rugs. 14 21:09:23
#126
Tai va man profilio neatnaujina naujam saite suinstalevau fusioną nu lyg ir viskas ok noriu atnaujinti savo profili "redaguoti aprašymą" ir rašo profilis atnaujintas ,bet nieko neivyksta buvau idėjas nauja update profile failą bet nieko dėl avataro tai galit nerašyt nes avatarą dėjau kaip čia ,veliau bandžiau be avataro atnaujint bet nk...Gal kas ką pasiulysit ?? :)
Redagavo Jaunelis· 2009 Spa. 3 15:10:48
Parašė Jaunelis· 2009 Spa. 3 16:10:33
#127
tai va ir dar vienas klausimas:
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='left' class='capmain1'></td>
<td align='center' class='capmain'>$subject</td>
<td align='right' class='capmain2'></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";
}
gaunas toks gaidys:
O turėtu buti taip:
Čia aš noriu kad tampytusi naujienos tipo pagal dydi :)
dabar pameginau taip
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td><img src='".THEME."images/news.gif' width='15' height='28' alt=''></td>
<td align='center' class='capmain'>$subject</td>
<td><img src='".THEME."images/news1.gif' width='7' height='28' alt=''></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";
}
ir darbar jau rodo taip:
Redagavo Jaunelis· 2009 Spa. 3 16:10:04
Parašė Žmogus· 2009 Spa. 4 12:10:52
#128
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td><img src='".THEME."images/news.gif' width='15' height='28' alt=''></td>
<td align='center' class='capmain'>$subject</td>
<td><img src='".THEME."images/news1.gif' width='7' height='28' alt=''></td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='main-body'>$news</td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<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";
}
Parašė Jaunelis· 2009 Spa. 25 13:10:35
#129
Tai va man meta tokią klaidą kai meginu includinti failą:
Notice: Undefined variable: settings in C:\Program Files\......\www\v6\themes\.....\forumas\forum_threads_list_panel.php on line 19
You have an error in your SQL syntax; check the manual that corresponds to your
MySQL server version for the right syntax to use near '' at line 5
Panelės 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; }
$result = dbquery(
"SELECT tf.*, tt.*, tu.user_id,user_name, MAX(tp.post_id) as last_id, COUNT(tp.post_id) as count_posts FROM ".$db_prefix."forums tf
INNER JOIN ".$db_prefix."threads tt USING(forum_id)
INNER JOIN ".$db_prefix."posts tp USING(thread_id)
INNER JOIN ".$db_prefix."users tu ON tt.thread_lastuser=tu.user_id
WHERE ".groupaccess('forum_access')." GROUP BY thread_id ORDER BY thread_lastpost DESC LIMIT 0,".$settings['numofthreads']
);
if (dbrows($result) != 0) {
$i = 0;
openside_panle($locale['025']);
echo "<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'>\n<tr>\n";
if ($theme_width == "100%") echo "<td class='tbl2'><span class='small'><b>".$locale['030']."</b></span></td>\n";
echo "<td class='tbl2'><span class='small'><b>".$locale['031']."</b></span></td>
<td align='center' width='1%' class='tbl2' style='white-space:nowrap'><span class='small'><b>".$locale['033']."</b></span></td>
<td align='center' colspan='2' width='1%' class='tbl2' style='white-space:nowrap'><span class='small'><b>".$locale['034']."</b></span></td>
</tr>\n";
while ($data = dbarray($result)) {
if ($i % 2 == 0) { $row_color = "tbl1"; } else { $row_color = "tbl2"; }
echo "<tr>\n";
if ($theme_width == "100%") {
echo "<td width='45%' class='$row_color'><span class='small'>".$data['forum_name']."</span></td>
<td width='55%' class='$row_color'><span class='small'><a href='".FORUM."viewthread.php?forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."&pid=".$data['last_id']."#post_".$data['last_id']."' title='".$data['thread_subject']."'>".trimlink($data['thread_subject'], 30)."</a></span></td>\n";
} else {
echo "<td width='100%' class='$row_color'><span class='small'><a href='".FORUM."viewthread.php?forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."&pid=".$data['last_id']."#post_".$data['last_id']."' title='".$data['thread_subject']." (".$data['forum_name'].")'>".trimlink($data['thread_subject'], 30)."</a></span></td>\n";
}
echo "<td align='center' width='1%' class='$row_color' style='white-space:nowrap'><span class='small'>".($data['count_posts']-1)."</span></td>
<td align='center' width='1%' class='$row_color' style='white-space:nowrap'><span class='small'><a href='".BASEDIR."profile.php?lookup=".$data['thread_lastuser']."'>".$data['user_name']."</a></span></td>
<td align='center' width='1%' class='$row_color' style='white-space:nowrap'><span class='small'>".showdate("forumdate", $data['thread_lastpost'])."</span></td>
</tr>\n";
$i++;
}
if (iMEMBER) {
echo "<tr>\n<td align='center' colspan='5' class='tbl1'><span class='small'><a href='".INFUSIONS."forum_threads_list_panel/my_threads.php'>".$locale['026']."</a> |
<a href='".INFUSIONS."forum_threads_list_panel/my_posts.php'>".$locale['027']."</a> |
<a href='".INFUSIONS."forum_threads_list_panel/new_posts.php'>".$locale['028']."</a></span></td>\n</tr>\n";
}
echo "</table>\n";
closeside_panel();
}
?>
Redagavo Jaunelis· 2009 Lap. 9 17:11:44
Parašė Pasišalinęs· 2009 Lap. 9 18:11:32
#130
Radau klaidą, jei nori už kelis litus sutvarkysiu, o jei ne, tai ieškok klaidos pats 19 eilutėje. ;)
Parašė Jaunelis· 2009 Lap. 9 18:11:47
#131
am gal palauksiu kokių gerų žmonių :)
Parašė edeni· 2009 Lap. 9 18:11:41
#132
<?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; }
$result = dbquery(
"SELECT tf.*, tt.*, tu.user_id,user_name, MAX(tp.post_id) as last_id, COUNT(tp.post_id) as count_posts FROM ".$db_prefix."forums tf
INNER JOIN ".$db_prefix."threads tt USING(forum_id)
INNER JOIN ".$db_prefix."posts tp USING(thread_id)
INNER JOIN ".$db_prefix."users tu ON tt.thread_lastuser=tu.user_id
WHERE ".groupaccess('forum_access')." GROUP BY thread_id ORDER BY thread_lastpost DESC LIMIT 0,".$settings['numofthreads']."
);
if (dbrows($result) != 0) {
$i = 0;
openside_panle($locale['025']);
echo "<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'>\n<tr>\n";
if ($theme_width == "100%") echo "<td class='tbl2'><span class='small'><b>".$locale['030']."</b></span></td>\n";
echo "<td class='tbl2'><span class='small'><b>".$locale['031']."</b></span></td>
<td align='center' width='1%' class='tbl2' style='white-space:nowrap'><span class='small'><b>".$locale['033']."</b></span></td>
<td align='center' colspan='2' width='1%' class='tbl2' style='white-space:nowrap'><span class='small'><b>".$locale['034']."</b></span></td>
</tr>\n";
while ($data = dbarray($result)) {
if ($i % 2 == 0) { $row_color = "tbl1"; } else { $row_color = "tbl2"; }
echo "<tr>\n";
if ($theme_width == "100%") {
echo "<td width='45%' class='$row_color'><span class='small'>".$data['forum_name']."</span></td>
<td width='55%' class='$row_color'><span class='small'><a href='".FORUM."viewthread.php?forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."&pid=".$data['last_id']."#post_".$data['last_id']."' title='".$data['thread_subject']."'>".trimlink($data['thread_subject'], 30)."</a></span></td>\n";
} else {
echo "<td width='100%' class='$row_color'><span class='small'><a href='".FORUM."viewthread.php?forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."&pid=".$data['last_id']."#post_".$data['last_id']."' title='".$data['thread_subject']." (".$data['forum_name'].")'>".trimlink($data['thread_subject'], 30)."</a></span></td>\n";
}
echo "<td align='center' width='1%' class='$row_color' style='white-space:nowrap'><span class='small'>".($data['count_posts']-1)."</span></td>
<td align='center' width='1%' class='$row_color' style='white-space:nowrap'><span class='small'><a href='".BASEDIR."profile.php?lookup=".$data['thread_lastuser']."'>".$data['user_name']."</a></span></td>
<td align='center' width='1%' class='$row_color' style='white-space:nowrap'><span class='small'>".showdate("forumdate", $data['thread_lastpost'])."</span></td>
</tr>\n";
$i++;
}
if (iMEMBER) {
echo "<tr>\n<td align='center' colspan='5' class='tbl1'><span class='small'><a href='".INFUSIONS."forum_threads_list_panel/my_threads.php'>".$locale['026']."</a> |
<a href='".INFUSIONS."forum_threads_list_panel/my_posts.php'>".$locale['027']."</a> |
<a href='".INFUSIONS."forum_threads_list_panel/new_posts.php'>".$locale['028']."</a></span></td>\n</tr>\n";
}
echo "</table>\n";
closeside_panel();
}
?>
Pamegink taip
Redagavo edeni· 2009 Lap. 9 18:11:50
Parašė Jaunelis· 2009 Lap. 9 18:11:37
#133
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\Program Files\....\www\v6\themes\.....\forumas\forum_threads_list_panel.php on line 23
am atsirado geras žmogus kuris megina beet aš taip meginau bet neišėjo va kokia klaida meta
Parašė edeni· 2009 Lap. 9 18:11:21
#134
<?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; }
$result = dbquery(
"SELECT tf.*, tt.*, tu.user_id,user_name, MAX(tp.post_id) as last_id, COUNT(tp.post_id) as count_posts FROM ".$db_prefix."forums tf
INNER JOIN ".$db_prefix."threads tt USING(forum_id)
INNER JOIN ".$db_prefix."posts tp USING(thread_id)
INNER JOIN ".$db_prefix."users tu ON tt.thread_lastuser=tu.user_id
WHERE ".groupaccess('forum_access')." GROUP BY thread_id ORDER BY thread_lastpost DESC LIMIT 0,".$settings['numofthreads']."");
if (dbrows($result) != 0) {
$i = 0;
openside_panle($locale['025']);
echo "<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'>\n<tr>\n";
if ($theme_width == "100%") echo "<td class='tbl2'><span class='small'><b>".$locale['030']."</b></span></td>\n";
echo "<td class='tbl2'><span class='small'><b>".$locale['031']."</b></span></td>
<td align='center' width='1%' class='tbl2' style='white-space:nowrap'><span class='small'><b>".$locale['033']."</b></span></td>
<td align='center' colspan='2' width='1%' class='tbl2' style='white-space:nowrap'><span class='small'><b>".$locale['034']."</b></span></td>
</tr>\n";
while ($data = dbarray($result)) {
if ($i % 2 == 0) { $row_color = "tbl1"; } else { $row_color = "tbl2"; }
echo "<tr>\n";
if ($theme_width == "100%") {
echo "<td width='45%' class='$row_color'><span class='small'>".$data['forum_name']."</span></td>
<td width='55%' class='$row_color'><span class='small'><a href='".FORUM."viewthread.php?forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."&pid=".$data['last_id']."#post_".$data['last_id']."' title='".$data['thread_subject']."'>".trimlink($data['thread_subject'], 30)."</a></span></td>\n";
} else {
echo "<td width='100%' class='$row_color'><span class='small'><a href='".FORUM."viewthread.php?forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."&pid=".$data['last_id']."#post_".$data['last_id']."' title='".$data['thread_subject']." (".$data['forum_name'].")'>".trimlink($data['thread_subject'], 30)."</a></span></td>\n";
}
echo "<td align='center' width='1%' class='$row_color' style='white-space:nowrap'><span class='small'>".($data['count_posts']-1)."</span></td>
<td align='center' width='1%' class='$row_color' style='white-space:nowrap'><span class='small'><a href='".BASEDIR."profile.php?lookup=".$data['thread_lastuser']."'>".$data['user_name']."</a></span></td>
<td align='center' width='1%' class='$row_color' style='white-space:nowrap'><span class='small'>".showdate("forumdate", $data['thread_lastpost'])."</span></td>
</tr>\n";
$i++;
}
if (iMEMBER) {
echo "<tr>\n<td align='center' colspan='5' class='tbl1'><span class='small'><a href='".INFUSIONS."forum_threads_list_panel/my_threads.php'>".$locale['026']."</a> |
<a href='".INFUSIONS."forum_threads_list_panel/my_posts.php'>".$locale['027']."</a> |
<a href='".INFUSIONS."forum_threads_list_panel/new_posts.php'>".$locale['028']."</a></span></td>\n</tr>\n";
}
echo "</table>\n";
closeside_panel();
}
?>
Parašė Jaunelis· 2009 Lap. 9 18:11:02
#135
atrodo lyg ir gerai bet vis tiek rodo klaida 19 eilutėje :/
Parašė Pasišalinęs· 2009 Lap. 9 18:11:56
#136
Na, jei nerasi kas sutvarkys - parašyk, daug neimsiu. B)
Parašė Jaunelis· 2009 Lap. 9 18:11:49
#137
Irmantas9 parašė:
Na, jei nerasi kas sutvarkys - parašyk, daug neimsiu. B)
tu pats bent žn kame bėda ?? :D :D nes aš taip ikertu kad ne :D
Parašė Pasišalinęs· 2009 Lap. 9 18:11:01
#138
Taip, žinau, su
MySQL užklausa ;]
Parašė edeni· 2009 Lap. 9 18:11:44
#139
$result = dbquery(
"SELECT tf.*, tt.*, tu.user_id,user_name, MAX(tp.post_id) as last_id, COUNT(tp.post_id) as count_posts FROM ".$db_prefix."forums tf
INNER JOIN ".$db_prefix."threads tt USING(forum_id)
INNER JOIN ".$db_prefix."posts tp USING(thread_id)
INNER JOIN ".$db_prefix."users tu ON tt.thread_lastuser=tu.user_id
WHERE ".groupaccess('forum_access')." GROUP BY thread_id ORDER BY thread_lastpost DESC LIMIT 0,".$settings['numofthreads']."");
Parašė Jaunelis· 2009 Lap. 9 20:11:22
#140
žodžiu kas padėjot tai labai dėkui tai būtų
EDENI tai ačiū tau nenaudojau paskutinio kodo nes kažkaip pats pasidariau ;) tai va jai dar nedaviau +10 tai ainu duosiu :)
**
Žodžiu gaminu čia šaukykla toke :D ir va dabar kaip prisijunges bunu nu tai be klaidu buna o kaip atsijungiu toke figne:
Notice: Undefined index: user_avatar in C:\Program Files\EasyPHP5.2.10\www\v6\infusions\shoutbox_panel\shoutbox_panel.php on line 76
Čia duodu koduką nuo 76eilutės:
if ($userdata['user_avatar'] != "") {
echo "<img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='30' height='30' style='border:0px solid #999999'><a href='".BASEDIR."profile.php?lookup=".$data['shout_name']."' class='side'>".$data['user_name']."</a>\n";
} else {
echo "<img src='".INFUSIONS."shoutbox_panel/images/noavatar.png' width='30' height='30' border='0'><a href='".BASEDIR."profile.php?lookup=".$data['shout_name']."' class='side'>".$data['user_name']."</a>\n";
}
gal kas žinosit klaidele
Redagavo Jaunelis· 2009 Lap. 15 18:11:47
Parašė iMantux· 2009 Lap. 15 18:11:23
#141
tu čia padares jei yra avataras rodo , jei nėra nerodo , o kai neprisijungias žmogus jis nesupranta as tas user_avatar, tad daryk kad šitas būtu tik kai žmogus on.
Parašė edeni· 2009 Lap. 15 18:11:29
#142
if ($data['user_avatar'] != "") {
echo "<img src='".BASEDIR."images/avatars/".$data['user_avatar']."' width='30' height='30' style='border:0px solid #999999'><a href='".BASEDIR."profile.php?lookup=".$data['shout_name']."' class='side'>".$data['user_name']."</a>\n";
} else {
echo "<img src='".INFUSIONS."shoutbox_panel/images/noavatar.png' width='30' height='30' border='0'><a href='".BASEDIR."profile.php?lookup=".$data['shout_name']."' class='side'>".$data['user_name']."</a>\n";
}
pamegink taip
Parašė Jaunelis· 2009 Lap. 15 18:11:56
#143
blemba
edeni jau kelinta karta padedi Dėkui
iMantux - irgi dėkui
Parašė Jaunelis· 2009 Lap. 18 23:11:50
#144
žėkit turiu ta patį klausimą bandau padaryti kaip ant wp kad paspaudus ant naujienos nuaini kaip į skaityti daugiau bet vėl gi padarau ir kaip bunu news.php tuomet man nuorodos nebuna o kaip nuainu į skaityti daugiau tai tada jau nuoroda atsiradan kame bėda:
<a href='news.php?readmore=".$info['news_id']."'>".$subject."</a>
Parašė bruzgis· 2009 Lap. 19 02:11:31
#145
ne cia problema.
Atsidarai news.php ir pries pirmaji rende_news pamatysi info stulpeli
"news_id" => $data['news_id'],
"user_id" => $data['user_id'],
"user_name" => $data['user_name'],
"news_date" => $data['news_datestamp'],
"news_ext" => $data['news_extended'] ? "y" : "n",
"news_reads" => $data['news_reads'],
"news_comments" =>
"news_allow_comments" => $data['news_allow_comments'] );
ikisk tokia eilute:
"naujiena" => "<a href='".FUSION_SELF."?readmore=".$data['news_id']."' title='Visa naujiena'>".nl2br(stripslashes($data['news_news']))."</a>"
Tai atrodys taip:
$news_info = array(
"news_id" => $data['news_id'],
"user_id" => $data['user_id'],
"user_name" => $data['user_name'],
"news_date" => $data['news_datestamp'],
"news_ext" => $data['news_extended'] ? "y" : "n",
"news_reads" => $data['news_reads'],
"news_comments" =>
"news_allow_comments" => $data['news_allow_comments'],
"naujiena" => "<a href='".FUSION_SELF."?readmore=".$data['news_id']."' title='Visa naujiena'>".nl2br(stripslashes($data['news_news']))."</a>"
);
Tada atsidaryk theme.php faila ir render_news dalyje lentelej susirask
$news ir pakeisk i
".$info['naujiena']."
Parašė Jaunelis· 2009 Lap. 19 15:11:08
#146
chipass - +10 jaigu dar nedaviau tikrai
DĖKUI
**dar vienas prašymas:
<?php
global $userdata, $aidlink, $locale, $db_prefix, $theme_width, $result;
echo"<center><form>
<td class='full-header' align='center' style='padding-top: 100px; padding-left: 700px;' boarder='0'>
<form action='search.php?stype=n' method='post' name='searchform'>
<input type='text' style='width: 150px;' class='paieska' value='Raktažodis...' name='stext'>
<input type='submit' class='ok' value='' name='Ieškoti'>
</form>
</center>
</td>
</tr>\n";
echo "</td></tr></table></td></tr></table>";
?>
turiu čia tokią paieškos panele ir ją includines esu į headeri :).Bet kažkodėl neieško man paspaudžiu search myktuka ir neieško jis nieko nevyksta tik naršyklėje nuoroda tokia buna:
news.php?stext=Rakta%FEodis...&Ie%F0koti=
tai va kas nors padėkite pataisykite panele :/
Parašė MAnjack· 2009 Lap. 19 16:11:39
#147
O tau panelėj ta paieška veikia?
Parašė edeni· 2009 Lap. 19 16:11:31
#148
<form name='search' action='search.php?stype=d' method='post'>
<input type='text' class='inputbox' name='stext' value='' onBlur=\"if(this.value=='') this.value='';\" onFocus=\"if(this.value=='') this.value='';\">
<input type='submit' name='option' value='Ieрkoti'></form>
pamegink šitą formą panaudot
Parašė Jaunelis· 2009 Lap. 19 17:11:57
#149
MAnjack parašė:
O tau panelėj ta paieška veikia?
bl pasakei ir iškarto susitvarkiau klaidą viena radau :)
Parašė Jaunelis· 2009 Gru. 5 21:12:48
#150
Naujas klausimėlis
HTML čia:
Koks kodas turėtu buti kad užvedus ant paveikslėlio pasikeistu jis ? nu fusione žn tą kodą o
html'e kaip jis turėtu atrodyti ?
Parašė Žirklė· 2009 Gru. 5 22:12:58
#152
<img src='static1.jpg' onmouseover='this.src="static2.jpg"' onmouseout='this.src="static1.jpg"' alt='' />
bandyk.
Parašė Jaunelis· 2009 Gru. 5 22:12:01
#153
ir tep ir tep meginau gaidys gaunas viena img veikia o kai užvedi pelyte niekas nepasikeičia :/
Žirklė katik tavo koduką pamačiau DĖKUI tau
Redagavo Jaunelis· 2009 Gru. 5 22:12:21
Parašė Žirklė· 2009 Gru. 5 22:12:30
#154
galima dar daryti su
css
<style type='text/css'>
.image {
background: url(static1.jpg);
width:100px;
height:100px;
}
.image:hover {
background-image: url(static2.jpg);
}
</style>
<span class='image'></span>
tik nežinau ar veiks :]
Parašė Jaunelis· 2009 Gru. 10 16:12:02
#155
sveiki :) kaip atvaizduoti
html kode šį failą reikia kad butu keletas variantų bei paspaudus
"tikrink" mygtuką butu parašyti atsakymai arba sužymėta klausimuose prie variantų ats?
http://sventupis.lt/info/testai/..._progr.htm ?|
Parašė Jaunelis· 2009 Gru. 16 23:12:52
#156
hello kaip padaryti ant joomlos tokią panele padaryti ?
meginau iš paprastos ten mod_custom perdaryt bet viskas gerai tik kad neroda man pagrindinio teksto :/
gal kas jai žinot kur apie tai parašyta ar kas numeskit linką o jai žinot kaip tai galėtumėt ir paaiškinti dėkui iš anksto
Parašė Jaunelis· 2009 Gru. 17 14:12:14
#157
need help dude ;D (
Min. privalomas ilgis: 60 simbolių)
Parašė Jaunelis· 2010 Sau. 1 23:01:04
#158
Sveiki, man reikia kad ši nuoroda:
echo "<a href='".$data['linkas']."'>Atsisiųsti šį failą</a><br>\n";
butu matoma tik tam tikroje vietoje pvz (tik šitam albume):
photogallery.php?album_id=4
?|
Parašė iMantux· 2010 Sau. 1 23:01:30
#159
if($_GET['album_id']=="4"){
echo "<a href='".$data['linkas']."'>Atsisiųsti šį failą</a><br>\n";
} else {
echo "";
}
taip gal pamegink.
Parašė Tomcis· 2010 Sau. 1 23:01:47
#160
Štai, jeigu albumo id lygus 4, rodo linką :
if ($_GET['album_id'] == 4) {
echo "<a href='".$data['linkas']."'>Atsisiųsti šį failą</a><br>\n";
}
Parašė Jaunelis· 2010 Sau. 1 23:01:13
#161
imantux o zjbs :) dėkui tau +10 jai nedaviau man te šito ir tereikėjo ;)
ir dar vienas klausimėlis:
dabar turiu tokį img linką:
<img src='".PHOTODIR.$data['photo_filename']."1.jpg' width='600' height='100' boarder='0'
failo pavadinimas buna futblolas.jpg1.jpg atrodo o aš noriu kad butu taip: futbolas1.jpg imanoma kad taip trauktu img ?
Redagavo Jaunelis· 2010 Sau. 1 23:01:48
Parašė iMantux· 2010 Sau. 2 10:01:54
#162
<img src='".PHOTODIR.$data['photo_filename']."' width='600' height='100' boarder='0'>
tai papraščiausiai šitaip daryk.
Parašė Jaunelis· 2010 Sau. 3 19:01:55
#163
ej gal kas čia padėsit dabar čia yra paskutinis paveiksliukas panel :) man reikia kad fotke kuria atvaizduoja ši panele butu 120x120 dydžio bet aš meginau visaip ir xui gal žinot kaip čia padaryti ?
openside_panel($locale['001']);
$result=dbquery(
"SELECT ta.album_id,album_title,photo_id,photo_title,photo_thumb1 FROM ".DB_PREFIX."photo_albums ta ".
"JOIN ".DB_PREFIX."photos USING (album_id) ORDER BY photo_id DESC LIMIT 0,2");
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemdescription = trimlink($data['photo_title'], 23);
echo "<center><td style='padding-left: 80px;' width='120' heigth='120'><a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."' title='".$data['photo_title']."'>
<img border='0' src='".BASEDIR."images/photoalbum/album_".$data['album_id']."/".$data['photo_thumb1']."'
title='".$data['photo_title']."' alt='".$data['photo_title']."'/></a><br/>
<b><center><a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."'>$itemdescription</a></b>
<br/><a href='".BASEDIR."photogallery.php?album_id=".$data['album_id']."' class='gallery' title='Albumas: ".$data['album_title']."'>
".$data['album_title']."</a></center></td></center>\n";
}
}
closeside_panel();
Parašė edeni· 2010 Sau. 3 19:01:07
#164
openside_panel($locale['001']);
$result=dbquery(
"SELECT ta.album_id,album_title,photo_id,photo_title,photo_thumb1 FROM ".DB_PREFIX."photo_albums ta ".
"JOIN ".DB_PREFIX."photos USING (album_id) ORDER BY photo_id DESC LIMIT 0,2");
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemdescription = trimlink($data['photo_title'], 23);
echo "<center><td style='padding-left: 80px;' width='120' heigth='120'><a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."' title='".$data['photo_title']."'>
<img border='0' src='".BASEDIR."images/photoalbum/album_".$data['album_id']."/".$data['photo_thumb1']."' width='120' heigth='120' title='".$data['photo_title']."' alt='".$data['photo_title']."'/></a><br/>
<b><center><a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."'>$itemdescription</a></b>
<br/><a href='".BASEDIR."photogallery.php?album_id=".$data['album_id']."' class='gallery' title='Albumas: ".$data['album_title']."'>
".$data['album_title']."</a></center></td></center>\n";
}
}
closeside_panel();
Parašė Jaunelis· 2010 Sau. 3 19:01:44
#165
dėkui. (Min. privalomas ilgis: 60 simbolių) (Min. privalomas ilgis: 60 simbolių)
Parašė Jaunelis· 2010 Sau. 4 20:01:30
#166
pasidariau xD (Min. privalomas ilgis: 60 simbolių) (Min. privalomas ilgis: 60 simbolių)
Redagavo Jaunelis· 2010 Sau. 4 21:01:36
Parašė Jaunelis· 2010 Sau. 10 11:01:51
#167
ple kas naudoja win7 ir turi ant sawo pc localhostą? pas mane kažko puslapiai neveikia irašau viską o pato jau neužkrauną jų :/
Parašė Jaunelis· 2010 Sau. 27 23:01:42
#168
chipass parašė:
ne cia problema.
Atsidarai news.php ir pries pirmaji rende_news pamatysi info stulpeli
"news_id" => $data['news_id'],
"user_id" => $data['user_id'],
"user_name" => $data['user_name'],
"news_date" => $data['news_datestamp'],
"news_ext" => $data['news_extended'] ? "y" : "n",
"news_reads" => $data['news_reads'],
"news_comments" =>
"news_allow_comments" => $data['news_allow_comments'] );
ikisk tokia eilute:
"naujiena" => "<a href='".FUSION_SELF."?readmore=".$data['news_id']."' title='Visa naujiena'>".nl2br(stripslashes($data['news_news']))."</a>"
Tai atrodys taip:
$news_info = array(
"news_id" => $data['news_id'],
"user_id" => $data['user_id'],
"user_name" => $data['user_name'],
"news_date" => $data['news_datestamp'],
"news_ext" => $data['news_extended'] ? "y" : "n",
"news_reads" => $data['news_reads'],
"news_comments" =>
"news_allow_comments" => $data['news_allow_comments'],
"naujiena" => "<a href='".FUSION_SELF."?readmore=".$data['news_id']."' title='Visa naujiena'>".nl2br(stripslashes($data['news_news']))."</a>"
);
Tada atsidaryk theme.php faila ir render_news dalyje lentelej susirask
$news ir pakeisk i
".$info['naujiena']."
blec neveikia meta errorą:
Parse error: syntax error, unexpected T_DOUBLE_ARROW, expecting ')' in /home/debesys92/domains/mancity.epi.lt/public_html/news.php on line 55
Parašė ---· 2010 Vas. 22 20:02:15
#169
O tai netaip turėtų būt?
$news_info = array(
"news_id" => $data['news_id'],
"user_id" => $data['user_id'],
"user_name" => $data['user_name'],
"news_date" => $data['news_datestamp'],
"news_ext" => $data['news_extended'] ? "y" : "n",
"news_reads" => $data['news_reads'],
"news_comments" => dbcount("(comment_id)", "comments", "comment_type='N' AND comment_item_id='".$data['news_id']."'"),
"news_allow_comments" => $data['news_allow_comments'],
"naujiena" => "<a href='".FUSION_SELF."?readmore=".$data['news_id']."' title='Visa naujiena'>".nl2br(stripslashes($data['news_news']))."</a>"
);
Redagavo ---· 2010 Vas. 22 20:02:25
Parašė Jaunelis· 2010 Vas. 22 20:02:07
#170
šioje vietoje man padėjo song'as :) jis kažką ten pataisė kode :).
Parašė samsung123· 2010 Vas. 22 21:02:43
#171
Jaunelis parašė:
ple kas naudoja win7 ir turi ant sawo pc localhostą? pas mane kažko puslapiai neveikia irašau viską o pato jau neužkrauną jų :/
Pažiūrėk ar įjungta
mysql, nes jei tik
php tai todėl ir nekrauna, asmeniškai taip buvo...
Parašė Jaunelis· 2010 Kov. 26 19:03:40
#172
Tai va matėt mano šaukykla dabar ją biški tobulinu na meginsiu šiek tiek kitaip padaryti :) , Kaip padaryti jog parašius
http:// arba www traktuotų kaip nuorodą nes dbr numečiau linką ten ir kaip paprastas tekstas :(
Redagavo Jaunelis· 2010 Bal. 2 02:04:33
Parašė K-braun· 2010 Bal. 2 02:04:28
#173
function make_clickable($text){
$ret = ' ' . $text;
$ret = preg_replace("#(^|[\n ])\[(url|URL)=http://(.*?)\](.*?)\[\/(url|URL)\]#ise", "'\\1[<a href=\"http://\\3\" target=\"_blank\">\\4</a> ]'", $ret);
$ret = preg_replace("#(^|[\n ])\[(url|URL)=(.*?)\](.*?)\[\/(url|URL)\]#ise", "'\\1[<a href=\"http://\\3\" target=\"_blank\">\\4</a> ]'", $ret);
$ret = preg_replace("#(^|[\n ])\[(url|URL)\]http://(.*?)\[\/(url|URL)\]#ise", "'\\1[<a href=\"http://\\3\" target=\"_blank\">Click Here</a> ]'", $ret);
$ret = preg_replace("#(^|[\n ])\[(url|URL)\](.*?)\[\/(url|URL)\]#ise", "'\\1[<a href=\"http://\\3\" target=\"_blank\">Click Here</a> ]'", $ret);
$ret = preg_replace("#(^|[\n ])([\w]+?://[\w]+[^ \"\n\r\t<]*)#ise", "'\\1[<a href=\"\\2\" target=\"_blank\">Click Here</a> ]'", $ret);
$ret = preg_replace("#(^|[\n ])((www|ftp)\.[^ \"\t\n\r<]*)#ise", "'\\1[<a href=\"http://\\2\" target=\"_blank\">Click Here</a> ]'", $ret);
$ret = preg_replace("#(^|[\n ])([a-z0-9&\-_\.]+?)@([\w\-]+\.([\w\-\.]+\.)*[\w]+)#i", "\\1[<a href=\"mailto:\\2@\\3\">Mail to \\2</a> ]", $ret);
$ret = substr($ret, 1);
return($ret);
}
http://failai.in/show/F/AED40C65...01.13g.zip - AJAX šaukykla [v7] -- \infusions\xSBox_panel\includes\functions.php faile - 38-49 eilutės šitas kodas.
Parašė Jaunelis· 2010 Bal. 3 18:04:07
#174
if ($userdata['user_avatar'] != ""){
echo "<img src='".IMAGES."avatars/".$data['user_avatar']."' alt='".$locale['567']."' width='70' height='70' style='border:0'><br>";
}else{
echo "<img src='".IMAGES."avatars/noavatar.png' width='70' height='70' border='0'><br>\n";
}
Turiu tokį kodą bet kai bunu be avataro man kažkodėl nerodo avataro to kuris yra nustatytas t.y. "noavatar.png" gal čia kur kode klaida :?
Redagavo Jaunelis· 2010 Bal. 5 12:04:02
Parašė edeni· 2010 Bal. 5 12:04:41
#175
if ($userdata['user_avatar'] !== ""){
echo "<img src='".IMAGES."avatars/".$data['user_avatar']."' alt='".$locale['567']."' width='70' height='70' style='border:0'><br>";
}else{
echo "<img src='".IMAGES."avatars/noavatar.png' width='70' height='70' border='0'><br>\n";
}
Gal taip ?
Parašė Jaunelis· 2010 Bal. 6 19:04:16
#176
Klausykit noriu isidiegti fusionboard4 ir blemba reikia išjunkti paneles ta prasme forumas be paneliu (v7) ir bbz isijungiu niponel ten kur ką trint ant v6 tai va suprantu o čia nu xui./...
čia modas tas kur naudot noriu gal kas pagelbėsit :)
http://phpfusion.lt/fusion-board...
Parašė Bucis· 2010 Bal. 6 20:04:06
#177
Admin panelė -> sistemos admin. Eik žemyn kol pamatysi: Pašalinti kairės pusės paneles: ir t.t ir surasyk ten
/forum/index.php
/forum/viewforum.php
/forum/viewthread.php
/forum/post.php
ir dar tam modui gali isjunkti
/infusions/fusionboard4/usercp.php
pats ji naudoju - geras:)
Redagavo Bucis· 2010 Bal. 6 20:04:01
Parašė Jaunelis· 2010 Bal. 6 20:04:12
#178
Sveiki , man reikia kodo kad kas refresh keistusi paveiksliukas imanoma toks dalykas ? (html) čia :)
Redagavo Jaunelis· 2010 Bal. 22 20:04:53
Parašė Jaunelis· 2010 Bal. 22 21:04:27
#180
kažko man neveikia pasidarau atrodo kaip ir reikia ir vis tiek :S
Parašė edeni· 2010 Bal. 22 21:04:10
#181
Tu googlei paieškok random photo
php ir turėtum rast.
Parašė nesby· 2010 Bal. 22 21:04:57
#182
Jaunelis parašė:
Sveiki , man reikia kodo kad kas refresh keistusi paveiksliukas imanoma toks dalykas ? (html) čia :)
as zinau ta koda ir net ne viena
Redagavo nesby· 2010 Bal. 22 21:04:12
Parašė Jaunelis· 2010 Bal. 22 21:04:23
#183
Turim tokį kodą:
<iframe src ="L2Accout PTS/index.php" width="200" height="200">
<p>Your browser does not support iframes.</p>
</iframe>
bet jis atvaizduoja kaip failo kodą o ne tai ką turi rodyti failas :S čia htmle gal žinot kitų būdų ?
Redagavo Jaunelis· 2010 Bal. 30 13:04:52
Parašė edeni· 2010 Bal. 30 13:04:30
#184
Tai serveryje nėra
php :))
Parašė Jaunelis· 2010 Bal. 30 13:04:17
#185
Goku parašė:
Tai serveryje nėra php :))
nesupratau dabar noriu jog rodytu pvz l2 online offline servą ir vat man kodą atvaizduoja o ne gameserver: on loginserver:on
Parašė edeni· 2010 Bal. 30 13:04:31
#186
Ant hostingo bandai ? Ar localhoste ?
Parašė Jaunelis· 2010 Bal. 30 13:04:06
#187
Goku parašė:
Ant hostingo bandai ? Ar localhoste ?
ant pc :)
Parašė edeni· 2010 Bal. 30 13:04:24
#188
Pamegink hostinge. ;)
Parašė Jaunelis· 2010 Bal. 30 13:04:45
#189
//Content
echo "<table align='center' cellpadding='0' cellspacing='0' width='850' class='$main_style'>\n<tr>\n";
if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }
echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }
echo "</tr>\n</table>\n";
tuurim tokį kodą :) noriu padaryti kad po
class='side-border-left'
,
class='side-border-right'
būtų paveiksliukas idėtas bet apačioje :) visaip meginu meginu ir nieko nesigauna gal kas galit padėt :)?
Čia v7 fusiono tema :s
Redagavo Jaunelis· 2010 Geg. 1 16:05:26
Parašė edeni· 2010 Geg. 2 12:05:17
#190
//Content
echo "<table align='center' cellpadding='0' cellspacing='0' width='850' class='$main_style'>\n<tr>\n";
if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td><img src='IMG'>"; }
echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td><img src='IMG'>"; }
echo "</tr>\n</table>\n";
Taip meginai ?
Redagavo edeni· 2010 Geg. 2 12:05:32
Parašė Jaunelis· 2010 Geg. 2 12:05:38
#191
sveiki žiūrėkit turiu tokį koduką:
<a href="./index.php"> b;a b;a</a>
kur man ką rašyt ar į styles.css kišt jog pvz paspaudus ant jo pasikeistu spalva ir liktų...BET PASPAUDUS jau kai įeini į tą page kad tą spalva liktų. tikrai yra mokančių čia tai :).
Redagavo Jaunelis· 2010 Geg. 14 21:05:10
Parašė Creatium· 2010 Geg. 14 21:05:52
#192
a:visited {
color: #FFFFFF;
}
Šitą į
css failą įrašyk. Turėtų veikti.
Parašė Jaunelis· 2010 Geg. 14 21:05:59
#193
meginau neveikia :S bandžiau ir su a:active vis viena kai paspaudi ant to url kad ir liktų ta spalva ant jo....
Parašė Creatium· 2010 Geg. 14 21:05:59
#194
Tai galbūt tos nuorodos turi atskirą a stilių pritaikytą? Tarkim jeigu jos yra kokiame nors div'e, tai
css faile gali būti taip: #div a. Jeigu yra taip, tai tuomet reikėtų prie jų prirašyt šį kodą.
Parašė Jaunelis· 2010 Geg. 14 21:05:32
#195
Creatium parašė:
Tai galbūt tos nuorodos turi atskirą a stilių pritaikytą? Tarkim jeigu jos yra kokiame nors div'e, tai css faile gali būti taip: #div a. Jeigu yra taip, tai tuomet reikėtų prie jų prirašyt šį kodą.
nuorodos priskirtos šiam div'ui
class="menu" tai turėtu buti taip:
a.menu:visited {
bla bla
}
?
Parašė Creatium· 2010 Geg. 14 22:05:18
#196
Na, pagal idėją, tai jeigu šiam div'ui prieš tai nebuvo priskirta a stilius, tai turėtų veikti pagrindiniai a stiliai. Bet dėl visa ko gali pabandyt. Kodas būtų toks:
#menu a:visited {
bla bla
}
Parašė webzlt· 2010 Geg. 14 22:05:54
#197
Creatium parašė:
Na, pagal idėją, tai jeigu šiam div'ui prieš tai nebuvo priskirta a stilius, tai turėtų veikti pagrindiniai a stiliai. Bet dėl visa ko gali pabandyt. Kodas būtų toks:
#menu a:visited {
bla bla
}
ant class atributas . o ne # ;)
.menu a:visited {
bla bla
}
Parašė Jaunelis· 2010 Geg. 21 14:05:33
#198
Sveiki gal kas galite padėti ? Čia turiu tokį kodą man reikia kad atvaizduotu 3 fotkes (kažko su desc limit neveikia :
<?php
global $settings, $db_prefix, $data;
if (!defined("IN_FUSION")) { die("Access Denied"); }
$result=dbquery(
"SELECT ta.album_id,album_title,photo_id,photo_title,photo_thumb1 FROM ".DB_PREFIX."photo_albums ta ".
"JOIN ".DB_PREFIX."photos USING (album_id) ORDER BY photo_id DESC LIMIT 3");
$data=dbarray($result);
$randphotodir = PHOTOS.(!@ini_get("safe_mode") ? "album_".$data['album_id']."/" : "");
if(!file_exists($filename)) $filename=$image_url.'/imagenotfound.jpg';
echo "<center>
<a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."' border='0'>
<img src='".$randphotodir.$data['photo_thumb1']."' title='".$data['photo_title']."' alt='".$data['photo_title']."'>
</a>";
echo"<br>";
$result = dbquery("SELECT count(photo_id) FROM ".$db_prefix."photos");
closeside1();
?>
Redagavo Jaunelis· 2010 Geg. 25 12:05:36
Parašė Nepas· 2010 Geg. 25 12:05:29
#199
<?php
global $settings, $db_prefix, $data;
if (!defined("IN_FUSION")) { die("Access Denied"); }
$result=dbquery(
"SELECT ta.album_id,album_title,photo_id,photo_title,photo_thumb1 FROM ".DB_PREFIX."photo_albums ta ".
"JOIN ".DB_PREFIX."photos USING (album_id) ORDER BY photo_id DESC LIMIT 0,3");
$data=dbarray($result);
$randphotodir = PHOTOS.(!@ini_get("safe_mode") ? "album_".$data['album_id']."/" : "");
if(!file_exists($filename)) $filename=$image_url.'/imagenotfound.jpg';
echo "<center>
<a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."' border='0'>
<img src='".$randphotodir.$data['photo_thumb1']."' title='".$data['photo_title']."' alt='".$data['photo_title']."'>
</a>";
echo"<br>";
$result = dbquery("SELECT count(photo_id) FROM ".$db_prefix."photos");
closeside1();
?>
Netikiu kad veiks :D
Parašė Jaunelis· 2010 Geg. 25 12:05:34
#200
Nu desc limit pakietei tai kaip veiks ?........................................................
Parašė Nepas· 2010 Geg. 25 13:05:00
#201
gfngfngfngfngfngfnfn
Parašė Impossibru· 2010 Geg. 25 13:05:52
#202
DESC LIMIT 0,3
Idomus varintas tavo :|
Parašė Jaunelis· 2010 Geg. 25 13:05:45
#203
Nežinau keičiau ir vienaip ir kitaip ir nepavyksta gal kas padėti galit kad rodytu tris naujausias fto ?
Parašė Jaunelis· 2010 Lie. 31 17:07:52
#204
turiu tokį kodą:
if ($rows > $settings['thumbs_per_page']) echo "<div align='center' style='margin-top:5px;'>\n".makePageNav($rowstart,$settings['thumbs_per_page'],$rows,3,"".BASEDIR."Albumas,".$data['album_id']."-".seoname($data['album_title'])."")."\n</div>\n";
Ir neskaito man $data funkcijos ... nesusuprantu ir global ir taip meginau nieko ...
Redagavo Jaunelis· 2010 Lie. 31 19:07:06
Parašė MAnjack· 2010 Lie. 31 19:07:15
#205
$data kintamąjį apbrėžia cikle ar kaip?
Parašė MAnjack· 2010 Lie. 31 20:07:18
#207
Duok tą vietą kur $data apibrėžia.
Parašė Jaunelis· 2010 Lie. 31 20:07:18
#208
nu pvz kad ir šita:
if ($data['photo_description']) echo nl2br(parseubb($data['photo_description']))."</b><br><br>\n";
echo $locale['434']."<a href='".BASEDIR."narys-".$data['user_name']."-id".$data['user_id']."' class='side'>".$data['user_name']."</a><br>\n";
echo $locale['435'].$data['photo_views']."</span><br>\n";
echo "</td>\n";
$counter++;
}
Parašė MAnjack· 2010 Lie. 31 20:07:54
#209
Reikia žiūrėt iki kurios vietos galioja $data kintamasis. Ciklo pabaiga gali jį uždaryti ir tolimesnėje kodo dalyje kintamasis neveiks.
Parašė Jaunelis· 2010 Lie. 31 20:07:00
#210
Visas kodas jaigu aitu tai aina taip:
if ($data['photo_description']) echo nl2br(parseubb($data['photo_description']))."</b><br><br>\n";
echo $locale['434']."<a href='".BASEDIR."narys-".$data['user_name']."-id".$data['user_id']."' class='side'>".$data['user_name']."</a><br>\n";
echo $locale['435'].$data['photo_views']."</span><br>\n";
echo "</td>\n";
$counter++;
}
echo "</tr>\n</table>\n";
closetable();
}
if ($rows > $settings['thumbs_per_page']) echo "<div align='center' style='margin-top:5px;'>\n".makePageNav($rowstart,$settings['thumbs_per_page'],$rows,3,"".BASEDIR."Albumas,".$data['album_id']."-".seoname($data['album_title'])."")."\n</div>\n";
}
}
Gal kaip nors pataisysi kodą nežinau kad veiktų :)
Parašė MAnjack· 2010 Lie. 31 20:07:46
#211
Duok aukščiau esantį kodą, o ne pabaigą :D
Parašė Jaunelis· 2010 Lie. 31 20:07:44
#212
buvo kodas nėra kodo :)
Redagavo Jaunelis· 2010 Lie. 31 20:07:34
Parašė MAnjack· 2010 Lie. 31 20:07:46
#213
Taip gaunasi, dėl to, kad neapibrėžtas tas $data kintamasis. Prieš puslapiavimą padaryk naują užklausą su reikiamais select'inimais ir viskas veiks :)
Parašė Jaunelis· 2010 Lie. 31 20:07:51
#214
taigi klausimas:
Kaip galima butu pasidaryti kad rodytu kiek žmogus kartų ant tam tikro linko paspaudė ?
Redagavo Jaunelis· 2010 Lie. 31 23:07:53
Parašė Deiviux.eu· 2010 Rugp. 1 10:08:31
#215
Galiu pasakyti kaip tai padaryti, tiesiog sukurk failą, pvz a.php
Ir padaryk taip, kad gautą URL pvz: a.php?a=google.lt jis įrašytų į duomenų bazės lentelę, ir skaičiuotų taip, o duomenų bazėje du laukeliai pvz: url ir count. Nu supranti, laukelis url tai tas google.lt o count vis prideda po vieną kai eina per tą nuorodą į google.lt. Dar gali daryti su IP, jog skaičiuotų unikalius. Manu tokį skriptą parašyčiau aš :) Lengva.
Parašė Jaunelis· 2010 Rugp. 1 11:08:51
#216
Deiviux parašė:
Galiu pasakyti kaip tai padaryti, tiesiog sukurk failą, pvz a.php
Ir padaryk taip, kad gautą URL pvz: a.php?a=google.lt jis įrašytų į duomenų bazės lentelę, ir skaičiuotų taip, o duomenų bazėje du laukeliai pvz: url ir count. Nu supranti, laukelis url tai tas google.lt o count vis prideda po vieną kai eina per tą nuorodą į google.lt. Dar gali daryti su IP, jog skaičiuotų unikalius. Manu tokį skriptą parašyčiau aš :) Lengva.
jo butu labai gerai kai parašytum :) , nu suprast supratau kame bairis tik vat su duom baze tu lenteliu nemoku rašyt :D
Parašė Deiviux.eu· 2010 Rugp. 1 12:08:12
#217
$url = htmlspecialchars($_GET['url']);
$sql2 = mysql_query("SELECT * FROM paspaudimai WHERE url = '$url' ");
if (mysql_num_rows($sql2) != 0) {
$sql = mysql_query("UPDATE paspaudimai SET paspausta = 'paspausta + 1' WHERE url = '$url'");
}
else {
$sql = mysql_query("INSERT INTO paspaudimai VALUES ('$url', '1')");
}
Manau taip.
Redagavo Deiviux.eu· 2010 Rugp. 1 12:08:41
Parašė Jaunelis· 2010 Rugp. 1 12:08:14
#218
Aha šitą per
phpmyadmin parašyti ? ar reik lentele su pavadinimu kažkokiu sukurti ? :)
Parašė ĄČĘĖĮŠŲ· 2010 Rugp. 1 12:08:49
#219
Čia kode, ne
phpmyadmin.
Phpmyadmin gi kintamųjų nerašysi. ;)
Parašė Jaunelis· 2010 Rugp. 1 12:08:41
#220
Naujas klausimas :) ,
Kaip padaryti kad tam tikrame foto albume nebutu tam tikro teksto :) ?
Redagavo Jaunelis· 2010 Rugp. 6 03:08:06
Parašė Narysx· 2010 Rugp. 6 05:08:39
#221
Kaip suprasti, nebūtų tam tikro teksto? Juk foto albumu nuotraukos, o ne kažkokie tekstai. ;D
Parašė Jaunelis· 2010 Rugp. 6 12:08:48
#222
Narysx parašė:
Kaip suprasti, nebūtų tam tikro teksto? Juk foto albumu nuotraukos, o ne kažkokie tekstai. ;D
taip ir suprask kad pvz nerodytų albume id 1 teksto: komentarai , arba kito teksto ir pnš :)
Parašė edeni· 2010 Rugp. 6 12:08:52
#223
if($cat_id=="1"){
echo"čia tavo tas sušiktas tekstas";
}else{
echo"";
}
kažkas tokio
Parašė Jaunelis· 2010 Rugp. 6 12:08:10
#224
Goku parašė:
if($cat_id=="1"){
echo"čia tavo tas sušiktas tekstas";
}else{
echo"";
}
kažkas tokio
aga idedu šitą kodą tai vapšie visur nerodo :D
t.y. rodo tik cat_id1 albume :D kitur nerodo o man reikia kad butu atvirškčiai visur rodytu o jame nerodytu
EDIT: susitvarkiau dėkui
Redagavo Jaunelis· 2010 Rugp. 6 13:08:05
Parašė Jaunelis· 2010 Rugp. 6 13:08:58
#225
Dar vienas klausimas:
Įmanomą ,css failą arba theme.php failą užkoduoti kažkokiu ten šifru ? kad veiktų viskas normaliai
Parašė Deiviux.eu· 2010 Rugp. 6 13:08:24
#226
Gali koduoti base64 viską :)
<?php
$koduotas = base64_encode("Tekstas"); //Užkodavimas
$atkoduotas = base64_decode("$uzkodavimas"); //Atkodavimas
?>
Taippat yra vienetainė sistema (11001011000) bet čia jau Ozz'as apie ją papasakoti turi, aš nesidomėjau.
Taippat ir dvejatainė ar panašiai.
http://home2.paulschou.net/tools...
Parašė Jaunelis· 2010 Spa. 29 17:10:47
#227
Žinau aš tas dvejataines , aštuntaines , dešimtaines :D bet čia jau sena tema , reikia tokios mini pagalvos:
Ant v6 news.php faile buvo
rowstart ir ant v7 yra bet v6 faile buvo man regis ir news.php pridėta nu kaip nuoroda , dabar ant v7 news.php faile tik funkcija surašyta , o tai kur rasti man tą nelemtą nuorodą ? gal kas galite pasakyti ? nes man reik ją pakeisti. :)
Parašė Jaunelis· 2011 Rugp. 24 16:08:09
#228
Sveiki , senai beklausiau tokių dalykų čia bet gal kas žinos kur yra užslėptos search.php nuorodos ?? nes pačiame faile tai nėra tokių nuorodų kaip news.php ir pnš per kur jas keist kad toje paieškoje pasiekstų ?
Parašė MaFetas· 2011 Rugp. 24 16:08:01
#229
includes/search/
Parašė Jaunelis· 2011 Rugp. 24 17:08:04
#230
MaFetas parašė:
includes/search/
AČIŪ!