[wp] ใช้ Quadro Theme ครับ แต่มันตัดคำแบบนี้ แก้ยังไงให้มันแสดงเต็มง่ะ

เริ่มโดย pizad_sura, 21 พฤศจิกายน 2009, 01:08:51

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

pizad_sura


pizad_sura

นี่ไฟล์ home.php ครับ

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head profile="http://gmpg.org/xfn/11">

<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

<title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php ?> <?php wp_title(); ?></title>

<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->

<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('stylesheet_directory'); ?>/iestyle.css" />
<![endif]-->

<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('stylesheet_directory'); ?>/ie6style.css" />
<![endif]-->
<link rel="alternate" type="application/rss xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />

<link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />

<link rel="alternate" type="application/atom xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />

<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/idtabs.js"></script>
<?php wp_get_archives('type=monthly&format=link'); ?>

<?php wp_head(); ?>
</head>

<body>

<div id="pages">
<ul>
              <li class="page_item_home"><a href="<?php bloginfo('url'); ?>">Home</a></li>

<?php wp_list_pages('depth=1&title_li='); ?>

                </ul>
</div>

<div style="clear: both;"></div>
<div id="header">
<a href="<?php bloginfo('url'); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/logo.gif" alt="logo" class="logo" /></a>
<div class="search_bg">
<div id="search">
<form method="get" action="<?php bloginfo('home'); ?>" style="padding:0px 0px 0px 0px; margin:0px 0px 0px 0px">
<input type="text"  name="s" value="<?php echo wp_specialchars($s1); ?>"/><input type="image" class="input" src="<?php bloginfo('stylesheet_directory'); ?>/images/search.gif" value="submit"/>
</form>
</div>
</div>
</div>
<div style="clear: both;"></div>
<div id="wrapper2">
<div id="categories">
<ul>
<?php wp_list_cats('sort_column=name&optioncount=0&depth=1'); ?>
</ul>
</div>

<div id="wrapper">

<div id="content-wrapper">

<div id="content">


<div id="featured">

<?php $my_query = new WP_Query('category_name=Featured Articles&showposts=1');
  while (
$my_query->have_posts()) : $my_query->the_post();
  
$do_not_duplicate $post->ID?>

<div class="thumbnail-div-featured"><a href="<?php the_permalink() ?>"><img height="212" width="159" style="border: none;" alt="featured article" src="<?php echo get_post_meta($post->ID"Featured"true); ?>" /></a></div>

<div id="featured-content">
<span class="titles-featured"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></span>
<?php the_content_limit(500""); ?>
<div class="readmore"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">Read More</a></div>

</div>
<div style="clear: both;"></div>
  <?php endwhile; ?>
</div>

<ul class="idTabs">
<li><a class="" href="#recententries">Recent Entries</a></li>
<li><a class="" href="#recentcomments2">Recent Comments</a></li>
<li><a class="" href="#mostcomments">Popular Posts</a></li>
</ul>

<div id="recententries">
<span class="toptitle">Recent Posts</span>
<ul class="list2">
<?php get_archives('postbypost'8); ?>
</ul>
</div>

<div id="recentcomments2">
<span class="toptitle">Recent Comments</span>
<ul class="list2">
<?php if(function_exists("get_recent_comments")) : ?>
<?php get_recent_comments(); ?>
<?php else : ?>
<?php mw_recent_comments(8false501550'all''<li><a href="%permalink%" title="%title%"><strong>%author_name%</strong></a> in %title%</li>','d.m.y, H:i'); ?>
<?php endif; ?>
</ul>
</div>


<div id="mostcomments">
<span class="toptitle">Popular Articles</span>
<ul class="list2">
<?php get_hottopics(); ?>
</ul>
</div>



<?php if (have_posts()) : while (have_posts()) : the_post(); 
  if( 
$post->ID == $do_not_duplicate ) continue; update_post_caches($posts); ?>



