Jump to content
php.lv forumi

Puika1

Reģistrētie lietotāji
  • Posts

    247
  • Joined

  • Last visited

Everything posted by Puika1

  1. Puika1

    script+bilde

    Es jau sākumā tā dariju neiet p.s izskatijās šādi error_reporting(E_ALL); ini_set("display_erors", 1); <?php $url = "http://witality.put.lv/forum/index.php?showuser="; $con = mysql_connect($host,$dbuser,$dbpass); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db($dbname, $con); $result = mysql_query("SELECT * from ibf_members order by posts desc LIMIT 0, 10 "); while($row = mysql_fetch_array($result)) { echo "<img src="http://www.lonelyplanet.tv/images/icon_user-small.gif" alt="" /><b><a href=\"$url".$row['id']."\"></a></b>".$style; echo "<table width=\"163\" cellpadding=\"0\" cellspacing=\"0\"><tr><td width=\"153\" lign=\"left\">".$row['members_display_name']."</td><td width=\"10\" lign=\"left\">(".$row['posts'] .")</td></tr></table></a>"; echo "</b>"; } mysql_close($con); ?>
  2. Puika1

    script+bilde

    tikuntā balta :(
  3. Puika1

    script+bilde

    es itkā ieliku bet ari balta lapa un varbut es kko ne ta es īsti nesapratu tās eigas echo "<img src=\"http://www.lonelyplanet.tv/images/icon_user-small.gif\" alt=\"\" /> ... man ar šo aizvietot visu rindu ai beigas atstat to style?
  4. Puika1

    script+bilde

    es izdariju ta ka tuteici bet nestrada -rada baltu lapu šādi zskatijāš <?php $url = "http://witality.put.lv/forum/index.php?showuser="; $con = mysql_connect($host,$dbuser,$dbpass); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db($dbname, $con); $result = mysql_query("SELECT * from ibf_members order by posts desc LIMIT 0, 10 "); while($row = mysql_fetch_array($result)) { echo "<img src="http://www.lonelyplanet.tv/images/icon_user-small.gif" alt="" /><b><a href=\"$url".$row['id']."\"></a></b>".$style; echo "<table width=\"163\" cellpadding=\"0\" cellspacing=\"0\"><tr><td width=\"153\" lign=\"left\">".$row['members_display_name']."</td><td width=\"10\" lign=\"left\">(".$row['posts'] .")</td></tr></table></a>"; echo "</b>"; } mysql_close($con); ?>
  5. Puika1

    script+bilde

    šāds script <?php $url = "http://witality.put.lv/forum/index.php?showuser="; $con = mysql_connect($host,$dbuser,$dbpass); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db($dbname, $con); $result = mysql_query("SELECT * from ibf_members order by posts desc LIMIT 0, 10 "); while($row = mysql_fetch_array($result)) { echo "<b><a href=\"$url".$row['id']."\"></a></b>".$style; echo "<table width=\"163\" cellpadding=\"0\" cellspacing=\"0\"><tr><td width=\"153\" lign=\"left\">".$row['members_display_name']."</td><td width=\"10\" lign=\"left\">(".$row['posts'] .")</td></tr></table></a>"; echo "</b>"; } mysql_close($con); ?> viņš ir šāds es gribētu šādi kāds var man palīdzēt to dabūt gatavu kad es mēģinu man rāda tikai baltu lapu help
  6. Puika1

    scripts

    man ir šāds scripts <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <? $db_host='host'; $db_user='user'; $db_pass='pass'; $db_name='db'; mysql_connect($db_host,$db_user,$db_pass)or die(mysql_error()); mysql_select_db($db_name)or die(mysql_error()); $reg = mysql_query("SELECT * FROM ibf_members"); $reg = mysql_num_rows($reg); $delay = "900"; $delays = time() - $delay; $useri = mysql_query("SELECT * FROM ibf_members WHERE last_activity >= ".$delays.""); $regon = mysql_num_rows($useri); $viesi = mysql_query("SELECT * FROM ibf_sessions WHERE member_id = '0' and running_time >= ".$delays.""); $viesi = mysql_num_rows($viesi); $kopa = $regon + $viesi; echo ' <span style="font-size:9pt;"> Reģistrējušies: '.$reg.'<br /> Online: '.$kopa.'<br /> Viesi: '.$viesi.'<br /> Lietotāji: '.$regon.'<br /> <hr style="margin:2px 0;"/> '; $getusers = mysql_query("SELECT * FROM ibf_members WHERE last_activity >= '$delays'"); while ($users = mysql_fetch_array($getusers)){ echo "<a href='f/index.php?showuser=$users[id]' title='$users[members_display_name]'>$users[members_display_name]</a><br />"; } ?> </span> un rāda lietotājus online šādi kā var dabūt lai rādītu šādi? lietotajvards lietotajvards lietotajvards lietotajvards utt. tipa uz leju ludzu palidziet
  7. Puika1

    izvelne

    palidzesiet ar izvelni gribas tadu izvelni sakums (Sākums būtu bilde) forums (forums būtu bilde) utt. (utt būtu bilde) es mēģināju šādi <a target="_blank" href="index.php"><img src="sakums.gif"></a><br> Bet uzpiežot atver jaunā loga kā man izdarīt lai nevēryu jaunos logos
  8. Bet ka varbut varetu mazliet precizak paskaidrot :)
  9. Ja bet es negribēju lai forumā rāditu to uzrakstu et gan uz php weblapas ;)
  10. Piem kdam ir šādss script piem man ir php weblapa uzpiežot uz forumu (IPB) (Ja nēēsmu ielogojies rāda šādi) ps es būtu ļoti pateicīgs par šādu scriptu
  11. Puika1

    palidzesuiet

    kads varetu ludzu man iedot sadu scriptu kautvai piemeru un paskaidrot kur ka ? :) piem ka ch***.lv uzpiezot uz lietotaju weba radas sitads un tasa ir saistits ar ipb forumu
  12. vari aplūkot te tagad paskaties kā ir kad ieliku tavu kodu tagad man problemas ar css es lieku šādi man nerāda
  13. a ja es šādu izvelni ieliktu tur man ietu? un ieks css ieliktu navigation ? a un kā tu teici man tas teksts parādās virs header
  14. tātad man ir šādi Es gribētu šajā vietā ievietot tekstu Kur man tieši viņš jārakste ? te būs theme.php <?php /************************/ /* Settings/Nustatymai */ /************************/ $body_text = "#000000"; $body_bg = "#ffffff"; $theme_width = "930"; $theme_width_l = "180"; $theme_width_r = "180"; function render_header($header_content) { global $theme_width,$settings,$locale,$userdata,$aidlink; echo "<table class='forumline' align='center' width='$theme_width' cellspacing='0' cellpadding='0' style='border-right: solid #b5b5b5 1px; border-left: solid #b5b5b5 1px;'>"; 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 class='header' width='100%'>"; // Start banner code / Banerio kodas echo "<table width='100%' cellspacing='0' cellpadding='0' style='border-right: solid #b5b5b5 1px; border-left: solid #b5b5b5 1p<b><a href='' target=''> </script> </b><tr><td height='150' background='".THEME."images/baner.jpg' align='right' valign='middle'> <table width='930' border='0' cellspacing='0' cellpadding='0'> <tr><td height='150' background='".THEME."images/baner.jpg' align='right' valign='middle'> <table width='30' border='0' cellspacing='0' cellpadding='0'> <tr> <td> </td> <td width='220' align='center'>"; echo "</td> <td><img src='".THEME."images/blank.gif'> </td> </tr> </table> </td>"; echo "</td></tr></table>\n"; echo "<table width='100%' border='0' cellpadding='0' cellspacing='0' bgcolor='#FFFFFF'> </table>\n"; echo "<table width='100%' cellpadding='4' bgcolor='#F8F8F8' cellspacing='0' border='0'><tr>"; } function render_footer($license=false) { global $theme_width,$locale,$settings; echo "</tr>\n</table>\n"; echo "<table cellSpacing='0' cellPadding='2' width='100%' border='0' background='".THEME."images/subheader.gif' style='border-right: solid #b5b5b5 1px; border-left: solid #b5b5b5 1px;'>"; echo "<td width='20%' height='' class='white' align='left'>"; if ($license == false) { echo ""; } echo "</td>"; echo "<td width='40%' class='white' align='center'>"; echo "<b>".stripslashes($settings['footer'])."</b></td>"; echo "<td width='26%' class='white' align='right'>"; echo ""; echo "</td>"; echo "<div align='center'></tr></table></td></tr></table></div>"; } function render_news($subject, $news, $info) { global $locale; echo "<table class='news-border' border='0' cellspacing='2' width='100%' cellpadding='1'><tr>"; echo "<td height='23' class='table-cellpic'><center>$subject</center></td>"; echo "</tr></table>"; echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>"; echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>"; echo "<td class='main-body'>$news</td></tr></table>"; echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>"; echo "<td class='news-footer'>"; echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> "; echo "".$locale['041'].showdate("longdate", $info['news_date'])." </td>"; echo "<td height='24' align='right' class='news-footer'>"; echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "").""; if ($info['news_allow_comments']) echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> · "; echo "".$info['news_reads'].$locale['044']." "; echo "<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' style='vertical-align:middle;border:0px;'></a>"; echo "</td></tr></table></td></tr></table>\n"; } function render_article($subject, $article, $info) { global $locale; echo "<table class='news-border' border='0' cellspacing='2' width='100%' cellpadding='1'><tr>"; echo "<td height='23' class='table-cellpic'>$subject</td>"; echo "</tr></table>"; echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>"; echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>"; echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article).""; echo "</td></tr></table>"; echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>"; echo "<td class='news-footer'>"; echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> "; echo "".$locale['041'].showdate("longdate", $info['article_date'])."</td>"; echo "<td height='24' align='right' class='news-footer'>"; if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." · "; echo "".$info['article_reads'].$locale['044']." "; echo "<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' style='vertical-align:middle;border:0px;'></a>"; echo "</td></tr></table></td></tr></table>\n"; } // Open table begins function opentable($title) { echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>"; echo "<tr><td width='100%'><table class='panel-border' cellSpacing='1' cellPadding='0' width='100%' border='0'>"; echo "<tr><td width='100%' height='23' class='table-cellpic' align='left'>$title</td></tr>"; echo "<tr><td class='main-body' width='100%' bgColor='#FFFFFF'>"; } // Close table end function closetable() { echo "</td></tr></table></td></tr></table>"; } function openside($title) { echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>"; echo "<tr><td width='100%'><table class='panel-border' cellSpacing='1' cellPadding='0' width='100%' border='0'>"; echo "<tr><td width='100%' height='23' class='panel-cellpic' align='center'>$title</td></tr>"; echo "<tr><td class='side-body' width='100%' bgColor='#FFFFFF'>"; } function closeside() { echo "</td></tr></table></td></tr></table>"; tablebreak(); } function opensidex($title,$open="on") { $boxname = str_replace(" ", "", $title); $box_img = $open == "on" ? "off" : "on"; echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>"; echo "<tr><td width='100%'><table class='panel-border' cellSpacing='1' cellPadding='0' width='100%' border='0'>"; echo "<tr><td width='100%' height='23' class='panel-cellpic' align='center'><img align='right' src='".THEME."images/panel_$box_img.gif' name='b_$boxname' alt='' onclick=\"java script:flipBox('$boxname')\">$title</td></tr>"; echo "<tr><td class='side-body' width='100%' bgColor='#FFFFFF'>"; echo "<div id='box_$boxname'"; if($open=="off"){ echo "style='display:none'"; } echo ">\n"; } function closesidex() { echo "</div></td></tr></table></td></tr></table>"; tablebreak(); } // Table functions function tablebreak() { echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n"; } ?> Ja varat lūdzu palīdziet
  15. šis jau nau trial kautkāds?
  16. Puika1

    ipb panel

    es ar šo gribētu zināt :(
  17. es sapratu bet man nesanak :(:( JA ES TEU PALUGTU LUDZU TU VARETU SALIKT ?
  18. pareizi es sapratu man jaliek ta <?php if ($handle = link('http://morgss.com/demo/')) { while (false !== ($file = readdir($handle))) { if (strlen($file) > 4) { <table>$gabali = explode("-", $file);</table> <table>$date = $gabali[1];</table> <table>$mape = $gabali[2];</table> <table>$mapesgabali = explode(".", $mape);</table> <table>$name = $mapesgabali[0];</table> <table>$year = substr($date,0,2);</table> <table>$month = substr($date,2,2);</table> <table>$day = substr($date,4,2);</table> <table>$hour = substr($date,6,2);</table> <table>$minute = substr($date,8,2);</table> echo "<center> $day.$month.$year;</table> <a href=\"demo/$file\">Novilkt</a></br></center>"; } } closedir($handle); } ?>
  19. man ir šāda problēma te viss rādās šķībi http://morgss.com/demo.php (tā nau reklāma) un es izmantoju šo kodu <?php if ($handle = link('http://morgss.com/demo/')) { while (false !== ($file = readdir($handle))) { if (strlen($file) > 4) { $gabali = explode("-", $file); $date = $gabali[1]; $mape = $gabali[2]; $mapesgabali = explode(".", $mape); $name = $mapesgabali[0]; $year = substr($date,0,2); $month = substr($date,2,2); $day = substr($date,4,2); $hour = substr($date,6,2); $minute = substr($date,8,2); echo "<center> $day.$month.$year $hour:$minute $name <a href=\"demo/$file\">Novilkt</a></br></center>"; } } closedir($handle); } ?> Es ļoti būtu pateicīgs ja kāds palīdzētu dabūt tā lai viss būtu vienā rindā un lai b utu pa lapam piem viena lapa kadi 20 demo un tad nakosa utt help ludzu
  20. Es laikam nesapratu incudle tipa neka nau tikai config un vela kautkas re var apskatit darbiba spied te (ta nau reklama)
  21. http://ownmen.filer.lv/gfx_tutorials/file-sistema.rar.htm man ir tāda ideja ielikt winu sawa web bez css bet nezinu ka atdalit no index faila to ka vestules sutisanas scriptu vaig atdalit no index varetu kads pateikt kur tiesi to var izdarit? :)
  22. Es jau neprasu lai raksta ,mana doma varbūt kāds zin kur lejuplādet
×
×
  • Create New...