Puika1 Posted March 8, 2009 Report Share Posted March 8, 2009 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 Quote Link to comment Share on other sites More sharing options...
Aikss Posted March 8, 2009 Report Share Posted March 8, 2009 Laikam jau iekš "render_header($header_content)" funkcijas apakšā. Ielikt kādu <tr><td>Teksts</td></tr> iekš kādas tabulas. 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>"; Quote Link to comment Share on other sites More sharing options...
Puika1 Posted March 8, 2009 Author Report Share Posted March 8, 2009 (edited) a ja es šādu izvelni ieliktu tur man ietu? <ul id="navigation"> <li><a href="link">Sākums</a></li> <li><a href="link">Forums</a></li> <li><a href="link/">Bani</a></li> <li><a href="link">Stati</a></li> <li><a href="link>Par Mums</a></li> <li><a href="link">Lietotāji</a></li> <li><a href="link">Noteikumi</a></li> </ul><table id="main"> <tr> un ieks css ieliktu navigation ? a un kā tu teici man tas teksts parādās virs header Edited March 8, 2009 by Puika1 Quote Link to comment Share on other sites More sharing options...
Aikss Posted March 8, 2009 Report Share Posted March 8, 2009 (edited) Ja parādās virs header, tad tā liste jāliek kaut kur zemāk. Neredzot lappuses source grūti pateikt kas un kā. 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 ' <ul id="navigation"> <li><a href="link">Sākums</a></li> <li><a href="link">Forums</a></li> <li><a href="link">Bani</a></li> <li><a href="link">Stati</a></li> <li><a href="link">Par Mums</a></li> <li><a href="link">Lietotāji</a></li> <li><a href="link">Noteikumi</a></li> </ul>'; echo "<table width='100%' cellpadding='4' bgcolor='#F8F8F8' cellspacing='0' border='0'><tr>"; } Palabo savu listi, nepaskatījos, ka viņā ir nepilnības! Saraksts parādījās, tika background jānomaina. Bija tak tieši tur kur gribēji, tika background bija jānomaina, jānoliek, lai ir horizontāli. Edited March 8, 2009 by Aikss Quote Link to comment Share on other sites More sharing options...
Puika1 Posted March 8, 2009 Author Report Share Posted March 8, 2009 (edited) vari aplūkot te tagad paskaties kā ir kad ieliku tavu kodu tagad man problemas ar css es lieku šādi ul#navigation {font-size: 10pt; background: #000000 url('img/navbg.jpg') repeat; height: 32px; margin: 0; padding: 0 0 0 20px; } ul#navigation li { text-transform: capitalize; display: block; padding: 7px 1px 6px 0px; margin: 0; float: left; background: transparent; border-right:1px solid #00a2ff; } ul#navigation li a { padding: 5px 8px 6px 8px; margin: 0 10px; color: #ffffff; text-decoration: none; border: none; font-family:verdana; } ul#navigation li a:hover,ul#navigation li a:active { color: #00a2ff; text-decoration: none; width: 26px; man nerāda Edited March 8, 2009 by Puika1 Quote Link to comment Share on other sites More sharing options...
Aikss Posted March 8, 2009 Report Share Posted March 8, 2009 (edited) Kur tu viņu ieliki, man nerādās, ka būtu css failā viņš, ne arī ka uz elementu būtu kāds stils. Tagad parādījās. Edited March 8, 2009 by Aikss Quote Link to comment Share on other sites More sharing options...
Puika1 Posted March 8, 2009 Author Report Share Posted March 8, 2009 zinu paldies par palīdzību Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.