dplsnw7329 2011-01-20 09:47
浏览 30
已采纳

Joomla myBlog模板

Greetings everyone i would just like to ask for some guides on how do i edit my current template in myBlog component which i believes..located here:

\components\com_myblog\templates\bluestyle

My main reason for asking is because i don't know where to fix the misalignment in the website i am maintaining..

But if you would try to browse the other tabs on top of the site.. others has no problems at all, it's just so happened that myBlog component has its own template aside from the default joomla template.

I believe the problem is somewhere in this path of my Joomla file

"C:\xampp\htdocs\lopez-link\components\com_myblog\templates\bluesky"

Obviously my chosen template is named "bluesky" inside this folder it has 3 html files (bloginfo.tmpl.html, entry.tmpl.html and index.tmpl.html) and a css file (template_style). I included below my index.tmpl.html code.

index.tmpl.html

<?php
if ($entry and is_array($entry) and count($entry) != 0)
{
    foreach ($entry as $e)
    {
        $date = strtotime($e['created']);
        $month_day = strftime("%b ", $date) . strftime("%d", $date);
        $year = strftime("%Y", $date);
        $month_day = i8n_date($month_day);
    ?>
 <div class="entryContent">
<div class="entry">
    <table class="entryTitle">
        <tr>
            <td class="my-dateCell">
                <div class="dateContainer">     
                    <div class="date">
                        <div class="month"><span><?php echo $month_day; ?></span></div>
                        <div class="year"><span><?php echo $year; ?></span></div>
                    </div>
                </div>
            </td>
            <td class="my-titleCell">
                <div class="entry-title">
                    <h3><a href="<?php echo $e['permalink']; ?>"><?php echo $e['title']; ?></a></h3>
                    <p>_MB_POSTED_BY <a href="<?php echo $e['authorLink']; ?>"><?php echo $e['author']; ?></a> in <?php echo $e['categories']; ?></p>
                </div>
            </td>           
            <?php if(!empty($e['avatar'])){ ?>
            <td class="my-avatarCell">
                <div class="userAvatar">
                <?php echo $e['avatar']; ?>
                </div>
            </td>
            <?php } ?>
        </tr>
    </table>
    <?php
        if ($e['beforeContent'])
        { ?>
        <div class="onBeforePrepareContent">
            <?php echo $e['beforeContent'];?>
        </div>
        <?php
        }
        ?>
    <div class="entry-body"> 
        <?php echo $e['text']; ?>
        <div class="clear"></div> 
    </div>
    <?php if ($e['afterContent'])
        { ?>
        <div class="onAfterPrepareContent">
            <?php echo $e['afterContent'];?>
        </div>
        <?php
        }
        ?>
    <div class="entry-footer">
        <?php
            if ($e['comments']!="") // if comments enabled

                echo '<div class="entry-comment"><a href="'.$e['permalink'].'#comments">'.$e['comments'] .'</a>';
            else
                echo '<div>';
            if ($e['comments']!="" and $e['readmore']=="1")
                 echo ' | ';
        ?>
        <?php  // IF NEED READMORE
        if ($e['readmore']=="1")
        { ?>
        <a href="<?php echo $e['permalink']; ?><?php echo $showAnchor; ?>">_MB_READ_MORE...</a>
        <?php } ?>
        </div> 
    </div>
</div>
 <?php
}
   }
 ?>

Any suggestion or advice will be highly sought.. guide me plss thank you and Godbless

  • 写回答

1条回答 默认 最新

  • dtmu88600 2011-01-20 10:39
    关注

    EDITED : May this help you. find the code

    if ($e['readmore']=="1")
    { ?>
        <a href="<?php echo $e['permalink']; ?><?php echo $showAnchor; ?>">_MB_READ_MORE...</a>
            <?php } 
    

    and replace it with

    if ($e['readmore']=="1")
            { ?>
            <a href="<?php echo $e['permalink']; ?><?php echo $showAnchor; ?>">_MB_READ_MORE...</a>
            <?php } 
            echo '</div>';
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度