Changeset 2089 in ExiteCMS for trunk/includes/templates/main.news.tpl


Ignore:
Timestamp:
12/03/08 17:29:31 (3 years ago)
Author:
WanWizard
Message:

added bbcode editor and bbcode parsing for download and download category descriptions
fixed a few relative link issues in the news main module

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/templates/main.news.tpl

    r2088 r2089  
    4141            <tr> 
    4242                <td style='width:100%;vertical-align:top;'> 
    43                     <a href='news_cats.php?cat_id={$news[column][item].news_cat_id}'> 
     43                    <a href='{$smarty.const.BASEDIR}news_cats.php?cat_id={$news[column][item].news_cat_id}'> 
    4444                    <img src='{$smarty.const.IMAGES_NC}{$news[column][item].news_cat_image}' alt='{$news[column][item].news_cat_name}' align='left' style='border:0px;margin-top:3px;margin-right:5px' /></a> 
    4545                    {$news[column][item].news_news|escape:"amp"}<br /> 
     
    4747            </tr> 
    4848        </table> 
    49         {if $allow_edit}<form name='editnews{$news[column][item].news_id}' method='post' action='/administration/news.php{$aidlink}&amp;news_id={$news[column][item].news_id}'>{/if} 
     49        {if $allow_edit}<form name='editnews{$news[column][item].news_id}' method='post' action='{$smarty.const.BASEDIR}administration/news.php{$aidlink}&amp;news_id={$news[column][item].news_id}'>{/if} 
    5050            <table width='100%' cellspacing='0' cellpadding='0'> 
    5151                <tr> 
    5252                    <td align='center' class='infobar'> 
    5353                        <img src='{$smarty.const.THEME}images/bullet.gif' alt='' /> {$locale.040} 
    54                         {if $smarty.const.iMEMBER}<a href='profile.php?lookup={$news[column][item].user_id}'>{/if} 
     54                        {if $smarty.const.iMEMBER}<a href='{$smarty.const.BASEDIR}profile.php?lookup={$news[column][item].user_id}'>{/if} 
    5555                        {$news[column][item].user_name}{if $smarty.const.iMEMBER}</a>{/if} 
    5656                        {if $_maxcols == 3} 
     
    6565                            &middot; 
    6666                        {/if} 
    67                         {if $news[column][item].news_extended}<a href='news.php?readmore={$news[column][item].news_id}'>{$locale.042}</a> &middot;{/if} 
     67                        {if $news[column][item].news_extended}<a href='{$smarty.const.BASEDIR}news.php?readmore={$news[column][item].news_id}'>{$locale.042}</a> &middot;{/if} 
    6868                        {if $news[column][item].allow_comments} 
    69                             <a href='news.php?readmore={$news[column][item].news_id}#comments'>{$news[column][item].news_comments} {$locale.043}</a> &middot; 
     69                            <a href='{$smarty.const.BASEDIR}news.php?readmore={$news[column][item].news_id}#comments'>{$news[column][item].news_comments} {$locale.043}</a> &middot; 
    7070                            {if $_maxcols == 3} 
    7171                                <img src='{$smarty.const.THEME}images/bulletb.gif' alt='' /><br /> 
Note: See TracChangeset for help on using the changeset viewer.