Potrebna mi je pomoc.Kod ove skripte samo na jednoj temi radi postavljanje news images.To je tema reline.Pokusavao sam nekako da ubacim tu opciju kod drugih tema ali slaba vajda.
reline:
Citat:// News style
$NEWSSTYLE = "<div class='tablerender'><div class='main_caption'>{STICKY_ICON}{NEWSTITLE}</div>{NEWSIMAGE}{NEWSBODY}{EXTENDED}</div>
<div class='news_info_top'>
<img class='news_comments_icon' src='".THEME_ABS."images/comments_16.png' alt='' />
{NEWSCOMMENTS}{TRACKBACK}
</div>
<table class='news_info_bottom'>
<tr>
<td class='news_info_bottom_left'>
{NEWSICON}
</td>
<td class='news_info_bottom_middle'>
".LAN_THEME_5." {NEWSAUTHOR} ".LAN_THEME_6." {NEWSDATE}
</td>
<td class='news_info_bottom_right'>
{EMAILICON}{PRINTICON}{PDFICON}{ADMINOPTIONS}
</td>
</tr>
</table>";
// Define attributes associated with news style.
define('ICONMAIL', 'email_16.png');
define('ICONPRINT', 'print_16.png');
define('ICONSTYLE', 'border: 0px');
define('COMMENTOFFSTRING', LAN_THEME_1);
define('COMMENTLINK', LAN_THEME_2);
define('PRE_EXTENDEDSTRING', '<br /><br />[ ');
define('EXTENDEDSTRING', LAN_THEME_3);
define('POST_EXTENDEDSTRING', ' ]<br />');
define('TRACKBACKSTRING', LAN_THEME_4);
define('TRACKBACKBEFORESTRING', ' | ');
Pokusavao sam da ubacim u temu charan:
Citat:$NEWSSTYLE = "
<div class='header'>
<div class='left'>{STICKY_ICON} {NEWSTITLE}</div>
<div class='right'>{NEWSDATE}</div>
</div>
<div class='tablerender' style='text-align:full'>
{NEWSBODY}
{EXTENDED}
</div>
<br />
<div class='newssmalltext'>[ {NEWSAUTHOR} :: {NEWSCOMMENTS}{TRACKBACK} ]</div>
<br />
<br />";
define("ICONSTYLE", "float: left; border:0");
define("COMMENTLINK", LAN_THEME_3);
define("COMMENTOFFSTRING", LAN_THEME_2);
define("PRE_EXTENDEDSTRING", "<br /><br />[ ");
define("EXTENDEDSTRING", LAN_THEME_4);
define("POST_EXTENDEDSTRING", " ]<br />");
define("TRACKBACKSTRING", LAN_THEME_5);
define("TRACKBACKBEFORESTRING", " :: ");
Neko ce verovatno reci da je vrlo lako , samo stavis {NEWSIMAGE} iznad {NEWSBODY}.Slika se pojavi to jeste tacno ali ceo tekst se nalazi ispod slike ili je samo jedan red pored slike, a ostali tekst se nalazi ispod.
Da li bi neko mogao da pomogne.
|