<?php static $ctr 0
if (
$ctr == "4") { break; } 
else { 
?>


<?php 
// check for thumbnail
$thumb get_post_meta($post->ID'Thumbnail'$single true);
// check for thumbnail class
$thumb_class get_post_meta($post->ID'Thumbnail Class'$single true);
// check for thumbnail alt text
$thumb_alt get_post_meta($post->ID'Thumbnail Alt'$single true);
 ?>


<div class="home-post-wrap">
<div class="post">


<div class="thumbnail-div" style="width: 263px; margin-bottom: 10px;">
<?php // if there's a thumbnail
if($thumb !== '') { ?>


<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><img src="<?php echo $thumb?>"
width="263px" height="108px" style="border: none;"
alt="<?php if($thumb_alt !== '') { echo $thumb_alt; } else { echo the_title(); } ?>"
/></a>

<?php // end if statement

// if there's not a thumbnail

else { echo ''; } ?>


</div>


<span class="titles"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title2('''...'true'23'?></a></span>
<?php the_content_limit(280""); ?>
<div class="readmore"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">Read More</a></div>

</div>

</div>
<?php $ctr  ; } ?>
<?php comments_template(); ?>

<?php endwhile; ?>

   

<?php else : ?>

<h2 >No Results Found</h2>

<p>Sorry, your search returned zero results. </p>

<?php endif; ?>







</div>

</div>
<?php get_sidebar(); ?>   
<?php get_footer(); ?>   

</body>
</html>

pizad_sura

ได้แล้วครับ   :wanwan003:

ใช้ <?php the_title(); ?>

แทน <?php the_title2('', '...', true, '23') ?>


อายว่ะ ชงเองกินเองหมดเลย  :-[

g-ji

จี้ งงว่า ธีมมันจะเขียน

<?php the_title2('', '...', true, '23') ?>

ขึ้นมาเพื่อ ??

pizad_sura

อ้างถึงจาก: g-ji ใน 21 พฤศจิกายน 2009, 02:42:48
จี้ งงว่า ธีมมันจะเขียน

<?php the_title2('', '...', true, '23') ?>

ขึ้นมาเพื่อ ??

พี่จี้ครับ ผมเจอปัญหาอีกแล้ว

ถ้าจะเปลี่ยนสี font เปลี่ยนตรงนี้รึเปล่าครับ

body {
margin-top: 0px;
padding: 0;
color: #FF0000;
background-color: #19110A;
font-family: Verdana, Georgia, Sans-Serif;
font-size: 11px;
line-height: 18px;
}

ผมลองเปลี่ยนแล้วอัพ style.css ขึ้นไปดู แต่มันก็ไม่ยอมเปลี่ยนเลย  :P

g-ji

อันนั้นมัน ฟอนต์ ใน body

ถ้าไม่ได้กำหนด สี มันจะออกมาเป็นสีตามที่ตั้งของ body ...

ถ้าจะเปลี่ยนจริงๆ ต้องหา

CSS ของ จุดที่ต้องการเปลี่ยนจริงๆ

ใช้ หมาไฟ ก็โหลด developer toolbar มาใช้สิ สะดวกดี

แต่ Class มาตรฐานจะใช้ .post นะ

pizad_sura

อ้างถึงจาก: g-ji ใน 21 พฤศจิกายน 2009, 03:07:12
อันนั้นมัน ฟอนต์ ใน body

ถ้าไม่ได้กำหนด สี มันจะออกมาเป็นสีตามที่ตั้งของ body ...

ถ้าจะเปลี่ยนจริงๆ ต้องหา

CSS ของ จุดที่ต้องการเปลี่ยนจริงๆ

ใช้ หมาไฟ ก็โหลด developer toolbar มาใช้สิ สะดวกดี

แต่ Class มาตรฐานจะใช้ .post นะ
ได้เรียบร้อยแล้วครับ ตอนนี้ปรับสีที่ต้องการได้แล้ว

ปัญหาต่อมา..

bbpress โหลดภาษาไทยมาแล้ว

สร้าง โฟลเดอร์ "my-languages"

เอาสองไฟล์ที่โหลดใส่เข้าไป

ไม่เห็นเป็นภาษาไทยเลยครับ  :P

g-ji

อ้างถึงจาก: pizad_sura ใน 21 พฤศจิกายน 2009, 03:50:24
อ้างถึงจาก: g-ji ใน 21 พฤศจิกายน 2009, 03:07:12
อันนั้นมัน ฟอนต์ ใน body

ถ้าไม่ได้กำหนด สี มันจะออกมาเป็นสีตามที่ตั้งของ body ...

ถ้าจะเปลี่ยนจริงๆ ต้องหา

CSS ของ จุดที่ต้องการเปลี่ยนจริงๆ

ใช้ หมาไฟ ก็โหลด developer toolbar มาใช้สิ สะดวกดี

แต่ Class มาตรฐานจะใช้ .post นะ
ได้เรียบร้อยแล้วครับ ตอนนี้ปรับสีที่ต้องการได้แล้ว

ปัญหาต่อมา..

bbpress โหลดภาษาไทยมาแล้ว

สร้าง โฟลเดอร์ "my-languages"

เอาสองไฟล์ที่โหลดใส่เข้าไป

ไม่เห็นเป็นภาษาไทยเลยครับ  :P

bb-config.php

ล่างๆ เลย

define( 'BB_LANG', '' ); ใส่ไป TH (มั้ง)

pizad_sura

ขอบคุณมากครับ ภาษาไทย bbspress ยังไม่ลองทำเลย แต่ว่าตอนนี้ปัญหาใหม่อ่ะ

<div id="recentcomments2">
<span class="toptitle">Recent Comments</span>
<ul class="list2">
<?php if(function_exists("get_recent_comments")) : ?>
<?php get_recent_comments(); ?>
<?php else : ?>
<?php mw_recent_comments(8, false, 50, 15, 50, 'all', '<li><a href="%permalink%" title="%title%"><strong>%author_name%</strong></a> in %title%</li>','d.m.y, H:i'); ?>
<?php endif; ?>
</ul>
</div>

มันแสดงแค่นี้เองน่ะครับ อยากให้มันแสดงเต็ม ๆ