Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Koobi 4.3

 
Post new topic   Reply to topic    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
AlaaFarah
Smarty n00b


Joined: 08 Aug 2005
Posts: 4

PostPosted: Fri Sep 30, 2005 3:36 pm    Post subject: Koobi 4.3 Reply with quote

Hi all.

I am using koobi 4 in my website, but I have a problem in that; my site is in arabic language and I can see every thing written in arabic except the titles of my news I see something like that: "#1605;#1624;"....
I use this script of the news .tpl to see the news in the startpage because just in that way I can see a limmeted nombers of news (not all of them)...


{assign var=iterations value=0}
<table border="0" width="445" >
{foreach from=$news_array item=news}

{assign var=iterations value=$iterations+1}
{if $iterations >= 3 }
{if $iterations <= 8 }
<tr class="{cycle name='links' values='row_top_first,row_top_second'}">
<td align="right" width="322" >
<p dir="ltr">{/if} <a class="ticker" href="{$news.link}">
{$news.title|truncate:100000} </a>
</p>
<p dir="ltr" style="margin-top: -20px">{if $news.isontop=='yes'}{/if}{if
$news.text}
<span class="intro" > {$news.text|truncate:100000}</span>{/if}
</p>
<p dir="ltr" style="margin-top: -20px">
<a href="{$news.link}">
<img src="templates/sport/news/arrow_end.gif" alt="" border="0" align="{$news.image_align}" width="10" height="9" /></a></p></td>
<td width="109"> {if $news.image} <a href="{$news.link}">
<img src="{$news.image}" alt="" border="0" align="{$news.image_align}" width="105" height="73" /></a>{/if}{/if} {/foreach}
</td>
</tr>
</table>

But if I use the following code I can read the titles In Arabic but Not the nomber of news that I want...

{strip}
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="box_newsticker" bgcolor="#ECEDED">
{section name=year loop=$curr_year step=-1 max=1} {assign var=year value=$smarty.section.year.index} {assign var=y_news value=$all_news.$year} {if count($y_news)}
<tr>
<td class="time" style="padding:2px">& {* &<span class="time_ticker">{$lang.newsfromyear}{$year}</span> *} </td>
</tr>
<tr>
<td > {section name=week loop=54 step=-1 max=53} {assign var=week value=$smarty.section.week.index} {assign var=w_news value=$y_news.$week} {if count($w_news)} {section name=dow loop=8 step=-1 max=7} {assign var=dow value=$smarty.section.dow.index} {assign var=d_news value=$w_news.$dow} {assign var=e_news value=$w_news.$dow} {if count($d_news)}
<div align="right">
<table width="445" border="0" cellpadding="0" cellspacing="0" height="182">
{foreach from=$d_news item=news name=title}

<tr>
<td valign="top" style="padding-top:5px" bgcolor="#ECEDED" width="255" background="/en/templates/sport/games_files/bg1.jpg">

{if $news->image}
<a href="{$news->link}">
<img src="{$news->image}" alt="" border="0" align="{$news->image_align|default:'left'}" width="255" height="173" /></a>
{/if}</td>
<td valign="top" style="padding-top:5px" bgcolor="#ECEDED" width="100%" background="/en/templates/sport/games_files/bg2.jpg">
<p align="right"><b><a class="ticker" href="{$news->link}">
<font color="#FF0000" face="Times New Roman" style="font-size: 13pt">{$news->title}</font></a></b> </p>
<p align="right">{if $news->text} </p>
<div class="newstext">
<p align="right" style="margin-top: -20px">
<font face="Times New Roman" style="font-size: 9.5pt">{$news->text|truncate:10000}</font></div>
<p align="right">{/if}

</p>

<p align="right" style="margin-top: -20px">
{* <a title="{$lang.readmorenews}" href="{$news->link}"><img class="absmiddle" src="templates/{$theme}/img/page/button_readnews.gif" alt="{$lang.readmorenews}" border="0" /></a> *}
<small>
<a title="{$lang.readmorenews}" href="{$news->link}">
<font color="#FF0000" face="Times New Roman" style="font-size: 9pt">
<img border="0" src="templates/sport/news/arrow_end.gif" width="10" height="9"></font></a>{if $news->comments} &|& <a href="{$news->link}#comments">{$news->comments} {$news->commtext}</a>{* &|& <a href="{$news->link}&print=1" target="_blank" rel="nofollow">{$lang.printtext}</a> *}{/if}</small>
</p>

</td>
</tr>
{if !$smarty.foreach.title.last}
{else}
{/if} {/foreach}
</table>
</div>
{/if} {/section} {/if} {/section} </td>
</tr>
{/if} {/section}
</table>
{/strip}



so please if you can help do not hesitate.
& thank you in Advance...
Back to top
View user's profile Send private message
AlaaFarah
Smarty n00b


Joined: 08 Aug 2005
Posts: 4

PostPosted: Sat Oct 01, 2005 2:36 pm    Post subject: Reply with quote

please help me if u can....

You can go to dream4.de to understand more about koobi 4[/url]
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP