Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Panelės 2in1

Parašė Gugiss· 2008 Bir. 5 23:06:40
#1

Kaip būtų galima šias 2 paneles sukišti į vieną. Panašiai kaip ex-fusion info_panel. Bandžiau pats bet nk nesigavo:

echo "";
$result = dbquery("SELECT * FROM ".DB_PREFIX."news WHERE ".groupaccess('news_visibility')." AND (news_start='0'||news_start<=".time().") AND (news_end='0'||news_end>=".time().") ORDER BY news_datestamp DESC LIMIT 0,7");
while ($data = dbarray($result)) {
$title = $data['news_subject'];
$sh_title = $title;
$n_id = $data['news_id'];
$v_id = $data['news_reads'];
$comments_n = dbcount("(comment_id)", "comments", "comment_type='N' AND comment_item_id=$n_id");
$date = $data['news_datestamp'];
$n_date = showdate("%Y %B %d", $date);
$name = $data['news_cat'];

echo "<img src='".THEME."images/bullet.gif'>
<a href='".BASEDIR."naujienos.php?skaityti=$n_id'><b>$sh_title</b></a> - $comments_n komentarų [$n_date]
<span class='side'></span><br><br>";
}





echo "";
$result = dbquery("SELECT * FROM ".DB_PREFIX."video WHERE ".groupaccess('video_visibility')." AND (video_start='0'||video_start<=".time().") AND (video_end='0'||video_end>=".time().") ORDER BY video_datestamp DESC LIMIT 0,7");
while ($data = dbarray($result)) {
$title = $data['video_subject'];
$sh_title = $title;
$n_id = $data['video_id'];
$v_id = $data['video_reads'];
$comments_n = dbcount("(comment_id)", "comments", "comment_type='V' AND comment_item_id=$n_id");
$date = $data['video_datestamp'];
$n_date = showdate("%Y %B %d", $date);
$name = $data['video_cat'];

echo "<img src='".THEME."images/bullet.gif'>
<a href='".BASEDIR."video.php?ziureti=$n_id'><b>$sh_title</b></a> - $comments_n komentarų [$n_date]
<span class='side'></span><br><br>";
}



Parašė Dandžu· 2008 Bir. 5 23:06:36
#2

Tipo vieną prie kito? Aš nežinau kaip atrodo ta info_panel.

Redagavo Dandžu· 2008 Bir. 5 23:06:03

Parašė Gugiss· 2008 Bir. 5 23:06:58
#3

Taip viena prie kitos

Parašė Dandžu· 2008 Bir. 5 23:06:52
#4

Tai su table ir td dėk.
echo "<table width='100%'>
<tr><td width='48%'>";
echo "";
$result = dbquery("SELECT * FROM ".DB_PREFIX."news WHERE ".groupaccess('news_visibility')." AND (news_start='0'||news_start<=".time().") AND (news_end='0'||news_end>=".time().") ORDER BY news_datestamp DESC LIMIT 0,7");
while ($data = dbarray($result)) {
$title = $data['news_subject'];
$sh_title = $title;
$n_id = $data['news_id'];
$v_id = $data['news_reads'];
$comments_n = dbcount("(comment_id)", "comments", "comment_type='N' AND comment_item_id=$n_id");
$date = $data['news_datestamp'];
$n_date = showdate("%Y %B %d", $date);
$name = $data['news_cat'];

echo "<img src='".THEME."images/bullet.gif'>
<a href='".BASEDIR."naujienos.php?skaityti=$n_id'><b>$sh_title</b></a> - $comments_n komentarų [$n_date]
<span class='side'></span><br><br>";
}
echo "</td><td width='48%'>";
echo "";
$result = dbquery("SELECT * FROM ".DB_PREFIX."video WHERE ".groupaccess('video_visibility')." AND (video_start='0'||video_start<=".time().") AND (video_end='0'||video_end>=".time().") ORDER BY video_datestamp DESC LIMIT 0,7");
while ($data = dbarray($result)) {
$title = $data['video_subject'];
$sh_title = $title;
$n_id = $data['video_id'];
$v_id = $data['video_reads'];
$comments_n = dbcount("(comment_id)", "comments", "comment_type='V' AND comment_item_id=$n_id");
$date = $data['video_datestamp'];
$n_date = showdate("%Y %B %d", $date);
$name = $data['video_cat'];

echo "<img src='".THEME."images/bullet.gif'>
<a href='".BASEDIR."video.php?ziureti=$n_id'><b>$sh_title</b></a> - $comments_n komentarų [$n_date]
<span class='side'></span><br><br>";
}
echo "</td></tr></table>";



Parašė Gugiss· 2008 Bir. 6 00:06:21
#5

Taip esu pasidaręs, bet noriu kad butų kaip info panel apibraukta baltu borderiu. Pažiūrėk mano saite http://mmo.xz.lt

Parašė Gugiss· 2008 Bir. 6 15:06:44
#6

+Tekstas (linkai) lentelėje kažkodėl didesnis negu turėtų būti ?|

Redagavo Gugiss· 2008 Bir. 6 15:06:37

Parašė Enzo· 2008 Bir. 6 15:06:54
#7

class priskirk į shoutboxdate

Parašė Gugiss· 2008 Bir. 6 16:06:30
#8

Jau susitvarkiau reikejo įterpt <fieldset><legend>...</legend></fieldset>

Parašė Gugiss· 2008 Bir. 7 22:06:09
#9

Prie to pačio norėčiau paklaust kaip dvi paneles (atskiras) sugrūsti į vieną eilę.

Parašė bad_user· 2008 Bir. 8 00:06:02
#10

Prie table dedi cellspacing='0' cellpadding='0' :)

Parašė Gugiss· 2008 Bir. 10 11:06:13
#11

Neišeina pasidaryt tokios lentelės. Kas blogai?
<?
echo "<table width='100%' cellspacing='0' cellpadding='0' class='shoutboxdate'>
  <tr>
    <th>
<td align='left'>\n";
require_once "infusions/info_panel/info_panel.php";
echo "</td></th>
<th></th>
    <th>
<td align='left'>\n";
require_once "infusions/user_info_panel/user_info_panel.php";
echo "</tr></th>
</td>
</table>";
?>



Parašė ramon· 2008 Bir. 10 12:06:30
#12

<?
echo "<table width='100%' cellspacing='0' cellpadding='0' class='shoutboxdate'>
  <tr>
    <th>
<td align='left'>\n";
include INFUSIONS."info_panel/info_panel.php";
echo "</td></th>
<th></th>
    <th>
<td align='left'>\n";
include INFUSIONS."user_info_panel/user_info_panel.php";
echo "</tr></th>
</td>
</table>";
?>




Parašė Gugiss· 2008 Bir. 10 12:06:42
#13

Dabar rodo tik user_info_panel, o info_panel nerodo ?|

Redagavo Gugiss· 2008 Bir. 10 12:06:04

Parašė ramon· 2008 Bir. 10 12:06:17
#14

Ziurek ar gerai nurodei nuoroda iki info_paneles..

Parašė Gugiss· 2008 Bir. 10 12:06:40
#15

Gerai :|

Parašė MAnjack· 2008 Bir. 10 13:06:55
#16

Tai kaip gali vieną rodyt o kitos ne? :D