Gangstamonu adlı üyeden alıntı:
mesajı görüntüle
GangSky Portal Teması
278
●32.764
- 21-06-2010, 10:56:05MAİN.PHP
<div class="centerside"> <div class="centersideinn"> <div class="speedbar"><div> <div> <div> <?php if ( function_exists('yoast_breadcrumb') ) { yoast_breadcrumb(''); } ?> </div></div></div></div> <!-- REKLAM --> <div class="cblock"> <div class="bbr_head"><div></div></div> <div class="bbr_mid"><div class="bbr_mid"> <div class="maincont" align="center"><img src="<?php bloginfo('template_url'); ?>/images/_banner_.gif" alt="" /></div> </div> </div> <div class="bbr_foot"><div> </div> </div> </div> <!-- REKLAM --> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <span id='dle-info'></span> <div id='dle-content'> <div class="base"> <div class="bheading"><div> <div> <div><div><div> <span><strong>Kategori:</strong> <?php $category = get_the_category(); if ($category) { echo '<a href="' . get_category_link( $category[0]->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $category[0]->name ) . '" ' . '>' . $category[0]->name.'</a> '; } ?></span> <h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1> </div></div></div></div></div></div> <div class="bbr_mid"><div class="bbr_mid"> <div class="maincont"> <div class="infostore"> <div class="isicons"> <span></span> <span></span> </div> <span class="arg"><img class="si_author" src="<?php bloginfo('template_url'); ?>/images/spacer.gif" alt="yazar" title="yazar" /><strong>Yazar:</strong> <?php the_author(); ?></span> <span class="arg"><img src="<?php bloginfo('template_url'); ?>/images/spaceinfo.gif" alt="|" /></span> <span class="arg"><img class="si_date" src="<?php bloginfo('template_url'); ?>/images/spacer.gif" alt="tarih" title="tarih" /><strong>Tarih:</strong> <?php the_time('j F Y'); ?> / <?php the_time('G:i'); ?></span> <div class="clr"></div> </div> <div class="indents"> <?php the_content(); ?> <div class="clr"></div> </div></div></div></div> <div class="morelink"><div class="ml"><div class="ml"> <div class="argrate"><?php if(function_exists('the_ratings')) { the_ratings(); } ?></div> <?php if (!is_home()) {?> <span class="argback2"><a href="<?php bloginfo('url'); ?>" title="devami"><strong>Geri Dön</strong></a></span> <?php }?> <?php if (is_home()) {?> <span class="argback"><a href="<?php the_permalink(); ?>" title="devami"><strong>Devamı</strong></a></span> <?php }?> <span class="arg"><img class="ml_com" src="<?php bloginfo('template_url'); ?>/images/spacer.gif" alt="yorum" title="yorum" /><strong>Yorumlar:</strong> <?php comments_number('0','1','%'); ?></span> <span class="arg"><img class="ml_views" src="<?php bloginfo('template_url'); ?>/images/spacer.gif" alt="okunma" title="okunma" style="margin-top:-4px;" /><strong>Okunma:</strong> <?php if(function_exists('the_views')) { the_views(); } ?></span> </div></div></div></div></div> <?php endwhile; ?><?php else : ?><?php endif; ?> <?php edit_post_link('Edit'); ?> <?php if (!is_home()) {?> <?php comments_template(); // Get wp-comments.php template ?> <?php }?> <div style="margin-bottom:5px;"> <?php $post = $posts[0]; // Hack. $post değişkenini ata ki the_date() çalışsın. ?> <?php /* Kategori arşivi ise */ if (is_category()) { ?> <?php if(function_exists('wp_paginate')) { wp_paginate(); } ?> <?php /* Etiket arşivi ise */ } elseif( is_tag() ) { ?> <?php if(function_exists('wp_paginate')) { wp_paginate(); } ?> <?php /* Günlük arşiv ise */ } elseif (is_day()) { ?> <?php if(function_exists('wp_paginate')) { wp_paginate(); } ?> <?php /* Aylık arşiv ise */ } elseif (is_month()) { ?> <?php if(function_exists('wp_paginate')) { wp_paginate(); } ?> <?php /* Yıllık arşiv ise */ } elseif (is_year()) { ?> <?php if(function_exists('wp_paginate')) { wp_paginate(); } ?> <?php /* Yazar arşivi ise */ } elseif (is_author()) { ?> <?php if(function_exists('wp_paginate')) { wp_paginate(); } ?> <?php /* Sayfalanmış bir arşiv ise */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> <?php if(function_exists('wp_paginate')) { wp_paginate(); } ?> <?php /* Anasayfa ise */ } elseif (is_home()) { ?> <?php if(function_exists('wp_paginate')) { wp_paginate(); } ?> <?php } ?> </div> </div></div> <div class="clr"></div> </div> </div></div></div>functions.PHP
<?php if ( function_exists('register_sidebar') ) register_sidebar(array( 'name' => 'Right Column', 'before_widget' => '<li id="%1$s" class="%2$s">', 'after_widget' => '</li>', 'before_title' => '<h2 class="sidebartitle">', 'after_title' => '</h2>', )); function img2postlink($content) { global $post; if (!is_singular()) { $imgpostlink = '<a href="'.get_permalink().'" title="'.get_the_title().'"><img$1/></a>'; $content = preg_replace("/<img(.*?)\/>/", $imgpostlink, $content, 1); } return $content; } add_action('the_content','img2postlink'); // Search function widget_zone_out_search() { ?> <li class="list-search"> <?php include (TEMPLATEPATH . '/searchform.php'); ?> </li> <?php } if ( function_exists('register_sidebar_widget') ) register_sidebar_widget(__('Search'), 'widget_zone_out_search'); /* Plugin Name: Recent Posts Plugin URI: http://mtdewvirus.com/code/wordpress-plugins/ */ function mdv_recent_comments($no_comments = 5, $comment_lenth = 7, $before = '<li>', $after = '</li>', $show_pass_post = false, $comment_style = 0) { global $wpdb; $request = "SELECT ID, comment_ID, comment_content, comment_author, comment_author_url, post_title FROM $wpdb->comments LEFT JOIN $wpdb->posts ON $wpdb->posts.ID=$wpdb->comments.comment_post_ID WHERE post_status IN ('publish','static') "; if(!$show_pass_post) $request .= "AND post_password ='' "; $request .= "AND comment_approved = '1' ORDER BY comment_ID DESC LIMIT $no_comments"; $comments = $wpdb->get_results($request); $output = ''; if ($comments) { foreach ($comments as $comment) { $comment_author = stripslashes($comment->comment_author); if ($comment_author == "") $comment_author = "anonymous"; $comment_content = strip_tags($comment->comment_content); $comment_content = stripslashes($comment_content); $words=split(" ",$comment_content); $comment_excerpt = join(" ",array_slice($words,0,$comment_lenth)); $permalink = get_permalink($comment->ID)."#comment-".$comment->comment_ID; if ($comment_style == 1) { $post_title = stripslashes($comment->post_title); $url = $comment->comment_author_url; if (empty($url)) $output .= $before . $comment_author . ' on ' . $post_title . '.' . $after; else $output .= $before . "<a href='$url' rel='external'>$comment_author</a>" . ' on ' . $post_title . '.' . $after; } else { $output .= $before . '' . $comment_author . ': <a href="' . $permalink; $output .= '" title="View the entire comment by ' . $comment_author.'">' . $comment_excerpt.'</a>' . $after; } } $output = convert_smilies($output); } else { $output .= $before . "None found" . $after; } echo $output; } ?> - 21-06-2010, 14:57:30Kimlik doğrulama veya yönetimden onay bekliyor.Main.php'yi aç
Bul: <?php the_content(); ?>
Değiştir: <?php the_content(' '); ?> - 21-06-2010, 20:51:37Üyeliği durdurulduya bu anket olayını nasıl yapıcam yardım edermisiniz acaba. anket yapmam lazımda
- 21-06-2010, 21:32:50Onun için bir eklenti kurmanız lazım. Anket eklentileri kullanmadığım için kullanan birisi tavsiyede bulunabilir.SerSeRiYiM adlı üyeden alıntı: mesajı görüntüle
- 21-06-2010, 21:59:08Üyeliği durdurulduteşekkürler birde bu ana sayfada yazıların bir kısmı cıkmıyormu yazıların hepsi cıkıyor özet göster dediğim haldeGangstamonu adlı üyeden alıntı: mesajı görüntüle
- 21-06-2010, 22:03:34"more" kullanırsanız anasayfada kesiyor. Mesela anasayfada şiir deneme yazsınıa tıklarsanız devamını post içinde görebilirsiniz. (php kod var
)

link açılmıyor hocam. düzeltirseniz sevinirim. kullanıcam çünkü