| Author | Message |
alikoza
231 posts |
#6778 2007-10-04 11:28 GMT |
|
evet arkadaşlar çok denedim ama bir türlü istediğimi başaramadım.. ![]() böyle olmasını istiyorum ama yapamadım....Forumda yazılanların hepsini okudum...yaptım ama çok kabarık oluyor bir türlü düzelmedi... şu anki görünüşü de böyle.. ![]() Code: <?PHP /* ==================== Land Down Under - Website engine Copyright Kaan http://www.ntka.org [BEGIN_SED] File=plugins/latestposts/latestposts.php Version=2 Updated= Type=Plugin Author=| Kaan | www.ntka.org a.q bunu yanl?? yazan?n ?pneler adam gibi yaz?n yaz?yorsan?z. Description=Ana Sayfada Son Forum Konulari [END_SED] [BEGIN_SED_EXTPLUGIN] Code=latestposts Part=main File=latestposts Hooks=index.tags Tags=index.tpl:{PLUGIN_latestposts} Minlevel=0 Order=10 [END_SED_EXTPLUGIN] ==================== */ if ( !defined('SED_CODE') ) { die("Hacking attempt."); } $plimit = "20"; // define number of rows you want to see... $sql = sed_sql_query("SELECT t.ft_id, t.ft_sectionid, t.ft_title, t.ft_updated, t.ft_postcount, t.ft_viewcount, t.ft_lastposterid, t.ft_lastpostername, s.fs_id, s.fs_title, s.fs_category FROM $db_forum_topics t,$db_forum_sections s WHERE t.ft_sectionid=s.fs_id AND t.ft_movedto=0 AND t.ft_mode=0 ORDER by t.ft_updated DESC LIMIT $plimit"); $latestposts = "<table class='cells' width='100%' cellspacing='3' cellpadding='0' align='center'>"; $latestposts .= "<tr><td class=\"coltop\">Konu</td><td class=\"coltop\">Mesajlar</td><td class=\"coltop\">Okunma</td><td class=\"coltop\">Son Gonderen</td><td class=\"coltop\">Tarih</td></tr>"; $ii=0; while ($row = sed_sql_fetcharray($sql)){ if (sed_auth('forums', $row['fs_id'], 'R')){ $ii++; $img = ($usr['id']>0 && $row['ft_updated']>$usr['lastvisit']) ? "<a href=\"forums.php?m=posts&q=".$row['ft_id']."&n=unread#unread\"><img src=\"skins/$skin/img/system/arrow-unread.gif\" alt=\"\" /></a>" : "<a href=\"forums.php?m=posts&q=".$row['ft_id']."\"><img src=\"skins/$skin/img/system/arrow-follow.gif\" alt=\"\" /></a> "; $latestposts .= "<tr><td> "; $latestposts .= $img." <a href=\"forums.php?m=posts&q=".$row['ft_id']."\">".sed_cc(sed_cutstring(stripslashes($row['ft_title']),38))."</a></td>"; $latestposts .="<td> (" .$row["ft_postcount"]. ") </td>"; $latestposts .="<td> (" .$row["ft_viewcount"]. ")</td>"; $latestposts .= "<td> <a href='users.php?m=details&id=".$row["ft_lastposterid"]."'>".$row["ft_lastpostername"]."</a></td>";$latestposts .= "<td> ".date($cfg['formatmonthdayhourmin'], $row['ft_updated'] + $usr['timezone'] * 3600)."</td></tr>"; } } if($ii==0){ $latestposts .= "<tr><td colspan=\"5\"><center><font color='red'>Son Forum Konular?n? Gormek icin Giri? Yap?n?z</font></center></td></tr>"; } $latestposts .= "</table>"; $t-> assign(array( "PLUGIN_latestposts" => $latestposts, )); ?> bu benim latestpost.php dosyam... Code: /* ============== Overall ============== */ html { padding:0; } body { font-size: 11px; font-family: Tahoma, Georgia, Arial, Courier, Helvetica, Verdana, sans-serif, Turkish-ISO; color: #dadada; margin:0px; padding:0; background:#000000 url(img/back.gif); } a { text-decoration:none; border-width:0; color:#9a9999; } a:hover { color: #FF0000; font-weight: none; text-decoration: underline;} form { margin: 0px; } hr { color: #e0e0e0; height: 1px; } .border_right { background:url(img/main/br2.gif); width:29px;} .border_left { background:url(img/main/bl2.gif); width:29px;} <!--- KAYNAK: http://www.LorenzoKalamites.Com ---> <script type="text/javascript"> //Link Fader- By Fayez Zaheer (fayez@design64.net)http://design64.net // Fade-to colour without the # (6 character value only!) / linkin alacag? en son renk(6 karakter) var fadeTo = "#cc3300"; // Fade in colour increment/decrement by / linkin son rengine gecme h?z? var fiBy = 13; // Fade out colour increment/decrement by / linkin orjinal rengine donme h?z? var foBy = 3; // Speed - milliseconds between each colour change in the fade // Less than 10ms doesn't really make all that much difference, so // 10 is the minimum effective value. //// Renk gecislerindeki genel h?z var speed = 1; // Class name of links to NOT fade (i.e. ignore) // var ignoreClass = "somebogusvalue" if you don't want to // use this feature. Alternatively, add onmouseover="clearFade()" // to the link you do not wish to fade. var ignoreClass = "ignore"; var opera, ie, dom, x = 0, oc, fader, ocs = new Array(); if (navigator.userAgent.indexOf("Opera") != -1) opera = true else if (document.all && !opera) ie = true else if (!document.all && document.getElementById) dom = true; function convertRGB(z) { var newfcS = "", splitter = ""; splitter = z.split(","); splitter[0] = parseInt(splitter[0].substring(4, splitter[0].length)); splitter[1] = parseInt(splitter[1]); splitter[2] = parseInt(splitter[2].substring(0, splitter[2].length-1)); for (var q = 0; q < 3; q++) { splitter[q] = splitter[q].toString(16); if (splitter[q].length == 1) splitter[q] = "0" + splitter[q]; newfcS += splitter[q]; } return newfcS; } function currentColour(index) { var temp, cc; if (opera) cc = document.links[index].style.color else if (ie) cc = document.links[index].currentStyle.color else if (dom) cc = document.defaultView.getComputedStyle(document.links[index], '').getPropertyValue("color"); if (cc.length == 4 && cc.substring(0, 1) == "#") { temp = ""; for (var a = 0; a < 3; a++) temp += cc.substring(a+1, a+2) + cc.substring(a+1, a+2); cc = temp; } else if (cc.indexOf("rgb") != -1) cc = convertRGB(cc) else if (cc.length == 7) cc = cc.substring(1, 7) else cc = fadeTo; return cc; } function convert2Dec(hex) { var rgb = new Array(); for (var u = 0; u < 3; u++) rgb[u] = parseInt(hex.substring(u*2, u*2+2), 16); return rgb; } function newRGB(f, n, d) { var change; if (d == 1) change = fiBy else change = foBy; for (var g = 0; g < 3; g++) { if (n[g] > f[g] && n[g] - change >= 0) n[g] -= change; if (n[g] < f[g] && n[g] + change <= 255) n[g] += change; } return n; } function fade(index, d) { var fc, nc, temp = new Array(), finished = false; nc = convert2Dec(currentColour(index)); if (d == 1) fc = convert2Dec(fadeTo) else fc = convert2Dec(ocs[x]); temp = convert2Dec(currentColour(index)); nc = newRGB(fc, nc, d); if ((nc[0] == temp[0]) && (nc[1] == temp[1]) && (nc[2] == temp[2])) finished = true; if (!finished) document.links[x].style.color = "rgb(" + nc[0] + "," + nc[1] + "," + nc[2] + ")" else clearInterval(fader); } function findLink(over) { if (document.layers) return; if (fader) { clearInterval(fader); document.links[x].style.color = "#" + ocs[x]; } if (over && !this.id) this.id = over; x = 0; while (!(this.id == document.links[x].id) && (x < document.links.length)) x++; if (this.id == document.links[x].id) { oc = currentColour(x); fader = setInterval("fade(" + x + ", 1)", speed); } } function clearFade() { if (document.layers) return; if (fader) clearInterval(fader); fader = setInterval("fade(" + x + ", 0)", speed); } function init() { for (var i = 0; i < document.links.length; i++) { ocs[i] = currentColour(i); var currentOver = document.links[i].onmouseover; var currentOut = document.links[i].onmouseout; var ignoreIt = document.links[i].className == ignoreClass; if (!ignoreIt) document.links[i].id = "link" + i; if (!currentOver && !currentOut && !ignoreIt) { document.links[i].onmouseover = findLink; document.links[i].onmouseout = clearFade; } } } if (opera || ie || dom) window.onload = init; </script> <!--- KAYNAK: http://www.LorenzoKalamites.Com ---> h1 { font-size:250%; font-weight:normal;} h2 { font-size:170%; font-weight:normal; } h3 { font-size:100%; margin:1em 1em 1em 0; font-weight:normal; } h4 { font-size:100%; font-weight:bold; margin:1.5em 1em 1em 0; } h5 { font-size:95%; margin:1em 1em 1em 0; } h6 { font-size:90%; margin:1em 1em 1em 0; } #user { margin:0; padding:0px; color:#888888; } #user ul { padding:0px; margin:0; } #user li { list-style:none; margin:0; padding:0px; } #quickmenu { padding:0; margin: 0; } #quickmenu li { background:url(img/system/arrow-right.gif) no-repeat ; list-style:none; width:70px; float:left; margin:0; padding:0px 0px 0px 12px; } .clear { clear:both; } hr {border-top: #404040 1px solid; border-bottom: #303030 1px solid; border-left: #404040 1px solid; border-right: #303030 1px solid; padding:0;margin:0 1px 4px 1px;} select , option {background:#131718; color:#e7e7e7; font:11px Verdana,Arial,Helvetica,sans-serif;} .radio {background:none; border:none;} input.text,input.file,input.password,input,textarea { background:#131718; margin:0px; color:#e7e7e7; font:10px Verdana,Arial,Helvetica,sans-serif; border:1px solid; border-color: #303030 #303030 #303030 #303030 } .bbstyle1 { font-size:160%; font-weight:bold; } .bbstyle2 { font-size:130%; font-weight:bold; } .bbstyle3 { font-size:120%; font-weight:bold; } .bbstyle4 { font-size:110%; font-weight:bold; } .bbstyle5 { } .bbstyle6 { } .bbstyle7 { } .bbstyle8 { } .bbstyle9 { } #container { padding:0; margin:0 auto; width:981px; background-color:#191919; } #adminmenu { background:url(img/main/subtitle.gif); margin:0px 0px 16px 0px; padding:10px; vertical-align:top; border:1px solid #2e2e2e; } #main { padding:0px; margin:0px; vertical-align:top; } .footer {clear:both; padding:8px; margin:0; font:80% Verdana, Arial, sans-serif; color:#888888; text-align:center;} /* ============== Various ============== */ .disp { padding:12px; margin:0; } .block { padding:8px; margin:12px; border:1px solid #212121; background-color: #313030; } .block h4 { margin-top:0; } .error { background:url(img/main/subtitle.gif); padding:24px 8px 24px 8px; margin:0; color:#CC1212; font-weight:bold; font-size:110%; text-align:center; border:1px solid #2e2e2e; } .codetitle { font-size:10px; color:#CC1212; padding:2px; margin-top:5px; } .code { font-size:11px; color:#59739B; background-color:#f6f8fa; padding:2px; margin-bottom:5px; font-family:monospace; margin:0px; padding:3px; border:1px inset; width:590px; overflow:auto;} .valid { height:48px; text-align:center; vertical-align:middle; } .download { text-align:center; background: #303030!important; padding:2px; border: 1px solid #404040;} .paging { padding:10px 0px 6px 0px; text-align:right; font-size:90%; } .paging_left { padding:4px 0px 4px 0px; font-size:90%; } .coltop { text-align:center; font-size:95%; padding:4px; margin:4px; background:url(img/main/coltop.gif) repeat-x!important; color:#CCCCCC; font-weight:bold; border-top: #1c1c1c 1px solid; border-left: #1c1c1c 1px solid;} .coltop_no_center {font-size:95%; padding:4px; margin:4px; background:url(img/main/coltop.gif) repeat-x!important; color:#CCCCCC; font-weight:bold; border-top: #1c1c1c 1px solid; border-left: #1c1c1c 1px solid;} .centerall { text-align:center; vertical-align:middle;} .middleall { vertical-align:middle;} .desc { font-size:95%; padding:3px; color:#646464; } li { margin:2px; } img { border-width:0; } ul { list-style-type:square; } form { margin:0; } .colleft { float:left; margin:0px 4px 0px 4px; } .colright { float:right; margin:0px 4px 0px 4px; } .bar_front { padding : 0; margin : 0; height : 8px; border-right : 1px solid #555; background : #900 url(img/system/pollin.gif) repeat-x; } .bar_back { padding : 0; margin : 0; height : 8px; font-size : 0; border-right : 1px double #999; border-bottom : 1px double #999; border-left : 1px solid #ccc; border-top : 1px solid #ccc; background : #fff url(img/system/pollout.gif) repeat-x; } .bbcodes a img { border:1px outset #A0A0A0; background-color:#999BAC; } .smilies a img { border:0; background-color:transparent; } .today { border:1px dashed #DDAA00; } .signature { color:#979797; font-size:80%; max-height:140px; overflow:auto; } .signature a { color:#000000; } /* ============== Tables ============== */ table td { vertical-align:top; } table.flat, table.main, table.cells { width:100%; background: #0e0e0e; border-collapse: separate; border-spacing: 1px;} table.main td , table.cells td , table.flat td { background: #000000; padding:2px; border-left: 1px solid #404040; border-top: 1px solid #404040; } table.cells td.fscat {background:url(img/main/fscat.gif)!important; } table td { vertical-align:top; } table.flat, table.main, table.cells { width:100%; background: #0e0e0e; border-collapse: separate; border-spacing: 1px;} table.main td, table.cells td, table.flat td { background: #1c1c1c; padding:2px; border-left: 1px solid #404040; border-top: 1px solid #404040; } .odd { background: #303030!important; } .even { background: #2b2a2a!important; } .pagenav_prev, .pagenav_next, .pagenav_first, .pagenav_last, .pagenav_pages { padding:0 2px; background:#303030; margin:1px; border:1px solid #404040;} .pagenav_current { padding:0 2px; font-weight:bold; background:#2b2a2a; margin:1px; border:1px solid #404040; } .cb_footer { background:url(img/main/cb_footer.gif); line-height:9px; } .cb_main { background-color:#000000; padding:2px 4px 10px 4px; border-left: 1px solid #404040; border-right: 1px solid #404040; } #title_expand {background:url(img/main/title_expand.gif) repeat-x;} #title, .cb_big_title {background:url(img/main/big_cb_title.gif) repeat-x; } .cb_medium_title {background:url(img/main/medium_cb_title.gif) repeat-x; } .cb_small_title {background:url(img/main/small_cb_title.gif) repeat-x;} #title, #title_expand, .cb_big_title, .cb_medium_title , .cb_small_title {font-weight:bold; font-size:110%; color:#FFFFFF; line-height:200%; padding:0px 0px 0px 3px;} #title a, #title_expand a, .cb_big_title a, .cb_medium_title a, .cb_small_title a { text-decoration:none; border-width:0; color:#FFFFFF; } #title a:hover, #title_expand a:hover, .cb_big_title a:hover, .cb_medium_title a:hover, .cb_small_title a:hover { text-decoration:underline; } #subtitle { background:url(img/main/subtitle.gif); margin:0px 0px 16px 0px; padding:10px; vertical-align:top; border:1px solid #2e2e2e; } .menu_holder { width:100%; margin-top:4px;} .menu_item { width:100px; height:37px; padding:0;} a#home { display: block; width: 100px; height: 37px; background-image:url(img/main/home.gif); margin: 0 auto;} a#home:hover { background-image:url(img/main/home.gif); background-position: 0 -37px;} a#forums { display: block; width: 100px; height: 37px; background-image:url(img/main/forums.gif); margin: 0 auto;} a#forums:hover { background-image:url(img/main/forums.gif); background-position: 0 -37px;} a#files { display: block; width: 100px; height: 37px; background-image:url(img/main/files.gif); margin: 0 auto;} a#files:hover { background-image:url(img/main/files.gif); background-position: 0 -37px;} a#users { display: block; width: 100px; height: 37px; background-image:url(img/main/users.gif); margin: 0 auto;} a#users:hover { background-image:url(img/main/users.gif); background-position: 0 -37px;} a#articles { display: block; width: 100px; height: 37px; background-image:url(img/main/articles.gif); margin: 0 auto;} a#articles:hover { background-image:url(img/main/articles.gif); background-position: 0 -37px;} a#search { display: block; width: 100px; height: 37px; background-image:url(img/main/search.gif); margin: 0 auto;} a#search:hover { background-image:url(img/main/search.gif); background-position: 0 -37px;} bu da css dosyam... forumu okudum hem de her yerini önerilenleri de yaptım ama olmuyor...yardımcı olursanız sevinirim... bir de almak istediğim resimdeki harfler de bir az kabarık olsun istiyorum..onu nerden değiştirebilirim acaba? Saygılarla... şimdiden teşekkürler |
|
phpcoding
146 posts |
#6780 2007-10-04 11:35 GMT |
|
o yazılar css ile alakalı css nde oynamalar yap oraya 00FF00 yaz sende o 00000 dır 00FF00 yazarsan olur tablo kısmını pek anlayamadım!
|
|
Kripteks
446 posts |
#6781 2007-10-04 15:37 GMT |
|
Lastespo..php sayfasindaki ilk "<table class='cells' width='100%' cellspacing='3' cellpadding='0' align='center'>"; yerine "<table class='cells' width='100%' cellspacing='0' cellpadding='0' align='center'>"; Dene birde, okumadan yazdim ha sorun insallah budur hemen gitmem gerek kusura bakma bu degilse... |
|
|
Internetim kapandi, izin'lerden sonra actiracam insallah!
|
|
alikoza
231 posts |
#6789 2007-10-04 20:17 GMT |
|
cok saol dostum sorun ordaymis...Allah senden razi olsun...
peki bu arka plan rengini nerden degisebilirim? arkada gri renkte ya onu siyah yapmak istiyorum latestpostta... |
|
Kaan
2,011 posts |
#6792 2007-10-04 21:49 GMT |
Quote Arkaplan rengini verdim forumlarda mevcut arastır biraz son koonularda yazıyor hatta |
|
alikoza
231 posts |
#6794 2007-10-04 23:21 GMT |
|
kardesim forumlari okudum ben, orda verilenler hatta en son eklenen o konuda ben istedigim seyden bahsetmiyor...ben son forum konulari bolumundeki arka plan rengini kastediyorum...yani cizgilerle tablo olusturduk ya o tablodaki arka gri rengi diyorum..onu siyah etmek istiyorum...ama bilemiyorum o resimmi renkmi?
|
|
Kaan
2,011 posts |
#6796 2007-10-05 00:06 GMT |
|
Sorunun cevabı burada bir yerde gizli ama hangisi bilmiyorum hiç denemedim ama senin istediğin ana renk bence orası ana renge göre degişiyor.
önce bunları dene table td { vertical-align:top; } table.flat, table.main, table.cells { width:100%; background: #0e0e0e; border-collapse: separate; border-spacing: 1px;} table.main td , table.cells td , table.flat td { background: #000000; padding:2px; border-left: 1px solid #404040; border-top: 1px solid #404040; } table.cells td.fscat {background:url(img/main/fscat.gif)!important; } table td { vertical-align:top; } table.flat, table.main, table.cells { width:100%; background: #0e0e0e; border-collapse: separate; border-spacing: 1px;} table.main td, table.cells td, table.flat td { background: #1c1c1c; padding:2px; border-left: 1px solid #404040; border-top: 1px solid #404040; } Daha sonra bunu dene color: #dadada; margin:0px; padding:0; background:#000000 url(img/back.gif); back.gif i sil ama siyah görünüyor burda arkaplan rengi. |
|
alikoza
231 posts |
#6797 2007-10-05 00:23 GMT |
|
hayir olmadi... kardesim aslinda galiba istedigim seyi izah edemedim galiba...
dur detayli dertlerimi sana yaziyim:-) simdi asagidaki resimdeki tablonun arkasindaki gri rengi siyah yapmak istiyorum... ![]() ayni zamanda forumda da arka plan rengini siyah yapmak istiyorum....yani tum griler siyah olsun istiyorum...
|
|
Kripteks
446 posts |
#6798 2007-10-05 01:11 GMT |
|
Alikoza simdi konularin arka plan rengi icin kisaca söyle özetliyim kodlari: Code: <table class="cells"> <tr> <td class="coltop" style="width:128px;">{PHP.skinlang.forumspost.Author}</td> <td class="coltop">{PHP.skinlang.forumspost.Message} #{FORUMS_POSTS_ROW_IDURL} {FORUMS_POSTS_ROW_CREATION} {FORUMS_POSTS_ROW_POSTERIP}</td> </tr> <tr> <td style="width:160px;" class="{FORUMS_POSTS_ROW_ODDEVEN}"><h2 style="margin:2px;">{FORUMS_POSTS_ROW_POSTERNAME}</h2> {FORUMS_POSTS_ROW_MAINGRPSTARS}<br /> {FORUMS_POSTS_ROW_USEREXTRA2}<br /> <table class="cells"> <tr> <td>{PHP.skinlang.forumspost.posts} {FORUMS_POSTS_ROW_POSTCOUNT}</td> </tr> </table> </td> Simdi bu usteki kodlar forum.post.tpl'deki kodlar yani konularin oldugu sayfa, ve tam olarak usteki kodlar konularin sol taraftaki kullanici bölumun kodlari. Simdi sol kullanici bölumundeki kod su: <td style="width:160px;" class="{FORUMS_POSTS_ROW_ODDEVEN}"> buradaki class="{FORUMS_POSTS_ROW_ODDEVEN}" o bölumun arka plan rengidir. Yani oraya daha kolayina gelmesi icin class="solkullanici" koy ve css git .solkullanici { background: #303030; } ekle oradaki #303030 yerine #000000 yaparak arka plani siyah yaparsin ayni sekilde mesaj'larin oldugu bölumde ayni sekil orayi da kendin bulursun artik Not: eger sitenin heryerini siyah yapmak istersen usteki yerine css'de altakileri ara .odd { background: #...!important; } .even { background: #...!important; } ve #000000 koy böylece direkt siyah olur ve diger bu kodlarin oldugu yerlerde siyah olur, tek tek zahmete girmeye gerek kalmaz. Simdi lastespost resimdeki gri yerlerin oldugu yerlerin kodlarini bulup hangi tabloda olduguna bak sonra css gir o tablonun oldugu kodlarla oynas eminim yaparsin(Kaan'in verdigi css kodlarinin oldugu yerlere bak).. Simdi sana direkt kodlari versem bu isten birsey anlamasin tek anlican denisenleri okumak ve kopy past ama biraz okuyup urasarak kendini zorliyarak alisirsin ve sonunda kendin yapar ve yardim eder olursun |
|
|
Internetim kapandi, izin'lerden sonra actiracam insallah!
|
|
alikoza
231 posts |
#6801 2007-10-05 01:20 GMT |
|
cok saol kardes...
|
|
Kripteks
446 posts |
#6804 2007-10-05 02:53 GMT |
|
Takildigin yerler olursa sor, bos vakitlerimde siteye göz atiyom
|
|
|
Internetim kapandi, izin'lerden sonra actiracam insallah!
|
|
alikoza
231 posts |
#6815 2007-10-05 09:25 GMT |
|
bulamiyorum ki bu kodlar nerde? css'de degistirmediyim renk kodu kalmadi ama o deismedi be kardes:-)
bir az daha bakayim belki bulurum... |
|
alikoza
231 posts |
#6816 2007-10-05 10:01 GMT |
|
tamam buldum arkadaslar... |
|
Benzer konular (Similar topics) #BETA
| Konular | Mesajlar | Son Yazar | Güncelleme |
| radyo skins var mı acaba... | 2 | wanted | 202 Gün |
| türkçe dil paketindemidir sorun acaba | 6 | teknopatron | 442 Gün |
| Forum istatistikleri eklentinin plugins/ismine acaba | 2 | Kaan | 199 Gün |
| Forum konularinin başliklarini nasil açabilirim acaba? | 3 | Kaan | 31 Gün |
| sayfalar 1<2<3 olmuyor | 5 | septali | 528 Gün |









